mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
[glsl-in] Align child structs
This commit is contained in:
1 parent
0b0d2ab0f3
commit
846ea0ec09
1 file changed
+2
@@ -142,6 +142,8 @@ pub fn calculate_offset(
|
||||
span += info.span;
|
||||
}
|
||||
|
||||
span = align_up(span, align);
|
||||
|
||||
let ty_span = types.get_span(ty).clone();
|
||||
ty = types.fetch_or_append(
|
||||
Type {
|
||||
|
||||
Reference in new issue
Block a user