blob: ef2dfa999f708004f92c2d3b9288a345d5a33015 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Schema: 0
OpCapability Shader
OpCapability SampledCubeArray
OpCapability ImageQuery
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %t_f "t_f"
OpName %t_i "t_i"
OpName %t_u "t_u"
OpName %main "main"
OpName %fdims "fdims"
OpName %idims "idims"
OpName %udims "udims"
OpDecorate %t_f DescriptorSet 0
OpDecorate %t_f Binding 0
OpDecorate %t_i DescriptorSet 0
OpDecorate %t_i Binding 1
OpDecorate %t_u DescriptorSet 0
OpDecorate %t_u Binding 2
%float = OpTypeFloat 32
%3 = OpTypeImage %float Cube 0 1 0 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%t_f = OpVariable %_ptr_UniformConstant_3 UniformConstant
%int = OpTypeInt 32 1
%7 = OpTypeImage %int Cube 0 1 0 1 Unknown
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
%t_i = OpVariable %_ptr_UniformConstant_7 UniformConstant
%uint = OpTypeInt 32 0
%11 = OpTypeImage %uint Cube 0 1 0 1 Unknown
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
%t_u = OpVariable %_ptr_UniformConstant_11 UniformConstant
%void = OpTypeVoid
%13 = OpTypeFunction %void
%v2uint = OpTypeVector %uint 2
%v3uint = OpTypeVector %uint 3
%int_1 = OpConstant %int 1
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%25 = OpConstantNull %v2uint
%main = OpFunction %void None %13
%16 = OpLabel
%fdims = OpVariable %_ptr_Function_v2uint Function %25
%idims = OpVariable %_ptr_Function_v2uint Function %25
%udims = OpVariable %_ptr_Function_v2uint Function %25
%21 = OpLoad %3 %t_f
%19 = OpImageQuerySizeLod %v3uint %21 %int_1
%17 = OpVectorShuffle %v2uint %19 %19 0 1
OpStore %fdims %17
%28 = OpLoad %7 %t_i
%27 = OpImageQuerySizeLod %v3uint %28 %int_1
%26 = OpVectorShuffle %v2uint %27 %27 0 1
OpStore %idims %26
%32 = OpLoad %11 %t_u
%31 = OpImageQuerySizeLod %v3uint %32 %int_1
%30 = OpVectorShuffle %v2uint %31 %31 0 1
OpStore %udims %30
OpReturn
OpFunctionEnd