blob: 9727ab5d17cbcd3274c947b941572158755f1f07 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 29
; Schema: 0
OpCapability Shader
OpCapability Sampled1D
OpCapability ImageQuery
%17 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %arg_0 "arg_0"
OpName %d "d"
OpName %l "l"
OpName %unused_entry_point "unused_entry_point"
OpDecorate %arg_0 DescriptorSet 0
OpDecorate %arg_0 Binding 0
%int = OpTypeInt 32 1
%3 = OpTypeImage %int 1D 0 0 0 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%v4int = OpTypeVector %int 4
%float = OpTypeFloat 32
%l = OpConstant %float 0.141120002
%d = OpFunction %void None %7
%8 = OpLabel
%9 = OpLoad %3 %arg_0 None
%10 = OpImageQueryLevels %uint %9
%12 = OpISub %uint %10 %uint_1
%14 = OpBitcast %uint %int_0
%16 = OpExtInst %uint %17 UMin %14 %12
%18 = OpImageQuerySizeLod %uint %9 %16
%19 = OpISub %uint %18 %uint_1
%20 = OpBitcast %uint %int_1
%22 = OpExtInst %uint %17 UMin %20 %19
%23 = OpImageFetch %v4int %9 %22 Lod %16
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %7
%28 = OpLabel
OpReturn
OpFunctionEnd