12 lines
146 B
WebGPU Shading Language
12 lines
146 B
WebGPU Shading Language
|
var<workgroup> a : i32;
|
||
|
|
||
|
var<workgroup> b : vec4<f32>;
|
||
|
|
||
|
var<workgroup> c : mat2x2<f32>;
|
||
|
|
||
|
fn foo() {
|
||
|
a /= 2;
|
||
|
b *= mat4x4<f32>();
|
||
|
c *= 2.0;
|
||
|
}
|