25 lines
406 B
WebGPU Shading Language
25 lines
406 B
WebGPU Shading Language
enable f16;
|
|
|
|
fn asin_2d8e29() {
|
|
var res : vec3<f16> = asin(vec3<f16>(0.479248046875h));
|
|
prevent_dce = res;
|
|
}
|
|
|
|
@group(2) @binding(0) var<storage, read_write> prevent_dce : vec3<f16>;
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
asin_2d8e29();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
asin_2d8e29();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
asin_2d8e29();
|
|
}
|