adding bindsgroup reflection to WebGPU backend

This commit is contained in:
2025-04-09 12:03:13 +02:00
parent 5470779d4c
commit 63b336783b
9 changed files with 301 additions and 97 deletions

View File

@@ -1,4 +1,4 @@
@group(0) @binding(0) var<storage, read_only> read_ssbo: array<u32>;
@group(0) @binding(0) var<storage, read> read_ssbo: array<u32>;
@group(1) @binding(0) var<storage, read_write> write_ssbo: array<u32>;
@compute @workgroup_size(16, 16, 1)

View File

@@ -1,7 +1,7 @@
@group(0) @binding(0) var<storage, read> read_ssbo: array<u32>;
@group(0) @binding(1) var read_texture: texture_storage_2d<rgba8unorm, read>;
@group(1) @binding(0) var<storage, read_write> write_ssbo: array<u32>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, read_write>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, write>;
@compute @workgroup_size(16, 16, 1)
fn main(@builtin(global_invocation_id) grid: vec3<u32>)

View File

@@ -1,5 +1,5 @@
@group(1) @binding(0) var<storage, read_write> write_ssbo: array<u32>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, read_write>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, write>;
@compute @workgroup_size(16, 16, 1)
fn main(@builtin(global_invocation_id) grid: vec3<u32>)