Natalie Chouinard | 6ee6330 | 2024-06-25 20:45:30 +0000 | [diff] [blame] | 1 | RWByteAddressBuffer prevent_dce : register(u0); |
| 2 | |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 3 | float4 min_c76fa6() { |
dan sinclair | acce83d | 2022-11-15 18:39:38 +0000 | [diff] [blame] | 4 | float4 res = (1.0f).xxxx; |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 5 | return res; |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 6 | } |
| 7 | |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 8 | void fragment_main() { |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 9 | prevent_dce.Store4(0u, asuint(min_c76fa6())); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 10 | return; |
| 11 | } |
| 12 | |
| 13 | [numthreads(1, 1, 1)] |
| 14 | void compute_main() { |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 15 | prevent_dce.Store4(0u, asuint(min_c76fa6())); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 16 | return; |
| 17 | } |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 18 | |
| 19 | struct VertexOutput { |
| 20 | float4 pos; |
| 21 | float4 prevent_dce; |
| 22 | }; |
| 23 | struct tint_symbol_1 { |
| 24 | nointerpolation float4 prevent_dce : TEXCOORD0; |
| 25 | float4 pos : SV_Position; |
| 26 | }; |
| 27 | |
| 28 | VertexOutput vertex_main_inner() { |
| 29 | VertexOutput tint_symbol = (VertexOutput)0; |
| 30 | tint_symbol.pos = (0.0f).xxxx; |
| 31 | tint_symbol.prevent_dce = min_c76fa6(); |
| 32 | return tint_symbol; |
| 33 | } |
| 34 | |
| 35 | tint_symbol_1 vertex_main() { |
| 36 | VertexOutput inner_result = vertex_main_inner(); |
| 37 | tint_symbol_1 wrapper_result = (tint_symbol_1)0; |
| 38 | wrapper_result.pos = inner_result.pos; |
| 39 | wrapper_result.prevent_dce = inner_result.prevent_dce; |
| 40 | return wrapper_result; |
| 41 | } |