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.

Structures

VertexOutput

#
struct VertexOutput {
@builtin(position)
position: vec4<f32> ,
@if(MESHLET_VISIBILITY_BUFFER_RASTER_PASS_OUTPUT)
@location(0)
@interpolate(flat)
packed_ids: u32 ,
}

Functions

vertex

#
@vertex
Processes each 3D point in a model before it's drawn
fn vertex (
@builtin(instance_index)
instance_index: u32
, 
@builtin(vertex_index)
vertex_index: u32
) -> VertexOutput

fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn fragment (
vertex_output: VertexOutput
)

dummy_vertex

#
fn dummy_vertex () -> VertexOutput

divide

#

Naga doesn’t allow divide by zero literals, but this lets us work around it

fn divide (
a: f32
, 
b: f32
) -> f32
Contents