23 lines
417 B
WebGPU Shading Language
23 lines
417 B
WebGPU Shading Language
fn firstTrailingBit_3a2acc() {
|
|
var res : i32 = firstTrailingBit(1i);
|
|
prevent_dce = res;
|
|
}
|
|
|
|
@group(2) @binding(0) var<storage, read_write> prevent_dce : i32;
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
firstTrailingBit_3a2acc();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
firstTrailingBit_3a2acc();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
firstTrailingBit_3a2acc();
|
|
}
|