Skip to content
Snippets Groups Projects
Commit 779aa495 authored by Mark Oliver Mints's avatar Mark Oliver Mints
Browse files

[#36][Fix] Add const keyword to return value type

parent aad45984
No related branches found
No related tags found
1 merge request!28Resolve "Shader Program Reflection"
Pipeline #25197 passed
......@@ -57,7 +57,7 @@ namespace vkcv {
void reflectShader(ShaderStage shaderStage);
VertexLayout& getVertexLayout();
const VertexLayout &getVertexLayout() const;
private:
std::unordered_map<ShaderStage, Shader> m_Shaders;
......
......@@ -128,7 +128,7 @@ namespace vkcv {
m_VertexLayout = VertexLayout(inputVec);
}
VertexLayout& ShaderProgram::getVertexLayout(){
const VertexLayout& ShaderProgram::getVertexLayout() const{
return m_VertexLayout;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment