20 lines
323 B
WebGPU Shading Language
20 lines
323 B
WebGPU Shading Language
fn isNan_4d280d() {
|
|
var res : vec4<bool> = isNan(vec4<f32>());
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
isNan_4d280d();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
isNan_4d280d();
|
|
}
|
|
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn compute_main() {
|
|
isNan_4d280d();
|
|
}
|