Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

forward_io.wgsl

Import path

Structures

Vertex

#
struct Vertex {
@builtin(instance_index)
instance_index: u32 ,
@location(0)
position: vec3<f32> , 🟢 VERTEX_POSITIONS
@location(1)
normal: vec3<f32> , 🟢 VERTEX_NORMALS
@location(2)
uv: vec2<f32> , 🟢 VERTEX_UVS_A
@location(3)
uv_b: vec2<f32> , 🟢 VERTEX_UVS_B
@location(4)
tangent: vec4<f32> , 🟢 VERTEX_TANGENTS
@location(5)
color: vec4<f32> , 🟢 VERTEX_COLORS
@location(6)
joint_indices: vec4<u32> , 🟢 SKINNED
@location(7)
joint_weights: vec4<f32> , 🟢 SKINNED
@builtin(vertex_index)
index: u32 , 🟢 MORPH_TARGETS
}

VertexOutput

#
struct VertexOutput {
@builtin(position)
position: vec4<f32> , 🟢 VERTEX_POSITIONS
@location(0)
world_position: vec4<f32> ,
@location(1)
world_normal: vec3<f32> ,
@location(2)
uv: vec2<f32> , 🟢 VERTEX_UVS_A
@location(3)
uv_b: vec2<f32> , 🟢 VERTEX_UVS_B
@location(4)
world_tangent: vec4<f32> , 🟢 VERTEX_TANGENTS
@location(5)
color: vec4<f32> , 🟢 VERTEX_COLORS
@location(6)
@interpolate(flat)
instance_index: u32 ,
@location(7)
@interpolate(flat)
visibility_range_dither: i32 , 🟢 VISIBILITY_RANGE_DITHER
}

FragmentOutput

#
struct FragmentOutput {
@location(0)
color: vec4<f32> , 🟢 VERTEX_COLORS
}