render: Mark the gradient buffer as readonly in wgpu renderer

This commit is contained in:
Nathan Adams 2020-10-25 18:06:40 +01:00 committed by Mike Welsh
parent 55d16c200a
commit 8436be7d55
2 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ layout(set = 1, binding = 1) uniform Colors {
}; };
// Set 2: gradient // Set 2: gradient
layout(std430, set = 2, binding = 1) buffer Gradient { layout(std430, set = 2, binding = 1) readonly buffer Gradient {
vec4 u_colors[16]; vec4 u_colors[16];
float u_ratios[16]; float u_ratios[16];
int u_gradient_type; int u_gradient_type;