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
Pipeline #25197 passed with stages
in 1 minute and 44 seconds
......@@ -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;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment