13 lines
162 B
WebGPU Shading Language
13 lines
162 B
WebGPU Shading Language
|
[[block]]
|
||
|
struct S {
|
||
|
i : i32;
|
||
|
};
|
||
|
|
||
|
[[binding(0), group(0)]] var<uniform> u : S;
|
||
|
|
||
|
[[stage(compute), workgroup_size(1)]]
|
||
|
fn main() {
|
||
|
ignore(u);
|
||
|
ignore(u.i);
|
||
|
}
|