dawn-cmake/test/intrinsics/gen/select/a2860e.wgsl.expected.hlsl
Ben Clayton d7255e37f6 writer/hlsl: Emit vector-of-bool as boolN
Much like uintN, intN, floatN - boolN is far more common, and easier to read than vector<bool, N>

Change-Id: I51f9edc003c590266316d3eba286ca2f6882da10
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53390
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-06-07 20:01:54 +00:00

26 lines
444 B
HLSL

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