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_vertex_output
3struct VertexOutput {
4 // this is `clip position` when the struct is used as a vertex stage output
5 // and `frag coord` when used as a fragment stage input
6 @builtin(position) position: vec4<f32>,
7 @location(0) world_position: vec4<f32>,
8 @location(1) world_normal: vec3<f32>,
9 @location(2) uv: vec2<f32>,
10 #ifdef VERTEX_TANGENTS
11 @location(3) world_tangent: vec4<f32>,
12 #endif
13 #ifdef VERTEX_COLORS
14 @location(4) color: vec4<f32>,
15 #endif
Contents