| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 35 |
| ; 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 |
| %9 = OpTypeFunction %uint %float |
| %float_4_29496704e_09 = OpConstant %float 4.29496704e+09 |
| %bool = OpTypeBool |
| %20 = OpConstantNull %uint |
| %uint_4294967295 = OpConstant %uint 4294967295 |
| %23 = OpTypeFunction %float |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftou = OpFunction %uint None %9 |
| %v = OpFunctionParameter %float |
| %13 = OpLabel |
| %16 = OpFOrdLessThan %bool %v %float_4_29496704e_09 |
| %19 = OpFOrdLessThan %bool %v %4 |
| %21 = OpConvertFToU %uint %v |
| %18 = OpSelect %uint %19 %20 %21 |
| %14 = OpSelect %uint %16 %18 %uint_4294967295 |
| OpReturnValue %14 |
| OpFunctionEnd |
| %m = OpFunction %float None %23 |
| %25 = OpLabel |
| OpStore %t %float_1 |
| %28 = OpLoad %float %t |
| OpReturnValue %28 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %30 = OpLabel |
| %v_0 = OpVariable %_ptr_Function_uint Function %20 |
| %31 = OpFunctionCall %float %m |
| %32 = OpFunctionCall %uint %tint_ftou %31 |
| OpStore %v_0 %32 |
| OpReturn |
| OpFunctionEnd |