diff options
Diffstat (limited to 'shaders/shader.vert')
| -rw-r--r-- | shaders/shader.vert | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shaders/shader.vert b/shaders/shader.vert index 009b38f..bd8cd94 100644 --- a/shaders/shader.vert +++ b/shaders/shader.vert @@ -5,7 +5,10 @@ struct Transformation { vec3 translation; }; -layout(binding = 0) uniform UniformBlock { +// Set 0 is the default, so we could omit it, but we prefer to be explicit. +// It specifies which the descriptor set layout the binding index pertains to; +// see init_pipeline() in render.rs. +layout(set = 0, binding = 0) uniform UniformBlock { Transformation view; mat4 projection; } uniform_block; |