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

SPIRAL_OFFSET_0_

#

SPIRAL_OFFSET_1_

#

SPIRAL_OFFSET_2_

#

SPIRAL_OFFSET_3_

#

SPIRAL_OFFSET_4_

#

SPIRAL_OFFSET_5_

#

SPIRAL_OFFSET_6_

#

SPIRAL_OFFSET_7_

#

Functions

rand_u

#

rand_f

#

rand_vec2f

#

rand_range_u

#

coords_to_viewport_uv

#

returns the (0-1, 0-1) position within the given viewport for the current buffer coords . buffer coords can be obtained from @builtin(position).xy. the view uniform struct contains the current camera viewport in view.viewport. topleft = 0,0

fn coords_to_viewport_uv (
position: vec2<f32>,
viewport: vec4<f32>
) -> vec2<f32>

octahedral_encode

#

octahedral_decode

#

octahedral_decode_signed

#

interleaved_gradient_noise

#

hammersley_2d

#

sample_cosine_hemisphere

#

sample_uniform_hemisphere

#

uniform_hemisphere_inverse_pdf

#

sample_disk

#

sample_cube_dir

#

dir_to_cube_uv

#

porter_duff_over

#
Contents