mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
28 lines
517 B
Plaintext
28 lines
517 B
Plaintext
[nzsl_version("1.0")]
|
|
module;
|
|
|
|
struct Input
|
|
{
|
|
[builtin(global_invocation_indices)] indices: vec3[u32]
|
|
}
|
|
|
|
[layout(std430)]
|
|
struct SSBO
|
|
{
|
|
data: dyn_array[u32]
|
|
}
|
|
|
|
external
|
|
{
|
|
[set(0), binding(0)] read_texture: texture2D[f32, readonly, rgba8],
|
|
[set(0), binding(1)] read_ssbo: storage[SSBO, readonly],
|
|
[set(1), binding(0)] write_texture: texture2D[f32, readonly, rgba8],
|
|
[set(1), binding(1)] write_ssbo: storage[SSBO, writeonly],
|
|
}
|
|
|
|
[entry(compute)]
|
|
[workgroup(16, 16, 1)]
|
|
fn main(input: Input)
|
|
{
|
|
}
|