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.
1struct Globals {
2 /// The time since startup in seconds
3 /// Wraps to 0 after 1 hour.
4 time: f32,
5 /// The delta time since the previous frame in seconds
6 delta_time: f32,
7 /// Frame count since the start of the app.
8 /// It wraps to zero when it reaches the maximum value of a u32.
9 frame_count: u32,
10 @if(SIXTEEN_BYTE_ALIGNMENT)
11 // WebGL2 structs must be 16 byte aligned.
12 _webgl2_padding: f32
13};
Contents