| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 36 |
| ; 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_ftoi "tint_ftoi" |
| 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 |
| %int = OpTypeInt 32 1 |
| %v2int = OpTypeVector %int 2 |
| %11 = OpTypeFunction %v2int %v2float |
| %float_2_14748352e_09 = OpConstant %float 2.14748352e+09 |
| %19 = OpConstantComposite %v2float %float_2_14748352e_09 %float_2_14748352e_09 |
| %bool = OpTypeBool |
| %v2bool = OpTypeVector %bool 2 |
| %float_n2_14748365e_09 = OpConstant %float -2.14748365e+09 |
| %25 = OpConstantComposite %v2float %float_n2_14748365e_09 %float_n2_14748365e_09 |
| %int_n2147483648 = OpConstant %int -2147483648 |
| %28 = OpConstantComposite %v2int %int_n2147483648 %int_n2147483648 |
| %int_2147483647 = OpConstant %int 2147483647 |
| %31 = OpConstantComposite %v2int %int_2147483647 %int_2147483647 |
| %unused_entry_point = OpFunction %void None %7 |
| %10 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftoi = OpFunction %v2int None %11 |
| %v = OpFunctionParameter %v2float |
| %16 = OpLabel |
| %20 = OpFOrdLessThan %v2bool %v %19 |
| %26 = OpFOrdLessThan %v2bool %v %25 |
| %29 = OpConvertFToS %v2int %v |
| %23 = OpSelect %v2int %26 %28 %29 |
| %17 = OpSelect %v2int %20 %23 %31 |
| OpReturnValue %17 |
| OpFunctionEnd |
| %f = OpFunction %void None %7 |
| %33 = OpLabel |
| %35 = OpLoad %v2float %u |
| %34 = OpFunctionCall %v2int %tint_ftoi %35 |
| OpReturn |
| OpFunctionEnd |