11 lines
172 B
WebGPU Shading Language
11 lines
172 B
WebGPU Shading Language
|
[[group(0), binding(1)]] var<storage, read> data : array<i32>;
|
||
|
|
||
|
fn foo() -> i32 {
|
||
|
return data[0];
|
||
|
}
|
||
|
|
||
|
[[stage(compute), workgroup_size(16, 16, 1)]]
|
||
|
fn main() {
|
||
|
foo();
|
||
|
}
|