blob: 6be4407bb40aec52b0a3f3b2ae3041fc7da4f979 [file] [log] [blame]
Ben Clayton77a90cb2023-03-06 18:25:08 +00001RWByteAddressBuffer prevent_dce : register(u0, space2);
2
Ben Clayton751e6682022-09-13 22:57:52 +00003void saturate_a5b571() {
dan sinclair91ed6f72022-10-27 16:41:44 +00004 float4 arg_0 = (2.0f).xxxx;
Ben Clayton751e6682022-09-13 22:57:52 +00005 float4 res = saturate(arg_0);
Ben Clayton77a90cb2023-03-06 18:25:08 +00006 prevent_dce.Store4(0u, asuint(res));
Ben Clayton751e6682022-09-13 22:57:52 +00007}
8
9struct tint_symbol {
10 float4 value : SV_Position;
11};
12
13float4 vertex_main_inner() {
14 saturate_a5b571();
15 return (0.0f).xxxx;
16}
17
18tint_symbol vertex_main() {
19 const float4 inner_result = vertex_main_inner();
20 tint_symbol wrapper_result = (tint_symbol)0;
21 wrapper_result.value = inner_result;
22 return wrapper_result;
23}
24
25void fragment_main() {
26 saturate_a5b571();
27 return;
28}
29
30[numthreads(1, 1, 1)]
31void compute_main() {
32 saturate_a5b571();
33 return;
34}