Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 1 | #version 310 es |
| 2 | #extension GL_AMD_gpu_shader_half_float : require |
| 3 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 4 | layout(binding = 0, std430) buffer prevent_dce_block_ssbo { |
| 5 | float16_t inner; |
| 6 | } prevent_dce; |
| 7 | |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 8 | void asin_11dfda() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 9 | float16_t arg_0 = 0.479248046875hf; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 10 | float16_t res = asin(arg_0); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 11 | prevent_dce.inner = res; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | vec4 vertex_main() { |
| 15 | asin_11dfda(); |
| 16 | return vec4(0.0f); |
| 17 | } |
| 18 | |
| 19 | void main() { |
| 20 | gl_PointSize = 1.0; |
| 21 | vec4 inner_result = vertex_main(); |
| 22 | gl_Position = inner_result; |
| 23 | gl_Position.y = -(gl_Position.y); |
| 24 | gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w); |
| 25 | return; |
| 26 | } |
| 27 | #version 310 es |
| 28 | #extension GL_AMD_gpu_shader_half_float : require |
Ben Clayton | f1f56b2 | 2023-03-09 19:58:23 +0000 | [diff] [blame] | 29 | precision highp float; |
Stephen White | ca9f386 | 2024-02-07 18:08:23 +0000 | [diff] [blame] | 30 | precision highp int; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 31 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 32 | layout(binding = 0, std430) buffer prevent_dce_block_ssbo { |
| 33 | float16_t inner; |
| 34 | } prevent_dce; |
| 35 | |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 36 | void asin_11dfda() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 37 | float16_t arg_0 = 0.479248046875hf; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 38 | float16_t res = asin(arg_0); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 39 | prevent_dce.inner = res; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | void fragment_main() { |
| 43 | asin_11dfda(); |
| 44 | } |
| 45 | |
| 46 | void main() { |
| 47 | fragment_main(); |
| 48 | return; |
| 49 | } |
| 50 | #version 310 es |
| 51 | #extension GL_AMD_gpu_shader_half_float : require |
| 52 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 53 | layout(binding = 0, std430) buffer prevent_dce_block_ssbo { |
| 54 | float16_t inner; |
| 55 | } prevent_dce; |
| 56 | |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 57 | void asin_11dfda() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 58 | float16_t arg_0 = 0.479248046875hf; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 59 | float16_t res = asin(arg_0); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 60 | prevent_dce.inner = res; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | void compute_main() { |
| 64 | asin_11dfda(); |
| 65 | } |
| 66 | |
| 67 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| 68 | void main() { |
| 69 | compute_main(); |
| 70 | return; |
| 71 | } |