blob: 640e5a57efae9c46764308e3e6e7c435e8296b53 [file] [log] [blame]
dan sinclair196326c2024-12-06 12:40:09 +00001//
2// fragment_main
3//
dan sinclair1e0c2012024-09-04 01:56:01 +00004#version 310 es
5#extension GL_AMD_gpu_shader_half_float: require
6precision highp float;
7precision highp int;
dan sinclair6e93ca52024-08-28 23:58:04 +00008
dan sinclairf15c1c32024-09-05 21:41:20 +00009layout(binding = 0, std430)
James Price2312bfa2024-12-13 09:53:34 -080010buffer f_prevent_dce_block_ssbo {
James Price71c1d542024-10-10 23:01:19 +000011 f16vec3 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000012} v;
dan sinclair1e0c2012024-09-04 01:56:01 +000013f16vec3 acos_f47057() {
14 f16vec3 arg_0 = f16vec3(0.96875hf);
15 f16vec3 res = acos(arg_0);
16 return res;
17}
18void main() {
James Price71c1d542024-10-10 23:01:19 +000019 v.inner = acos_f47057();
dan sinclair1e0c2012024-09-04 01:56:01 +000020}
dan sinclair196326c2024-12-06 12:40:09 +000021//
22// compute_main
23//
dan sinclair1e0c2012024-09-04 01:56:01 +000024#version 310 es
25#extension GL_AMD_gpu_shader_half_float: require
dan sinclair1e0c2012024-09-04 01:56:01 +000026
dan sinclairf15c1c32024-09-05 21:41:20 +000027layout(binding = 0, std430)
James Price71c1d542024-10-10 23:01:19 +000028buffer prevent_dce_block_1_ssbo {
29 f16vec3 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000030} v;
dan sinclair1e0c2012024-09-04 01:56:01 +000031f16vec3 acos_f47057() {
32 f16vec3 arg_0 = f16vec3(0.96875hf);
33 f16vec3 res = acos(arg_0);
34 return res;
35}
dan sinclair1e0c2012024-09-04 01:56:01 +000036layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
37void main() {
James Price71c1d542024-10-10 23:01:19 +000038 v.inner = acos_f47057();
dan sinclair1e0c2012024-09-04 01:56:01 +000039}
dan sinclair196326c2024-12-06 12:40:09 +000040//
41// vertex_main
42//
dan sinclair1e0c2012024-09-04 01:56:01 +000043#version 310 es
44#extension GL_AMD_gpu_shader_half_float: require
dan sinclair1e0c2012024-09-04 01:56:01 +000045
dan sinclaira561b982024-09-05 21:56:28 +000046
dan sinclair1e0c2012024-09-04 01:56:01 +000047struct VertexOutput {
48 vec4 pos;
49 f16vec3 prevent_dce;
50};
51
James Priceced63662024-12-13 10:48:26 -080052layout(location = 0) flat out f16vec3 tint_interstage_location0;
dan sinclair1e0c2012024-09-04 01:56:01 +000053f16vec3 acos_f47057() {
54 f16vec3 arg_0 = f16vec3(0.96875hf);
55 f16vec3 res = acos(arg_0);
56 return res;
57}
dan sinclairf15c1c32024-09-05 21:41:20 +000058VertexOutput vertex_main_inner() {
James Price49631b52024-12-13 13:34:39 -080059 VertexOutput v = VertexOutput(vec4(0.0f), f16vec3(0.0hf));
60 v.pos = vec4(0.0f);
61 v.prevent_dce = acos_f47057();
62 return v;
dan sinclair1e0c2012024-09-04 01:56:01 +000063}
dan sinclairf15c1c32024-09-05 21:41:20 +000064void main() {
James Price49631b52024-12-13 13:34:39 -080065 VertexOutput v_1 = vertex_main_inner();
66 gl_Position = v_1.pos;
James Price25379d32024-11-28 21:23:47 +000067 gl_Position.y = -(gl_Position.y);
68 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
James Price49631b52024-12-13 13:34:39 -080069 tint_interstage_location0 = v_1.prevent_dce;
dan sinclairf15c1c32024-09-05 21:41:20 +000070 gl_PointSize = 1.0f;
71}