blob: 608f7c8e8646a21dd3a747a0bc8992a8a6da9d29 [file] [log] [blame]
James Priced90c72b2023-08-11 00:45:54 +00001SKIP: FAILED
2
3#version 310 es
4
5layout(rgba8) uniform highp writeonly image3D arg_0;
6layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
7 vec4 inner;
8} prevent_dce;
9
10void textureLoad_012e11() {
Stephen White243017b2023-09-25 16:36:31 +000011 vec4 res = imageLoad(arg_0, ivec3(1));
James Priced90c72b2023-08-11 00:45:54 +000012 prevent_dce.inner = res;
13}
14
15vec4 vertex_main() {
16 textureLoad_012e11();
17 return vec4(0.0f);
18}
19
20void main() {
21 gl_PointSize = 1.0;
22 vec4 inner_result = vertex_main();
23 gl_Position = inner_result;
24 gl_Position.y = -(gl_Position.y);
25 gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
26 return;
27}
Stephen Whited2eb05c2023-10-16 20:34:20 +000028error: Error parsing GLSL shader:
Stephen White243017b2023-09-25 16:36:31 +000029ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
James Priced90c72b2023-08-11 00:45:54 +000030ERROR: 0:9: '' : compilation terminated
Stephen White243017b2023-09-25 16:36:31 +000031ERROR: 2 compilation errors. No code generated.
James Priced90c72b2023-08-11 00:45:54 +000032
33
34
35#version 310 es
36precision highp float;
37
38layout(rgba8) uniform highp writeonly image3D arg_0;
39layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
40 vec4 inner;
41} prevent_dce;
42
43void textureLoad_012e11() {
Stephen White243017b2023-09-25 16:36:31 +000044 vec4 res = imageLoad(arg_0, ivec3(1));
James Priced90c72b2023-08-11 00:45:54 +000045 prevent_dce.inner = res;
46}
47
48void fragment_main() {
49 textureLoad_012e11();
50}
51
52void main() {
53 fragment_main();
54 return;
55}
Stephen Whited2eb05c2023-10-16 20:34:20 +000056error: Error parsing GLSL shader:
Stephen White243017b2023-09-25 16:36:31 +000057ERROR: 0:10: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
James Priced90c72b2023-08-11 00:45:54 +000058ERROR: 0:10: '' : compilation terminated
Stephen White243017b2023-09-25 16:36:31 +000059ERROR: 2 compilation errors. No code generated.
James Priced90c72b2023-08-11 00:45:54 +000060
61
62
63#version 310 es
64
65layout(rgba8) uniform highp writeonly image3D arg_0;
66layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
67 vec4 inner;
68} prevent_dce;
69
70void textureLoad_012e11() {
Stephen White243017b2023-09-25 16:36:31 +000071 vec4 res = imageLoad(arg_0, ivec3(1));
James Priced90c72b2023-08-11 00:45:54 +000072 prevent_dce.inner = res;
73}
74
75void compute_main() {
76 textureLoad_012e11();
77}
78
79layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
80void main() {
81 compute_main();
82 return;
83}
Stephen Whited2eb05c2023-10-16 20:34:20 +000084error: Error parsing GLSL shader:
Stephen White243017b2023-09-25 16:36:31 +000085ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
James Priced90c72b2023-08-11 00:45:54 +000086ERROR: 0:9: '' : compilation terminated
Stephen White243017b2023-09-25 16:36:31 +000087ERROR: 2 compilation errors. No code generated.
James Priced90c72b2023-08-11 00:45:54 +000088
89
90