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