Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1#define_import_path bevy_render::globals
3struct Globals {
4 // The time since startup in seconds
5 // Wraps to 0 after 1 hour.
6 time: f32,
7 // The delta time since the previous frame in seconds
8 delta_time: f32,
9 // Frame count since the start of the app.
10 // It wraps to zero when it reaches the maximum value of a u32.
11 frame_count: u32,
12#ifdef SIXTEEN_BYTE_ALIGNMENT
13 // WebGL2 structs must be 16 byte aligned.
14 _webgl2_padding: f32
15#endif
16};
Contents