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:
François 2022-11-18 21:02:56 +00:00
parent 63c0cca0d7
commit 0a853f1ca6

View File

@ -21,4 +21,8 @@ struct Globals {
// Frame count since the start of the app.
// It wraps to zero when it reaches the maximum value of a u32.
frame_count: u32,
#ifdef SIXTEEN_BYTE_ALIGNMENT
// WebGL2 structs must be 16 byte aligned.
_wasm_padding: f32
#endif
}