wave_query.wgsl
Constants
LOD_COUNT
#CASCADE_COUNT
#WAVE_COUNT
#MAX_QUERIES
#LOD_TRANSITION_START
#MORPH_BLACK_POINT
#MORPH_FADE_SIDES
#UV_CENTER
#MIN_SAMPLE_WEIGHT
#MIN_NORMAL_Y
#Bindings
lod_data
#@group(0)
@binding(0)
var
lod_data:
texture_2d_array<f32>
lod_sampler
#params
#requests
#results
#Structures
CascadeParams
#CascadeLayout
#
struct
CascadeLayout
{
}
GerstnerWave
#AnimWavesUniform
#
struct
AnimWavesUniform
{
}
QueryRequest
#QueryResult
#Functions
lod_count
#
fn
lod_count
()
lod_alpha
#world_to_uv
#sample_displacement
#select_lod
#river_surface
#sample
#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(64u)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
flow: xy current (m/s), z signed bank margin (m), w channel half-width (m). Zero current selects cascade sampling.