mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
adding bindsgroup reflection to WebGPU backend
This commit is contained in:
@@ -239,11 +239,11 @@ void TestBufferCopyImage()
|
||||
PulseImageRegion dst_region = { 0 };
|
||||
dst_region.image = image;
|
||||
dst_region.width = 8;
|
||||
dst_region.height = 1;
|
||||
dst_region.depth = 1;
|
||||
dst_region.x = 1;
|
||||
dst_region.height = 0;
|
||||
dst_region.depth = 0;
|
||||
dst_region.x = 0;
|
||||
dst_region.y = 1;
|
||||
dst_region.z = 1;
|
||||
dst_region.z = 0;
|
||||
dst_region.layer = 1;
|
||||
|
||||
TEST_ASSERT_TRUE_MESSAGE(PulseCopyBufferToImage(cmd, &src_region, &dst_region), PulseVerbaliseErrorType(PulseGetLastErrorType()));
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>)
|
||||
|
||||
@@ -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>)
|
||||
|
||||
Reference in New Issue
Block a user