mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 10:45:36 +00:00
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>
26 lines
444 B
HLSL
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;
|
|
}
|
|
|