-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: dev
Are you sure you want to change the base?
Conversation
m_Shader = std::move(shader); | ||
if (ind >= m_PixelShaderCount) | ||
{ | ||
m_Shader.push_back(std::move(shader)); //read |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
No description provided.