]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/unlit.glsl
Annotate uniforms with descriptor set layout qualifiers
[libs/gl.git] / shaderlib / unlit.glsl
index f4920a7982db397babd59fcc61e66dc725a55dbf..29cfd3f2cf0257874b40c0a0901e5ca9157bb9da 100644 (file)
@@ -6,13 +6,13 @@ struct UnlitMaterialParameters
        vec4 color;
 };
 
-uniform UnlitMaterial
+layout(set=1) uniform UnlitMaterial
 {
        UnlitMaterialParameters unlit_material;
        float alpha_cutoff;
 };
 
-uniform sampler2D color_tex;
+layout(set=1) uniform sampler2D color_tex;
 
 layout(constant_id=auto) const bool use_texture = false;
 layout(constant_id=auto) const bool use_vertex_color = false;