-
-
Save Borgleader/75869079be9d876a333d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vs.glsl | |
layout (binding = 1, std140) uniform Matrices | |
{ | |
mat4 modelViewProjMat; | |
}; | |
layout (binding = 0) uniform Foo | |
{ | |
vec3 bar; | |
}; | |
// main.cpp | |
GLuint idx = gl::GetUniformBlockIndex(llogl::get_id(basicShaderVsProg), "Matrices"); | |
idx -> 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vs.glsl | |
layout (binding = 1, std140) uniform Matrices | |
{ | |
mat4 modelViewProjMat; | |
}; | |
// main.cpp | |
GLuint idx = gl::GetUniformBlockIndex(llogl::get_id(basicShaderVsProg), "Matrices"); | |
idx -> 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment