stockham.wgsl
Constants
FFT_RESOLUTION
#FFT_STAGES
#Bindings
source_field
#@group(0)
@binding(0)
var
source_field:
texture_2d_array<f32>
target_field
#@group(0)
@binding(1)
var
target_field:
texture_storage_2d_array<rgba32float, write>
Functions
multiply_pair
#butterfly
#transform
#main
#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(FFT_RESOLUTION, 1, 1)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
Shader defs requirments:
š¢ FFT_VERTICAL
main
#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(FFT_RESOLUTION, 1, 1)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1