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.

Constants

POS

#
const POS: AbstractFloat = array( vec2f(0, -1) * 0.5, vec2f(1, 1) * 0.5, vec2f(-1, 1) * 0.5, )

Functions

vertex

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

fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn fragment () ->
@location(0)
vec4f
Contents