| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 98 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %fragment_main "fragment_main" |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output |
| OpExecutionMode %fragment_main OriginUpperLeft |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpMemberName %prevent_dce_block 0 "inner" |
| OpName %prevent_dce_block "prevent_dce_block" |
| OpName %vertex_main_position_Output "vertex_main_position_Output" |
| OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| OpName %countLeadingZeros_ab6345 "countLeadingZeros_ab6345" |
| OpName %arg_0 "arg_0" |
| OpName %res "res" |
| OpName %fragment_main "fragment_main" |
| OpName %compute_main "compute_main" |
| OpName %vertex_main_inner "vertex_main_inner" |
| OpMemberName %VertexOutput 0 "pos" |
| OpMemberName %VertexOutput 1 "prevent_dce" |
| OpName %VertexOutput "VertexOutput" |
| OpName %out "out" |
| OpName %vertex_main "vertex_main" |
| OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| OpDecorate %prevent_dce_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| OpDecorate %vertex_main_position_Output BuiltIn Position |
| OpDecorate %vertex_main_loc0_Output Location 0 |
| OpDecorate %vertex_main_loc0_Output Flat |
| OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| OpMemberDecorate %VertexOutput 0 Offset 0 |
| OpMemberDecorate %VertexOutput 1 Offset 16 |
| %uint = OpTypeInt 32 0 |
| %v3uint = OpTypeVector %uint 3 |
| %prevent_dce_block = OpTypeStruct %v3uint |
| %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %_ptr_Output_v3uint = OpTypePointer Output %v3uint |
| %vertex_main_loc0_Output = OpVariable %_ptr_Output_v3uint Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %15 = OpTypeFunction %v3uint |
| %_ptr_Function_v3uint = OpTypePointer Function %v3uint |
| %uint_1 = OpConstant %uint 1 |
| %19 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1 |
| %uint_65535 = OpConstant %uint 65535 |
| %23 = OpConstantComposite %v3uint %uint_65535 %uint_65535 %uint_65535 |
| %bool = OpTypeBool |
| %v3bool = OpTypeVector %bool 3 |
| %uint_16 = OpConstant %uint 16 |
| %28 = OpConstantComposite %v3uint %uint_16 %uint_16 %uint_16 |
| %30 = OpConstantNull %v3uint |
| %uint_16777215 = OpConstant %uint 16777215 |
| %33 = OpConstantComposite %v3uint %uint_16777215 %uint_16777215 %uint_16777215 |
| %uint_8 = OpConstant %uint 8 |
| %36 = OpConstantComposite %v3uint %uint_8 %uint_8 %uint_8 |
| %uint_268435455 = OpConstant %uint 268435455 |
| %40 = OpConstantComposite %v3uint %uint_268435455 %uint_268435455 %uint_268435455 |
| %uint_4 = OpConstant %uint 4 |
| %43 = OpConstantComposite %v3uint %uint_4 %uint_4 %uint_4 |
| %uint_1073741823 = OpConstant %uint 1073741823 |
| %47 = OpConstantComposite %v3uint %uint_1073741823 %uint_1073741823 %uint_1073741823 |
| %uint_2 = OpConstant %uint 2 |
| %50 = OpConstantComposite %v3uint %uint_2 %uint_2 %uint_2 |
| %uint_2147483647 = OpConstant %uint 2147483647 |
| %54 = OpConstantComposite %v3uint %uint_2147483647 %uint_2147483647 %uint_2147483647 |
| %void = OpTypeVoid |
| %69 = OpTypeFunction %void |
| %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
| %uint_0 = OpConstant %uint 0 |
| %VertexOutput = OpTypeStruct %v4float %v3uint |
| %81 = OpTypeFunction %VertexOutput |
| %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| %85 = OpConstantNull %VertexOutput |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %88 = OpConstantNull %v4float |
| %float_1 = OpConstant %float 1 |
| %countLeadingZeros_ab6345 = OpFunction %v3uint None %15 |
| %16 = OpLabel |
| %arg_0 = OpVariable %_ptr_Function_v3uint Function |
| %res = OpVariable %_ptr_Function_v3uint Function |
| OpStore %arg_0 %19 |
| %21 = OpLoad %v3uint %arg_0 None |
| %22 = OpULessThanEqual %v3bool %21 %23 |
| %27 = OpSelect %v3uint %22 %28 %30 |
| %31 = OpShiftLeftLogical %v3uint %21 %27 |
| %32 = OpULessThanEqual %v3bool %31 %33 |
| %35 = OpSelect %v3uint %32 %36 %30 |
| %38 = OpShiftLeftLogical %v3uint %31 %35 |
| %39 = OpULessThanEqual %v3bool %38 %40 |
| %42 = OpSelect %v3uint %39 %43 %30 |
| %45 = OpShiftLeftLogical %v3uint %38 %42 |
| %46 = OpULessThanEqual %v3bool %45 %47 |
| %49 = OpSelect %v3uint %46 %50 %30 |
| %52 = OpShiftLeftLogical %v3uint %45 %49 |
| %53 = OpULessThanEqual %v3bool %52 %54 |
| %56 = OpSelect %v3uint %53 %19 %30 |
| %57 = OpIEqual %v3bool %52 %30 |
| %58 = OpSelect %v3uint %57 %19 %30 |
| %59 = OpBitwiseOr %v3uint %56 %58 |
| %60 = OpBitwiseOr %v3uint %49 %59 |
| %61 = OpBitwiseOr %v3uint %42 %60 |
| %62 = OpBitwiseOr %v3uint %35 %61 |
| %63 = OpBitwiseOr %v3uint %27 %62 |
| %64 = OpIAdd %v3uint %63 %58 |
| OpStore %res %64 |
| %66 = OpLoad %v3uint %res None |
| OpReturnValue %66 |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %69 |
| %70 = OpLabel |
| %71 = OpFunctionCall %v3uint %countLeadingZeros_ab6345 |
| %72 = OpAccessChain %_ptr_StorageBuffer_v3uint %1 %uint_0 |
| OpStore %72 %71 None |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %69 |
| %76 = OpLabel |
| %77 = OpFunctionCall %v3uint %countLeadingZeros_ab6345 |
| %78 = OpAccessChain %_ptr_StorageBuffer_v3uint %1 %uint_0 |
| OpStore %78 %77 None |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %VertexOutput None %81 |
| %82 = OpLabel |
| %out = OpVariable %_ptr_Function_VertexOutput Function %85 |
| %86 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| OpStore %86 %88 None |
| %89 = OpAccessChain %_ptr_Function_v3uint %out %uint_1 |
| %90 = OpFunctionCall %v3uint %countLeadingZeros_ab6345 |
| OpStore %89 %90 None |
| %91 = OpLoad %VertexOutput %out None |
| OpReturnValue %91 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %69 |
| %93 = OpLabel |
| %94 = OpFunctionCall %VertexOutput %vertex_main_inner |
| %95 = OpCompositeExtract %v4float %94 0 |
| OpStore %vertex_main_position_Output %95 None |
| %96 = OpCompositeExtract %v3uint %94 1 |
| OpStore %vertex_main_loc0_Output %96 None |
| OpStore %vertex_main___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |