mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-in] Align child structs
This commit is contained in:
committed by
Dzmitry Malyshau
parent
0b0d2ab0f3
commit
846ea0ec09
@@ -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