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