mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +00:00
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>
31 lines
544 B
HLSL
31 lines
544 B
HLSL
void countLeadingZeros_7c38a6() {
|
|
int3 res = (31).xxx;
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value : SV_Position;
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
countLeadingZeros_7c38a6();
|
|
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_7c38a6();
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main() {
|
|
countLeadingZeros_7c38a6();
|
|
return;
|
|
}
|