blob: 3b3149acad3dc7de3740f1ef11427f8b3a8d8409 [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 f16vec4 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000012} v;
dan sinclair1e0c2012024-09-04 01:56:01 +000013f16vec4 ceil_4bca2a() {
14 f16vec4 res = f16vec4(2.0hf);
15 return res;
16}
17void main() {
James Price71c1d542024-10-10 23:01:19 +000018 v.inner = ceil_4bca2a();
dan sinclair1e0c2012024-09-04 01:56:01 +000019}
dan sinclair196326c2024-12-06 12:40:09 +000020//
21// compute_main
22//
dan sinclair1e0c2012024-09-04 01:56:01 +000023#version 310 es
24#extension GL_AMD_gpu_shader_half_float: require
dan sinclair1e0c2012024-09-04 01:56:01 +000025
dan sinclairf15c1c32024-09-05 21:41:20 +000026layout(binding = 0, std430)
James Price71c1d542024-10-10 23:01:19 +000027buffer prevent_dce_block_1_ssbo {
28 f16vec4 inner;
dan sinclairf15c1c32024-09-05 21:41:20 +000029} v;
dan sinclair1e0c2012024-09-04 01:56:01 +000030f16vec4 ceil_4bca2a() {
31 f16vec4 res = f16vec4(2.0hf);
32 return res;
33}
dan sinclair1e0c2012024-09-04 01:56:01 +000034layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
35void main() {
James Price71c1d542024-10-10 23:01:19 +000036 v.inner = ceil_4bca2a();
dan sinclair1e0c2012024-09-04 01:56:01 +000037}
dan sinclair196326c2024-12-06 12:40:09 +000038//
39// vertex_main
40//
dan sinclair1e0c2012024-09-04 01:56:01 +000041#version 310 es
42#extension GL_AMD_gpu_shader_half_float: require
dan sinclair1e0c2012024-09-04 01:56:01 +000043
dan sinclaira561b982024-09-05 21:56:28 +000044
dan sinclair1e0c2012024-09-04 01:56:01 +000045struct VertexOutput {
46 vec4 pos;
47 f16vec4 prevent_dce;
48};
49
dan sinclairf15c1c32024-09-05 21:41:20 +000050layout(location = 0) flat out f16vec4 vertex_main_loc0_Output;
dan sinclair1e0c2012024-09-04 01:56:01 +000051f16vec4 ceil_4bca2a() {
52 f16vec4 res = f16vec4(2.0hf);
53 return res;
54}
dan sinclairf15c1c32024-09-05 21:41:20 +000055VertexOutput vertex_main_inner() {
dan sinclair1e0c2012024-09-04 01:56:01 +000056 VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec4(0.0hf));
57 tint_symbol.pos = vec4(0.0f);
58 tint_symbol.prevent_dce = ceil_4bca2a();
59 return tint_symbol;
60}
dan sinclairf15c1c32024-09-05 21:41:20 +000061void main() {
62 VertexOutput v = vertex_main_inner();
63 gl_Position = v.pos;
James Price25379d32024-11-28 21:23:47 +000064 gl_Position.y = -(gl_Position.y);
65 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
dan sinclairf15c1c32024-09-05 21:41:20 +000066 vertex_main_loc0_Output = v.prevent_dce;
67 gl_PointSize = 1.0f;
68}