mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
11 lines
171 B
WebGPU Shading Language
11 lines
171 B
WebGPU Shading Language
// Global variable & constant declarations
|
|
|
|
let Foo: bool = true;
|
|
|
|
var<workgroup> wg : array<f32, 10u>;
|
|
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
wg[3] = 1.0;
|
|
}
|