From a5f9118e7cc653f17f8e1448bc7e53fefe5b6c4e Mon Sep 17 00:00:00 2001 From: Jaebaek Seo Date: Tue, 8 Jun 2021 09:47:29 -0400 Subject: [PATCH 1/2] Update known_good.json for SPIRV-Tools --- known_good.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/known_good.json b/known_good.json index cc4421164a..d2b6ec2ce3 100644 --- a/known_good.json +++ b/known_good.json @@ -5,7 +5,7 @@ "site" : "github", "subrepo" : "KhronosGroup/SPIRV-Tools", "subdir" : "External/spirv-tools", - "commit" : "dc72924cb31cd9f3dbc3eb47e9d926cf641e3a07" + "commit" : "fb02131cb4ac74a357bb53039ca3dd8926bb3b14" }, { "name" : "spirv-tools/external/spirv-headers", From 02f1c80d77c1fe3f96b5c816cb75df693d116894 Mon Sep 17 00:00:00 2001 From: Jaebaek Seo Date: Tue, 8 Jun 2021 10:39:55 -0400 Subject: [PATCH 2/2] Fix unit test failures --- Test/baseResults/hlsl.load.2dms.dx10.frag.out | 483 +++--- .../hlsl.load.offset.dx10.frag.out | 1456 ++++++++--------- .../hlsl.load.offsetarray.dx10.frag.out | 1133 +++++++------ Test/hlsl.load.2dms.dx10.frag | 20 +- Test/hlsl.load.offset.dx10.frag | 36 +- Test/hlsl.load.offsetarray.dx10.frag | 25 +- 6 files changed, 1554 insertions(+), 1599 deletions(-) diff --git a/Test/baseResults/hlsl.load.2dms.dx10.frag.out b/Test/baseResults/hlsl.load.2dms.dx10.frag.out index 02365b8ff7..daa28b263d 100644 --- a/Test/baseResults/hlsl.load.2dms.dx10.frag.out +++ b/Test/baseResults/hlsl.load.2dms.dx10.frag.out @@ -3,13 +3,20 @@ Shader version: 500 gl_FragCoord origin is upper left using depth_any 0:? Sequence +0:23 Function Definition: getOffset( ( temp 2-component vector of int) +0:23 Function Parameters: +0:? Sequence +0:24 Branch: Return with expression +0:24 Constant: +0:24 1 (const int) +0:24 1 (const int) 0:28 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 0:28 Function Parameters: 0:? Sequence 0:32 textureFetch ( temp 4-component vector of float) 0:32 'g_tTex2dmsf4' ( uniform texture2DMS) 0:32 c2: direct index for structure ( uniform 2-component vector of int) -0:32 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:32 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:32 Constant: 0:32 1 (const uint) 0:32 Constant: @@ -17,7 +24,7 @@ using depth_any 0:33 textureFetch ( temp 4-component vector of int) 0:33 'g_tTex2dmsi4' ( uniform itexture2DMS) 0:33 c2: direct index for structure ( uniform 2-component vector of int) -0:33 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:33 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:33 Constant: 0:33 1 (const uint) 0:33 Constant: @@ -25,7 +32,7 @@ using depth_any 0:34 textureFetch ( temp 4-component vector of uint) 0:34 'g_tTex2dmsu4' ( uniform utexture2DMS) 0:34 c2: direct index for structure ( uniform 2-component vector of int) -0:34 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:34 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:34 Constant: 0:34 1 (const uint) 0:34 Constant: @@ -33,43 +40,34 @@ using depth_any 0:37 textureFetchOffset ( temp 4-component vector of float) 0:37 'g_tTex2dmsf4' ( uniform texture2DMS) 0:37 c2: direct index for structure ( uniform 2-component vector of int) -0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:37 Constant: 0:37 1 (const uint) 0:37 Constant: 0:37 3 (const int) -0:37 o2: direct index for structure ( uniform 2-component vector of int) -0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:37 Constant: -0:37 5 (const uint) +0:37 Function Call: getOffset( ( temp 2-component vector of int) 0:38 textureFetchOffset ( temp 4-component vector of int) 0:38 'g_tTex2dmsi4' ( uniform itexture2DMS) 0:38 c2: direct index for structure ( uniform 2-component vector of int) -0:38 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:38 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:38 Constant: 0:38 1 (const uint) 0:38 Constant: 0:38 3 (const int) -0:38 o2: direct index for structure ( uniform 2-component vector of int) -0:38 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:38 Constant: -0:38 5 (const uint) +0:38 Function Call: getOffset( ( temp 2-component vector of int) 0:39 textureFetchOffset ( temp 4-component vector of uint) 0:39 'g_tTex2dmsu4' ( uniform utexture2DMS) 0:39 c2: direct index for structure ( uniform 2-component vector of int) -0:39 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:39 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:39 Constant: 0:39 1 (const uint) 0:39 Constant: 0:39 3 (const int) -0:39 o2: direct index for structure ( uniform 2-component vector of int) -0:39 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:39 Constant: -0:39 5 (const uint) +0:39 Function Call: getOffset( ( temp 2-component vector of int) 0:42 textureFetch ( temp 4-component vector of float) 0:42 'g_tTex2dmsf4a' ( uniform texture2DMSArray) 0:42 c3: direct index for structure ( uniform 3-component vector of int) -0:42 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:42 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:42 Constant: 0:42 2 (const uint) 0:42 Constant: @@ -77,7 +75,7 @@ using depth_any 0:43 textureFetch ( temp 4-component vector of int) 0:43 'g_tTex2dmsi4a' ( uniform itexture2DMSArray) 0:43 c3: direct index for structure ( uniform 3-component vector of int) -0:43 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:43 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:43 Constant: 0:43 2 (const uint) 0:43 Constant: @@ -85,7 +83,7 @@ using depth_any 0:44 textureFetch ( temp 4-component vector of uint) 0:44 'g_tTex2dmsu4a' ( uniform utexture2DMSArray) 0:44 c3: direct index for structure ( uniform 3-component vector of int) -0:44 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:44 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:44 Constant: 0:44 2 (const uint) 0:44 Constant: @@ -93,39 +91,30 @@ using depth_any 0:47 textureFetchOffset ( temp 4-component vector of float) 0:47 'g_tTex2dmsf4a' ( uniform texture2DMSArray) 0:47 c3: direct index for structure ( uniform 3-component vector of int) -0:47 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:47 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:47 Constant: 0:47 2 (const uint) 0:47 Constant: 0:47 3 (const int) -0:47 o2: direct index for structure ( uniform 2-component vector of int) -0:47 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:47 Constant: -0:47 5 (const uint) +0:47 Function Call: getOffset( ( temp 2-component vector of int) 0:48 textureFetchOffset ( temp 4-component vector of int) 0:48 'g_tTex2dmsi4a' ( uniform itexture2DMSArray) 0:48 c3: direct index for structure ( uniform 3-component vector of int) -0:48 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:48 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:48 Constant: 0:48 2 (const uint) 0:48 Constant: 0:48 3 (const int) -0:48 o2: direct index for structure ( uniform 2-component vector of int) -0:48 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:48 Constant: -0:48 5 (const uint) +0:48 Function Call: getOffset( ( temp 2-component vector of int) 0:49 textureFetchOffset ( temp 4-component vector of uint) 0:49 'g_tTex2dmsu4a' ( uniform utexture2DMSArray) 0:49 c3: direct index for structure ( uniform 3-component vector of int) -0:49 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:49 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:49 Constant: 0:49 2 (const uint) 0:49 Constant: 0:49 3 (const int) -0:49 o2: direct index for structure ( uniform 2-component vector of int) -0:49 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:49 Constant: -0:49 5 (const uint) +0:49 Function Call: getOffset( ( temp 2-component vector of int) 0:51 move second child to first child ( temp 4-component vector of float) 0:51 Color: direct index for structure ( temp 4-component vector of float) 0:51 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) @@ -172,7 +161,7 @@ using depth_any 0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray) 0:? 'g_tTex2dmsi4a' ( uniform itexture2DMSArray) 0:? 'g_tTex2dmsu4a' ( uniform utexture2DMSArray) -0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:? '@entryPointOutput.Depth' ( out float FragDepth) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) @@ -184,13 +173,20 @@ Shader version: 500 gl_FragCoord origin is upper left using depth_any 0:? Sequence +0:23 Function Definition: getOffset( ( temp 2-component vector of int) +0:23 Function Parameters: +0:? Sequence +0:24 Branch: Return with expression +0:24 Constant: +0:24 1 (const int) +0:24 1 (const int) 0:28 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 0:28 Function Parameters: 0:? Sequence 0:32 textureFetch ( temp 4-component vector of float) 0:32 'g_tTex2dmsf4' ( uniform texture2DMS) 0:32 c2: direct index for structure ( uniform 2-component vector of int) -0:32 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:32 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:32 Constant: 0:32 1 (const uint) 0:32 Constant: @@ -198,7 +194,7 @@ using depth_any 0:33 textureFetch ( temp 4-component vector of int) 0:33 'g_tTex2dmsi4' ( uniform itexture2DMS) 0:33 c2: direct index for structure ( uniform 2-component vector of int) -0:33 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:33 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:33 Constant: 0:33 1 (const uint) 0:33 Constant: @@ -206,7 +202,7 @@ using depth_any 0:34 textureFetch ( temp 4-component vector of uint) 0:34 'g_tTex2dmsu4' ( uniform utexture2DMS) 0:34 c2: direct index for structure ( uniform 2-component vector of int) -0:34 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:34 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:34 Constant: 0:34 1 (const uint) 0:34 Constant: @@ -214,43 +210,34 @@ using depth_any 0:37 textureFetchOffset ( temp 4-component vector of float) 0:37 'g_tTex2dmsf4' ( uniform texture2DMS) 0:37 c2: direct index for structure ( uniform 2-component vector of int) -0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:37 Constant: 0:37 1 (const uint) 0:37 Constant: 0:37 3 (const int) -0:37 o2: direct index for structure ( uniform 2-component vector of int) -0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:37 Constant: -0:37 5 (const uint) +0:37 Function Call: getOffset( ( temp 2-component vector of int) 0:38 textureFetchOffset ( temp 4-component vector of int) 0:38 'g_tTex2dmsi4' ( uniform itexture2DMS) 0:38 c2: direct index for structure ( uniform 2-component vector of int) -0:38 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:38 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:38 Constant: 0:38 1 (const uint) 0:38 Constant: 0:38 3 (const int) -0:38 o2: direct index for structure ( uniform 2-component vector of int) -0:38 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:38 Constant: -0:38 5 (const uint) +0:38 Function Call: getOffset( ( temp 2-component vector of int) 0:39 textureFetchOffset ( temp 4-component vector of uint) 0:39 'g_tTex2dmsu4' ( uniform utexture2DMS) 0:39 c2: direct index for structure ( uniform 2-component vector of int) -0:39 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:39 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:39 Constant: 0:39 1 (const uint) 0:39 Constant: 0:39 3 (const int) -0:39 o2: direct index for structure ( uniform 2-component vector of int) -0:39 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:39 Constant: -0:39 5 (const uint) +0:39 Function Call: getOffset( ( temp 2-component vector of int) 0:42 textureFetch ( temp 4-component vector of float) 0:42 'g_tTex2dmsf4a' ( uniform texture2DMSArray) 0:42 c3: direct index for structure ( uniform 3-component vector of int) -0:42 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:42 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:42 Constant: 0:42 2 (const uint) 0:42 Constant: @@ -258,7 +245,7 @@ using depth_any 0:43 textureFetch ( temp 4-component vector of int) 0:43 'g_tTex2dmsi4a' ( uniform itexture2DMSArray) 0:43 c3: direct index for structure ( uniform 3-component vector of int) -0:43 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:43 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:43 Constant: 0:43 2 (const uint) 0:43 Constant: @@ -266,7 +253,7 @@ using depth_any 0:44 textureFetch ( temp 4-component vector of uint) 0:44 'g_tTex2dmsu4a' ( uniform utexture2DMSArray) 0:44 c3: direct index for structure ( uniform 3-component vector of int) -0:44 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:44 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:44 Constant: 0:44 2 (const uint) 0:44 Constant: @@ -274,39 +261,30 @@ using depth_any 0:47 textureFetchOffset ( temp 4-component vector of float) 0:47 'g_tTex2dmsf4a' ( uniform texture2DMSArray) 0:47 c3: direct index for structure ( uniform 3-component vector of int) -0:47 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:47 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:47 Constant: 0:47 2 (const uint) 0:47 Constant: 0:47 3 (const int) -0:47 o2: direct index for structure ( uniform 2-component vector of int) -0:47 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:47 Constant: -0:47 5 (const uint) +0:47 Function Call: getOffset( ( temp 2-component vector of int) 0:48 textureFetchOffset ( temp 4-component vector of int) 0:48 'g_tTex2dmsi4a' ( uniform itexture2DMSArray) 0:48 c3: direct index for structure ( uniform 3-component vector of int) -0:48 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:48 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:48 Constant: 0:48 2 (const uint) 0:48 Constant: 0:48 3 (const int) -0:48 o2: direct index for structure ( uniform 2-component vector of int) -0:48 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:48 Constant: -0:48 5 (const uint) +0:48 Function Call: getOffset( ( temp 2-component vector of int) 0:49 textureFetchOffset ( temp 4-component vector of uint) 0:49 'g_tTex2dmsu4a' ( uniform utexture2DMSArray) 0:49 c3: direct index for structure ( uniform 3-component vector of int) -0:49 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:49 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:49 Constant: 0:49 2 (const uint) 0:49 Constant: 0:49 3 (const int) -0:49 o2: direct index for structure ( uniform 2-component vector of int) -0:49 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:49 Constant: -0:49 5 (const uint) +0:49 Function Call: getOffset( ( temp 2-component vector of int) 0:51 move second child to first child ( temp 4-component vector of float) 0:51 Color: direct index for structure ( temp 4-component vector of float) 0:51 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) @@ -353,208 +331,199 @@ using depth_any 0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray) 0:? 'g_tTex2dmsi4a' ( uniform itexture2DMSArray) 0:? 'g_tTex2dmsu4a' ( uniform utexture2DMSArray) -0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:? '@entryPointOutput.Depth' ( out float FragDepth) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -Validation failed // Module Version 10000 // Generated by (magic number): 8000a -// Id's are bound by 130 +// Id's are bound by 129 Capability Shader Capability ImageGatherExtended 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Fragment 4 "main" 120 124 + EntryPoint Fragment 4 "main" 119 123 ExecutionMode 4 OriginUpperLeft ExecutionMode 4 DepthReplacing Source HLSL 500 Name 4 "main" - Name 8 "PS_OUTPUT" - MemberName 8(PS_OUTPUT) 0 "Color" - MemberName 8(PS_OUTPUT) 1 "Depth" - Name 10 "@main(" - Name 14 "g_tTex2dmsf4" - Name 20 "$Global" - MemberName 20($Global) 0 "c1" - MemberName 20($Global) 1 "c2" - MemberName 20($Global) 2 "c3" - MemberName 20($Global) 3 "c4" - MemberName 20($Global) 4 "o1" - MemberName 20($Global) 5 "o2" - MemberName 20($Global) 6 "o3" - MemberName 20($Global) 7 "o4" - Name 22 "" - Name 31 "g_tTex2dmsi4" - Name 39 "g_tTex2dmsu4" - Name 66 "g_tTex2dmsf4a" - Name 75 "g_tTex2dmsi4a" - Name 82 "g_tTex2dmsu4a" - Name 106 "psout" - Name 117 "flattenTemp" - Name 120 "@entryPointOutput.Color" - Name 124 "@entryPointOutput.Depth" - Name 129 "g_sSamp" - Decorate 14(g_tTex2dmsf4) DescriptorSet 0 - Decorate 14(g_tTex2dmsf4) Binding 1 - MemberDecorate 20($Global) 0 Offset 0 - MemberDecorate 20($Global) 1 Offset 8 - MemberDecorate 20($Global) 2 Offset 16 - MemberDecorate 20($Global) 3 Offset 32 - MemberDecorate 20($Global) 4 Offset 48 - MemberDecorate 20($Global) 5 Offset 56 - MemberDecorate 20($Global) 6 Offset 64 - MemberDecorate 20($Global) 7 Offset 80 - Decorate 20($Global) Block - Decorate 22 DescriptorSet 0 - Decorate 22 Binding 7 - Decorate 31(g_tTex2dmsi4) DescriptorSet 0 - Decorate 31(g_tTex2dmsi4) Binding 2 - Decorate 39(g_tTex2dmsu4) DescriptorSet 0 - Decorate 39(g_tTex2dmsu4) Binding 3 - Decorate 66(g_tTex2dmsf4a) DescriptorSet 0 - Decorate 66(g_tTex2dmsf4a) Binding 4 - Decorate 75(g_tTex2dmsi4a) DescriptorSet 0 - Decorate 75(g_tTex2dmsi4a) Binding 5 - Decorate 82(g_tTex2dmsu4a) DescriptorSet 0 - Decorate 82(g_tTex2dmsu4a) Binding 6 - Decorate 120(@entryPointOutput.Color) Location 0 - Decorate 124(@entryPointOutput.Depth) BuiltIn FragDepth - Decorate 129(g_sSamp) DescriptorSet 0 - Decorate 129(g_sSamp) Binding 0 + Name 9 "getOffset(" + Name 13 "PS_OUTPUT" + MemberName 13(PS_OUTPUT) 0 "Color" + MemberName 13(PS_OUTPUT) 1 "Depth" + Name 15 "@main(" + Name 23 "g_tTex2dmsf4" + Name 27 "$Global" + MemberName 27($Global) 0 "c1" + MemberName 27($Global) 1 "c2" + MemberName 27($Global) 2 "c3" + MemberName 27($Global) 3 "c4" + Name 29 "" + Name 37 "g_tTex2dmsi4" + Name 45 "g_tTex2dmsu4" + Name 68 "g_tTex2dmsf4a" + Name 77 "g_tTex2dmsi4a" + Name 84 "g_tTex2dmsu4a" + Name 105 "psout" + Name 116 "flattenTemp" + Name 119 "@entryPointOutput.Color" + Name 123 "@entryPointOutput.Depth" + Name 128 "g_sSamp" + Decorate 23(g_tTex2dmsf4) DescriptorSet 0 + Decorate 23(g_tTex2dmsf4) Binding 1 + MemberDecorate 27($Global) 0 Offset 0 + MemberDecorate 27($Global) 1 Offset 8 + MemberDecorate 27($Global) 2 Offset 16 + MemberDecorate 27($Global) 3 Offset 32 + Decorate 27($Global) Block + Decorate 29 DescriptorSet 0 + Decorate 29 Binding 7 + Decorate 37(g_tTex2dmsi4) DescriptorSet 0 + Decorate 37(g_tTex2dmsi4) Binding 2 + Decorate 45(g_tTex2dmsu4) DescriptorSet 0 + Decorate 45(g_tTex2dmsu4) Binding 3 + Decorate 68(g_tTex2dmsf4a) DescriptorSet 0 + Decorate 68(g_tTex2dmsf4a) Binding 4 + Decorate 77(g_tTex2dmsi4a) DescriptorSet 0 + Decorate 77(g_tTex2dmsi4a) Binding 5 + Decorate 84(g_tTex2dmsu4a) DescriptorSet 0 + Decorate 84(g_tTex2dmsu4a) Binding 6 + Decorate 119(@entryPointOutput.Color) Location 0 + Decorate 123(@entryPointOutput.Depth) BuiltIn FragDepth + Decorate 128(g_sSamp) DescriptorSet 0 + Decorate 128(g_sSamp) Binding 0 2: TypeVoid 3: TypeFunction 2 - 6: TypeFloat 32 - 7: TypeVector 6(float) 4 - 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float) - 9: TypeFunction 8(PS_OUTPUT) - 12: TypeImage 6(float) 2D multi-sampled sampled format:Unknown - 13: TypePointer UniformConstant 12 -14(g_tTex2dmsf4): 13(ptr) Variable UniformConstant - 16: TypeInt 32 1 - 17: TypeVector 16(int) 2 - 18: TypeVector 16(int) 3 - 19: TypeVector 16(int) 4 - 20($Global): TypeStruct 16(int) 17(ivec2) 18(ivec3) 19(ivec4) 16(int) 17(ivec2) 18(ivec3) 19(ivec4) - 21: TypePointer Uniform 20($Global) - 22: 21(ptr) Variable Uniform - 23: 16(int) Constant 1 - 24: TypePointer Uniform 17(ivec2) - 27: 16(int) Constant 3 - 29: TypeImage 16(int) 2D multi-sampled sampled format:Unknown - 30: TypePointer UniformConstant 29 -31(g_tTex2dmsi4): 30(ptr) Variable UniformConstant - 36: TypeInt 32 0 - 37: TypeImage 36(int) 2D multi-sampled sampled format:Unknown - 38: TypePointer UniformConstant 37 -39(g_tTex2dmsu4): 38(ptr) Variable UniformConstant - 43: TypeVector 36(int) 4 - 48: 16(int) Constant 5 - 64: TypeImage 6(float) 2D array multi-sampled sampled format:Unknown - 65: TypePointer UniformConstant 64 -66(g_tTex2dmsf4a): 65(ptr) Variable UniformConstant - 68: 16(int) Constant 2 - 69: TypePointer Uniform 18(ivec3) - 73: TypeImage 16(int) 2D array multi-sampled sampled format:Unknown - 74: TypePointer UniformConstant 73 -75(g_tTex2dmsi4a): 74(ptr) Variable UniformConstant - 80: TypeImage 36(int) 2D array multi-sampled sampled format:Unknown - 81: TypePointer UniformConstant 80 -82(g_tTex2dmsu4a): 81(ptr) Variable UniformConstant - 105: TypePointer Function 8(PS_OUTPUT) - 107: 16(int) Constant 0 - 108: 6(float) Constant 1065353216 - 109: 7(fvec4) ConstantComposite 108 108 108 108 - 110: TypePointer Function 7(fvec4) - 112: TypePointer Function 6(float) - 119: TypePointer Output 7(fvec4) -120(@entryPointOutput.Color): 119(ptr) Variable Output - 123: TypePointer Output 6(float) -124(@entryPointOutput.Depth): 123(ptr) Variable Output - 127: TypeSampler - 128: TypePointer UniformConstant 127 - 129(g_sSamp): 128(ptr) Variable UniformConstant + 6: TypeInt 32 1 + 7: TypeVector 6(int) 2 + 8: TypeFunction 7(ivec2) + 11: TypeFloat 32 + 12: TypeVector 11(float) 4 + 13(PS_OUTPUT): TypeStruct 12(fvec4) 11(float) + 14: TypeFunction 13(PS_OUTPUT) + 17: 6(int) Constant 1 + 18: 7(ivec2) ConstantComposite 17 17 + 21: TypeImage 11(float) 2D multi-sampled sampled format:Unknown + 22: TypePointer UniformConstant 21 +23(g_tTex2dmsf4): 22(ptr) Variable UniformConstant + 25: TypeVector 6(int) 3 + 26: TypeVector 6(int) 4 + 27($Global): TypeStruct 6(int) 7(ivec2) 25(ivec3) 26(ivec4) + 28: TypePointer Uniform 27($Global) + 29: 28(ptr) Variable Uniform + 30: TypePointer Uniform 7(ivec2) + 33: 6(int) Constant 3 + 35: TypeImage 6(int) 2D multi-sampled sampled format:Unknown + 36: TypePointer UniformConstant 35 +37(g_tTex2dmsi4): 36(ptr) Variable UniformConstant + 42: TypeInt 32 0 + 43: TypeImage 42(int) 2D multi-sampled sampled format:Unknown + 44: TypePointer UniformConstant 43 +45(g_tTex2dmsu4): 44(ptr) Variable UniformConstant + 49: TypeVector 42(int) 4 + 66: TypeImage 11(float) 2D array multi-sampled sampled format:Unknown + 67: TypePointer UniformConstant 66 +68(g_tTex2dmsf4a): 67(ptr) Variable UniformConstant + 70: 6(int) Constant 2 + 71: TypePointer Uniform 25(ivec3) + 75: TypeImage 6(int) 2D array multi-sampled sampled format:Unknown + 76: TypePointer UniformConstant 75 +77(g_tTex2dmsi4a): 76(ptr) Variable UniformConstant + 82: TypeImage 42(int) 2D array multi-sampled sampled format:Unknown + 83: TypePointer UniformConstant 82 +84(g_tTex2dmsu4a): 83(ptr) Variable UniformConstant + 104: TypePointer Function 13(PS_OUTPUT) + 106: 6(int) Constant 0 + 107: 11(float) Constant 1065353216 + 108: 12(fvec4) ConstantComposite 107 107 107 107 + 109: TypePointer Function 12(fvec4) + 111: TypePointer Function 11(float) + 118: TypePointer Output 12(fvec4) +119(@entryPointOutput.Color): 118(ptr) Variable Output + 122: TypePointer Output 11(float) +123(@entryPointOutput.Depth): 122(ptr) Variable Output + 126: TypeSampler + 127: TypePointer UniformConstant 126 + 128(g_sSamp): 127(ptr) Variable UniformConstant 4(main): 2 Function None 3 5: Label -117(flattenTemp): 105(ptr) Variable Function - 118:8(PS_OUTPUT) FunctionCall 10(@main() - Store 117(flattenTemp) 118 - 121: 110(ptr) AccessChain 117(flattenTemp) 107 - 122: 7(fvec4) Load 121 - Store 120(@entryPointOutput.Color) 122 - 125: 112(ptr) AccessChain 117(flattenTemp) 23 - 126: 6(float) Load 125 - Store 124(@entryPointOutput.Depth) 126 +116(flattenTemp): 104(ptr) Variable Function + 117:13(PS_OUTPUT) FunctionCall 15(@main() + Store 116(flattenTemp) 117 + 120: 109(ptr) AccessChain 116(flattenTemp) 106 + 121: 12(fvec4) Load 120 + Store 119(@entryPointOutput.Color) 121 + 124: 111(ptr) AccessChain 116(flattenTemp) 17 + 125: 11(float) Load 124 + Store 123(@entryPointOutput.Depth) 125 Return FunctionEnd - 10(@main():8(PS_OUTPUT) Function None 9 - 11: Label - 106(psout): 105(ptr) Variable Function - 15: 12 Load 14(g_tTex2dmsf4) - 25: 24(ptr) AccessChain 22 23 - 26: 17(ivec2) Load 25 - 28: 7(fvec4) ImageFetch 15 26 Sample 27 - 32: 29 Load 31(g_tTex2dmsi4) - 33: 24(ptr) AccessChain 22 23 - 34: 17(ivec2) Load 33 - 35: 19(ivec4) ImageFetch 32 34 Sample 27 - 40: 37 Load 39(g_tTex2dmsu4) - 41: 24(ptr) AccessChain 22 23 - 42: 17(ivec2) Load 41 - 44: 43(ivec4) ImageFetch 40 42 Sample 27 - 45: 12 Load 14(g_tTex2dmsf4) - 46: 24(ptr) AccessChain 22 23 - 47: 17(ivec2) Load 46 - 49: 24(ptr) AccessChain 22 48 - 50: 17(ivec2) Load 49 - 51: 7(fvec4) ImageFetch 45 47 Offset Sample 50 27 - 52: 29 Load 31(g_tTex2dmsi4) - 53: 24(ptr) AccessChain 22 23 - 54: 17(ivec2) Load 53 - 55: 24(ptr) AccessChain 22 48 - 56: 17(ivec2) Load 55 - 57: 19(ivec4) ImageFetch 52 54 Offset Sample 56 27 - 58: 37 Load 39(g_tTex2dmsu4) - 59: 24(ptr) AccessChain 22 23 - 60: 17(ivec2) Load 59 - 61: 24(ptr) AccessChain 22 48 - 62: 17(ivec2) Load 61 - 63: 43(ivec4) ImageFetch 58 60 Offset Sample 62 27 - 67: 64 Load 66(g_tTex2dmsf4a) - 70: 69(ptr) AccessChain 22 68 - 71: 18(ivec3) Load 70 - 72: 7(fvec4) ImageFetch 67 71 Sample 27 - 76: 73 Load 75(g_tTex2dmsi4a) - 77: 69(ptr) AccessChain 22 68 - 78: 18(ivec3) Load 77 - 79: 19(ivec4) ImageFetch 76 78 Sample 27 - 83: 80 Load 82(g_tTex2dmsu4a) - 84: 69(ptr) AccessChain 22 68 - 85: 18(ivec3) Load 84 - 86: 43(ivec4) ImageFetch 83 85 Sample 27 - 87: 64 Load 66(g_tTex2dmsf4a) - 88: 69(ptr) AccessChain 22 68 - 89: 18(ivec3) Load 88 - 90: 24(ptr) AccessChain 22 48 - 91: 17(ivec2) Load 90 - 92: 7(fvec4) ImageFetch 87 89 Offset Sample 91 27 - 93: 73 Load 75(g_tTex2dmsi4a) - 94: 69(ptr) AccessChain 22 68 - 95: 18(ivec3) Load 94 - 96: 24(ptr) AccessChain 22 48 - 97: 17(ivec2) Load 96 - 98: 19(ivec4) ImageFetch 93 95 Offset Sample 97 27 - 99: 80 Load 82(g_tTex2dmsu4a) - 100: 69(ptr) AccessChain 22 68 - 101: 18(ivec3) Load 100 - 102: 24(ptr) AccessChain 22 48 - 103: 17(ivec2) Load 102 - 104: 43(ivec4) ImageFetch 99 101 Offset Sample 103 27 - 111: 110(ptr) AccessChain 106(psout) 107 - Store 111 109 - 113: 112(ptr) AccessChain 106(psout) 23 - Store 113 108 - 114:8(PS_OUTPUT) Load 106(psout) - ReturnValue 114 + 9(getOffset(): 7(ivec2) Function None 8 + 10: Label + ReturnValue 18 + FunctionEnd + 15(@main():13(PS_OUTPUT) Function None 14 + 16: Label + 105(psout): 104(ptr) Variable Function + 24: 21 Load 23(g_tTex2dmsf4) + 31: 30(ptr) AccessChain 29 17 + 32: 7(ivec2) Load 31 + 34: 12(fvec4) ImageFetch 24 32 Sample 33 + 38: 35 Load 37(g_tTex2dmsi4) + 39: 30(ptr) AccessChain 29 17 + 40: 7(ivec2) Load 39 + 41: 26(ivec4) ImageFetch 38 40 Sample 33 + 46: 43 Load 45(g_tTex2dmsu4) + 47: 30(ptr) AccessChain 29 17 + 48: 7(ivec2) Load 47 + 50: 49(ivec4) ImageFetch 46 48 Sample 33 + 51: 21 Load 23(g_tTex2dmsf4) + 52: 30(ptr) AccessChain 29 17 + 53: 7(ivec2) Load 52 + 54: 7(ivec2) FunctionCall 9(getOffset() + 55: 12(fvec4) ImageFetch 51 53 Offset Sample 54 33 + 56: 35 Load 37(g_tTex2dmsi4) + 57: 30(ptr) AccessChain 29 17 + 58: 7(ivec2) Load 57 + 59: 7(ivec2) FunctionCall 9(getOffset() + 60: 26(ivec4) ImageFetch 56 58 Offset Sample 59 33 + 61: 43 Load 45(g_tTex2dmsu4) + 62: 30(ptr) AccessChain 29 17 + 63: 7(ivec2) Load 62 + 64: 7(ivec2) FunctionCall 9(getOffset() + 65: 49(ivec4) ImageFetch 61 63 Offset Sample 64 33 + 69: 66 Load 68(g_tTex2dmsf4a) + 72: 71(ptr) AccessChain 29 70 + 73: 25(ivec3) Load 72 + 74: 12(fvec4) ImageFetch 69 73 Sample 33 + 78: 75 Load 77(g_tTex2dmsi4a) + 79: 71(ptr) AccessChain 29 70 + 80: 25(ivec3) Load 79 + 81: 26(ivec4) ImageFetch 78 80 Sample 33 + 85: 82 Load 84(g_tTex2dmsu4a) + 86: 71(ptr) AccessChain 29 70 + 87: 25(ivec3) Load 86 + 88: 49(ivec4) ImageFetch 85 87 Sample 33 + 89: 66 Load 68(g_tTex2dmsf4a) + 90: 71(ptr) AccessChain 29 70 + 91: 25(ivec3) Load 90 + 92: 7(ivec2) FunctionCall 9(getOffset() + 93: 12(fvec4) ImageFetch 89 91 Offset Sample 92 33 + 94: 75 Load 77(g_tTex2dmsi4a) + 95: 71(ptr) AccessChain 29 70 + 96: 25(ivec3) Load 95 + 97: 7(ivec2) FunctionCall 9(getOffset() + 98: 26(ivec4) ImageFetch 94 96 Offset Sample 97 33 + 99: 82 Load 84(g_tTex2dmsu4a) + 100: 71(ptr) AccessChain 29 70 + 101: 25(ivec3) Load 100 + 102: 7(ivec2) FunctionCall 9(getOffset() + 103: 49(ivec4) ImageFetch 99 101 Offset Sample 102 33 + 110: 109(ptr) AccessChain 105(psout) 106 + Store 110 108 + 112: 111(ptr) AccessChain 105(psout) 17 + Store 112 107 + 113:13(PS_OUTPUT) Load 105(psout) + ReturnValue 113 FunctionEnd diff --git a/Test/baseResults/hlsl.load.offset.dx10.frag.out b/Test/baseResults/hlsl.load.offset.dx10.frag.out index 135b4afaa8..106af53912 100644 --- a/Test/baseResults/hlsl.load.offset.dx10.frag.out +++ b/Test/baseResults/hlsl.load.offset.dx10.frag.out @@ -3,254 +3,248 @@ Shader version: 500 gl_FragCoord origin is upper left using depth_any 0:? Sequence -0:48 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:43 Function Definition: getOffset1( ( temp int) +0:43 Function Parameters: +0:? Sequence +0:44 Branch: Return with expression +0:44 Constant: +0:44 1 (const int) +0:48 Function Definition: getOffset2( ( temp 2-component vector of int) 0:48 Function Parameters: 0:? Sequence -0:52 textureFetchOffset ( temp 4-component vector of float) -0:52 'g_tTex1df4' (layout( binding=0) uniform texture1D) -0:52 vector swizzle ( temp int) -0:52 c2: direct index for structure ( uniform 2-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 1 (const uint) -0:52 Sequence -0:52 Constant: -0:52 0 (const int) -0:52 direct index ( temp int) -0:52 c2: direct index for structure ( uniform 2-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 1 (const uint) -0:52 Constant: -0:52 1 (const int) -0:52 o1: direct index for structure ( uniform int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 4 (const uint) -0:53 textureFetchOffset ( temp 4-component vector of int) -0:53 'g_tTex1di4' ( uniform itexture1D) -0:53 vector swizzle ( temp int) -0:53 c2: direct index for structure ( uniform 2-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 1 (const uint) -0:53 Sequence -0:53 Constant: -0:53 0 (const int) -0:53 direct index ( temp int) -0:53 c2: direct index for structure ( uniform 2-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 1 (const uint) -0:53 Constant: -0:53 1 (const int) -0:53 o1: direct index for structure ( uniform int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 4 (const uint) -0:54 textureFetchOffset ( temp 4-component vector of uint) -0:54 'g_tTex1du4' ( uniform utexture1D) -0:54 vector swizzle ( temp int) -0:54 c2: direct index for structure ( uniform 2-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 1 (const uint) -0:54 Sequence -0:54 Constant: -0:54 0 (const int) -0:54 direct index ( temp int) -0:54 c2: direct index for structure ( uniform 2-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 1 (const uint) -0:54 Constant: -0:54 1 (const int) -0:54 o1: direct index for structure ( uniform int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 4 (const uint) -0:57 textureFetchOffset ( temp 4-component vector of float) -0:57 'g_tTex2df4' ( uniform texture2D) -0:57 vector swizzle ( temp 2-component vector of int) -0:57 c3: direct index for structure ( uniform 3-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 2 (const uint) -0:57 Sequence -0:57 Constant: -0:57 0 (const int) -0:57 Constant: -0:57 1 (const int) -0:57 direct index ( temp int) -0:57 c3: direct index for structure ( uniform 3-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 2 (const uint) -0:57 Constant: -0:57 2 (const int) -0:57 o2: direct index for structure ( uniform 2-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 5 (const uint) -0:58 textureFetchOffset ( temp 4-component vector of int) -0:58 'g_tTex2di4' ( uniform itexture2D) -0:58 vector swizzle ( temp 2-component vector of int) -0:58 c3: direct index for structure ( uniform 3-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 2 (const uint) -0:58 Sequence -0:58 Constant: -0:58 0 (const int) -0:58 Constant: -0:58 1 (const int) -0:58 direct index ( temp int) -0:58 c3: direct index for structure ( uniform 3-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 2 (const uint) -0:58 Constant: -0:58 2 (const int) -0:58 o2: direct index for structure ( uniform 2-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 5 (const uint) -0:59 textureFetchOffset ( temp 4-component vector of uint) -0:59 'g_tTex2du4' ( uniform utexture2D) -0:59 vector swizzle ( temp 2-component vector of int) -0:59 c3: direct index for structure ( uniform 3-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 2 (const uint) -0:59 Sequence -0:59 Constant: -0:59 0 (const int) -0:59 Constant: -0:59 1 (const int) -0:59 direct index ( temp int) -0:59 c3: direct index for structure ( uniform 3-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 2 (const uint) -0:59 Constant: -0:59 2 (const int) -0:59 o2: direct index for structure ( uniform 2-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 5 (const uint) +0:49 Branch: Return with expression +0:49 Constant: +0:49 1 (const int) +0:49 1 (const int) +0:53 Function Definition: getOffset3( ( temp 3-component vector of int) +0:53 Function Parameters: +0:? Sequence +0:54 Branch: Return with expression +0:54 Constant: +0:54 1 (const int) +0:54 1 (const int) +0:54 1 (const int) +0:58 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Function Parameters: +0:? Sequence 0:62 textureFetchOffset ( temp 4-component vector of float) -0:62 'g_tTex3df4' ( uniform texture3D) -0:62 vector swizzle ( temp 3-component vector of int) -0:62 c4: direct index for structure ( uniform 4-component vector of int) -0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:62 'g_tTex1df4' (layout( binding=0) uniform texture1D) +0:62 vector swizzle ( temp int) +0:62 c2: direct index for structure ( uniform 2-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:62 Constant: -0:62 3 (const uint) +0:62 1 (const uint) 0:62 Sequence 0:62 Constant: 0:62 0 (const int) -0:62 Constant: -0:62 1 (const int) -0:62 Constant: -0:62 2 (const int) 0:62 direct index ( temp int) -0:62 c4: direct index for structure ( uniform 4-component vector of int) -0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:62 c2: direct index for structure ( uniform 2-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:62 Constant: -0:62 3 (const uint) -0:62 Constant: -0:62 3 (const int) -0:62 o3: direct index for structure ( uniform 3-component vector of int) -0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:62 1 (const uint) 0:62 Constant: -0:62 6 (const uint) +0:62 1 (const int) +0:62 Function Call: getOffset1( ( temp int) 0:63 textureFetchOffset ( temp 4-component vector of int) -0:63 'g_tTex3di4' ( uniform itexture3D) -0:63 vector swizzle ( temp 3-component vector of int) -0:63 c4: direct index for structure ( uniform 4-component vector of int) -0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:63 'g_tTex1di4' ( uniform itexture1D) +0:63 vector swizzle ( temp int) +0:63 c2: direct index for structure ( uniform 2-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:63 Constant: -0:63 3 (const uint) +0:63 1 (const uint) 0:63 Sequence 0:63 Constant: 0:63 0 (const int) -0:63 Constant: -0:63 1 (const int) -0:63 Constant: -0:63 2 (const int) 0:63 direct index ( temp int) -0:63 c4: direct index for structure ( uniform 4-component vector of int) -0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:63 c2: direct index for structure ( uniform 2-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:63 Constant: -0:63 3 (const uint) -0:63 Constant: -0:63 3 (const int) -0:63 o3: direct index for structure ( uniform 3-component vector of int) -0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:63 1 (const uint) 0:63 Constant: -0:63 6 (const uint) +0:63 1 (const int) +0:63 Function Call: getOffset1( ( temp int) 0:64 textureFetchOffset ( temp 4-component vector of uint) -0:64 'g_tTex3du4' ( uniform utexture3D) -0:64 vector swizzle ( temp 3-component vector of int) -0:64 c4: direct index for structure ( uniform 4-component vector of int) -0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:64 'g_tTex1du4' ( uniform utexture1D) +0:64 vector swizzle ( temp int) +0:64 c2: direct index for structure ( uniform 2-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:64 Constant: -0:64 3 (const uint) +0:64 1 (const uint) 0:64 Sequence 0:64 Constant: 0:64 0 (const int) -0:64 Constant: -0:64 1 (const int) -0:64 Constant: -0:64 2 (const int) 0:64 direct index ( temp int) -0:64 c4: direct index for structure ( uniform 4-component vector of int) -0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:64 c2: direct index for structure ( uniform 2-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:64 Constant: -0:64 3 (const uint) -0:64 Constant: -0:64 3 (const int) -0:64 o3: direct index for structure ( uniform 3-component vector of int) -0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:64 1 (const uint) 0:64 Constant: -0:64 6 (const uint) -0:72 move second child to first child ( temp 4-component vector of float) -0:72 Color: direct index for structure ( temp 4-component vector of float) -0:72 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:64 1 (const int) +0:64 Function Call: getOffset1( ( temp int) +0:67 textureFetchOffset ( temp 4-component vector of float) +0:67 'g_tTex2df4' ( uniform texture2D) +0:67 vector swizzle ( temp 2-component vector of int) +0:67 c3: direct index for structure ( uniform 3-component vector of int) +0:67 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:67 Constant: +0:67 2 (const uint) +0:67 Sequence +0:67 Constant: +0:67 0 (const int) +0:67 Constant: +0:67 1 (const int) +0:67 direct index ( temp int) +0:67 c3: direct index for structure ( uniform 3-component vector of int) +0:67 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:67 Constant: +0:67 2 (const uint) +0:67 Constant: +0:67 2 (const int) +0:67 Function Call: getOffset2( ( temp 2-component vector of int) +0:68 textureFetchOffset ( temp 4-component vector of int) +0:68 'g_tTex2di4' ( uniform itexture2D) +0:68 vector swizzle ( temp 2-component vector of int) +0:68 c3: direct index for structure ( uniform 3-component vector of int) +0:68 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:68 Constant: +0:68 2 (const uint) +0:68 Sequence +0:68 Constant: +0:68 0 (const int) +0:68 Constant: +0:68 1 (const int) +0:68 direct index ( temp int) +0:68 c3: direct index for structure ( uniform 3-component vector of int) +0:68 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:68 Constant: +0:68 2 (const uint) +0:68 Constant: +0:68 2 (const int) +0:68 Function Call: getOffset2( ( temp 2-component vector of int) +0:69 textureFetchOffset ( temp 4-component vector of uint) +0:69 'g_tTex2du4' ( uniform utexture2D) +0:69 vector swizzle ( temp 2-component vector of int) +0:69 c3: direct index for structure ( uniform 3-component vector of int) +0:69 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:69 Constant: +0:69 2 (const uint) +0:69 Sequence +0:69 Constant: +0:69 0 (const int) +0:69 Constant: +0:69 1 (const int) +0:69 direct index ( temp int) +0:69 c3: direct index for structure ( uniform 3-component vector of int) +0:69 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:69 Constant: +0:69 2 (const uint) +0:69 Constant: +0:69 2 (const int) +0:69 Function Call: getOffset2( ( temp 2-component vector of int) +0:72 textureFetchOffset ( temp 4-component vector of float) +0:72 'g_tTex3df4' ( uniform texture3D) +0:72 vector swizzle ( temp 3-component vector of int) +0:72 c4: direct index for structure ( uniform 4-component vector of int) +0:72 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:72 Constant: +0:72 3 (const uint) +0:72 Sequence +0:72 Constant: +0:72 0 (const int) +0:72 Constant: +0:72 1 (const int) +0:72 Constant: +0:72 2 (const int) +0:72 direct index ( temp int) +0:72 c4: direct index for structure ( uniform 4-component vector of int) +0:72 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:72 Constant: +0:72 3 (const uint) 0:72 Constant: -0:72 0 (const int) -0:72 Constant: -0:72 1.000000 -0:72 1.000000 -0:72 1.000000 -0:72 1.000000 -0:73 move second child to first child ( temp float) -0:73 Depth: direct index for structure ( temp float) -0:73 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:72 3 (const int) +0:72 Function Call: getOffset3( ( temp 3-component vector of int) +0:73 textureFetchOffset ( temp 4-component vector of int) +0:73 'g_tTex3di4' ( uniform itexture3D) +0:73 vector swizzle ( temp 3-component vector of int) +0:73 c4: direct index for structure ( uniform 4-component vector of int) +0:73 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:73 Constant: +0:73 3 (const uint) +0:73 Sequence +0:73 Constant: +0:73 0 (const int) +0:73 Constant: +0:73 1 (const int) +0:73 Constant: +0:73 2 (const int) +0:73 direct index ( temp int) +0:73 c4: direct index for structure ( uniform 4-component vector of int) +0:73 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:73 Constant: +0:73 3 (const uint) 0:73 Constant: -0:73 1 (const int) -0:73 Constant: -0:73 1.000000 -0:75 Branch: Return with expression -0:75 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Definition: main( ( temp void) -0:48 Function Parameters: +0:73 3 (const int) +0:73 Function Call: getOffset3( ( temp 3-component vector of int) +0:74 textureFetchOffset ( temp 4-component vector of uint) +0:74 'g_tTex3du4' ( uniform utexture3D) +0:74 vector swizzle ( temp 3-component vector of int) +0:74 c4: direct index for structure ( uniform 4-component vector of int) +0:74 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:74 Constant: +0:74 3 (const uint) +0:74 Sequence +0:74 Constant: +0:74 0 (const int) +0:74 Constant: +0:74 1 (const int) +0:74 Constant: +0:74 2 (const int) +0:74 direct index ( temp int) +0:74 c4: direct index for structure ( uniform 4-component vector of int) +0:74 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:74 Constant: +0:74 3 (const uint) +0:74 Constant: +0:74 3 (const int) +0:74 Function Call: getOffset3( ( temp 3-component vector of int) +0:82 move second child to first child ( temp 4-component vector of float) +0:82 Color: direct index for structure ( temp 4-component vector of float) +0:82 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:82 Constant: +0:82 0 (const int) +0:82 Constant: +0:82 1.000000 +0:82 1.000000 +0:82 1.000000 +0:82 1.000000 +0:83 move second child to first child ( temp float) +0:83 Depth: direct index for structure ( temp float) +0:83 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:83 Constant: +0:83 1 (const int) +0:83 Constant: +0:83 1.000000 +0:85 Branch: Return with expression +0:85 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Function Definition: main( ( temp void) +0:58 Function Parameters: 0:? Sequence -0:48 Sequence -0:48 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 move second child to first child ( temp 4-component vector of float) +0:58 Sequence +0:58 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -0:48 Color: direct index for structure ( temp 4-component vector of float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 0 (const int) -0:48 move second child to first child ( temp float) +0:58 Color: direct index for structure ( temp 4-component vector of float) +0:58 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Constant: +0:58 0 (const int) +0:58 move second child to first child ( temp float) 0:? '@entryPointOutput.Depth' ( out float FragDepth) -0:48 Depth: direct index for structure ( temp float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 1 (const int) +0:58 Depth: direct index for structure ( temp float) +0:58 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Constant: +0:58 1 (const int) 0:? Linker Objects 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1D) @@ -274,7 +268,7 @@ using depth_any 0:? 'g_tTexcdf4a' ( uniform textureCubeArray) 0:? 'g_tTexcdi4a' ( uniform itextureCubeArray) 0:? 'g_tTexcdu4a' ( uniform utextureCubeArray) -0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:? '@entryPointOutput.Depth' ( out float FragDepth) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) @@ -286,254 +280,248 @@ Shader version: 500 gl_FragCoord origin is upper left using depth_any 0:? Sequence -0:48 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:43 Function Definition: getOffset1( ( temp int) +0:43 Function Parameters: +0:? Sequence +0:44 Branch: Return with expression +0:44 Constant: +0:44 1 (const int) +0:48 Function Definition: getOffset2( ( temp 2-component vector of int) 0:48 Function Parameters: 0:? Sequence -0:52 textureFetchOffset ( temp 4-component vector of float) -0:52 'g_tTex1df4' (layout( binding=0) uniform texture1D) -0:52 vector swizzle ( temp int) -0:52 c2: direct index for structure ( uniform 2-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 1 (const uint) -0:52 Sequence -0:52 Constant: -0:52 0 (const int) -0:52 direct index ( temp int) -0:52 c2: direct index for structure ( uniform 2-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 1 (const uint) -0:52 Constant: -0:52 1 (const int) -0:52 o1: direct index for structure ( uniform int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 4 (const uint) -0:53 textureFetchOffset ( temp 4-component vector of int) -0:53 'g_tTex1di4' ( uniform itexture1D) -0:53 vector swizzle ( temp int) -0:53 c2: direct index for structure ( uniform 2-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 1 (const uint) -0:53 Sequence -0:53 Constant: -0:53 0 (const int) -0:53 direct index ( temp int) -0:53 c2: direct index for structure ( uniform 2-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 1 (const uint) -0:53 Constant: -0:53 1 (const int) -0:53 o1: direct index for structure ( uniform int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 4 (const uint) -0:54 textureFetchOffset ( temp 4-component vector of uint) -0:54 'g_tTex1du4' ( uniform utexture1D) -0:54 vector swizzle ( temp int) -0:54 c2: direct index for structure ( uniform 2-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 1 (const uint) -0:54 Sequence -0:54 Constant: -0:54 0 (const int) -0:54 direct index ( temp int) -0:54 c2: direct index for structure ( uniform 2-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 1 (const uint) -0:54 Constant: -0:54 1 (const int) -0:54 o1: direct index for structure ( uniform int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 4 (const uint) -0:57 textureFetchOffset ( temp 4-component vector of float) -0:57 'g_tTex2df4' ( uniform texture2D) -0:57 vector swizzle ( temp 2-component vector of int) -0:57 c3: direct index for structure ( uniform 3-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 2 (const uint) -0:57 Sequence -0:57 Constant: -0:57 0 (const int) -0:57 Constant: -0:57 1 (const int) -0:57 direct index ( temp int) -0:57 c3: direct index for structure ( uniform 3-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 2 (const uint) -0:57 Constant: -0:57 2 (const int) -0:57 o2: direct index for structure ( uniform 2-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 5 (const uint) -0:58 textureFetchOffset ( temp 4-component vector of int) -0:58 'g_tTex2di4' ( uniform itexture2D) -0:58 vector swizzle ( temp 2-component vector of int) -0:58 c3: direct index for structure ( uniform 3-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 2 (const uint) -0:58 Sequence -0:58 Constant: -0:58 0 (const int) -0:58 Constant: -0:58 1 (const int) -0:58 direct index ( temp int) -0:58 c3: direct index for structure ( uniform 3-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 2 (const uint) -0:58 Constant: -0:58 2 (const int) -0:58 o2: direct index for structure ( uniform 2-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 5 (const uint) -0:59 textureFetchOffset ( temp 4-component vector of uint) -0:59 'g_tTex2du4' ( uniform utexture2D) -0:59 vector swizzle ( temp 2-component vector of int) -0:59 c3: direct index for structure ( uniform 3-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 2 (const uint) -0:59 Sequence -0:59 Constant: -0:59 0 (const int) -0:59 Constant: -0:59 1 (const int) -0:59 direct index ( temp int) -0:59 c3: direct index for structure ( uniform 3-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 2 (const uint) -0:59 Constant: -0:59 2 (const int) -0:59 o2: direct index for structure ( uniform 2-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 5 (const uint) +0:49 Branch: Return with expression +0:49 Constant: +0:49 1 (const int) +0:49 1 (const int) +0:53 Function Definition: getOffset3( ( temp 3-component vector of int) +0:53 Function Parameters: +0:? Sequence +0:54 Branch: Return with expression +0:54 Constant: +0:54 1 (const int) +0:54 1 (const int) +0:54 1 (const int) +0:58 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Function Parameters: +0:? Sequence 0:62 textureFetchOffset ( temp 4-component vector of float) -0:62 'g_tTex3df4' ( uniform texture3D) -0:62 vector swizzle ( temp 3-component vector of int) -0:62 c4: direct index for structure ( uniform 4-component vector of int) -0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:62 'g_tTex1df4' (layout( binding=0) uniform texture1D) +0:62 vector swizzle ( temp int) +0:62 c2: direct index for structure ( uniform 2-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:62 Constant: -0:62 3 (const uint) +0:62 1 (const uint) 0:62 Sequence 0:62 Constant: 0:62 0 (const int) -0:62 Constant: -0:62 1 (const int) -0:62 Constant: -0:62 2 (const int) 0:62 direct index ( temp int) -0:62 c4: direct index for structure ( uniform 4-component vector of int) -0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:62 c2: direct index for structure ( uniform 2-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:62 Constant: -0:62 3 (const uint) +0:62 1 (const uint) 0:62 Constant: -0:62 3 (const int) -0:62 o3: direct index for structure ( uniform 3-component vector of int) -0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:62 Constant: -0:62 6 (const uint) +0:62 1 (const int) +0:62 Function Call: getOffset1( ( temp int) 0:63 textureFetchOffset ( temp 4-component vector of int) -0:63 'g_tTex3di4' ( uniform itexture3D) -0:63 vector swizzle ( temp 3-component vector of int) -0:63 c4: direct index for structure ( uniform 4-component vector of int) -0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:63 'g_tTex1di4' ( uniform itexture1D) +0:63 vector swizzle ( temp int) +0:63 c2: direct index for structure ( uniform 2-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:63 Constant: -0:63 3 (const uint) +0:63 1 (const uint) 0:63 Sequence 0:63 Constant: 0:63 0 (const int) -0:63 Constant: -0:63 1 (const int) -0:63 Constant: -0:63 2 (const int) 0:63 direct index ( temp int) -0:63 c4: direct index for structure ( uniform 4-component vector of int) -0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:63 c2: direct index for structure ( uniform 2-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:63 Constant: -0:63 3 (const uint) +0:63 1 (const uint) 0:63 Constant: -0:63 3 (const int) -0:63 o3: direct index for structure ( uniform 3-component vector of int) -0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:63 Constant: -0:63 6 (const uint) +0:63 1 (const int) +0:63 Function Call: getOffset1( ( temp int) 0:64 textureFetchOffset ( temp 4-component vector of uint) -0:64 'g_tTex3du4' ( uniform utexture3D) -0:64 vector swizzle ( temp 3-component vector of int) -0:64 c4: direct index for structure ( uniform 4-component vector of int) -0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:64 'g_tTex1du4' ( uniform utexture1D) +0:64 vector swizzle ( temp int) +0:64 c2: direct index for structure ( uniform 2-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:64 Constant: -0:64 3 (const uint) +0:64 1 (const uint) 0:64 Sequence 0:64 Constant: 0:64 0 (const int) -0:64 Constant: -0:64 1 (const int) -0:64 Constant: -0:64 2 (const int) 0:64 direct index ( temp int) -0:64 c4: direct index for structure ( uniform 4-component vector of int) -0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:64 c2: direct index for structure ( uniform 2-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:64 Constant: -0:64 3 (const uint) +0:64 1 (const uint) 0:64 Constant: -0:64 3 (const int) -0:64 o3: direct index for structure ( uniform 3-component vector of int) -0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:64 Constant: -0:64 6 (const uint) -0:72 move second child to first child ( temp 4-component vector of float) -0:72 Color: direct index for structure ( temp 4-component vector of float) -0:72 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:64 1 (const int) +0:64 Function Call: getOffset1( ( temp int) +0:67 textureFetchOffset ( temp 4-component vector of float) +0:67 'g_tTex2df4' ( uniform texture2D) +0:67 vector swizzle ( temp 2-component vector of int) +0:67 c3: direct index for structure ( uniform 3-component vector of int) +0:67 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:67 Constant: +0:67 2 (const uint) +0:67 Sequence +0:67 Constant: +0:67 0 (const int) +0:67 Constant: +0:67 1 (const int) +0:67 direct index ( temp int) +0:67 c3: direct index for structure ( uniform 3-component vector of int) +0:67 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:67 Constant: +0:67 2 (const uint) +0:67 Constant: +0:67 2 (const int) +0:67 Function Call: getOffset2( ( temp 2-component vector of int) +0:68 textureFetchOffset ( temp 4-component vector of int) +0:68 'g_tTex2di4' ( uniform itexture2D) +0:68 vector swizzle ( temp 2-component vector of int) +0:68 c3: direct index for structure ( uniform 3-component vector of int) +0:68 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:68 Constant: +0:68 2 (const uint) +0:68 Sequence +0:68 Constant: +0:68 0 (const int) +0:68 Constant: +0:68 1 (const int) +0:68 direct index ( temp int) +0:68 c3: direct index for structure ( uniform 3-component vector of int) +0:68 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:68 Constant: +0:68 2 (const uint) +0:68 Constant: +0:68 2 (const int) +0:68 Function Call: getOffset2( ( temp 2-component vector of int) +0:69 textureFetchOffset ( temp 4-component vector of uint) +0:69 'g_tTex2du4' ( uniform utexture2D) +0:69 vector swizzle ( temp 2-component vector of int) +0:69 c3: direct index for structure ( uniform 3-component vector of int) +0:69 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:69 Constant: +0:69 2 (const uint) +0:69 Sequence +0:69 Constant: +0:69 0 (const int) +0:69 Constant: +0:69 1 (const int) +0:69 direct index ( temp int) +0:69 c3: direct index for structure ( uniform 3-component vector of int) +0:69 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:69 Constant: +0:69 2 (const uint) +0:69 Constant: +0:69 2 (const int) +0:69 Function Call: getOffset2( ( temp 2-component vector of int) +0:72 textureFetchOffset ( temp 4-component vector of float) +0:72 'g_tTex3df4' ( uniform texture3D) +0:72 vector swizzle ( temp 3-component vector of int) +0:72 c4: direct index for structure ( uniform 4-component vector of int) +0:72 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:72 Constant: +0:72 3 (const uint) +0:72 Sequence +0:72 Constant: +0:72 0 (const int) +0:72 Constant: +0:72 1 (const int) +0:72 Constant: +0:72 2 (const int) +0:72 direct index ( temp int) +0:72 c4: direct index for structure ( uniform 4-component vector of int) +0:72 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:72 Constant: +0:72 3 (const uint) 0:72 Constant: -0:72 0 (const int) -0:72 Constant: -0:72 1.000000 -0:72 1.000000 -0:72 1.000000 -0:72 1.000000 -0:73 move second child to first child ( temp float) -0:73 Depth: direct index for structure ( temp float) -0:73 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:72 3 (const int) +0:72 Function Call: getOffset3( ( temp 3-component vector of int) +0:73 textureFetchOffset ( temp 4-component vector of int) +0:73 'g_tTex3di4' ( uniform itexture3D) +0:73 vector swizzle ( temp 3-component vector of int) +0:73 c4: direct index for structure ( uniform 4-component vector of int) +0:73 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:73 Constant: +0:73 3 (const uint) +0:73 Sequence +0:73 Constant: +0:73 0 (const int) +0:73 Constant: +0:73 1 (const int) +0:73 Constant: +0:73 2 (const int) +0:73 direct index ( temp int) +0:73 c4: direct index for structure ( uniform 4-component vector of int) +0:73 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:73 Constant: +0:73 3 (const uint) 0:73 Constant: -0:73 1 (const int) -0:73 Constant: -0:73 1.000000 -0:75 Branch: Return with expression -0:75 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Definition: main( ( temp void) -0:48 Function Parameters: +0:73 3 (const int) +0:73 Function Call: getOffset3( ( temp 3-component vector of int) +0:74 textureFetchOffset ( temp 4-component vector of uint) +0:74 'g_tTex3du4' ( uniform utexture3D) +0:74 vector swizzle ( temp 3-component vector of int) +0:74 c4: direct index for structure ( uniform 4-component vector of int) +0:74 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:74 Constant: +0:74 3 (const uint) +0:74 Sequence +0:74 Constant: +0:74 0 (const int) +0:74 Constant: +0:74 1 (const int) +0:74 Constant: +0:74 2 (const int) +0:74 direct index ( temp int) +0:74 c4: direct index for structure ( uniform 4-component vector of int) +0:74 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:74 Constant: +0:74 3 (const uint) +0:74 Constant: +0:74 3 (const int) +0:74 Function Call: getOffset3( ( temp 3-component vector of int) +0:82 move second child to first child ( temp 4-component vector of float) +0:82 Color: direct index for structure ( temp 4-component vector of float) +0:82 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:82 Constant: +0:82 0 (const int) +0:82 Constant: +0:82 1.000000 +0:82 1.000000 +0:82 1.000000 +0:82 1.000000 +0:83 move second child to first child ( temp float) +0:83 Depth: direct index for structure ( temp float) +0:83 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:83 Constant: +0:83 1 (const int) +0:83 Constant: +0:83 1.000000 +0:85 Branch: Return with expression +0:85 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Function Definition: main( ( temp void) +0:58 Function Parameters: 0:? Sequence -0:48 Sequence -0:48 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 move second child to first child ( temp 4-component vector of float) +0:58 Sequence +0:58 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -0:48 Color: direct index for structure ( temp 4-component vector of float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 0 (const int) -0:48 move second child to first child ( temp float) +0:58 Color: direct index for structure ( temp 4-component vector of float) +0:58 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Constant: +0:58 0 (const int) +0:58 move second child to first child ( temp float) 0:? '@entryPointOutput.Depth' ( out float FragDepth) -0:48 Depth: direct index for structure ( temp float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 1 (const int) +0:58 Depth: direct index for structure ( temp float) +0:58 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:58 Constant: +0:58 1 (const int) 0:? Linker Objects 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1D) @@ -557,14 +545,13 @@ using depth_any 0:? 'g_tTexcdf4a' ( uniform textureCubeArray) 0:? 'g_tTexcdi4a' ( uniform itextureCubeArray) 0:? 'g_tTexcdu4a' ( uniform utextureCubeArray) -0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:? '@entryPointOutput.Depth' ( out float FragDepth) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -Validation failed // Module Version 10000 // Generated by (magic number): 8000a -// Id's are bound by 201 +// Id's are bound by 205 Capability Shader Capability ImageGatherExtended @@ -572,311 +559,310 @@ Validation failed Capability SampledCubeArray 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Fragment 4 "main" 155 159 + EntryPoint Fragment 4 "main" 159 163 ExecutionMode 4 OriginUpperLeft ExecutionMode 4 DepthReplacing Source HLSL 500 Name 4 "main" - Name 8 "PS_OUTPUT" - MemberName 8(PS_OUTPUT) 0 "Color" - MemberName 8(PS_OUTPUT) 1 "Depth" - Name 10 "@main(" - Name 14 "g_tTex1df4" - Name 20 "$Global" - MemberName 20($Global) 0 "c1" - MemberName 20($Global) 1 "c2" - MemberName 20($Global) 2 "c3" - MemberName 20($Global) 3 "c4" - MemberName 20($Global) 4 "o1" - MemberName 20($Global) 5 "o2" - MemberName 20($Global) 6 "o3" - MemberName 20($Global) 7 "o4" - Name 22 "" - Name 38 "g_tTex1di4" - Name 49 "g_tTex1du4" - Name 61 "g_tTex2df4" - Name 78 "g_tTex2di4" - Name 90 "g_tTex2du4" - Name 102 "g_tTex3df4" - Name 118 "g_tTex3di4" - Name 130 "g_tTex3du4" - Name 141 "psout" - Name 152 "flattenTemp" - Name 155 "@entryPointOutput.Color" - Name 159 "@entryPointOutput.Depth" - Name 164 "g_sSamp" - Name 167 "g_tTexcdf4" - Name 170 "g_tTexcdi4" - Name 173 "g_tTexcdu4" - Name 176 "g_tTex1df4a" - Name 179 "g_tTex1di4a" - Name 182 "g_tTex1du4a" - Name 185 "g_tTex2df4a" - Name 188 "g_tTex2di4a" - Name 191 "g_tTex2du4a" - Name 194 "g_tTexcdf4a" - Name 197 "g_tTexcdi4a" - Name 200 "g_tTexcdu4a" - Decorate 14(g_tTex1df4) DescriptorSet 0 - Decorate 14(g_tTex1df4) Binding 0 - MemberDecorate 20($Global) 0 Offset 0 - MemberDecorate 20($Global) 1 Offset 8 - MemberDecorate 20($Global) 2 Offset 16 - MemberDecorate 20($Global) 3 Offset 32 - MemberDecorate 20($Global) 4 Offset 48 - MemberDecorate 20($Global) 5 Offset 56 - MemberDecorate 20($Global) 6 Offset 64 - MemberDecorate 20($Global) 7 Offset 80 - Decorate 20($Global) Block - Decorate 22 DescriptorSet 0 - Decorate 22 Binding 9 - Decorate 38(g_tTex1di4) DescriptorSet 0 - Decorate 38(g_tTex1di4) Binding 1 - Decorate 49(g_tTex1du4) DescriptorSet 0 - Decorate 49(g_tTex1du4) Binding 2 - Decorate 61(g_tTex2df4) DescriptorSet 0 - Decorate 61(g_tTex2df4) Binding 3 - Decorate 78(g_tTex2di4) DescriptorSet 0 - Decorate 78(g_tTex2di4) Binding 4 - Decorate 90(g_tTex2du4) DescriptorSet 0 - Decorate 90(g_tTex2du4) Binding 5 - Decorate 102(g_tTex3df4) DescriptorSet 0 - Decorate 102(g_tTex3df4) Binding 6 - Decorate 118(g_tTex3di4) DescriptorSet 0 - Decorate 118(g_tTex3di4) Binding 7 - Decorate 130(g_tTex3du4) DescriptorSet 0 - Decorate 130(g_tTex3du4) Binding 8 - Decorate 155(@entryPointOutput.Color) Location 0 - Decorate 159(@entryPointOutput.Depth) BuiltIn FragDepth - Decorate 164(g_sSamp) DescriptorSet 0 - Decorate 164(g_sSamp) Binding 0 - Decorate 167(g_tTexcdf4) DescriptorSet 0 - Decorate 167(g_tTexcdf4) Binding 0 - Decorate 170(g_tTexcdi4) DescriptorSet 0 - Decorate 170(g_tTexcdi4) Binding 0 - Decorate 173(g_tTexcdu4) DescriptorSet 0 - Decorate 173(g_tTexcdu4) Binding 0 - Decorate 176(g_tTex1df4a) DescriptorSet 0 - Decorate 176(g_tTex1df4a) Binding 0 - Decorate 179(g_tTex1di4a) DescriptorSet 0 - Decorate 179(g_tTex1di4a) Binding 0 - Decorate 182(g_tTex1du4a) DescriptorSet 0 - Decorate 182(g_tTex1du4a) Binding 0 - Decorate 185(g_tTex2df4a) DescriptorSet 0 - Decorate 185(g_tTex2df4a) Binding 0 - Decorate 188(g_tTex2di4a) DescriptorSet 0 - Decorate 188(g_tTex2di4a) Binding 0 - Decorate 191(g_tTex2du4a) DescriptorSet 0 - Decorate 191(g_tTex2du4a) Binding 0 - Decorate 194(g_tTexcdf4a) DescriptorSet 0 - Decorate 194(g_tTexcdf4a) Binding 0 - Decorate 197(g_tTexcdi4a) DescriptorSet 0 - Decorate 197(g_tTexcdi4a) Binding 0 - Decorate 200(g_tTexcdu4a) DescriptorSet 0 - Decorate 200(g_tTexcdu4a) Binding 0 + Name 8 "getOffset1(" + Name 12 "getOffset2(" + Name 16 "getOffset3(" + Name 20 "PS_OUTPUT" + MemberName 20(PS_OUTPUT) 0 "Color" + MemberName 20(PS_OUTPUT) 1 "Depth" + Name 22 "@main(" + Name 35 "g_tTex1df4" + Name 38 "$Global" + MemberName 38($Global) 0 "c1" + MemberName 38($Global) 1 "c2" + MemberName 38($Global) 2 "c3" + MemberName 38($Global) 3 "c4" + Name 40 "" + Name 53 "g_tTex1di4" + Name 63 "g_tTex1du4" + Name 74 "g_tTex2df4" + Name 88 "g_tTex2di4" + Name 99 "g_tTex2du4" + Name 110 "g_tTex3df4" + Name 124 "g_tTex3di4" + Name 135 "g_tTex3du4" + Name 145 "psout" + Name 156 "flattenTemp" + Name 159 "@entryPointOutput.Color" + Name 163 "@entryPointOutput.Depth" + Name 168 "g_sSamp" + Name 171 "g_tTexcdf4" + Name 174 "g_tTexcdi4" + Name 177 "g_tTexcdu4" + Name 180 "g_tTex1df4a" + Name 183 "g_tTex1di4a" + Name 186 "g_tTex1du4a" + Name 189 "g_tTex2df4a" + Name 192 "g_tTex2di4a" + Name 195 "g_tTex2du4a" + Name 198 "g_tTexcdf4a" + Name 201 "g_tTexcdi4a" + Name 204 "g_tTexcdu4a" + Decorate 35(g_tTex1df4) DescriptorSet 0 + Decorate 35(g_tTex1df4) Binding 0 + MemberDecorate 38($Global) 0 Offset 0 + MemberDecorate 38($Global) 1 Offset 8 + MemberDecorate 38($Global) 2 Offset 16 + MemberDecorate 38($Global) 3 Offset 32 + Decorate 38($Global) Block + Decorate 40 DescriptorSet 0 + Decorate 40 Binding 9 + Decorate 53(g_tTex1di4) DescriptorSet 0 + Decorate 53(g_tTex1di4) Binding 1 + Decorate 63(g_tTex1du4) DescriptorSet 0 + Decorate 63(g_tTex1du4) Binding 2 + Decorate 74(g_tTex2df4) DescriptorSet 0 + Decorate 74(g_tTex2df4) Binding 3 + Decorate 88(g_tTex2di4) DescriptorSet 0 + Decorate 88(g_tTex2di4) Binding 4 + Decorate 99(g_tTex2du4) DescriptorSet 0 + Decorate 99(g_tTex2du4) Binding 5 + Decorate 110(g_tTex3df4) DescriptorSet 0 + Decorate 110(g_tTex3df4) Binding 6 + Decorate 124(g_tTex3di4) DescriptorSet 0 + Decorate 124(g_tTex3di4) Binding 7 + Decorate 135(g_tTex3du4) DescriptorSet 0 + Decorate 135(g_tTex3du4) Binding 8 + Decorate 159(@entryPointOutput.Color) Location 0 + Decorate 163(@entryPointOutput.Depth) BuiltIn FragDepth + Decorate 168(g_sSamp) DescriptorSet 0 + Decorate 168(g_sSamp) Binding 0 + Decorate 171(g_tTexcdf4) DescriptorSet 0 + Decorate 171(g_tTexcdf4) Binding 0 + Decorate 174(g_tTexcdi4) DescriptorSet 0 + Decorate 174(g_tTexcdi4) Binding 0 + Decorate 177(g_tTexcdu4) DescriptorSet 0 + Decorate 177(g_tTexcdu4) Binding 0 + Decorate 180(g_tTex1df4a) DescriptorSet 0 + Decorate 180(g_tTex1df4a) Binding 0 + Decorate 183(g_tTex1di4a) DescriptorSet 0 + Decorate 183(g_tTex1di4a) Binding 0 + Decorate 186(g_tTex1du4a) DescriptorSet 0 + Decorate 186(g_tTex1du4a) Binding 0 + Decorate 189(g_tTex2df4a) DescriptorSet 0 + Decorate 189(g_tTex2df4a) Binding 0 + Decorate 192(g_tTex2di4a) DescriptorSet 0 + Decorate 192(g_tTex2di4a) Binding 0 + Decorate 195(g_tTex2du4a) DescriptorSet 0 + Decorate 195(g_tTex2du4a) Binding 0 + Decorate 198(g_tTexcdf4a) DescriptorSet 0 + Decorate 198(g_tTexcdf4a) Binding 0 + Decorate 201(g_tTexcdi4a) DescriptorSet 0 + Decorate 201(g_tTexcdi4a) Binding 0 + Decorate 204(g_tTexcdu4a) DescriptorSet 0 + Decorate 204(g_tTexcdu4a) Binding 0 2: TypeVoid 3: TypeFunction 2 - 6: TypeFloat 32 - 7: TypeVector 6(float) 4 - 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float) - 9: TypeFunction 8(PS_OUTPUT) - 12: TypeImage 6(float) 1D sampled format:Unknown - 13: TypePointer UniformConstant 12 - 14(g_tTex1df4): 13(ptr) Variable UniformConstant - 16: TypeInt 32 1 - 17: TypeVector 16(int) 2 - 18: TypeVector 16(int) 3 - 19: TypeVector 16(int) 4 - 20($Global): TypeStruct 16(int) 17(ivec2) 18(ivec3) 19(ivec4) 16(int) 17(ivec2) 18(ivec3) 19(ivec4) - 21: TypePointer Uniform 20($Global) - 22: 21(ptr) Variable Uniform - 23: 16(int) Constant 1 - 24: TypeInt 32 0 - 25: 24(int) Constant 0 - 26: TypePointer Uniform 16(int) - 29: 24(int) Constant 1 - 32: 16(int) Constant 4 - 36: TypeImage 16(int) 1D sampled format:Unknown - 37: TypePointer UniformConstant 36 - 38(g_tTex1di4): 37(ptr) Variable UniformConstant - 47: TypeImage 24(int) 1D sampled format:Unknown - 48: TypePointer UniformConstant 47 - 49(g_tTex1du4): 48(ptr) Variable UniformConstant - 57: TypeVector 24(int) 4 - 59: TypeImage 6(float) 2D sampled format:Unknown - 60: TypePointer UniformConstant 59 - 61(g_tTex2df4): 60(ptr) Variable UniformConstant - 63: 16(int) Constant 2 - 64: TypePointer Uniform 18(ivec3) - 68: 24(int) Constant 2 - 71: 16(int) Constant 5 - 72: TypePointer Uniform 17(ivec2) - 76: TypeImage 16(int) 2D sampled format:Unknown - 77: TypePointer UniformConstant 76 - 78(g_tTex2di4): 77(ptr) Variable UniformConstant - 88: TypeImage 24(int) 2D sampled format:Unknown - 89: TypePointer UniformConstant 88 - 90(g_tTex2du4): 89(ptr) Variable UniformConstant - 100: TypeImage 6(float) 3D sampled format:Unknown - 101: TypePointer UniformConstant 100 - 102(g_tTex3df4): 101(ptr) Variable UniformConstant - 104: 16(int) Constant 3 - 105: TypePointer Uniform 19(ivec4) - 109: 24(int) Constant 3 - 112: 16(int) Constant 6 - 116: TypeImage 16(int) 3D sampled format:Unknown - 117: TypePointer UniformConstant 116 - 118(g_tTex3di4): 117(ptr) Variable UniformConstant - 128: TypeImage 24(int) 3D sampled format:Unknown - 129: TypePointer UniformConstant 128 - 130(g_tTex3du4): 129(ptr) Variable UniformConstant - 140: TypePointer Function 8(PS_OUTPUT) - 142: 16(int) Constant 0 - 143: 6(float) Constant 1065353216 - 144: 7(fvec4) ConstantComposite 143 143 143 143 - 145: TypePointer Function 7(fvec4) - 147: TypePointer Function 6(float) - 154: TypePointer Output 7(fvec4) -155(@entryPointOutput.Color): 154(ptr) Variable Output - 158: TypePointer Output 6(float) -159(@entryPointOutput.Depth): 158(ptr) Variable Output - 162: TypeSampler - 163: TypePointer UniformConstant 162 - 164(g_sSamp): 163(ptr) Variable UniformConstant - 165: TypeImage 6(float) Cube sampled format:Unknown - 166: TypePointer UniformConstant 165 - 167(g_tTexcdf4): 166(ptr) Variable UniformConstant - 168: TypeImage 16(int) Cube sampled format:Unknown - 169: TypePointer UniformConstant 168 - 170(g_tTexcdi4): 169(ptr) Variable UniformConstant - 171: TypeImage 24(int) Cube sampled format:Unknown - 172: TypePointer UniformConstant 171 - 173(g_tTexcdu4): 172(ptr) Variable UniformConstant - 174: TypeImage 6(float) 1D array sampled format:Unknown - 175: TypePointer UniformConstant 174 -176(g_tTex1df4a): 175(ptr) Variable UniformConstant - 177: TypeImage 16(int) 1D array sampled format:Unknown - 178: TypePointer UniformConstant 177 -179(g_tTex1di4a): 178(ptr) Variable UniformConstant - 180: TypeImage 24(int) 1D array sampled format:Unknown - 181: TypePointer UniformConstant 180 -182(g_tTex1du4a): 181(ptr) Variable UniformConstant - 183: TypeImage 6(float) 2D array sampled format:Unknown - 184: TypePointer UniformConstant 183 -185(g_tTex2df4a): 184(ptr) Variable UniformConstant - 186: TypeImage 16(int) 2D array sampled format:Unknown - 187: TypePointer UniformConstant 186 -188(g_tTex2di4a): 187(ptr) Variable UniformConstant - 189: TypeImage 24(int) 2D array sampled format:Unknown - 190: TypePointer UniformConstant 189 -191(g_tTex2du4a): 190(ptr) Variable UniformConstant - 192: TypeImage 6(float) Cube array sampled format:Unknown - 193: TypePointer UniformConstant 192 -194(g_tTexcdf4a): 193(ptr) Variable UniformConstant - 195: TypeImage 16(int) Cube array sampled format:Unknown - 196: TypePointer UniformConstant 195 -197(g_tTexcdi4a): 196(ptr) Variable UniformConstant - 198: TypeImage 24(int) Cube array sampled format:Unknown - 199: TypePointer UniformConstant 198 -200(g_tTexcdu4a): 199(ptr) Variable UniformConstant + 6: TypeInt 32 1 + 7: TypeFunction 6(int) + 10: TypeVector 6(int) 2 + 11: TypeFunction 10(ivec2) + 14: TypeVector 6(int) 3 + 15: TypeFunction 14(ivec3) + 18: TypeFloat 32 + 19: TypeVector 18(float) 4 + 20(PS_OUTPUT): TypeStruct 19(fvec4) 18(float) + 21: TypeFunction 20(PS_OUTPUT) + 24: 6(int) Constant 1 + 27: 10(ivec2) ConstantComposite 24 24 + 30: 14(ivec3) ConstantComposite 24 24 24 + 33: TypeImage 18(float) 1D sampled format:Unknown + 34: TypePointer UniformConstant 33 + 35(g_tTex1df4): 34(ptr) Variable UniformConstant + 37: TypeVector 6(int) 4 + 38($Global): TypeStruct 6(int) 10(ivec2) 14(ivec3) 37(ivec4) + 39: TypePointer Uniform 38($Global) + 40: 39(ptr) Variable Uniform + 41: TypeInt 32 0 + 42: 41(int) Constant 0 + 43: TypePointer Uniform 6(int) + 46: 41(int) Constant 1 + 51: TypeImage 6(int) 1D sampled format:Unknown + 52: TypePointer UniformConstant 51 + 53(g_tTex1di4): 52(ptr) Variable UniformConstant + 61: TypeImage 41(int) 1D sampled format:Unknown + 62: TypePointer UniformConstant 61 + 63(g_tTex1du4): 62(ptr) Variable UniformConstant + 70: TypeVector 41(int) 4 + 72: TypeImage 18(float) 2D sampled format:Unknown + 73: TypePointer UniformConstant 72 + 74(g_tTex2df4): 73(ptr) Variable UniformConstant + 76: 6(int) Constant 2 + 77: TypePointer Uniform 14(ivec3) + 81: 41(int) Constant 2 + 86: TypeImage 6(int) 2D sampled format:Unknown + 87: TypePointer UniformConstant 86 + 88(g_tTex2di4): 87(ptr) Variable UniformConstant + 97: TypeImage 41(int) 2D sampled format:Unknown + 98: TypePointer UniformConstant 97 + 99(g_tTex2du4): 98(ptr) Variable UniformConstant + 108: TypeImage 18(float) 3D sampled format:Unknown + 109: TypePointer UniformConstant 108 + 110(g_tTex3df4): 109(ptr) Variable UniformConstant + 112: 6(int) Constant 3 + 113: TypePointer Uniform 37(ivec4) + 117: 41(int) Constant 3 + 122: TypeImage 6(int) 3D sampled format:Unknown + 123: TypePointer UniformConstant 122 + 124(g_tTex3di4): 123(ptr) Variable UniformConstant + 133: TypeImage 41(int) 3D sampled format:Unknown + 134: TypePointer UniformConstant 133 + 135(g_tTex3du4): 134(ptr) Variable UniformConstant + 144: TypePointer Function 20(PS_OUTPUT) + 146: 6(int) Constant 0 + 147: 18(float) Constant 1065353216 + 148: 19(fvec4) ConstantComposite 147 147 147 147 + 149: TypePointer Function 19(fvec4) + 151: TypePointer Function 18(float) + 158: TypePointer Output 19(fvec4) +159(@entryPointOutput.Color): 158(ptr) Variable Output + 162: TypePointer Output 18(float) +163(@entryPointOutput.Depth): 162(ptr) Variable Output + 166: TypeSampler + 167: TypePointer UniformConstant 166 + 168(g_sSamp): 167(ptr) Variable UniformConstant + 169: TypeImage 18(float) Cube sampled format:Unknown + 170: TypePointer UniformConstant 169 + 171(g_tTexcdf4): 170(ptr) Variable UniformConstant + 172: TypeImage 6(int) Cube sampled format:Unknown + 173: TypePointer UniformConstant 172 + 174(g_tTexcdi4): 173(ptr) Variable UniformConstant + 175: TypeImage 41(int) Cube sampled format:Unknown + 176: TypePointer UniformConstant 175 + 177(g_tTexcdu4): 176(ptr) Variable UniformConstant + 178: TypeImage 18(float) 1D array sampled format:Unknown + 179: TypePointer UniformConstant 178 +180(g_tTex1df4a): 179(ptr) Variable UniformConstant + 181: TypeImage 6(int) 1D array sampled format:Unknown + 182: TypePointer UniformConstant 181 +183(g_tTex1di4a): 182(ptr) Variable UniformConstant + 184: TypeImage 41(int) 1D array sampled format:Unknown + 185: TypePointer UniformConstant 184 +186(g_tTex1du4a): 185(ptr) Variable UniformConstant + 187: TypeImage 18(float) 2D array sampled format:Unknown + 188: TypePointer UniformConstant 187 +189(g_tTex2df4a): 188(ptr) Variable UniformConstant + 190: TypeImage 6(int) 2D array sampled format:Unknown + 191: TypePointer UniformConstant 190 +192(g_tTex2di4a): 191(ptr) Variable UniformConstant + 193: TypeImage 41(int) 2D array sampled format:Unknown + 194: TypePointer UniformConstant 193 +195(g_tTex2du4a): 194(ptr) Variable UniformConstant + 196: TypeImage 18(float) Cube array sampled format:Unknown + 197: TypePointer UniformConstant 196 +198(g_tTexcdf4a): 197(ptr) Variable UniformConstant + 199: TypeImage 6(int) Cube array sampled format:Unknown + 200: TypePointer UniformConstant 199 +201(g_tTexcdi4a): 200(ptr) Variable UniformConstant + 202: TypeImage 41(int) Cube array sampled format:Unknown + 203: TypePointer UniformConstant 202 +204(g_tTexcdu4a): 203(ptr) Variable UniformConstant 4(main): 2 Function None 3 5: Label -152(flattenTemp): 140(ptr) Variable Function - 153:8(PS_OUTPUT) FunctionCall 10(@main() - Store 152(flattenTemp) 153 - 156: 145(ptr) AccessChain 152(flattenTemp) 142 - 157: 7(fvec4) Load 156 - Store 155(@entryPointOutput.Color) 157 - 160: 147(ptr) AccessChain 152(flattenTemp) 23 - 161: 6(float) Load 160 - Store 159(@entryPointOutput.Depth) 161 +156(flattenTemp): 144(ptr) Variable Function + 157:20(PS_OUTPUT) FunctionCall 22(@main() + Store 156(flattenTemp) 157 + 160: 149(ptr) AccessChain 156(flattenTemp) 146 + 161: 19(fvec4) Load 160 + Store 159(@entryPointOutput.Color) 161 + 164: 151(ptr) AccessChain 156(flattenTemp) 24 + 165: 18(float) Load 164 + Store 163(@entryPointOutput.Depth) 165 Return FunctionEnd - 10(@main():8(PS_OUTPUT) Function None 9 - 11: Label - 141(psout): 140(ptr) Variable Function - 15: 12 Load 14(g_tTex1df4) - 27: 26(ptr) AccessChain 22 23 25 - 28: 16(int) Load 27 - 30: 26(ptr) AccessChain 22 23 29 - 31: 16(int) Load 30 - 33: 26(ptr) AccessChain 22 32 - 34: 16(int) Load 33 - 35: 7(fvec4) ImageFetch 15 28 Lod Offset 31 34 - 39: 36 Load 38(g_tTex1di4) - 40: 26(ptr) AccessChain 22 23 25 - 41: 16(int) Load 40 - 42: 26(ptr) AccessChain 22 23 29 - 43: 16(int) Load 42 - 44: 26(ptr) AccessChain 22 32 - 45: 16(int) Load 44 - 46: 19(ivec4) ImageFetch 39 41 Lod Offset 43 45 - 50: 47 Load 49(g_tTex1du4) - 51: 26(ptr) AccessChain 22 23 25 - 52: 16(int) Load 51 - 53: 26(ptr) AccessChain 22 23 29 - 54: 16(int) Load 53 - 55: 26(ptr) AccessChain 22 32 - 56: 16(int) Load 55 - 58: 57(ivec4) ImageFetch 50 52 Lod Offset 54 56 - 62: 59 Load 61(g_tTex2df4) - 65: 64(ptr) AccessChain 22 63 - 66: 18(ivec3) Load 65 - 67: 17(ivec2) VectorShuffle 66 66 0 1 - 69: 26(ptr) AccessChain 22 63 68 - 70: 16(int) Load 69 - 73: 72(ptr) AccessChain 22 71 - 74: 17(ivec2) Load 73 - 75: 7(fvec4) ImageFetch 62 67 Lod Offset 70 74 - 79: 76 Load 78(g_tTex2di4) - 80: 64(ptr) AccessChain 22 63 - 81: 18(ivec3) Load 80 - 82: 17(ivec2) VectorShuffle 81 81 0 1 - 83: 26(ptr) AccessChain 22 63 68 - 84: 16(int) Load 83 - 85: 72(ptr) AccessChain 22 71 - 86: 17(ivec2) Load 85 - 87: 19(ivec4) ImageFetch 79 82 Lod Offset 84 86 - 91: 88 Load 90(g_tTex2du4) - 92: 64(ptr) AccessChain 22 63 - 93: 18(ivec3) Load 92 - 94: 17(ivec2) VectorShuffle 93 93 0 1 - 95: 26(ptr) AccessChain 22 63 68 - 96: 16(int) Load 95 - 97: 72(ptr) AccessChain 22 71 - 98: 17(ivec2) Load 97 - 99: 57(ivec4) ImageFetch 91 94 Lod Offset 96 98 - 103: 100 Load 102(g_tTex3df4) - 106: 105(ptr) AccessChain 22 104 - 107: 19(ivec4) Load 106 - 108: 18(ivec3) VectorShuffle 107 107 0 1 2 - 110: 26(ptr) AccessChain 22 104 109 - 111: 16(int) Load 110 - 113: 64(ptr) AccessChain 22 112 - 114: 18(ivec3) Load 113 - 115: 7(fvec4) ImageFetch 103 108 Lod Offset 111 114 - 119: 116 Load 118(g_tTex3di4) - 120: 105(ptr) AccessChain 22 104 - 121: 19(ivec4) Load 120 - 122: 18(ivec3) VectorShuffle 121 121 0 1 2 - 123: 26(ptr) AccessChain 22 104 109 - 124: 16(int) Load 123 - 125: 64(ptr) AccessChain 22 112 - 126: 18(ivec3) Load 125 - 127: 19(ivec4) ImageFetch 119 122 Lod Offset 124 126 - 131: 128 Load 130(g_tTex3du4) - 132: 105(ptr) AccessChain 22 104 - 133: 19(ivec4) Load 132 - 134: 18(ivec3) VectorShuffle 133 133 0 1 2 - 135: 26(ptr) AccessChain 22 104 109 - 136: 16(int) Load 135 - 137: 64(ptr) AccessChain 22 112 - 138: 18(ivec3) Load 137 - 139: 57(ivec4) ImageFetch 131 134 Lod Offset 136 138 - 146: 145(ptr) AccessChain 141(psout) 142 - Store 146 144 - 148: 147(ptr) AccessChain 141(psout) 23 - Store 148 143 - 149:8(PS_OUTPUT) Load 141(psout) - ReturnValue 149 + 8(getOffset1(): 6(int) Function None 7 + 9: Label + ReturnValue 24 + FunctionEnd + 12(getOffset2(): 10(ivec2) Function None 11 + 13: Label + ReturnValue 27 + FunctionEnd + 16(getOffset3(): 14(ivec3) Function None 15 + 17: Label + ReturnValue 30 + FunctionEnd + 22(@main():20(PS_OUTPUT) Function None 21 + 23: Label + 145(psout): 144(ptr) Variable Function + 36: 33 Load 35(g_tTex1df4) + 44: 43(ptr) AccessChain 40 24 42 + 45: 6(int) Load 44 + 47: 43(ptr) AccessChain 40 24 46 + 48: 6(int) Load 47 + 49: 6(int) FunctionCall 8(getOffset1() + 50: 19(fvec4) ImageFetch 36 45 Lod Offset 48 49 + 54: 51 Load 53(g_tTex1di4) + 55: 43(ptr) AccessChain 40 24 42 + 56: 6(int) Load 55 + 57: 43(ptr) AccessChain 40 24 46 + 58: 6(int) Load 57 + 59: 6(int) FunctionCall 8(getOffset1() + 60: 37(ivec4) ImageFetch 54 56 Lod Offset 58 59 + 64: 61 Load 63(g_tTex1du4) + 65: 43(ptr) AccessChain 40 24 42 + 66: 6(int) Load 65 + 67: 43(ptr) AccessChain 40 24 46 + 68: 6(int) Load 67 + 69: 6(int) FunctionCall 8(getOffset1() + 71: 70(ivec4) ImageFetch 64 66 Lod Offset 68 69 + 75: 72 Load 74(g_tTex2df4) + 78: 77(ptr) AccessChain 40 76 + 79: 14(ivec3) Load 78 + 80: 10(ivec2) VectorShuffle 79 79 0 1 + 82: 43(ptr) AccessChain 40 76 81 + 83: 6(int) Load 82 + 84: 10(ivec2) FunctionCall 12(getOffset2() + 85: 19(fvec4) ImageFetch 75 80 Lod Offset 83 84 + 89: 86 Load 88(g_tTex2di4) + 90: 77(ptr) AccessChain 40 76 + 91: 14(ivec3) Load 90 + 92: 10(ivec2) VectorShuffle 91 91 0 1 + 93: 43(ptr) AccessChain 40 76 81 + 94: 6(int) Load 93 + 95: 10(ivec2) FunctionCall 12(getOffset2() + 96: 37(ivec4) ImageFetch 89 92 Lod Offset 94 95 + 100: 97 Load 99(g_tTex2du4) + 101: 77(ptr) AccessChain 40 76 + 102: 14(ivec3) Load 101 + 103: 10(ivec2) VectorShuffle 102 102 0 1 + 104: 43(ptr) AccessChain 40 76 81 + 105: 6(int) Load 104 + 106: 10(ivec2) FunctionCall 12(getOffset2() + 107: 70(ivec4) ImageFetch 100 103 Lod Offset 105 106 + 111: 108 Load 110(g_tTex3df4) + 114: 113(ptr) AccessChain 40 112 + 115: 37(ivec4) Load 114 + 116: 14(ivec3) VectorShuffle 115 115 0 1 2 + 118: 43(ptr) AccessChain 40 112 117 + 119: 6(int) Load 118 + 120: 14(ivec3) FunctionCall 16(getOffset3() + 121: 19(fvec4) ImageFetch 111 116 Lod Offset 119 120 + 125: 122 Load 124(g_tTex3di4) + 126: 113(ptr) AccessChain 40 112 + 127: 37(ivec4) Load 126 + 128: 14(ivec3) VectorShuffle 127 127 0 1 2 + 129: 43(ptr) AccessChain 40 112 117 + 130: 6(int) Load 129 + 131: 14(ivec3) FunctionCall 16(getOffset3() + 132: 37(ivec4) ImageFetch 125 128 Lod Offset 130 131 + 136: 133 Load 135(g_tTex3du4) + 137: 113(ptr) AccessChain 40 112 + 138: 37(ivec4) Load 137 + 139: 14(ivec3) VectorShuffle 138 138 0 1 2 + 140: 43(ptr) AccessChain 40 112 117 + 141: 6(int) Load 140 + 142: 14(ivec3) FunctionCall 16(getOffset3() + 143: 70(ivec4) ImageFetch 136 139 Lod Offset 141 142 + 150: 149(ptr) AccessChain 145(psout) 146 + Store 150 148 + 152: 151(ptr) AccessChain 145(psout) 24 + Store 152 147 + 153:20(PS_OUTPUT) Load 145(psout) + ReturnValue 153 FunctionEnd diff --git a/Test/baseResults/hlsl.load.offsetarray.dx10.frag.out b/Test/baseResults/hlsl.load.offsetarray.dx10.frag.out index 24aa368064..04ea482774 100644 --- a/Test/baseResults/hlsl.load.offsetarray.dx10.frag.out +++ b/Test/baseResults/hlsl.load.offsetarray.dx10.frag.out @@ -3,191 +3,186 @@ Shader version: 500 gl_FragCoord origin is upper left using depth_any 0:? Sequence -0:48 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:43 Function Definition: getOffset1( ( temp int) +0:43 Function Parameters: +0:? Sequence +0:44 Branch: Return with expression +0:44 Constant: +0:44 1 (const int) +0:48 Function Definition: getOffset2( ( temp 2-component vector of int) 0:48 Function Parameters: 0:? Sequence -0:52 textureFetchOffset ( temp 4-component vector of float) -0:52 'g_tTex1df4a' ( uniform texture1DArray) -0:52 vector swizzle ( temp 2-component vector of int) -0:52 c3: direct index for structure ( uniform 3-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 2 (const uint) -0:52 Sequence -0:52 Constant: -0:52 0 (const int) -0:52 Constant: -0:52 1 (const int) -0:52 direct index ( temp int) -0:52 c3: direct index for structure ( uniform 3-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 2 (const uint) -0:52 Constant: -0:52 2 (const int) -0:52 o1: direct index for structure ( uniform int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 4 (const uint) -0:53 textureFetchOffset ( temp 4-component vector of int) -0:53 'g_tTex1di4a' ( uniform itexture1DArray) -0:53 vector swizzle ( temp 2-component vector of int) -0:53 c3: direct index for structure ( uniform 3-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 2 (const uint) -0:53 Sequence -0:53 Constant: -0:53 0 (const int) -0:53 Constant: -0:53 1 (const int) -0:53 direct index ( temp int) -0:53 c3: direct index for structure ( uniform 3-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 2 (const uint) -0:53 Constant: -0:53 2 (const int) -0:53 o1: direct index for structure ( uniform int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 4 (const uint) -0:54 textureFetchOffset ( temp 4-component vector of uint) -0:54 'g_tTex1du4a' ( uniform utexture1DArray) -0:54 vector swizzle ( temp 2-component vector of int) -0:54 c3: direct index for structure ( uniform 3-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 2 (const uint) -0:54 Sequence -0:54 Constant: -0:54 0 (const int) -0:54 Constant: -0:54 1 (const int) -0:54 direct index ( temp int) -0:54 c3: direct index for structure ( uniform 3-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 2 (const uint) -0:54 Constant: -0:54 2 (const int) -0:54 o1: direct index for structure ( uniform int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 4 (const uint) +0:49 Branch: Return with expression +0:49 Constant: +0:49 1 (const int) +0:49 1 (const int) +0:53 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Function Parameters: +0:? Sequence 0:57 textureFetchOffset ( temp 4-component vector of float) -0:57 'g_tTex2df4a' ( uniform texture2DArray) -0:57 vector swizzle ( temp 3-component vector of int) -0:57 c4: direct index for structure ( uniform 4-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:57 'g_tTex1df4a' ( uniform texture1DArray) +0:57 vector swizzle ( temp 2-component vector of int) +0:57 c3: direct index for structure ( uniform 3-component vector of int) +0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:57 Constant: -0:57 3 (const uint) +0:57 2 (const uint) 0:57 Sequence 0:57 Constant: 0:57 0 (const int) 0:57 Constant: 0:57 1 (const int) -0:57 Constant: -0:57 2 (const int) 0:57 direct index ( temp int) -0:57 c4: direct index for structure ( uniform 4-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:57 c3: direct index for structure ( uniform 3-component vector of int) +0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:57 Constant: -0:57 3 (const uint) -0:57 Constant: -0:57 3 (const int) -0:57 o2: direct index for structure ( uniform 2-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:57 2 (const uint) 0:57 Constant: -0:57 5 (const uint) +0:57 2 (const int) +0:57 Function Call: getOffset1( ( temp int) 0:58 textureFetchOffset ( temp 4-component vector of int) -0:58 'g_tTex2di4a' ( uniform itexture2DArray) -0:58 vector swizzle ( temp 3-component vector of int) -0:58 c4: direct index for structure ( uniform 4-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:58 'g_tTex1di4a' ( uniform itexture1DArray) +0:58 vector swizzle ( temp 2-component vector of int) +0:58 c3: direct index for structure ( uniform 3-component vector of int) +0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:58 Constant: -0:58 3 (const uint) +0:58 2 (const uint) 0:58 Sequence 0:58 Constant: 0:58 0 (const int) 0:58 Constant: 0:58 1 (const int) -0:58 Constant: -0:58 2 (const int) 0:58 direct index ( temp int) -0:58 c4: direct index for structure ( uniform 4-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:58 c3: direct index for structure ( uniform 3-component vector of int) +0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:58 Constant: -0:58 3 (const uint) -0:58 Constant: -0:58 3 (const int) -0:58 o2: direct index for structure ( uniform 2-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:58 2 (const uint) 0:58 Constant: -0:58 5 (const uint) +0:58 2 (const int) +0:58 Function Call: getOffset1( ( temp int) 0:59 textureFetchOffset ( temp 4-component vector of uint) -0:59 'g_tTex2du4a' ( uniform utexture2DArray) -0:59 vector swizzle ( temp 3-component vector of int) -0:59 c4: direct index for structure ( uniform 4-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:59 'g_tTex1du4a' ( uniform utexture1DArray) +0:59 vector swizzle ( temp 2-component vector of int) +0:59 c3: direct index for structure ( uniform 3-component vector of int) +0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:59 Constant: -0:59 3 (const uint) +0:59 2 (const uint) 0:59 Sequence 0:59 Constant: 0:59 0 (const int) 0:59 Constant: 0:59 1 (const int) -0:59 Constant: -0:59 2 (const int) 0:59 direct index ( temp int) -0:59 c4: direct index for structure ( uniform 4-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:59 c3: direct index for structure ( uniform 3-component vector of int) +0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:59 Constant: -0:59 3 (const uint) +0:59 2 (const uint) 0:59 Constant: -0:59 3 (const int) -0:59 o2: direct index for structure ( uniform 2-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:59 Constant: -0:59 5 (const uint) -0:65 move second child to first child ( temp 4-component vector of float) -0:65 Color: direct index for structure ( temp 4-component vector of float) -0:65 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:65 Constant: -0:65 0 (const int) -0:65 Constant: -0:65 1.000000 -0:65 1.000000 -0:65 1.000000 -0:65 1.000000 -0:66 move second child to first child ( temp float) -0:66 Depth: direct index for structure ( temp float) -0:66 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:66 Constant: -0:66 1 (const int) -0:66 Constant: -0:66 1.000000 -0:68 Branch: Return with expression -0:68 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Definition: main( ( temp void) -0:48 Function Parameters: +0:59 2 (const int) +0:59 Function Call: getOffset1( ( temp int) +0:62 textureFetchOffset ( temp 4-component vector of float) +0:62 'g_tTex2df4a' ( uniform texture2DArray) +0:62 vector swizzle ( temp 3-component vector of int) +0:62 c4: direct index for structure ( uniform 4-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:62 Constant: +0:62 3 (const uint) +0:62 Sequence +0:62 Constant: +0:62 0 (const int) +0:62 Constant: +0:62 1 (const int) +0:62 Constant: +0:62 2 (const int) +0:62 direct index ( temp int) +0:62 c4: direct index for structure ( uniform 4-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:62 Constant: +0:62 3 (const uint) +0:62 Constant: +0:62 3 (const int) +0:62 Function Call: getOffset2( ( temp 2-component vector of int) +0:63 textureFetchOffset ( temp 4-component vector of int) +0:63 'g_tTex2di4a' ( uniform itexture2DArray) +0:63 vector swizzle ( temp 3-component vector of int) +0:63 c4: direct index for structure ( uniform 4-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:63 Constant: +0:63 3 (const uint) +0:63 Sequence +0:63 Constant: +0:63 0 (const int) +0:63 Constant: +0:63 1 (const int) +0:63 Constant: +0:63 2 (const int) +0:63 direct index ( temp int) +0:63 c4: direct index for structure ( uniform 4-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:63 Constant: +0:63 3 (const uint) +0:63 Constant: +0:63 3 (const int) +0:63 Function Call: getOffset2( ( temp 2-component vector of int) +0:64 textureFetchOffset ( temp 4-component vector of uint) +0:64 'g_tTex2du4a' ( uniform utexture2DArray) +0:64 vector swizzle ( temp 3-component vector of int) +0:64 c4: direct index for structure ( uniform 4-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:64 Constant: +0:64 3 (const uint) +0:64 Sequence +0:64 Constant: +0:64 0 (const int) +0:64 Constant: +0:64 1 (const int) +0:64 Constant: +0:64 2 (const int) +0:64 direct index ( temp int) +0:64 c4: direct index for structure ( uniform 4-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:64 Constant: +0:64 3 (const uint) +0:64 Constant: +0:64 3 (const int) +0:64 Function Call: getOffset2( ( temp 2-component vector of int) +0:70 move second child to first child ( temp 4-component vector of float) +0:70 Color: direct index for structure ( temp 4-component vector of float) +0:70 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:70 Constant: +0:70 0 (const int) +0:70 Constant: +0:70 1.000000 +0:70 1.000000 +0:70 1.000000 +0:70 1.000000 +0:71 move second child to first child ( temp float) +0:71 Depth: direct index for structure ( temp float) +0:71 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:71 Constant: +0:71 1 (const int) +0:71 Constant: +0:71 1.000000 +0:73 Branch: Return with expression +0:73 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Function Definition: main( ( temp void) +0:53 Function Parameters: 0:? Sequence -0:48 Sequence -0:48 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 move second child to first child ( temp 4-component vector of float) +0:53 Sequence +0:53 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -0:48 Color: direct index for structure ( temp 4-component vector of float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 0 (const int) -0:48 move second child to first child ( temp float) +0:53 Color: direct index for structure ( temp 4-component vector of float) +0:53 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Constant: +0:53 0 (const int) +0:53 move second child to first child ( temp float) 0:? '@entryPointOutput.Depth' ( out float FragDepth) -0:48 Depth: direct index for structure ( temp float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 1 (const int) +0:53 Depth: direct index for structure ( temp float) +0:53 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Constant: +0:53 1 (const int) 0:? Linker Objects 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1D) @@ -211,7 +206,7 @@ using depth_any 0:? 'g_tTexcdf4a' ( uniform textureCubeArray) 0:? 'g_tTexcdi4a' ( uniform itextureCubeArray) 0:? 'g_tTexcdu4a' ( uniform utextureCubeArray) -0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:? '@entryPointOutput.Depth' ( out float FragDepth) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) @@ -223,191 +218,186 @@ Shader version: 500 gl_FragCoord origin is upper left using depth_any 0:? Sequence -0:48 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:43 Function Definition: getOffset1( ( temp int) +0:43 Function Parameters: +0:? Sequence +0:44 Branch: Return with expression +0:44 Constant: +0:44 1 (const int) +0:48 Function Definition: getOffset2( ( temp 2-component vector of int) 0:48 Function Parameters: 0:? Sequence -0:52 textureFetchOffset ( temp 4-component vector of float) -0:52 'g_tTex1df4a' ( uniform texture1DArray) -0:52 vector swizzle ( temp 2-component vector of int) -0:52 c3: direct index for structure ( uniform 3-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 2 (const uint) -0:52 Sequence -0:52 Constant: -0:52 0 (const int) -0:52 Constant: -0:52 1 (const int) -0:52 direct index ( temp int) -0:52 c3: direct index for structure ( uniform 3-component vector of int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 2 (const uint) -0:52 Constant: -0:52 2 (const int) -0:52 o1: direct index for structure ( uniform int) -0:52 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:52 Constant: -0:52 4 (const uint) -0:53 textureFetchOffset ( temp 4-component vector of int) -0:53 'g_tTex1di4a' ( uniform itexture1DArray) -0:53 vector swizzle ( temp 2-component vector of int) -0:53 c3: direct index for structure ( uniform 3-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 2 (const uint) -0:53 Sequence -0:53 Constant: -0:53 0 (const int) -0:53 Constant: -0:53 1 (const int) -0:53 direct index ( temp int) -0:53 c3: direct index for structure ( uniform 3-component vector of int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 2 (const uint) -0:53 Constant: -0:53 2 (const int) -0:53 o1: direct index for structure ( uniform int) -0:53 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:53 Constant: -0:53 4 (const uint) -0:54 textureFetchOffset ( temp 4-component vector of uint) -0:54 'g_tTex1du4a' ( uniform utexture1DArray) -0:54 vector swizzle ( temp 2-component vector of int) -0:54 c3: direct index for structure ( uniform 3-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 2 (const uint) -0:54 Sequence -0:54 Constant: -0:54 0 (const int) -0:54 Constant: -0:54 1 (const int) -0:54 direct index ( temp int) -0:54 c3: direct index for structure ( uniform 3-component vector of int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 2 (const uint) -0:54 Constant: -0:54 2 (const int) -0:54 o1: direct index for structure ( uniform int) -0:54 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:54 Constant: -0:54 4 (const uint) +0:49 Branch: Return with expression +0:49 Constant: +0:49 1 (const int) +0:49 1 (const int) +0:53 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Function Parameters: +0:? Sequence 0:57 textureFetchOffset ( temp 4-component vector of float) -0:57 'g_tTex2df4a' ( uniform texture2DArray) -0:57 vector swizzle ( temp 3-component vector of int) -0:57 c4: direct index for structure ( uniform 4-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:57 'g_tTex1df4a' ( uniform texture1DArray) +0:57 vector swizzle ( temp 2-component vector of int) +0:57 c3: direct index for structure ( uniform 3-component vector of int) +0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:57 Constant: -0:57 3 (const uint) +0:57 2 (const uint) 0:57 Sequence 0:57 Constant: 0:57 0 (const int) 0:57 Constant: 0:57 1 (const int) -0:57 Constant: -0:57 2 (const int) 0:57 direct index ( temp int) -0:57 c4: direct index for structure ( uniform 4-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:57 c3: direct index for structure ( uniform 3-component vector of int) +0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:57 Constant: -0:57 3 (const uint) +0:57 2 (const uint) 0:57 Constant: -0:57 3 (const int) -0:57 o2: direct index for structure ( uniform 2-component vector of int) -0:57 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:57 Constant: -0:57 5 (const uint) +0:57 2 (const int) +0:57 Function Call: getOffset1( ( temp int) 0:58 textureFetchOffset ( temp 4-component vector of int) -0:58 'g_tTex2di4a' ( uniform itexture2DArray) -0:58 vector swizzle ( temp 3-component vector of int) -0:58 c4: direct index for structure ( uniform 4-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:58 'g_tTex1di4a' ( uniform itexture1DArray) +0:58 vector swizzle ( temp 2-component vector of int) +0:58 c3: direct index for structure ( uniform 3-component vector of int) +0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:58 Constant: -0:58 3 (const uint) +0:58 2 (const uint) 0:58 Sequence 0:58 Constant: 0:58 0 (const int) 0:58 Constant: 0:58 1 (const int) -0:58 Constant: -0:58 2 (const int) 0:58 direct index ( temp int) -0:58 c4: direct index for structure ( uniform 4-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:58 c3: direct index for structure ( uniform 3-component vector of int) +0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:58 Constant: -0:58 3 (const uint) +0:58 2 (const uint) 0:58 Constant: -0:58 3 (const int) -0:58 o2: direct index for structure ( uniform 2-component vector of int) -0:58 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) -0:58 Constant: -0:58 5 (const uint) +0:58 2 (const int) +0:58 Function Call: getOffset1( ( temp int) 0:59 textureFetchOffset ( temp 4-component vector of uint) -0:59 'g_tTex2du4a' ( uniform utexture2DArray) -0:59 vector swizzle ( temp 3-component vector of int) -0:59 c4: direct index for structure ( uniform 4-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:59 'g_tTex1du4a' ( uniform utexture1DArray) +0:59 vector swizzle ( temp 2-component vector of int) +0:59 c3: direct index for structure ( uniform 3-component vector of int) +0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:59 Constant: -0:59 3 (const uint) +0:59 2 (const uint) 0:59 Sequence 0:59 Constant: 0:59 0 (const int) 0:59 Constant: 0:59 1 (const int) -0:59 Constant: -0:59 2 (const int) 0:59 direct index ( temp int) -0:59 c4: direct index for structure ( uniform 4-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:59 c3: direct index for structure ( uniform 3-component vector of int) +0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:59 Constant: -0:59 3 (const uint) -0:59 Constant: -0:59 3 (const int) -0:59 o2: direct index for structure ( uniform 2-component vector of int) -0:59 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:59 2 (const uint) 0:59 Constant: -0:59 5 (const uint) -0:65 move second child to first child ( temp 4-component vector of float) -0:65 Color: direct index for structure ( temp 4-component vector of float) -0:65 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:65 Constant: -0:65 0 (const int) -0:65 Constant: -0:65 1.000000 -0:65 1.000000 -0:65 1.000000 -0:65 1.000000 -0:66 move second child to first child ( temp float) -0:66 Depth: direct index for structure ( temp float) -0:66 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:66 Constant: -0:66 1 (const int) -0:66 Constant: -0:66 1.000000 -0:68 Branch: Return with expression -0:68 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Definition: main( ( temp void) -0:48 Function Parameters: +0:59 2 (const int) +0:59 Function Call: getOffset1( ( temp int) +0:62 textureFetchOffset ( temp 4-component vector of float) +0:62 'g_tTex2df4a' ( uniform texture2DArray) +0:62 vector swizzle ( temp 3-component vector of int) +0:62 c4: direct index for structure ( uniform 4-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:62 Constant: +0:62 3 (const uint) +0:62 Sequence +0:62 Constant: +0:62 0 (const int) +0:62 Constant: +0:62 1 (const int) +0:62 Constant: +0:62 2 (const int) +0:62 direct index ( temp int) +0:62 c4: direct index for structure ( uniform 4-component vector of int) +0:62 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:62 Constant: +0:62 3 (const uint) +0:62 Constant: +0:62 3 (const int) +0:62 Function Call: getOffset2( ( temp 2-component vector of int) +0:63 textureFetchOffset ( temp 4-component vector of int) +0:63 'g_tTex2di4a' ( uniform itexture2DArray) +0:63 vector swizzle ( temp 3-component vector of int) +0:63 c4: direct index for structure ( uniform 4-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:63 Constant: +0:63 3 (const uint) +0:63 Sequence +0:63 Constant: +0:63 0 (const int) +0:63 Constant: +0:63 1 (const int) +0:63 Constant: +0:63 2 (const int) +0:63 direct index ( temp int) +0:63 c4: direct index for structure ( uniform 4-component vector of int) +0:63 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:63 Constant: +0:63 3 (const uint) +0:63 Constant: +0:63 3 (const int) +0:63 Function Call: getOffset2( ( temp 2-component vector of int) +0:64 textureFetchOffset ( temp 4-component vector of uint) +0:64 'g_tTex2du4a' ( uniform utexture2DArray) +0:64 vector swizzle ( temp 3-component vector of int) +0:64 c4: direct index for structure ( uniform 4-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:64 Constant: +0:64 3 (const uint) +0:64 Sequence +0:64 Constant: +0:64 0 (const int) +0:64 Constant: +0:64 1 (const int) +0:64 Constant: +0:64 2 (const int) +0:64 direct index ( temp int) +0:64 c4: direct index for structure ( uniform 4-component vector of int) +0:64 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) +0:64 Constant: +0:64 3 (const uint) +0:64 Constant: +0:64 3 (const int) +0:64 Function Call: getOffset2( ( temp 2-component vector of int) +0:70 move second child to first child ( temp 4-component vector of float) +0:70 Color: direct index for structure ( temp 4-component vector of float) +0:70 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:70 Constant: +0:70 0 (const int) +0:70 Constant: +0:70 1.000000 +0:70 1.000000 +0:70 1.000000 +0:70 1.000000 +0:71 move second child to first child ( temp float) +0:71 Depth: direct index for structure ( temp float) +0:71 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:71 Constant: +0:71 1 (const int) +0:71 Constant: +0:71 1.000000 +0:73 Branch: Return with expression +0:73 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Function Definition: main( ( temp void) +0:53 Function Parameters: 0:? Sequence -0:48 Sequence -0:48 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 move second child to first child ( temp 4-component vector of float) +0:53 Sequence +0:53 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -0:48 Color: direct index for structure ( temp 4-component vector of float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 0 (const int) -0:48 move second child to first child ( temp float) +0:53 Color: direct index for structure ( temp 4-component vector of float) +0:53 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Constant: +0:53 0 (const int) +0:53 move second child to first child ( temp float) 0:? '@entryPointOutput.Depth' ( out float FragDepth) -0:48 Depth: direct index for structure ( temp float) -0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) -0:48 Constant: -0:48 1 (const int) +0:53 Depth: direct index for structure ( temp float) +0:53 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) +0:53 Constant: +0:53 1 (const int) 0:? Linker Objects 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1D) @@ -431,14 +421,13 @@ using depth_any 0:? 'g_tTexcdf4a' ( uniform textureCubeArray) 0:? 'g_tTexcdi4a' ( uniform itextureCubeArray) 0:? 'g_tTexcdu4a' ( uniform utextureCubeArray) -0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4}) +0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4}) 0:? '@entryPointOutput.Depth' ( out float FragDepth) 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) -Validation failed // Module Version 10000 // Generated by (magic number): 8000a -// Id's are bound by 174 +// Id's are bound by 176 Capability Shader Capability ImageGatherExtended @@ -446,284 +435,280 @@ Validation failed Capability SampledCubeArray 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Fragment 4 "main" 119 123 + EntryPoint Fragment 4 "main" 121 125 ExecutionMode 4 OriginUpperLeft ExecutionMode 4 DepthReplacing Source HLSL 500 Name 4 "main" - Name 8 "PS_OUTPUT" - MemberName 8(PS_OUTPUT) 0 "Color" - MemberName 8(PS_OUTPUT) 1 "Depth" - Name 10 "@main(" - Name 14 "g_tTex1df4a" - Name 20 "$Global" - MemberName 20($Global) 0 "c1" - MemberName 20($Global) 1 "c2" - MemberName 20($Global) 2 "c3" - MemberName 20($Global) 3 "c4" - MemberName 20($Global) 4 "o1" - MemberName 20($Global) 5 "o2" - MemberName 20($Global) 6 "o3" - MemberName 20($Global) 7 "o4" - Name 22 "" - Name 39 "g_tTex1di4a" - Name 51 "g_tTex1du4a" - Name 64 "g_tTex2df4a" - Name 81 "g_tTex2di4a" - Name 93 "g_tTex2du4a" - Name 104 "psout" - Name 116 "flattenTemp" - Name 119 "@entryPointOutput.Color" - Name 123 "@entryPointOutput.Depth" - Name 128 "g_sSamp" - Name 131 "g_tTex1df4" - Name 134 "g_tTex1di4" - Name 137 "g_tTex1du4" - Name 140 "g_tTex2df4" - Name 143 "g_tTex2di4" - Name 146 "g_tTex2du4" - Name 149 "g_tTex3df4" - Name 152 "g_tTex3di4" - Name 155 "g_tTex3du4" - Name 158 "g_tTexcdf4" - Name 161 "g_tTexcdi4" - Name 164 "g_tTexcdu4" - Name 167 "g_tTexcdf4a" - Name 170 "g_tTexcdi4a" - Name 173 "g_tTexcdu4a" - Decorate 14(g_tTex1df4a) DescriptorSet 0 - Decorate 14(g_tTex1df4a) Binding 1 - MemberDecorate 20($Global) 0 Offset 0 - MemberDecorate 20($Global) 1 Offset 8 - MemberDecorate 20($Global) 2 Offset 16 - MemberDecorate 20($Global) 3 Offset 32 - MemberDecorate 20($Global) 4 Offset 48 - MemberDecorate 20($Global) 5 Offset 56 - MemberDecorate 20($Global) 6 Offset 64 - MemberDecorate 20($Global) 7 Offset 80 - Decorate 20($Global) Block - Decorate 22 DescriptorSet 0 - Decorate 22 Binding 7 - Decorate 39(g_tTex1di4a) DescriptorSet 0 - Decorate 39(g_tTex1di4a) Binding 2 - Decorate 51(g_tTex1du4a) DescriptorSet 0 - Decorate 51(g_tTex1du4a) Binding 3 - Decorate 64(g_tTex2df4a) DescriptorSet 0 - Decorate 64(g_tTex2df4a) Binding 4 - Decorate 81(g_tTex2di4a) DescriptorSet 0 - Decorate 81(g_tTex2di4a) Binding 5 - Decorate 93(g_tTex2du4a) DescriptorSet 0 - Decorate 93(g_tTex2du4a) Binding 6 - Decorate 119(@entryPointOutput.Color) Location 0 - Decorate 123(@entryPointOutput.Depth) BuiltIn FragDepth - Decorate 128(g_sSamp) DescriptorSet 0 - Decorate 128(g_sSamp) Binding 0 - Decorate 131(g_tTex1df4) DescriptorSet 0 - Decorate 131(g_tTex1df4) Binding 0 - Decorate 134(g_tTex1di4) DescriptorSet 0 - Decorate 134(g_tTex1di4) Binding 0 - Decorate 137(g_tTex1du4) DescriptorSet 0 - Decorate 137(g_tTex1du4) Binding 0 - Decorate 140(g_tTex2df4) DescriptorSet 0 - Decorate 140(g_tTex2df4) Binding 0 - Decorate 143(g_tTex2di4) DescriptorSet 0 - Decorate 143(g_tTex2di4) Binding 0 - Decorate 146(g_tTex2du4) DescriptorSet 0 - Decorate 146(g_tTex2du4) Binding 0 - Decorate 149(g_tTex3df4) DescriptorSet 0 - Decorate 149(g_tTex3df4) Binding 0 - Decorate 152(g_tTex3di4) DescriptorSet 0 - Decorate 152(g_tTex3di4) Binding 0 - Decorate 155(g_tTex3du4) DescriptorSet 0 - Decorate 155(g_tTex3du4) Binding 0 - Decorate 158(g_tTexcdf4) DescriptorSet 0 - Decorate 158(g_tTexcdf4) Binding 0 - Decorate 161(g_tTexcdi4) DescriptorSet 0 - Decorate 161(g_tTexcdi4) Binding 0 - Decorate 164(g_tTexcdu4) DescriptorSet 0 - Decorate 164(g_tTexcdu4) Binding 0 - Decorate 167(g_tTexcdf4a) DescriptorSet 0 - Decorate 167(g_tTexcdf4a) Binding 0 - Decorate 170(g_tTexcdi4a) DescriptorSet 0 - Decorate 170(g_tTexcdi4a) Binding 0 - Decorate 173(g_tTexcdu4a) DescriptorSet 0 - Decorate 173(g_tTexcdu4a) Binding 0 + Name 8 "getOffset1(" + Name 12 "getOffset2(" + Name 16 "PS_OUTPUT" + MemberName 16(PS_OUTPUT) 0 "Color" + MemberName 16(PS_OUTPUT) 1 "Depth" + Name 18 "@main(" + Name 28 "g_tTex1df4a" + Name 32 "$Global" + MemberName 32($Global) 0 "c1" + MemberName 32($Global) 1 "c2" + MemberName 32($Global) 2 "c3" + MemberName 32($Global) 3 "c4" + Name 34 "" + Name 49 "g_tTex1di4a" + Name 60 "g_tTex1du4a" + Name 72 "g_tTex2df4a" + Name 86 "g_tTex2di4a" + Name 97 "g_tTex2du4a" + Name 107 "psout" + Name 118 "flattenTemp" + Name 121 "@entryPointOutput.Color" + Name 125 "@entryPointOutput.Depth" + Name 130 "g_sSamp" + Name 133 "g_tTex1df4" + Name 136 "g_tTex1di4" + Name 139 "g_tTex1du4" + Name 142 "g_tTex2df4" + Name 145 "g_tTex2di4" + Name 148 "g_tTex2du4" + Name 151 "g_tTex3df4" + Name 154 "g_tTex3di4" + Name 157 "g_tTex3du4" + Name 160 "g_tTexcdf4" + Name 163 "g_tTexcdi4" + Name 166 "g_tTexcdu4" + Name 169 "g_tTexcdf4a" + Name 172 "g_tTexcdi4a" + Name 175 "g_tTexcdu4a" + Decorate 28(g_tTex1df4a) DescriptorSet 0 + Decorate 28(g_tTex1df4a) Binding 1 + MemberDecorate 32($Global) 0 Offset 0 + MemberDecorate 32($Global) 1 Offset 8 + MemberDecorate 32($Global) 2 Offset 16 + MemberDecorate 32($Global) 3 Offset 32 + Decorate 32($Global) Block + Decorate 34 DescriptorSet 0 + Decorate 34 Binding 7 + Decorate 49(g_tTex1di4a) DescriptorSet 0 + Decorate 49(g_tTex1di4a) Binding 2 + Decorate 60(g_tTex1du4a) DescriptorSet 0 + Decorate 60(g_tTex1du4a) Binding 3 + Decorate 72(g_tTex2df4a) DescriptorSet 0 + Decorate 72(g_tTex2df4a) Binding 4 + Decorate 86(g_tTex2di4a) DescriptorSet 0 + Decorate 86(g_tTex2di4a) Binding 5 + Decorate 97(g_tTex2du4a) DescriptorSet 0 + Decorate 97(g_tTex2du4a) Binding 6 + Decorate 121(@entryPointOutput.Color) Location 0 + Decorate 125(@entryPointOutput.Depth) BuiltIn FragDepth + Decorate 130(g_sSamp) DescriptorSet 0 + Decorate 130(g_sSamp) Binding 0 + Decorate 133(g_tTex1df4) DescriptorSet 0 + Decorate 133(g_tTex1df4) Binding 0 + Decorate 136(g_tTex1di4) DescriptorSet 0 + Decorate 136(g_tTex1di4) Binding 0 + Decorate 139(g_tTex1du4) DescriptorSet 0 + Decorate 139(g_tTex1du4) Binding 0 + Decorate 142(g_tTex2df4) DescriptorSet 0 + Decorate 142(g_tTex2df4) Binding 0 + Decorate 145(g_tTex2di4) DescriptorSet 0 + Decorate 145(g_tTex2di4) Binding 0 + Decorate 148(g_tTex2du4) DescriptorSet 0 + Decorate 148(g_tTex2du4) Binding 0 + Decorate 151(g_tTex3df4) DescriptorSet 0 + Decorate 151(g_tTex3df4) Binding 0 + Decorate 154(g_tTex3di4) DescriptorSet 0 + Decorate 154(g_tTex3di4) Binding 0 + Decorate 157(g_tTex3du4) DescriptorSet 0 + Decorate 157(g_tTex3du4) Binding 0 + Decorate 160(g_tTexcdf4) DescriptorSet 0 + Decorate 160(g_tTexcdf4) Binding 0 + Decorate 163(g_tTexcdi4) DescriptorSet 0 + Decorate 163(g_tTexcdi4) Binding 0 + Decorate 166(g_tTexcdu4) DescriptorSet 0 + Decorate 166(g_tTexcdu4) Binding 0 + Decorate 169(g_tTexcdf4a) DescriptorSet 0 + Decorate 169(g_tTexcdf4a) Binding 0 + Decorate 172(g_tTexcdi4a) DescriptorSet 0 + Decorate 172(g_tTexcdi4a) Binding 0 + Decorate 175(g_tTexcdu4a) DescriptorSet 0 + Decorate 175(g_tTexcdu4a) Binding 0 2: TypeVoid 3: TypeFunction 2 - 6: TypeFloat 32 - 7: TypeVector 6(float) 4 - 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float) - 9: TypeFunction 8(PS_OUTPUT) - 12: TypeImage 6(float) 1D array sampled format:Unknown - 13: TypePointer UniformConstant 12 - 14(g_tTex1df4a): 13(ptr) Variable UniformConstant - 16: TypeInt 32 1 - 17: TypeVector 16(int) 2 - 18: TypeVector 16(int) 3 - 19: TypeVector 16(int) 4 - 20($Global): TypeStruct 16(int) 17(ivec2) 18(ivec3) 19(ivec4) 16(int) 17(ivec2) 18(ivec3) 19(ivec4) - 21: TypePointer Uniform 20($Global) - 22: 21(ptr) Variable Uniform - 23: 16(int) Constant 2 - 24: TypePointer Uniform 18(ivec3) - 28: TypeInt 32 0 - 29: 28(int) Constant 2 - 30: TypePointer Uniform 16(int) - 33: 16(int) Constant 4 - 37: TypeImage 16(int) 1D array sampled format:Unknown - 38: TypePointer UniformConstant 37 - 39(g_tTex1di4a): 38(ptr) Variable UniformConstant - 49: TypeImage 28(int) 1D array sampled format:Unknown - 50: TypePointer UniformConstant 49 - 51(g_tTex1du4a): 50(ptr) Variable UniformConstant - 60: TypeVector 28(int) 4 - 62: TypeImage 6(float) 2D array sampled format:Unknown - 63: TypePointer UniformConstant 62 - 64(g_tTex2df4a): 63(ptr) Variable UniformConstant - 66: 16(int) Constant 3 - 67: TypePointer Uniform 19(ivec4) - 71: 28(int) Constant 3 - 74: 16(int) Constant 5 - 75: TypePointer Uniform 17(ivec2) - 79: TypeImage 16(int) 2D array sampled format:Unknown - 80: TypePointer UniformConstant 79 - 81(g_tTex2di4a): 80(ptr) Variable UniformConstant - 91: TypeImage 28(int) 2D array sampled format:Unknown - 92: TypePointer UniformConstant 91 - 93(g_tTex2du4a): 92(ptr) Variable UniformConstant - 103: TypePointer Function 8(PS_OUTPUT) - 105: 16(int) Constant 0 - 106: 6(float) Constant 1065353216 - 107: 7(fvec4) ConstantComposite 106 106 106 106 - 108: TypePointer Function 7(fvec4) - 110: 16(int) Constant 1 - 111: TypePointer Function 6(float) - 118: TypePointer Output 7(fvec4) -119(@entryPointOutput.Color): 118(ptr) Variable Output - 122: TypePointer Output 6(float) -123(@entryPointOutput.Depth): 122(ptr) Variable Output - 126: TypeSampler - 127: TypePointer UniformConstant 126 - 128(g_sSamp): 127(ptr) Variable UniformConstant - 129: TypeImage 6(float) 1D sampled format:Unknown - 130: TypePointer UniformConstant 129 - 131(g_tTex1df4): 130(ptr) Variable UniformConstant - 132: TypeImage 16(int) 1D sampled format:Unknown - 133: TypePointer UniformConstant 132 - 134(g_tTex1di4): 133(ptr) Variable UniformConstant - 135: TypeImage 28(int) 1D sampled format:Unknown - 136: TypePointer UniformConstant 135 - 137(g_tTex1du4): 136(ptr) Variable UniformConstant - 138: TypeImage 6(float) 2D sampled format:Unknown - 139: TypePointer UniformConstant 138 - 140(g_tTex2df4): 139(ptr) Variable UniformConstant - 141: TypeImage 16(int) 2D sampled format:Unknown - 142: TypePointer UniformConstant 141 - 143(g_tTex2di4): 142(ptr) Variable UniformConstant - 144: TypeImage 28(int) 2D sampled format:Unknown - 145: TypePointer UniformConstant 144 - 146(g_tTex2du4): 145(ptr) Variable UniformConstant - 147: TypeImage 6(float) 3D sampled format:Unknown - 148: TypePointer UniformConstant 147 - 149(g_tTex3df4): 148(ptr) Variable UniformConstant - 150: TypeImage 16(int) 3D sampled format:Unknown - 151: TypePointer UniformConstant 150 - 152(g_tTex3di4): 151(ptr) Variable UniformConstant - 153: TypeImage 28(int) 3D sampled format:Unknown - 154: TypePointer UniformConstant 153 - 155(g_tTex3du4): 154(ptr) Variable UniformConstant - 156: TypeImage 6(float) Cube sampled format:Unknown - 157: TypePointer UniformConstant 156 - 158(g_tTexcdf4): 157(ptr) Variable UniformConstant - 159: TypeImage 16(int) Cube sampled format:Unknown - 160: TypePointer UniformConstant 159 - 161(g_tTexcdi4): 160(ptr) Variable UniformConstant - 162: TypeImage 28(int) Cube sampled format:Unknown - 163: TypePointer UniformConstant 162 - 164(g_tTexcdu4): 163(ptr) Variable UniformConstant - 165: TypeImage 6(float) Cube array sampled format:Unknown - 166: TypePointer UniformConstant 165 -167(g_tTexcdf4a): 166(ptr) Variable UniformConstant - 168: TypeImage 16(int) Cube array sampled format:Unknown - 169: TypePointer UniformConstant 168 -170(g_tTexcdi4a): 169(ptr) Variable UniformConstant - 171: TypeImage 28(int) Cube array sampled format:Unknown - 172: TypePointer UniformConstant 171 -173(g_tTexcdu4a): 172(ptr) Variable UniformConstant + 6: TypeInt 32 1 + 7: TypeFunction 6(int) + 10: TypeVector 6(int) 2 + 11: TypeFunction 10(ivec2) + 14: TypeFloat 32 + 15: TypeVector 14(float) 4 + 16(PS_OUTPUT): TypeStruct 15(fvec4) 14(float) + 17: TypeFunction 16(PS_OUTPUT) + 20: 6(int) Constant 1 + 23: 10(ivec2) ConstantComposite 20 20 + 26: TypeImage 14(float) 1D array sampled format:Unknown + 27: TypePointer UniformConstant 26 + 28(g_tTex1df4a): 27(ptr) Variable UniformConstant + 30: TypeVector 6(int) 3 + 31: TypeVector 6(int) 4 + 32($Global): TypeStruct 6(int) 10(ivec2) 30(ivec3) 31(ivec4) + 33: TypePointer Uniform 32($Global) + 34: 33(ptr) Variable Uniform + 35: 6(int) Constant 2 + 36: TypePointer Uniform 30(ivec3) + 40: TypeInt 32 0 + 41: 40(int) Constant 2 + 42: TypePointer Uniform 6(int) + 47: TypeImage 6(int) 1D array sampled format:Unknown + 48: TypePointer UniformConstant 47 + 49(g_tTex1di4a): 48(ptr) Variable UniformConstant + 58: TypeImage 40(int) 1D array sampled format:Unknown + 59: TypePointer UniformConstant 58 + 60(g_tTex1du4a): 59(ptr) Variable UniformConstant + 68: TypeVector 40(int) 4 + 70: TypeImage 14(float) 2D array sampled format:Unknown + 71: TypePointer UniformConstant 70 + 72(g_tTex2df4a): 71(ptr) Variable UniformConstant + 74: 6(int) Constant 3 + 75: TypePointer Uniform 31(ivec4) + 79: 40(int) Constant 3 + 84: TypeImage 6(int) 2D array sampled format:Unknown + 85: TypePointer UniformConstant 84 + 86(g_tTex2di4a): 85(ptr) Variable UniformConstant + 95: TypeImage 40(int) 2D array sampled format:Unknown + 96: TypePointer UniformConstant 95 + 97(g_tTex2du4a): 96(ptr) Variable UniformConstant + 106: TypePointer Function 16(PS_OUTPUT) + 108: 6(int) Constant 0 + 109: 14(float) Constant 1065353216 + 110: 15(fvec4) ConstantComposite 109 109 109 109 + 111: TypePointer Function 15(fvec4) + 113: TypePointer Function 14(float) + 120: TypePointer Output 15(fvec4) +121(@entryPointOutput.Color): 120(ptr) Variable Output + 124: TypePointer Output 14(float) +125(@entryPointOutput.Depth): 124(ptr) Variable Output + 128: TypeSampler + 129: TypePointer UniformConstant 128 + 130(g_sSamp): 129(ptr) Variable UniformConstant + 131: TypeImage 14(float) 1D sampled format:Unknown + 132: TypePointer UniformConstant 131 + 133(g_tTex1df4): 132(ptr) Variable UniformConstant + 134: TypeImage 6(int) 1D sampled format:Unknown + 135: TypePointer UniformConstant 134 + 136(g_tTex1di4): 135(ptr) Variable UniformConstant + 137: TypeImage 40(int) 1D sampled format:Unknown + 138: TypePointer UniformConstant 137 + 139(g_tTex1du4): 138(ptr) Variable UniformConstant + 140: TypeImage 14(float) 2D sampled format:Unknown + 141: TypePointer UniformConstant 140 + 142(g_tTex2df4): 141(ptr) Variable UniformConstant + 143: TypeImage 6(int) 2D sampled format:Unknown + 144: TypePointer UniformConstant 143 + 145(g_tTex2di4): 144(ptr) Variable UniformConstant + 146: TypeImage 40(int) 2D sampled format:Unknown + 147: TypePointer UniformConstant 146 + 148(g_tTex2du4): 147(ptr) Variable UniformConstant + 149: TypeImage 14(float) 3D sampled format:Unknown + 150: TypePointer UniformConstant 149 + 151(g_tTex3df4): 150(ptr) Variable UniformConstant + 152: TypeImage 6(int) 3D sampled format:Unknown + 153: TypePointer UniformConstant 152 + 154(g_tTex3di4): 153(ptr) Variable UniformConstant + 155: TypeImage 40(int) 3D sampled format:Unknown + 156: TypePointer UniformConstant 155 + 157(g_tTex3du4): 156(ptr) Variable UniformConstant + 158: TypeImage 14(float) Cube sampled format:Unknown + 159: TypePointer UniformConstant 158 + 160(g_tTexcdf4): 159(ptr) Variable UniformConstant + 161: TypeImage 6(int) Cube sampled format:Unknown + 162: TypePointer UniformConstant 161 + 163(g_tTexcdi4): 162(ptr) Variable UniformConstant + 164: TypeImage 40(int) Cube sampled format:Unknown + 165: TypePointer UniformConstant 164 + 166(g_tTexcdu4): 165(ptr) Variable UniformConstant + 167: TypeImage 14(float) Cube array sampled format:Unknown + 168: TypePointer UniformConstant 167 +169(g_tTexcdf4a): 168(ptr) Variable UniformConstant + 170: TypeImage 6(int) Cube array sampled format:Unknown + 171: TypePointer UniformConstant 170 +172(g_tTexcdi4a): 171(ptr) Variable UniformConstant + 173: TypeImage 40(int) Cube array sampled format:Unknown + 174: TypePointer UniformConstant 173 +175(g_tTexcdu4a): 174(ptr) Variable UniformConstant 4(main): 2 Function None 3 5: Label -116(flattenTemp): 103(ptr) Variable Function - 117:8(PS_OUTPUT) FunctionCall 10(@main() - Store 116(flattenTemp) 117 - 120: 108(ptr) AccessChain 116(flattenTemp) 105 - 121: 7(fvec4) Load 120 - Store 119(@entryPointOutput.Color) 121 - 124: 111(ptr) AccessChain 116(flattenTemp) 110 - 125: 6(float) Load 124 - Store 123(@entryPointOutput.Depth) 125 +118(flattenTemp): 106(ptr) Variable Function + 119:16(PS_OUTPUT) FunctionCall 18(@main() + Store 118(flattenTemp) 119 + 122: 111(ptr) AccessChain 118(flattenTemp) 108 + 123: 15(fvec4) Load 122 + Store 121(@entryPointOutput.Color) 123 + 126: 113(ptr) AccessChain 118(flattenTemp) 20 + 127: 14(float) Load 126 + Store 125(@entryPointOutput.Depth) 127 Return FunctionEnd - 10(@main():8(PS_OUTPUT) Function None 9 - 11: Label - 104(psout): 103(ptr) Variable Function - 15: 12 Load 14(g_tTex1df4a) - 25: 24(ptr) AccessChain 22 23 - 26: 18(ivec3) Load 25 - 27: 17(ivec2) VectorShuffle 26 26 0 1 - 31: 30(ptr) AccessChain 22 23 29 - 32: 16(int) Load 31 - 34: 30(ptr) AccessChain 22 33 - 35: 16(int) Load 34 - 36: 7(fvec4) ImageFetch 15 27 Lod Offset 32 35 - 40: 37 Load 39(g_tTex1di4a) - 41: 24(ptr) AccessChain 22 23 - 42: 18(ivec3) Load 41 - 43: 17(ivec2) VectorShuffle 42 42 0 1 - 44: 30(ptr) AccessChain 22 23 29 - 45: 16(int) Load 44 - 46: 30(ptr) AccessChain 22 33 - 47: 16(int) Load 46 - 48: 19(ivec4) ImageFetch 40 43 Lod Offset 45 47 - 52: 49 Load 51(g_tTex1du4a) - 53: 24(ptr) AccessChain 22 23 - 54: 18(ivec3) Load 53 - 55: 17(ivec2) VectorShuffle 54 54 0 1 - 56: 30(ptr) AccessChain 22 23 29 - 57: 16(int) Load 56 - 58: 30(ptr) AccessChain 22 33 - 59: 16(int) Load 58 - 61: 60(ivec4) ImageFetch 52 55 Lod Offset 57 59 - 65: 62 Load 64(g_tTex2df4a) - 68: 67(ptr) AccessChain 22 66 - 69: 19(ivec4) Load 68 - 70: 18(ivec3) VectorShuffle 69 69 0 1 2 - 72: 30(ptr) AccessChain 22 66 71 - 73: 16(int) Load 72 - 76: 75(ptr) AccessChain 22 74 - 77: 17(ivec2) Load 76 - 78: 7(fvec4) ImageFetch 65 70 Lod Offset 73 77 - 82: 79 Load 81(g_tTex2di4a) - 83: 67(ptr) AccessChain 22 66 - 84: 19(ivec4) Load 83 - 85: 18(ivec3) VectorShuffle 84 84 0 1 2 - 86: 30(ptr) AccessChain 22 66 71 - 87: 16(int) Load 86 - 88: 75(ptr) AccessChain 22 74 - 89: 17(ivec2) Load 88 - 90: 19(ivec4) ImageFetch 82 85 Lod Offset 87 89 - 94: 91 Load 93(g_tTex2du4a) - 95: 67(ptr) AccessChain 22 66 - 96: 19(ivec4) Load 95 - 97: 18(ivec3) VectorShuffle 96 96 0 1 2 - 98: 30(ptr) AccessChain 22 66 71 - 99: 16(int) Load 98 - 100: 75(ptr) AccessChain 22 74 - 101: 17(ivec2) Load 100 - 102: 60(ivec4) ImageFetch 94 97 Lod Offset 99 101 - 109: 108(ptr) AccessChain 104(psout) 105 - Store 109 107 - 112: 111(ptr) AccessChain 104(psout) 110 - Store 112 106 - 113:8(PS_OUTPUT) Load 104(psout) - ReturnValue 113 + 8(getOffset1(): 6(int) Function None 7 + 9: Label + ReturnValue 20 + FunctionEnd + 12(getOffset2(): 10(ivec2) Function None 11 + 13: Label + ReturnValue 23 + FunctionEnd + 18(@main():16(PS_OUTPUT) Function None 17 + 19: Label + 107(psout): 106(ptr) Variable Function + 29: 26 Load 28(g_tTex1df4a) + 37: 36(ptr) AccessChain 34 35 + 38: 30(ivec3) Load 37 + 39: 10(ivec2) VectorShuffle 38 38 0 1 + 43: 42(ptr) AccessChain 34 35 41 + 44: 6(int) Load 43 + 45: 6(int) FunctionCall 8(getOffset1() + 46: 15(fvec4) ImageFetch 29 39 Lod Offset 44 45 + 50: 47 Load 49(g_tTex1di4a) + 51: 36(ptr) AccessChain 34 35 + 52: 30(ivec3) Load 51 + 53: 10(ivec2) VectorShuffle 52 52 0 1 + 54: 42(ptr) AccessChain 34 35 41 + 55: 6(int) Load 54 + 56: 6(int) FunctionCall 8(getOffset1() + 57: 31(ivec4) ImageFetch 50 53 Lod Offset 55 56 + 61: 58 Load 60(g_tTex1du4a) + 62: 36(ptr) AccessChain 34 35 + 63: 30(ivec3) Load 62 + 64: 10(ivec2) VectorShuffle 63 63 0 1 + 65: 42(ptr) AccessChain 34 35 41 + 66: 6(int) Load 65 + 67: 6(int) FunctionCall 8(getOffset1() + 69: 68(ivec4) ImageFetch 61 64 Lod Offset 66 67 + 73: 70 Load 72(g_tTex2df4a) + 76: 75(ptr) AccessChain 34 74 + 77: 31(ivec4) Load 76 + 78: 30(ivec3) VectorShuffle 77 77 0 1 2 + 80: 42(ptr) AccessChain 34 74 79 + 81: 6(int) Load 80 + 82: 10(ivec2) FunctionCall 12(getOffset2() + 83: 15(fvec4) ImageFetch 73 78 Lod Offset 81 82 + 87: 84 Load 86(g_tTex2di4a) + 88: 75(ptr) AccessChain 34 74 + 89: 31(ivec4) Load 88 + 90: 30(ivec3) VectorShuffle 89 89 0 1 2 + 91: 42(ptr) AccessChain 34 74 79 + 92: 6(int) Load 91 + 93: 10(ivec2) FunctionCall 12(getOffset2() + 94: 31(ivec4) ImageFetch 87 90 Lod Offset 92 93 + 98: 95 Load 97(g_tTex2du4a) + 99: 75(ptr) AccessChain 34 74 + 100: 31(ivec4) Load 99 + 101: 30(ivec3) VectorShuffle 100 100 0 1 2 + 102: 42(ptr) AccessChain 34 74 79 + 103: 6(int) Load 102 + 104: 10(ivec2) FunctionCall 12(getOffset2() + 105: 68(ivec4) ImageFetch 98 101 Lod Offset 103 104 + 112: 111(ptr) AccessChain 107(psout) 108 + Store 112 110 + 114: 113(ptr) AccessChain 107(psout) 20 + Store 114 109 + 115:16(PS_OUTPUT) Load 107(psout) + ReturnValue 115 FunctionEnd diff --git a/Test/hlsl.load.2dms.dx10.frag b/Test/hlsl.load.2dms.dx10.frag index 29974f58e0..bc1525b0ad 100644 --- a/Test/hlsl.load.2dms.dx10.frag +++ b/Test/hlsl.load.2dms.dx10.frag @@ -19,10 +19,10 @@ uniform int2 c2; uniform int3 c3; uniform int4 c4; -uniform int o1; -uniform int2 o2; -uniform int3 o3; -uniform int4 o4; +int2 getOffset() +{ + return int2(1, 1); +} PS_OUTPUT main() { @@ -34,9 +34,9 @@ PS_OUTPUT main() g_tTex2dmsu4.Load(c2, 3); // 2DMS, offset - g_tTex2dmsf4.Load(c2, 3, o2); - g_tTex2dmsi4.Load(c2, 3, o2); - g_tTex2dmsu4.Load(c2, 3, o2); + g_tTex2dmsf4.Load(c2, 3, getOffset()); + g_tTex2dmsi4.Load(c2, 3, getOffset()); + g_tTex2dmsu4.Load(c2, 3, getOffset()); // 2DMSArray, no offset g_tTex2dmsf4a.Load(c3, 3); @@ -44,9 +44,9 @@ PS_OUTPUT main() g_tTex2dmsu4a.Load(c3, 3); // 2DMSArray, offset - g_tTex2dmsf4a.Load(c3, 3, o2); - g_tTex2dmsi4a.Load(c3, 3, o2); - g_tTex2dmsu4a.Load(c3, 3, o2); + g_tTex2dmsf4a.Load(c3, 3, getOffset()); + g_tTex2dmsi4a.Load(c3, 3, getOffset()); + g_tTex2dmsu4a.Load(c3, 3, getOffset()); psout.Color = 1.0; psout.Depth = 1.0; diff --git a/Test/hlsl.load.offset.dx10.frag b/Test/hlsl.load.offset.dx10.frag index bc946eead7..926406f905 100644 --- a/Test/hlsl.load.offset.dx10.frag +++ b/Test/hlsl.load.offset.dx10.frag @@ -39,29 +39,39 @@ uniform int2 c2; uniform int3 c3; uniform int4 c4; -uniform int o1; -uniform int2 o2; -uniform int3 o3; -uniform int4 o4; +int getOffset1() +{ + return 1; +} + +int2 getOffset2() +{ + return int2(1, 1); +} + +int3 getOffset3() +{ + return int3(1, 1, 1); +} PS_OUTPUT main() { PS_OUTPUT psout; // 1D - g_tTex1df4.Load(c2, o1); - g_tTex1di4.Load(c2, o1); - g_tTex1du4.Load(c2, o1); + g_tTex1df4.Load(c2, getOffset1()); + g_tTex1di4.Load(c2, getOffset1()); + g_tTex1du4.Load(c2, getOffset1()); // 2D - g_tTex2df4.Load(c3, o2); - g_tTex2di4.Load(c3, o2); - g_tTex2du4.Load(c3, o2); + g_tTex2df4.Load(c3, getOffset2()); + g_tTex2di4.Load(c3, getOffset2()); + g_tTex2du4.Load(c3, getOffset2()); // 3D - g_tTex3df4.Load(c4, o3); - g_tTex3di4.Load(c4, o3); - g_tTex3du4.Load(c4, o3); + g_tTex3df4.Load(c4, getOffset3()); + g_tTex3di4.Load(c4, getOffset3()); + g_tTex3du4.Load(c4, getOffset3()); // Offset has no Cube or CubeArray forms diff --git a/Test/hlsl.load.offsetarray.dx10.frag b/Test/hlsl.load.offsetarray.dx10.frag index 12b6a9e5a2..d911d3163d 100644 --- a/Test/hlsl.load.offsetarray.dx10.frag +++ b/Test/hlsl.load.offsetarray.dx10.frag @@ -39,24 +39,29 @@ uniform int2 c2; uniform int3 c3; uniform int4 c4; -uniform int o1; -uniform int2 o2; -uniform int3 o3; -uniform int4 o4; +int getOffset1() +{ + return 1; +} + +int2 getOffset2() +{ + return int2(1, 1); +} PS_OUTPUT main() { PS_OUTPUT psout; // 1DArray - g_tTex1df4a.Load(c3, o1); - g_tTex1di4a.Load(c3, o1); - g_tTex1du4a.Load(c3, o1); + g_tTex1df4a.Load(c3, getOffset1()); + g_tTex1di4a.Load(c3, getOffset1()); + g_tTex1du4a.Load(c3, getOffset1()); // 2DArray - g_tTex2df4a.Load(c4, o2); - g_tTex2di4a.Load(c4, o2); - g_tTex2du4a.Load(c4, o2); + g_tTex2df4a.Load(c4, getOffset2()); + g_tTex2di4a.Load(c4, getOffset2()); + g_tTex2du4a.Load(c4, getOffset2()); // TODO: // Load, SampleIndex