blob: aa0ea50a750027e786f2fc1aab4fe78274191165 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 41
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %t "t"
OpName %unused_entry_point "unused_entry_point"
OpName %tint_ftou "tint_ftou"
OpName %v "v"
OpName %m "m"
OpName %f "f"
OpName %v_0 "v"
%float = OpTypeFloat 32
%_ptr_Private_float = OpTypePointer Private %float
%4 = OpConstantNull %float
%t = OpVariable %_ptr_Private_float Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%v2float = OpTypeVector %float 2
%9 = OpTypeFunction %v2uint %v2float
%float_4_29496704e_09 = OpConstant %float 4.29496704e+09
%18 = OpConstantComposite %v2float %float_4_29496704e_09 %float_4_29496704e_09
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%23 = OpConstantNull %v2float
%25 = OpConstantNull %v2uint
%uint_4294967295 = OpConstant %uint 4294967295
%28 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295
%29 = OpTypeFunction %v2float
%float_1 = OpConstant %float 1
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%tint_ftou = OpFunction %v2uint None %9
%v = OpFunctionParameter %v2float
%15 = OpLabel
%19 = OpFOrdLessThan %v2bool %v %18
%24 = OpFOrdLessThan %v2bool %v %23
%26 = OpConvertFToU %v2uint %v
%22 = OpSelect %v2uint %24 %25 %26
%16 = OpSelect %v2uint %19 %22 %28
OpReturnValue %16
OpFunctionEnd
%m = OpFunction %v2float None %29
%31 = OpLabel
OpStore %t %float_1
%33 = OpLoad %float %t
%34 = OpCompositeConstruct %v2float %33 %33
OpReturnValue %34
OpFunctionEnd
%f = OpFunction %void None %5
%36 = OpLabel
%v_0 = OpVariable %_ptr_Function_v2uint Function %25
%37 = OpFunctionCall %v2float %m
%38 = OpFunctionCall %v2uint %tint_ftou %37
OpStore %v_0 %38
OpReturn
OpFunctionEnd