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.

Bindings

alpha_mask_texture

#
Active when
ALPHA_MASK_TEXTURE
@group(3)
@binding(0)
var alpha_mask_texture: texture_2d<f32>

alpha_mask_sampler

#
Active when
ALPHA_MASK_TEXTURE
@group(3)
@binding(1)
var alpha_mask_sampler: sampler

Structures

FragmentOutput

#
struct FragmentOutput {
@location(0)
colour: vec4<f32>,
@builtin(frag_depth)
frag_depth: f32, FLAT_DEPTH AND !FLOOD_INIT
}

Functions

fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn fragment (
vertex: VertexOutput
) -> FragmentOutput
Contents