blob: 371a349e1e80c64a8f04cb2532e66a2d1b9a1208 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 30
; Schema: 0
OpCapability Shader
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 2D 0 0 0 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%t_f = OpVariable %_ptr_UniformConstant_3 UniformConstant
%int = OpTypeInt 32 1
%7 = OpTypeImage %int 2D 0 0 0 1 Unknown
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
%t_i = OpVariable %_ptr_UniformConstant_7 UniformConstant
%uint = OpTypeInt 32 0
%11 = OpTypeImage %uint 2D 0 0 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
%int_1 = OpConstant %int 1
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%23 = OpConstantNull %v2uint
%main = OpFunction %void None %13
%16 = OpLabel
%fdims = OpVariable %_ptr_Function_v2uint Function %23
%idims = OpVariable %_ptr_Function_v2uint Function %23
%udims = OpVariable %_ptr_Function_v2uint Function %23
%19 = OpLoad %3 %t_f
%17 = OpImageQuerySizeLod %v2uint %19 %int_1
OpStore %fdims %17
%25 = OpLoad %7 %t_i
%24 = OpImageQuerySizeLod %v2uint %25 %int_1
OpStore %idims %24
%28 = OpLoad %11 %t_u
%27 = OpImageQuerySizeLod %v2uint %28 %int_1
OpStore %udims %27
OpReturn
OpFunctionEnd