blob: 5d556c4b9e4ca5f9a1ce18d8be99f287182a7aff [file] [log] [blame]
James Priced90c72b2023-08-11 00:45:54 +00001SKIP: FAILED
2
3#version 310 es
4
5layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0;
6layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
7 vec4 inner;
8} prevent_dce;
9
10void textureLoad_fd9606() {
Stephen White243017b2023-09-25 16:36:31 +000011 vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
James Priced90c72b2023-08-11 00:45:54 +000012 prevent_dce.inner = res;
13}
14
15vec4 vertex_main() {
16 textureLoad_fd9606();
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;
Ben Clayton448c01b2024-02-28 00:23:17 +000037precision highp int;
James Priced90c72b2023-08-11 00:45:54 +000038
39layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0;
40layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
41 vec4 inner;
42} prevent_dce;
43
44void textureLoad_fd9606() {
Stephen White243017b2023-09-25 16:36:31 +000045 vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
James Priced90c72b2023-08-11 00:45:54 +000046 prevent_dce.inner = res;
47}
48
49void fragment_main() {
50 textureLoad_fd9606();
51}
52
53void main() {
54 fragment_main();
55 return;
56}
Stephen Whited2eb05c2023-10-16 20:34:20 +000057error: Error parsing GLSL shader:
Ben Clayton448c01b2024-02-28 00:23:17 +000058ERROR: 0:11: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
59ERROR: 0:11: '' : compilation terminated
Stephen White243017b2023-09-25 16:36:31 +000060ERROR: 2 compilation errors. No code generated.
James Priced90c72b2023-08-11 00:45:54 +000061
62
63
64#version 310 es
65
66layout(rgba8_snorm) uniform highp writeonly image2DArray arg_0;
67layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
68 vec4 inner;
69} prevent_dce;
70
71void textureLoad_fd9606() {
Stephen White243017b2023-09-25 16:36:31 +000072 vec4 res = imageLoad(arg_0, ivec3(uvec3(uvec2(1u), uint(1))));
James Priced90c72b2023-08-11 00:45:54 +000073 prevent_dce.inner = res;
74}
75
76void compute_main() {
77 textureLoad_fd9606();
78}
79
80layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
81void main() {
82 compute_main();
83 return;
84}
Stephen Whited2eb05c2023-10-16 20:34:20 +000085error: Error parsing GLSL shader:
Stephen White243017b2023-09-25 16:36:31 +000086ERROR: 0:9: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
James Priced90c72b2023-08-11 00:45:54 +000087ERROR: 0:9: '' : compilation terminated
Stephen White243017b2023-09-25 16:36:31 +000088ERROR: 2 compilation errors. No code generated.
James Priced90c72b2023-08-11 00:45:54 +000089
90
91