blob: 65cdb2a8937c3a17f0a6baa0219f757b78d29e37 [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001#version 310 es
2#extension GL_AMD_gpu_shader_half_float : require
3
Ben Clayton77a90cb2023-03-06 18:25:08 +00004layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
5 float16_t inner;
6} prevent_dce;
7
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00008void asin_11dfda() {
dan sinclair6cc183c2023-03-02 21:28:45 +00009 float16_t arg_0 = 0.479248046875hf;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000010 float16_t res = asin(arg_0);
Ben Clayton77a90cb2023-03-06 18:25:08 +000011 prevent_dce.inner = res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000012}
13
14vec4 vertex_main() {
15 asin_11dfda();
16 return vec4(0.0f);
17}
18
19void 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 Claytonf1f56b22023-03-09 19:58:23 +000029precision highp float;
Stephen Whiteca9f3862024-02-07 18:08:23 +000030precision highp int;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000031
Ben Clayton77a90cb2023-03-06 18:25:08 +000032layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
33 float16_t inner;
34} prevent_dce;
35
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000036void asin_11dfda() {
dan sinclair6cc183c2023-03-02 21:28:45 +000037 float16_t arg_0 = 0.479248046875hf;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000038 float16_t res = asin(arg_0);
Ben Clayton77a90cb2023-03-06 18:25:08 +000039 prevent_dce.inner = res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000040}
41
42void fragment_main() {
43 asin_11dfda();
44}
45
46void main() {
47 fragment_main();
48 return;
49}
50#version 310 es
51#extension GL_AMD_gpu_shader_half_float : require
52
Ben Clayton77a90cb2023-03-06 18:25:08 +000053layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
54 float16_t inner;
55} prevent_dce;
56
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000057void asin_11dfda() {
dan sinclair6cc183c2023-03-02 21:28:45 +000058 float16_t arg_0 = 0.479248046875hf;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000059 float16_t res = asin(arg_0);
Ben Clayton77a90cb2023-03-06 18:25:08 +000060 prevent_dce.inner = res;
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000061}
62
63void compute_main() {
64 asin_11dfda();
65}
66
67layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
68void main() {
69 compute_main();
70 return;
71}