fft_surface.wgsl
Constants
FFT_RESOLUTION
#LOD_COUNT
#Bindings
displacement
#@group(0)
@binding(0)
var
displacement:
texture_2d_array<f32>
surface_derivatives
#@group(0)
@binding(1)
var
surface_derivatives:
texture_storage_2d_array<rgba16float, write>
fft
#Structures
CascadeParams
#CascadeLayout
#
struct
CascadeLayout
{
}
FftUniform
#Functions
resolve_surface
#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(8, 8, 1)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1