blob: 6f62e94619f806f1dabe960484c282230297b58c [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
%v4uint = OpTypeVector %uint 4
%v4float = OpTypeVector %float 4
%9 = OpTypeFunction %v4uint %v4float
%float_4_29496704e_09 = OpConstant %float 4.29496704e+09
%18 = OpConstantComposite %v4float %float_4_29496704e_09 %float_4_29496704e_09 %float_4_29496704e_09 %float_4_29496704e_09
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%23 = OpConstantNull %v4float
%25 = OpConstantNull %v4uint
%uint_4294967295 = OpConstant %uint 4294967295
%28 = OpConstantComposite %v4uint %uint_4294967295 %uint_4294967295 %uint_4294967295 %uint_4294967295
%29 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%tint_ftou = OpFunction %v4uint None %9
%v = OpFunctionParameter %v4float
%15 = OpLabel
%19 = OpFOrdLessThan %v4bool %v %18
%24 = OpFOrdLessThan %v4bool %v %23
%26 = OpConvertFToU %v4uint %v
%22 = OpSelect %v4uint %24 %25 %26
%16 = OpSelect %v4uint %19 %22 %28
OpReturnValue %16
OpFunctionEnd
%m = OpFunction %v4float None %29
%31 = OpLabel
OpStore %t %float_1
%33 = OpLoad %float %t
%34 = OpCompositeConstruct %v4float %33 %33 %33 %33
OpReturnValue %34
OpFunctionEnd
%f = OpFunction %void None %5
%36 = OpLabel
%v_0 = OpVariable %_ptr_Function_v4uint Function %25
%37 = OpFunctionCall %v4float %m
%38 = OpFunctionCall %v4uint %tint_ftou %37
OpStore %v_0 %38
OpReturn
OpFunctionEnd