fixing descriptor sets, adding buffer compute write test

This commit is contained in:
2025-02-21 20:24:00 +01:00
parent c8f6245c2c
commit 2de2e1f381
24 changed files with 510 additions and 105 deletions

View File

@@ -14,12 +14,12 @@ struct SSBO
external
{
[set(0), binding(0)] ssbo: storage[SSBO],
[set(1), binding(0)] ssbo: storage[SSBO],
}
[entry(compute)]
[workgroup(32, 32, 1)]
fn main(input: Input)
{
ssbo.data[input.indices.x * input.indices.y] = 1;
ssbo.data[input.indices.x * input.indices.y] = i32(input.indices.x * input.indices.y);
}