mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
17 lines
256 B
WebGPU Shading Language
17 lines
256 B
WebGPU Shading Language
{{header}}
|
|
|
|
struct CustomStruct {
|
|
{{input_members}}
|
|
}
|
|
|
|
{{input_bindings}}
|
|
var<{{storage_type}}> input: {{input_type}};
|
|
|
|
@group(0) @binding(1)
|
|
var<storage, read_write> output: {{output_type}};
|
|
|
|
@compute @workgroup_size(1)
|
|
fn cs_main() {
|
|
{{body}}
|
|
}
|