This commit is contained in:
2025-04-05 21:52:53 +02:00
parent 82619762fe
commit ae758c34cd
12 changed files with 205 additions and 31 deletions

View File

@@ -3,23 +3,23 @@ module;
struct Input
{
[builtin(global_invocation_indices)] indices: vec3[u32]
[builtin(global_invocation_indices)] indices: vec3[u32]
}
[layout(std430)]
struct SSBO
{
data: dyn_array[i32]
data: dyn_array[i32]
}
external
{
//[set(1), binding(0)] ssbo: storage[SSBO],
[set(1), binding(0)] ssbo: storage[SSBO],
}
[entry(compute)]
[workgroup(16, 16, 1)]
fn main(input: Input)
{
//ssbo.data[input.indices.x * input.indices.y] = i32(input.indices.x * input.indices.y);
ssbo.data[input.indices.x * input.indices.y] = i32(input.indices.x * input.indices.y);
}