blob: 5a1cb1763f6fcf2aac0bde5f61dfc935685991cd [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 26
; Schema: 0
OpCapability Shader
%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 %f "f"
OpName %x "x"
OpName %v "v"
OpName %x "i"
OpName %unused_entry_point "unused_entry_point"
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%5 = OpTypeFunction %float %int
%v3float = OpTypeVector %float 3
%_ptr_Function_v3float = OpTypePointer Function %v3float
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%10 = OpConstantComposite %v3float %float_1 %float_2 %float_3
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_ptr_Function_float = OpTypePointer Function %float
%void = OpTypeVoid
%24 = OpTypeFunction %void
%f = OpFunction %float None %5
%x = OpFunctionParameter %int
%6 = OpLabel
%v = OpVariable %_ptr_Function_v3float Function
OpStore %v %10
%15 = OpBitcast %uint %x
%16 = OpExtInst %uint %17 UMin %15 %uint_2
%19 = OpAccessChain %_ptr_Function_float %v %16
%21 = OpLoad %float %19 None
OpReturnValue %21
OpFunctionEnd
%unused_entry_point = OpFunction %void None %24
%25 = OpLabel
OpReturn
OpFunctionEnd