dawn-cmake/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.dxc.hlsl
Antonio Maiorano 2be5167e3e tint: const eval of countLeadingZeros
Bug: tint:1581
Change-Id: Ib7ae9f36dad64c1eed3ce223af47e92aa0a663f1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107661
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-10-29 14:02:38 +00:00

31 lines
539 B
HLSL

void countLeadingZeros_208d46() {
uint res = 31u;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
countLeadingZeros_208d46();
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() {
countLeadingZeros_208d46();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
countLeadingZeros_208d46();
return;
}