blob: 6e93647effe5e8ea0ca929c5d74df6c53a555b3c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 20
; 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 %main "main"
OpName %dims "dims"
OpDecorate %t_f DescriptorSet 0
OpDecorate %t_f Binding 0
%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
%void = OpTypeVoid
%5 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%v3uint = OpTypeVector %uint 3
%int = OpTypeInt 32 1
%16 = OpConstantNull %int
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%19 = OpConstantNull %v2uint
%main = OpFunction %void None %5
%8 = OpLabel
%dims = OpVariable %_ptr_Function_v2uint Function %19
%14 = OpLoad %3 %t_f
%12 = OpImageQuerySizeLod %v3uint %14 %16
%9 = OpVectorShuffle %v2uint %12 %12 0 1
OpStore %dims %9
OpReturn
OpFunctionEnd