- Rename constructor_c-styleN to constructor_c_styleN to avoid '-'
character in test name.
- Add some additional initialization tests.
- Port initialization tests to GLES31.
Bug:
19639781
Change-Id: Id9488837cc24c82c3ff1ad31c49da3a238c6fee8
""
end
- case constructor_c-style1
+ case constructor_c_style1
version 300 es
expect compile_fail
""
end
- case constructor_c-style2
+ case constructor_c_style2
version 300 es
expect compile_fail
""
end
+ case constructor_c_style3
+ version 300 es
+ expect compile_fail
+
+ both ""
+ #version 300 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 300 es
+ expect compile_fail
+
+ both ""
+ #version 300 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
--- /dev/null
+
+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
addChild(new ShaderMultisampleInterpolationTests(m_context));
addChild(new OpaqueTypeIndexingTests (m_context));
addChild(new ShaderLibraryTest (m_context, "functions", "Function Tests"));
+ addChild(new ShaderLibraryTest (m_context, "arrays", "Arrays Tests"));
addChild(new ShaderLibraryTest (m_context, "arrays_of_arrays", "Arrays of Arrays Tests"));
addChild(new ShaderLinkageTests (m_context));
addChild(new ShaderBuiltinConstantTests (m_context));