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

WORLD_CACHE_CELL_LIFETIME

#
const WORLD_CACHE_CELL_LIFETIME: u32 = 10u

WORLD_CACHE_MAX_SEARCH_STEPS

#
const WORLD_CACHE_MAX_SEARCH_STEPS: u32 = 3u

WORLD_CACHE_EMPTY_CELL

#
const WORLD_CACHE_EMPTY_CELL: u32 = 0u

Functions

query_world_cache

#
fn query_world_cache (
world_position_in: vec3<f32>
, 
world_normal: vec3<f32>
, 
view_position: vec3<f32>
, 
ray_t: f32
, 
cell_lifetime: u32
, 
rng: ptr<function, u32>
) -> vec3<f32>

get_cell_size

#
fn get_cell_size (
world_position: vec3<f32>
, 
view_position: vec3<f32>
, 
ray_t: f32
, 
rng: ptr<function, u32>
) -> f32

quantize_position

#
fn quantize_position (
world_position: vec3<f32>
, 
quantization_factor: f32
) -> vec3<f32>

quantize_normal

#
fn quantize_normal (
world_normal: vec3<f32>
) -> vec3<f32>

compute_key

#
fn compute_key (
world_position: vec3<u32>
, 
world_normal: vec3<u32>
) -> u32

compute_checksum

#
fn compute_checksum (
world_position: vec3<u32>
, 
world_normal: vec3<u32>
) -> u32

pcg_hash

#
fn pcg_hash (
input: u32
) -> u32

iqint_hash

#
fn iqint_hash (
input: u32
) -> u32

wrap_key

#
fn wrap_key (
key: u32
) -> u32
Contents