(Translated by https://www.hiragana.jp/)
WIP: Do changes for Shader Passes in custom_material_resource by NehaGujar1 · Pull Request #604 · sdslabs/Rootex · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Do changes for Shader Passes in custom_material_resource #604

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

NehaGujar1
Copy link
Contributor

No description provided.

m_Shader = std::move(shader);
if (ind >= m_PixelShaderCount)
{
m_Shader.push_back(std::move(shader)); //read
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be emplace_back

}
else
{
m_Shader[ind] = std::move(shader); // current changes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use emplace

@@ -72,6 +77,8 @@ void CustomMaterialResourceFile::Destroy()
CustomMaterialResourceFile::CustomMaterialResourceFile(const FilePath& path)
: MaterialResourceFile(ResourceFile::Type::CustomMaterial, path)
{
m_PixelShaderCount=0;
m_DummyVertexShaderPath = "rootex/core/renderer/shaders/custom_pixel_shader.hlsl";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a pixel shader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants