android_mt6572_jiabo/external/deqp/data/gles31/shaders/arrays.test
2025-09-05 16:56:03 +08:00

77 lines
1.1 KiB
Text

group invalid "Invalid constructions"
case constructor_c_style1
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[];
a = float[3] { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
case constructor_c_style2
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[5] = { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
case constructor_c_style3
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[] = float[3] { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
case constructor_c_style4
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[3] = { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
end # invalid