Blacksite/third_party/bevy_render/src/globals.wgsl
Rbanh 3e053a81ab
Some checks are pending
CI / Format, lint, test, build (push) Waiting to run
Expand asset browser subasset workflow
2026-06-06 01:38:27 -04:00

17 lines
475 B
WebGPU Shading Language

#define_import_path bevy_render::globals
struct Globals {
// The time since startup in seconds
// Wraps to 0 after 1 hour.
time: f32,
// The delta time since the previous frame in seconds
delta_time: f32,
// 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.
_webgl2_padding: f32
#endif
};