aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Fischer <greg@lunarg.com>2021-04-16 18:52:51 -0600
committerGreg Fischer <greg@lunarg.com>2021-04-19 09:37:45 -0600
commit12f3eb8e3fdfb042afd7386c080b0ed548b359ef (patch)
tree4405f20c9bb328cc3b3ba4b65ff29b4f58dc867f
parent41992e432cd8c8ef81db319f47299d7336220d6f (diff)
downloadglslang-12f3eb8e3fdfb042afd7386c080b0ed548b359ef.tar.gz
Fix and enable textureOffset_samper2darrayshadow test
-rw-r--r--Test/baseResults/textureoffset_sampler2darrayshadow.vert.out65
-rw-r--r--gtests/AST.FromFile.cpp1
2 files changed, 63 insertions, 3 deletions
diff --git a/Test/baseResults/textureoffset_sampler2darrayshadow.vert.out b/Test/baseResults/textureoffset_sampler2darrayshadow.vert.out
index 7211b78b..44d8e975 100644
--- a/Test/baseResults/textureoffset_sampler2darrayshadow.vert.out
+++ b/Test/baseResults/textureoffset_sampler2darrayshadow.vert.out
@@ -1,4 +1,63 @@
textureoffset_sampler2darrayshadow.vert
-ERROR: 0:9: 'sampler' : TextureOffset not support the sampler2DArrayShadow : version <= 420
-ERROR: 0:9: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated
+ERROR: 0:9: 'sampler' : TextureOffset does not support sampler2DArrayShadow : ES Profile
+ERROR: 1 compilation errors. No code generated.
+
+
+Shader version: 300
+ERROR: node is still EOpNull!
+0:7 Function Definition: main( ( global void)
+0:7 Function Parameters:
+0:9 Sequence
+0:9 move second child to first child ( temp highp 4-component vector of float)
+0:9 'gl_Position' ( gl_Position highp 4-component vector of float Position)
+0:9 Construct vec4 ( temp highp 4-component vector of float)
+0:9 textureOffset ( global mediump float)
+0:9 's' ( uniform mediump sampler2DArrayShadow)
+0:9 Constant:
+0:9 0.000000
+0:9 0.000000
+0:9 0.000000
+0:9 0.000000
+0:9 Constant:
+0:9 0 (const int)
+0:9 0 (const int)
+0:10 move second child to first child ( temp highp 4-component vector of float)
+0:10 'gl_Position' ( gl_Position highp 4-component vector of float Position)
+0:10 'dEQP_Position' ( in highp 4-component vector of float)
+0:? Linker Objects
+0:? 'dEQP_Position' ( in highp 4-component vector of float)
+0:? 's' ( uniform mediump sampler2DArrayShadow)
+0:? 'gl_VertexID' ( gl_VertexId highp int VertexId)
+0:? 'gl_InstanceID' ( gl_InstanceId highp int InstanceId)
+
+
+Linked vertex stage:
+
+
+Shader version: 300
+ERROR: node is still EOpNull!
+0:7 Function Definition: main( ( global void)
+0:7 Function Parameters:
+0:9 Sequence
+0:9 move second child to first child ( temp highp 4-component vector of float)
+0:9 'gl_Position' ( gl_Position highp 4-component vector of float Position)
+0:9 Construct vec4 ( temp highp 4-component vector of float)
+0:9 textureOffset ( global mediump float)
+0:9 's' ( uniform mediump sampler2DArrayShadow)
+0:9 Constant:
+0:9 0.000000
+0:9 0.000000
+0:9 0.000000
+0:9 0.000000
+0:9 Constant:
+0:9 0 (const int)
+0:9 0 (const int)
+0:10 move second child to first child ( temp highp 4-component vector of float)
+0:10 'gl_Position' ( gl_Position highp 4-component vector of float Position)
+0:10 'dEQP_Position' ( in highp 4-component vector of float)
+0:? Linker Objects
+0:? 'dEQP_Position' ( in highp 4-component vector of float)
+0:? 's' ( uniform mediump sampler2DArrayShadow)
+0:? 'gl_VertexID' ( gl_VertexId highp int VertexId)
+0:? 'gl_InstanceID' ( gl_InstanceId highp int InstanceId)
+
diff --git a/gtests/AST.FromFile.cpp b/gtests/AST.FromFile.cpp
index 8885b291..77f0aafb 100644
--- a/gtests/AST.FromFile.cpp
+++ b/gtests/AST.FromFile.cpp
@@ -281,6 +281,7 @@ INSTANTIATE_TEST_SUITE_P(
"terminate.frag",
"terminate.vert",
"negativeWorkGroupSize.comp",
+ "textureoffset_sampler2darrayshadow.vert",
})),
FileNameAsCustomTestSuffix
);