mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 01:26:06 +00:00
Fixed: tint:1591 Change-Id: I0b1397d74abd49cd44caf326a2063e50c5cf07de Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101480 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
22 lines
322 B
WebGPU Shading Language
22 lines
322 B
WebGPU Shading Language
enable f16;
|
|
|
|
fn saturate_cd2028() {
|
|
var res : vec2<f16> = saturate(vec2<f16>(f16()));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
saturate_cd2028();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
saturate_cd2028();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
saturate_cd2028();
|
|
}
|