fft_evolve.wgsl
Constants
FFT_RESOLUTION
#LOD_COUNT
#ATTENUATION_BINS
#FIELD_LAYERS
#GRAVITY
#CHOP
#Bindings
initial_spectrum
#@group(0)
@binding(0)
var
initial_spectrum:
texture_2d_array<f32>
height_x
#@group(0)
@binding(1)
var
height_x:
texture_storage_2d_array<rgba32float, write>
z_field
#@group(0)
@binding(2)
var
z_field:
texture_storage_2d_array<rgba32float, write>
fft
#Structures
CascadeParams
#CascadeLayout
#
struct
CascadeLayout
{
}
FftUniform
#Functions
complex_multiply
#conjugate
#signed_frequency
#evolve
#
@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