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