| ; 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 |
| %v2float = OpTypeVector %float 2 |
| %float_1 = OpConstant %float 1 |
| %4 = OpConstantComposite %v2float %float_1 %float_1 |
| %_ptr_Private_v2float = OpTypePointer Private %v2float |
| %u = OpVariable %_ptr_Private_v2float Private %4 |
| %void = OpTypeVoid |
| %7 = OpTypeFunction %void |
| %uint = OpTypeInt 32 0 |
| %v2uint = OpTypeVector %uint 2 |
| %11 = OpTypeFunction %v2uint %v2float |
| %float_4_29496704e_09 = OpConstant %float 4.29496704e+09 |
| %19 = OpConstantComposite %v2float %float_4_29496704e_09 %float_4_29496704e_09 |
| %bool = OpTypeBool |
| %v2bool = OpTypeVector %bool 2 |
| %24 = OpConstantNull %v2float |
| %26 = OpConstantNull %v2uint |
| %uint_4294967295 = OpConstant %uint 4294967295 |
| %29 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295 |
| %unused_entry_point = OpFunction %void None %7 |
| %10 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftou = OpFunction %v2uint None %11 |
| %v = OpFunctionParameter %v2float |
| %16 = OpLabel |
| %20 = OpFOrdLessThan %v2bool %v %19 |
| %25 = OpFOrdLessThan %v2bool %v %24 |
| %27 = OpConvertFToU %v2uint %v |
| %23 = OpSelect %v2uint %25 %26 %27 |
| %17 = OpSelect %v2uint %20 %23 %29 |
| OpReturnValue %17 |
| OpFunctionEnd |
| %f = OpFunction %void None %7 |
| %31 = OpLabel |
| %33 = OpLoad %v2float %u |
| %32 = OpFunctionCall %v2uint %tint_ftou %33 |
| OpReturn |
| OpFunctionEnd |