dawn-cmake/test/intrinsics/gen/select/ed8a15.wgsl.expected.hlsl
Ben Clayton 2d9ba5d8ad writer/hlsl: Implement select()
Fixed: tint:304
Change-Id: I8821bc6e4bfa0487161b8d915a6a107afd474105
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53389
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-06-07 19:17:34 +00:00

26 lines
385 B
HLSL

struct tint_symbol {
float4 value : SV_Position;
};
void select_ed8a15() {
int res = (false ? 1 : 1);
}
tint_symbol vertex_main() {
select_ed8a15();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
select_ed8a15();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
select_ed8a15();
return;
}