File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/webgpu/api/operation/adapter Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ async function testAdapter(adapter: GPUAdapter | null) {
34
34
assert ( device !== null , 'Failed to get device.' ) ;
35
35
36
36
const kOffset = 1230000 ;
37
- const pipeline = await device . createComputePipeline ( {
37
+ const pipeline = device . createComputePipeline ( {
38
+ layout : 'auto' ,
38
39
compute : {
39
40
module : device . createShaderModule ( {
40
41
code : `
41
- struct Buffer { data: array<u32>; };
42
+ struct Buffer { data: array<u32>, };
42
43
43
44
@group(0) @binding(0) var<storage, read_write> buffer: Buffer;
44
- @stage( compute) @workgroup_size(1u) fn main(
45
+ @compute @workgroup_size(1u) fn main(
45
46
@builtin(global_invocation_id) id: vec3<u32>) {
46
47
buffer.data[id.x] = id.x + ${ kOffset } u;
47
48
}
You can’t perform that action at this time.
0 commit comments