Files
SPIRV-Interpreter/sandbox/shader.nzsl
Kbz-8 e09a41754f
All checks were successful
Build / build (push) Successful in 1m6s
Test / build (push) Successful in 4m55s
fixing descriptor sets population
2026-02-26 01:03:52 +01:00

26 lines
345 B
Plaintext

[nzsl_version("1.1")]
module;
struct Input
{
[builtin(global_invocation_indices)] indices: vec3[u32]
}
[layout(std430)]
struct SSBO
{
data: dyn_array[i32]
}
external
{
[set(0), binding(0)] ssbo: storage[SSBO],
}
[entry(compute)]
[workgroup(16, 1, 1)]
fn main(input: Input)
{
ssbo.data[input.indices.x] = i32(input.indices.x);
}