blob: 8cdcf0ea721928f968160b94e84b986f117970fd [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001enable f16;
2
3fn select_10e73b() {
dan sinclaird9b68eb2022-11-10 00:32:12 +00004 var arg_0 = 1.0h;
5 var arg_1 = 1.0h;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00006 var arg_2 = true;
7 var res : f16 = select(arg_0, arg_1, arg_2);
Ben Clayton77a90cb2023-03-06 18:25:08 +00008 prevent_dce = res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00009}
10
Ben Clayton77a90cb2023-03-06 18:25:08 +000011@group(2) @binding(0) var<storage, read_write> prevent_dce : f16;
12
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000013@vertex
14fn vertex_main() -> @builtin(position) vec4<f32> {
15 select_10e73b();
16 return vec4<f32>();
17}
18
19@fragment
20fn fragment_main() {
21 select_10e73b();
22}
23
24@compute @workgroup_size(1)
25fn compute_main() {
26 select_10e73b();
27}