wasm: pad globals uniform also in 2d (#6643)
# Objective - Fix a panic in wasm when using globals in a shader ## Solution - Similar to #6460
This commit is contained in:
parent
63c0cca0d7
commit
0a853f1ca6
@ -21,4 +21,8 @@ struct Globals {
|
|||||||
// Frame count since the start of the app.
|
// Frame count since the start of the app.
|
||||||
// It wraps to zero when it reaches the maximum value of a u32.
|
// It wraps to zero when it reaches the maximum value of a u32.
|
||||||
frame_count: u32,
|
frame_count: u32,
|
||||||
|
#ifdef SIXTEEN_BYTE_ALIGNMENT
|
||||||
|
// WebGL2 structs must be 16 byte aligned.
|
||||||
|
_wasm_padding: f32
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user