Replies: 1 comment
-
Well, I "solved" the issue. Apparently this binding is now considered to have size 16: layout(set = 0, binding = 1) uniform FragCommon {
vec3 lightNorm;
}; Padding the input buffer to 16 bytes fixes my build, but I wonder if this is a bug in shader translation. That said, the naga translates the GLSL to this WGSL, which is still 12 bytes: struct FragCommon {
lightNorm: vec3<f32>,
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could I ask for a little help please? I'm attempting to update wgpu (from 0.11, currently to 0.12):
The pipeline in question:
The first binding in
bg_common
istype Scale = [f32; 4];
. The second, the one causing the error, is a[f32; 3]
. Usage in shader:Filling in the
min_binding_size
(to 16 and 12 respectively) results in a different error:Full code: use https://github.com/kas-gui/kas/tree/work (kas-gui/kas@6a484d6 and parent commit). Try running e.g.
cargo run --example gallery
.Beta Was this translation helpful? Give feedback.
All reactions