| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 34 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %u "u" |
| OpName %unused_entry_point "unused_entry_point" |
| OpName %tint_ftou "tint_ftou" |
| OpName %v "v" |
| OpName %f "f" |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %float_1 = OpConstant %float 1 |
| %4 = OpConstantComposite %v3float %float_1 %float_1 %float_1 |
| %_ptr_Private_v3float = OpTypePointer Private %v3float |
| %u = OpVariable %_ptr_Private_v3float Private %4 |
| %void = OpTypeVoid |
| %7 = OpTypeFunction %void |
| %uint = OpTypeInt 32 0 |
| %v3uint = OpTypeVector %uint 3 |
| %11 = OpTypeFunction %v3uint %v3float |
| %float_4_29496704e_09 = OpConstant %float 4.29496704e+09 |
| %19 = OpConstantComposite %v3float %float_4_29496704e_09 %float_4_29496704e_09 %float_4_29496704e_09 |
| %bool = OpTypeBool |
| %v3bool = OpTypeVector %bool 3 |
| %24 = OpConstantNull %v3float |
| %26 = OpConstantNull %v3uint |
| %uint_4294967295 = OpConstant %uint 4294967295 |
| %29 = OpConstantComposite %v3uint %uint_4294967295 %uint_4294967295 %uint_4294967295 |
| %unused_entry_point = OpFunction %void None %7 |
| %10 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftou = OpFunction %v3uint None %11 |
| %v = OpFunctionParameter %v3float |
| %16 = OpLabel |
| %20 = OpFOrdLessThan %v3bool %v %19 |
| %25 = OpFOrdLessThan %v3bool %v %24 |
| %27 = OpConvertFToU %v3uint %v |
| %23 = OpSelect %v3uint %25 %26 %27 |
| %17 = OpSelect %v3uint %20 %23 %29 |
| OpReturnValue %17 |
| OpFunctionEnd |
| %f = OpFunction %void None %7 |
| %31 = OpLabel |
| %33 = OpLoad %v3float %u |
| %32 = OpFunctionCall %v3uint %tint_ftou %33 |
| OpReturn |
| OpFunctionEnd |