mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
tint->dawn: Shuffle source tree in preperation of merging repos
docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
38f1e9c75c
commit
dbc13af287
@@ -0,0 +1,121 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageFetch %v4float %77 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %uint 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageFetch %v4uint %77 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %int 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageFetch %v4int %77 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageRead %v4float %76 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %uint 2D 0 0 0 2 Rgba32ui
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageRead %v4uint %76 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %int 2D 0 0 0 2 Rgba32i
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageRead %v4int %76 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageSampleImplicitLod %v4float %78 %vf12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageFetch %v4float %71 %vu123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
; Test: ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 1 0 2 R32f
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%68 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%69 = OpLoad %64 %10
|
||||
%70 = OpLoad %66 %20
|
||||
%71 = OpImageRead %v4float %70 %vu123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
; Test: ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 1 0 2 R32f
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%68 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%69 = OpLoad %64 %10
|
||||
%70 = OpLoad %66 %20
|
||||
OpImageWrite %70 %vu123 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageFetch %v4float %71 %u1
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler1D x_20_1;
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_73 = texelFetch(x_20_1, int(u1), 0);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'sampler1D' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
; Test: ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 2 R32f
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%68 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%69 = OpLoad %64 %10
|
||||
%70 = OpLoad %66 %20
|
||||
%71 = OpImageRead %v4float %70 %u1
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler1D x_20_1;
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_71 = texelFetch(x_20_1, int(u1), 0);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'sampler1D' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
; Test: ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 2 R32f
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%68 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%69 = OpLoad %64 %10
|
||||
%70 = OpLoad %66 %20
|
||||
OpImageWrite %70 %u1 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
layout(r32f) uniform highp writeonly image1D x_20;
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
imageStore(x_20, int(u1), vf1234);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'image1D' : Reserved word.
|
||||
WARNING: 0:4: 'layout' : useless application of layout qualifier
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageFetch %v4float %71 %vu12
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
; Test: ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 0 0 2 R32f
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%68 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%69 = OpLoad %64 %10
|
||||
%70 = OpLoad %66 %20
|
||||
%71 = OpImageRead %v4float %70 %vu12
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
; Test: ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 0 0 2 R32f
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%68 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%69 = OpLoad %64 %10
|
||||
%70 = OpLoad %66 %20
|
||||
OpImageWrite %70 %vu12 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %f1
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler1D x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_73 = texture(x_20_x_10, f1);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'sampler1D' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf12
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler1D x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_73 = texture(x_20_x_10, vf12.x);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'sampler1D' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler1D x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_73 = texture(x_20_x_10, vf123.x);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'sampler1D' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 1D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler1D x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_73 = texture(x_20_x_10, vf1234.x);
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'sampler1D' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf12
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 3D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float 3D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCubeArray x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float float_var = 0.0f;
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
vec4 x_73 = texture(x_20_x_10, vec4(vf1234.xyz, float(int(round(vf1234.w)))));
|
||||
uint x_1000 = 0u;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float Cube 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf123
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
; Test: Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 1001
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
OpName %float_var "float_var"
|
||||
OpName %ptr_float "ptr_float"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%17 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%43 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%50 = OpConstantNull %v2float
|
||||
%51 = OpConstantNull %v3float
|
||||
%52 = OpConstantNull %v4float
|
||||
%53 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%54 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%55 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%56 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%57 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%58 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%59 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%60 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%61 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%62 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%64 = OpTypeSampler
|
||||
%_ptr_UniformConstant_64 = OpTypePointer UniformConstant %64
|
||||
%66 = OpTypeImage %float Cube 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_66 = OpTypePointer UniformConstant %66
|
||||
%68 = OpTypeSampledImage %66
|
||||
%ptr_float = OpTypePointer Function %float
|
||||
%10 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_66 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_64 UniformConstant
|
||||
%100 = OpFunction %void None %17
|
||||
%69 = OpLabel
|
||||
%float_var = OpVariable %ptr_float Function
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %53
|
||||
%vi123 = OpCopyObject %v3int %54
|
||||
%vi1234 = OpCopyObject %v4int %55
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %56
|
||||
%vu123 = OpCopyObject %v3uint %57
|
||||
%vu1234 = OpCopyObject %v4uint %58
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %59
|
||||
%vf123 = OpCopyObject %v3float %61
|
||||
%vf1234 = OpCopyObject %v4float %62
|
||||
%70 = OpLoad %64 %10
|
||||
%71 = OpLoad %66 %20
|
||||
%72 = OpSampledImage %68 %71 %70
|
||||
%73 = OpImageSampleImplicitLod %v4float %72 %vf1234
|
||||
%1000 = OpCopyObject %uint %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 1 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12 Sample %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 0 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12 Sample %u1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 0 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12 Sample %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12 Lod %int_3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageFetch %v4float %66 %vi12 Lod %int_3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2D x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2DArray x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 3D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler3D x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCube x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCubeArray x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2D x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2DArray x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCube x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %int %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCubeArray x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureQueryLevels(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQueryLevels %uint %77
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2D x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
uint x_99 = uint(textureQueryLevels(x_20_1););
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
; Test: ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageQuerySamples %int %76
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2DMS x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
int x_99 = textureSamples(x_20_1);;
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureSamples' : no matching overloaded function found
|
||||
ERROR: 0:23: '=' : cannot convert from ' const float' to ' temp mediump int'
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 3 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
; Test: ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageQuerySamples %uint %76
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2DMS x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
uint x_99 = uint(textureSamples(x_20_1););
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:23: 'textureSamples' : no matching overloaded function found
|
||||
ERROR: 0:23: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCubeArray x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
ivec3 x_99 = ivec3(textureSize(x_20_1, i1).xy, textureSize(x_20_1, 0).z);
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCubeArray x_20_1;
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
ivec3 x_99 = ivec3(textureSize(x_20_1, i1).xy, textureSize(x_20_1, 0).z);
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v2int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 3D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v2int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v2int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%99 = OpImageQuerySizeLod %v2int %77 %i1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
; Test: ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 1 0 2 Rgba32f
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageQuerySize %v3int %76
|
||||
%98 = OpImageRead %v4float %76 %vi123
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
; Test: ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageQuerySize %v2int %76
|
||||
%98 = OpImageRead %v4float %76 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
; Test: ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 3D 0 0 0 2 Rgba32f
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageQuerySize %v3int %76
|
||||
%98 = OpImageRead %v4float %76 %vi123
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
; Test: ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%74 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%75 = OpLoad %70 %10
|
||||
%76 = OpLoad %72 %20
|
||||
%99 = OpImageQuerySize %v2int %76
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
; Test: ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 100
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%41 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%48 = OpConstantNull %v2float
|
||||
%49 = OpConstantNull %v3float
|
||||
%50 = OpConstantNull %v4float
|
||||
%51 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%52 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%53 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%54 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%55 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%56 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%57 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%58 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%59 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%60 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%62 = OpTypeImage %float 2D 0 0 0 2 Rgba32f
|
||||
%_ptr_UniformConstant_62 = OpTypePointer UniformConstant %62
|
||||
%20 = OpVariable %_ptr_UniformConstant_62 UniformConstant
|
||||
%1 = OpFunction %void None %16
|
||||
%64 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %57
|
||||
%vf123 = OpCopyObject %v3float %59
|
||||
%vf1234 = OpCopyObject %v4float %60
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %51
|
||||
%vi123 = OpCopyObject %v3int %52
|
||||
%vi1234 = OpCopyObject %v4int %53
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %54
|
||||
%vu123 = OpCopyObject %v3uint %55
|
||||
%vu1234 = OpCopyObject %v4uint %56
|
||||
%65 = OpCompositeConstruct %v2int %int_3 %int_4
|
||||
%offsets2d = OpCopyObject %v2int %65
|
||||
%66 = OpLoad %62 %20
|
||||
%99 = OpImageRead %v4float %66 %vi12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefExplicitLod %float %78 %coords12 %float_0_200000003 Lod %float_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefExplicitLod %float %78 %coords123 %float_0_200000003 Lod %float_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefExplicitLod %float %78 %coords12 %float_0_200000003 Lod|ConstOffset %float_0 %offsets2d
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefExplicitLod %float %78 %coords123 %float_0_200000003 Lod|ConstOffset %float_0 %offsets2d
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2DArrayShadow x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
float x_79 = textureOffset(x_20_x_10, vec4(vec3(coords123.xy, float(int(round(coords123.z)))), 0.200000003f), ivec2(3, 4));
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:24: 'sampler' : TextureOffset does not support sampler2DArrayShadow : ES Profile
|
||||
ERROR: 0:24: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefExplicitLod %float %78 %coords123 %float_0_200000003 Lod %float_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float Cube 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefExplicitLod %float %78 %coords1234 %float_0_200000003 Lod %float_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp samplerCubeArrayShadow x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
float x_79 = texture(x_20_x_10, vec4(coords1234.xyz, float(int(round(coords1234.w)))), 0.200000003f);
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:4: 'samplerCubeArrayShadow' : Reserved word.
|
||||
ERROR: 0:4: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefImplicitLod %float %78 %coords12 %float_0_200000003
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefImplicitLod %float %78 %coords123 %float_0_200000003
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefImplicitLod %float %78 %coords12 %float_0_200000003 ConstOffset %offsets2d
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleDrefImplicitLod %float %78 %coords123 %float_0_200000003 ConstOffset %offsets2d
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
uniform highp sampler2DArrayShadow x_20_x_10;
|
||||
|
||||
void main_1() {
|
||||
float f1 = 1.0f;
|
||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
||||
int i1 = 1;
|
||||
ivec2 vi12 = ivec2(1, 2);
|
||||
ivec3 vi123 = ivec3(1, 2, 3);
|
||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
||||
uint u1 = 1u;
|
||||
uvec2 vu12 = uvec2(1u, 2u);
|
||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
||||
float coords1 = 1.0f;
|
||||
vec2 coords12 = vf12;
|
||||
vec3 coords123 = vf123;
|
||||
vec4 coords1234 = vf1234;
|
||||
float x_79 = textureOffset(x_20_x_10, vec4(vec3(coords123.xy, float(int(round(coords123.z)))), 0.200000003f), ivec2(3, 4));
|
||||
return;
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:24: 'sampler' : TextureOffset does not support sampler2DArrayShadow : ES Profile
|
||||
ERROR: 0:24: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
; Test: ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 80
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
OpCapability Image1D
|
||||
OpCapability StorageImageExtendedFormats
|
||||
OpCapability ImageQuery
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %1 "main"
|
||||
OpExecutionMode %1 OriginUpperLeft
|
||||
OpName %f1 "f1"
|
||||
OpName %vf12 "vf12"
|
||||
OpName %vf21 "vf21"
|
||||
OpName %vf123 "vf123"
|
||||
OpName %vf1234 "vf1234"
|
||||
OpName %u1 "u1"
|
||||
OpName %vu12 "vu12"
|
||||
OpName %vu123 "vu123"
|
||||
OpName %vu1234 "vu1234"
|
||||
OpName %i1 "i1"
|
||||
OpName %vi12 "vi12"
|
||||
OpName %vi123 "vi123"
|
||||
OpName %vi1234 "vi1234"
|
||||
OpName %coords1 "coords1"
|
||||
OpName %coords12 "coords12"
|
||||
OpName %coords123 "coords123"
|
||||
OpName %coords1234 "coords1234"
|
||||
OpName %offsets2d "offsets2d"
|
||||
OpName %u_offsets2d "u_offsets2d"
|
||||
OpDecorate %10 DescriptorSet 0
|
||||
OpDecorate %10 Binding 0
|
||||
OpDecorate %20 DescriptorSet 2
|
||||
OpDecorate %20 Binding 1
|
||||
OpDecorate %30 DescriptorSet 0
|
||||
OpDecorate %30 Binding 1
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%int_4 = OpConstant %int 4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%uint_100 = OpConstant %uint 100
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v3int = OpTypeVector %int 3
|
||||
%v4int = OpTypeVector %int 4
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%v2float = OpTypeVector %float 2
|
||||
%v3float = OpTypeVector %float 3
|
||||
%v4float = OpTypeVector %float 4
|
||||
%49 = OpConstantNull %float
|
||||
%float_0 = OpConstant %float 0
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%float_7 = OpConstant %float 7
|
||||
%56 = OpConstantNull %v2float
|
||||
%57 = OpConstantNull %v3float
|
||||
%58 = OpConstantNull %v4float
|
||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%float_0_200000003 = OpConstant %float 0.200000003
|
||||
%70 = OpTypeSampler
|
||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
||||
%72 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
||||
%74 = OpTypeSampledImage %72
|
||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
||||
%1 = OpFunction %void None %24
|
||||
%75 = OpLabel
|
||||
%f1 = OpCopyObject %float %float_1
|
||||
%vf12 = OpCopyObject %v2float %65
|
||||
%vf21 = OpCopyObject %v2float %66
|
||||
%vf123 = OpCopyObject %v3float %67
|
||||
%vf1234 = OpCopyObject %v4float %68
|
||||
%i1 = OpCopyObject %int %int_1
|
||||
%vi12 = OpCopyObject %v2int %59
|
||||
%vi123 = OpCopyObject %v3int %60
|
||||
%vi1234 = OpCopyObject %v4int %61
|
||||
%u1 = OpCopyObject %uint %uint_1
|
||||
%vu12 = OpCopyObject %v2uint %62
|
||||
%vu123 = OpCopyObject %v3uint %63
|
||||
%vu1234 = OpCopyObject %v4uint %64
|
||||
%coords1 = OpCopyObject %float %float_1
|
||||
%coords12 = OpCopyObject %v2float %vf12
|
||||
%coords123 = OpCopyObject %v3float %vf123
|
||||
%coords1234 = OpCopyObject %v4float %vf1234
|
||||
%76 = OpLoad %70 %10
|
||||
%77 = OpLoad %72 %20
|
||||
%78 = OpSampledImage %74 %77 %76
|
||||
%79 = OpImageSampleExplicitLod %v4float %78 %vf12 Lod %f1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user