mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 03:35:56 +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>
31 lines
546 B
HLSL
31 lines
546 B
HLSL
void saturate_cd2028() {
|
|
vector<float16_t, 2> res = saturate((float16_t(0.0h)).xx);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value : SV_Position;
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
saturate_cd2028();
|
|
return (0.0f).xxxx;
|
|
}
|
|
|
|
tint_symbol vertex_main() {
|
|
const float4 inner_result = vertex_main_inner();
|
|
tint_symbol wrapper_result = (tint_symbol)0;
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
void fragment_main() {
|
|
saturate_cd2028();
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main() {
|
|
saturate_cd2028();
|
|
return;
|
|
}
|