Skip to content

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