mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
17 lines
316 B
WebGPU Shading Language
17 lines
316 B
WebGPU Shading Language
@group(0) @binding(0)
|
|
var<uniform> binding: f32;
|
|
|
|
fn five() -> i32 {
|
|
return 5i;
|
|
}
|
|
|
|
@compute @workgroup_size(1, 1, 1)
|
|
fn main(@builtin(global_invocation_id) id: vec3<u32>) {
|
|
let phony = binding;
|
|
let phony_1 = binding;
|
|
let _e6 = five();
|
|
let _e7 = five();
|
|
let phony_2 = binding;
|
|
return;
|
|
}
|