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_sprite::mesh2d_types
3struct Mesh2d {
4 // Affine 4x3 matrix transposed to 3x4
5 // Use bevy_render::maths::affine3_to_square to unpack
6 world_from_local: mat3x4<f32>,
7 // 3x3 matrix packed in mat2x4 and f32 as:
8 // [0].xyz, [1].x,
9 // [1].yz, [2].xy
10 // [2].z
11 // Use bevy_render::maths::mat2x4_f32_to_mat3x3_unpack to unpack
12 local_from_world_transpose_a: mat2x4<f32>,
13 local_from_world_transpose_b: f32,
14 // 'flags' is a bit field indicating various options. u32 is 32 bits so we have up to 32 options.
15 flags: u32,
16 tag: u32,
17};
Contents