Permalink
Browse files

tests: extend test to cover non-type-explicit initializers

  • Loading branch information...
1 parent 84ed824 commit 57c9f772313e86f141bffea957f981076da0bfc0 @aras-p committed Mar 8, 2013
@@ -12,6 +12,9 @@ float size7 = -kInt1;
float size8 = -(1.0 / 4.0 + (4.0 * (-(2.0/4.0))));
float size9 = -(1.0 / 4 + (4.0 * (-(2/4))));
+uniform float3 my_vec3a = float3(1,2,3);
+uniform float3 my_vec3b = {1,2,3};
+
float4 main() : POSITION
{
return float4(kInt1, kInt2, kInt3, size2 + size8);
@@ -15,9 +15,12 @@ uniform float size7 = -3.0;
uniform float size8 = 1.75;
uniform float size9 = -0.25;
#line 15
+uniform vec3 my_vec3a = vec3( 1.0, 2.0, 3.0);
+uniform vec3 my_vec3b = vec3( 1.0, 2.0, 3.0);
vec4 xlat_main( );
-#line 15
+#line 18
vec4 xlat_main( ) {
+ #line 20
return vec4( 3.0, 7.0, float(kInt3), (size2 + size8));
}
void main() {
@@ -15,9 +15,12 @@ uniform float size7 = -3.0;
uniform float size8 = 1.75;
uniform float size9 = -0.25;
#line 15
+uniform vec3 my_vec3a = vec3( 1.0, 2.0, 3.0);
+uniform vec3 my_vec3b = vec3( 1.0, 2.0, 3.0);
vec4 xlat_main( );
-#line 15
+#line 18
vec4 xlat_main( ) {
+ #line 20
return vec4( 3.0, 7.0, float(kInt3), (size2 + size8));
}
void main() {
@@ -12,6 +12,9 @@ float size7 = -kInt1;
float size8 = -(1.0 / 4.0 + (4.0 * (-(2.0/4.0))));
float size9 = -(1.0 / 4 + (4.0 * (-(2/4))));
+uniform float3 my_vec3a = float3(1,2,3);
+uniform float3 my_vec3b = {1,2,3};
+
float4 main() : POSITION
{
return float4(kInt1, kInt2, kInt3, size2 + size8);
@@ -14,9 +14,12 @@ uniform float size7;
uniform float size8;
uniform float size9;
#line 15
+uniform vec3 my_vec3a;
+uniform vec3 my_vec3b;
vec4 xlat_main( );
-#line 15
+#line 18
vec4 xlat_main( ) {
+ #line 20
return vec4( 3.0, 7.0, float(kInt3), (size2 + size8));
}
void main() {
@@ -14,9 +14,12 @@ uniform highp float size7;
uniform highp float size8;
uniform highp float size9;
#line 15
+uniform highp vec3 my_vec3a;
+uniform highp vec3 my_vec3b;
highp vec4 xlat_main( );
-#line 15
+#line 18
highp vec4 xlat_main( ) {
+ #line 20
return vec4( 3.0, 7.0, float(kInt3), (size2 + size8));
}
void main() {

0 comments on commit 57c9f77

Please sign in to comment.