| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 86 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| OpEntryPoint Fragment %fragment_main "fragment_main" |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpExecutionMode %fragment_main OriginUpperLeft |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpName %value "value" |
| OpName %vertex_point_size "vertex_point_size" |
| OpName %tint_count_leading_zeros "tint_count_leading_zeros" |
| OpName %v "v" |
| OpName %x "x" |
| OpName %countLeadingZeros_6d4656 "countLeadingZeros_6d4656" |
| OpName %res "res" |
| OpName %vertex_main_inner "vertex_main_inner" |
| OpName %vertex_main "vertex_main" |
| OpName %fragment_main "fragment_main" |
| OpName %compute_main "compute_main" |
| OpDecorate %value BuiltIn Position |
| OpDecorate %vertex_point_size BuiltIn PointSize |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %5 = OpConstantNull %v4float |
| %value = OpVariable %_ptr_Output_v4float Output %5 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %8 = OpConstantNull %float |
| %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
| %int = OpTypeInt 32 1 |
| %9 = OpTypeFunction %int %int |
| %uint = OpTypeInt 32 0 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %18 = OpConstantNull %uint |
| %uint_65535 = OpConstant %uint 65535 |
| %bool = OpTypeBool |
| %uint_16 = OpConstant %uint 16 |
| %uint_0 = OpConstant %uint 0 |
| %uint_16777215 = OpConstant %uint 16777215 |
| %uint_8 = OpConstant %uint 8 |
| %uint_268435455 = OpConstant %uint 268435455 |
| %uint_4 = OpConstant %uint 4 |
| %uint_1073741823 = OpConstant %uint 1073741823 |
| %uint_2 = OpConstant %uint 2 |
| %uint_2147483647 = OpConstant %uint 2147483647 |
| %uint_1 = OpConstant %uint 1 |
| %void = OpTypeVoid |
| %63 = OpTypeFunction %void |
| %int_1 = OpConstant %int 1 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %71 = OpConstantNull %int |
| %72 = OpTypeFunction %v4float |
| %float_1 = OpConstant %float 1 |
| %tint_count_leading_zeros = OpFunction %int None %9 |
| %v = OpFunctionParameter %int |
| %13 = OpLabel |
| %x = OpVariable %_ptr_Function_uint Function %18 |
| %14 = OpBitcast %uint %v |
| OpStore %x %14 |
| %20 = OpLoad %uint %x |
| %22 = OpULessThanEqual %bool %20 %uint_65535 |
| %19 = OpSelect %uint %22 %uint_16 %uint_0 |
| %26 = OpLoad %uint %x |
| %27 = OpShiftLeftLogical %uint %26 %19 |
| OpStore %x %27 |
| %29 = OpLoad %uint %x |
| %31 = OpULessThanEqual %bool %29 %uint_16777215 |
| %28 = OpSelect %uint %31 %uint_8 %uint_0 |
| %33 = OpLoad %uint %x |
| %34 = OpShiftLeftLogical %uint %33 %28 |
| OpStore %x %34 |
| %36 = OpLoad %uint %x |
| %38 = OpULessThanEqual %bool %36 %uint_268435455 |
| %35 = OpSelect %uint %38 %uint_4 %uint_0 |
| %40 = OpLoad %uint %x |
| %41 = OpShiftLeftLogical %uint %40 %35 |
| OpStore %x %41 |
| %43 = OpLoad %uint %x |
| %45 = OpULessThanEqual %bool %43 %uint_1073741823 |
| %42 = OpSelect %uint %45 %uint_2 %uint_0 |
| %47 = OpLoad %uint %x |
| %48 = OpShiftLeftLogical %uint %47 %42 |
| OpStore %x %48 |
| %50 = OpLoad %uint %x |
| %52 = OpULessThanEqual %bool %50 %uint_2147483647 |
| %49 = OpSelect %uint %52 %uint_1 %uint_0 |
| %55 = OpLoad %uint %x |
| %56 = OpIEqual %bool %55 %uint_0 |
| %54 = OpSelect %uint %56 %uint_1 %uint_0 |
| %58 = OpBitwiseOr %uint %19 %28 |
| %59 = OpBitwiseOr %uint %58 %35 |
| %60 = OpBitwiseOr %uint %59 %42 |
| %61 = OpBitwiseOr %uint %60 %49 |
| %62 = OpIAdd %uint %61 %54 |
| %57 = OpBitcast %int %62 |
| OpReturnValue %57 |
| OpFunctionEnd |
| %countLeadingZeros_6d4656 = OpFunction %void None %63 |
| %66 = OpLabel |
| %res = OpVariable %_ptr_Function_int Function %71 |
| %67 = OpFunctionCall %int %tint_count_leading_zeros %int_1 |
| OpStore %res %67 |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %v4float None %72 |
| %74 = OpLabel |
| %75 = OpFunctionCall %void %countLeadingZeros_6d4656 |
| OpReturnValue %5 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %63 |
| %77 = OpLabel |
| %78 = OpFunctionCall %v4float %vertex_main_inner |
| OpStore %value %78 |
| OpStore %vertex_point_size %float_1 |
| OpReturn |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %63 |
| %81 = OpLabel |
| %82 = OpFunctionCall %void %countLeadingZeros_6d4656 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %63 |
| %84 = OpLabel |
| %85 = OpFunctionCall %void %countLeadingZeros_6d4656 |
| OpReturn |
| OpFunctionEnd |