| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 108 |
| ; 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" %pos_1 %prevent_dce_1 %vertex_point_size |
| OpExecutionMode %fragment_main OriginUpperLeft |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpName %pos_1 "pos_1" |
| OpName %prevent_dce_1 "prevent_dce_1" |
| OpName %vertex_point_size "vertex_point_size" |
| OpName %prevent_dce_block "prevent_dce_block" |
| OpMemberName %prevent_dce_block 0 "inner" |
| OpName %prevent_dce "prevent_dce" |
| OpName %tint_count_trailing_zeros "tint_count_trailing_zeros" |
| OpName %v "v" |
| OpName %x "x" |
| OpName %countTrailingZeros_21e394 "countTrailingZeros_21e394" |
| OpName %arg_0 "arg_0" |
| OpName %res "res" |
| OpName %fragment_main "fragment_main" |
| OpName %compute_main "compute_main" |
| OpName %VertexOutput "VertexOutput" |
| OpMemberName %VertexOutput 0 "pos" |
| OpMemberName %VertexOutput 1 "prevent_dce" |
| OpName %vertex_main_inner "vertex_main_inner" |
| OpName %out "out" |
| OpName %vertex_main "vertex_main" |
| OpDecorate %pos_1 BuiltIn Position |
| OpDecorate %prevent_dce_1 Location 0 |
| OpDecorate %prevent_dce_1 Flat |
| OpDecorate %vertex_point_size BuiltIn PointSize |
| OpDecorate %prevent_dce_block Block |
| OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| OpDecorate %prevent_dce DescriptorSet 0 |
| OpDecorate %prevent_dce Binding 0 |
| OpMemberDecorate %VertexOutput 0 Offset 0 |
| OpMemberDecorate %VertexOutput 1 Offset 16 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %5 = OpConstantNull %v4float |
| %pos_1 = OpVariable %_ptr_Output_v4float Output %5 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Output_uint = OpTypePointer Output %uint |
| %9 = OpConstantNull %uint |
| %prevent_dce_1 = OpVariable %_ptr_Output_uint Output %9 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %12 = OpConstantNull %float |
| %vertex_point_size = OpVariable %_ptr_Output_float Output %12 |
| %prevent_dce_block = OpTypeStruct %uint |
| %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| %16 = OpTypeFunction %uint %uint |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %bool = OpTypeBool |
| %uint_65535 = OpConstant %uint 65535 |
| %uint_16 = OpConstant %uint 16 |
| %uint_255 = OpConstant %uint 255 |
| %uint_8 = OpConstant %uint 8 |
| %uint_15 = OpConstant %uint 15 |
| %uint_4 = OpConstant %uint 4 |
| %uint_3 = OpConstant %uint 3 |
| %uint_2 = OpConstant %uint 2 |
| %uint_1 = OpConstant %uint 1 |
| %70 = OpTypeFunction %uint |
| %void = OpTypeVoid |
| %78 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %VertexOutput = OpTypeStruct %v4float %uint |
| %90 = OpTypeFunction %VertexOutput |
| %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| %96 = OpConstantNull %VertexOutput |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %float_1 = OpConstant %float 1 |
| %tint_count_trailing_zeros = OpFunction %uint None %16 |
| %v = OpFunctionParameter %uint |
| %19 = OpLabel |
| %x = OpVariable %_ptr_Function_uint Function %9 |
| OpStore %x %v |
| %26 = OpLoad %uint %x |
| %28 = OpBitwiseAnd %uint %26 %uint_65535 |
| %24 = OpINotEqual %bool %28 %9 |
| %23 = OpSelect %uint %24 %9 %uint_16 |
| %30 = OpLoad %uint %x |
| %31 = OpShiftRightLogical %uint %30 %23 |
| OpStore %x %31 |
| %34 = OpLoad %uint %x |
| %36 = OpBitwiseAnd %uint %34 %uint_255 |
| %33 = OpINotEqual %bool %36 %9 |
| %32 = OpSelect %uint %33 %9 %uint_8 |
| %38 = OpLoad %uint %x |
| %39 = OpShiftRightLogical %uint %38 %32 |
| OpStore %x %39 |
| %42 = OpLoad %uint %x |
| %44 = OpBitwiseAnd %uint %42 %uint_15 |
| %41 = OpINotEqual %bool %44 %9 |
| %40 = OpSelect %uint %41 %9 %uint_4 |
| %46 = OpLoad %uint %x |
| %47 = OpShiftRightLogical %uint %46 %40 |
| OpStore %x %47 |
| %50 = OpLoad %uint %x |
| %52 = OpBitwiseAnd %uint %50 %uint_3 |
| %49 = OpINotEqual %bool %52 %9 |
| %48 = OpSelect %uint %49 %9 %uint_2 |
| %54 = OpLoad %uint %x |
| %55 = OpShiftRightLogical %uint %54 %48 |
| OpStore %x %55 |
| %58 = OpLoad %uint %x |
| %60 = OpBitwiseAnd %uint %58 %uint_1 |
| %57 = OpINotEqual %bool %60 %9 |
| %56 = OpSelect %uint %57 %9 %uint_1 |
| %62 = OpLoad %uint %x |
| %63 = OpIEqual %bool %62 %9 |
| %61 = OpSelect %uint %63 %uint_1 %9 |
| %65 = OpBitwiseOr %uint %23 %32 |
| %66 = OpBitwiseOr %uint %65 %40 |
| %67 = OpBitwiseOr %uint %66 %48 |
| %68 = OpBitwiseOr %uint %67 %56 |
| %69 = OpIAdd %uint %68 %61 |
| OpReturnValue %69 |
| OpFunctionEnd |
| %countTrailingZeros_21e394 = OpFunction %uint None %70 |
| %72 = OpLabel |
| %arg_0 = OpVariable %_ptr_Function_uint Function %9 |
| %res = OpVariable %_ptr_Function_uint Function %9 |
| OpStore %arg_0 %uint_1 |
| %75 = OpLoad %uint %arg_0 |
| %74 = OpFunctionCall %uint %tint_count_trailing_zeros %75 |
| OpStore %res %74 |
| %77 = OpLoad %uint %res |
| OpReturnValue %77 |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %78 |
| %81 = OpLabel |
| %84 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0 |
| %85 = OpFunctionCall %uint %countTrailingZeros_21e394 |
| OpStore %84 %85 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %78 |
| %87 = OpLabel |
| %88 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0 |
| %89 = OpFunctionCall %uint %countTrailingZeros_21e394 |
| OpStore %88 %89 |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %VertexOutput None %90 |
| %93 = OpLabel |
| %out = OpVariable %_ptr_Function_VertexOutput Function %96 |
| %98 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| OpStore %98 %5 |
| %99 = OpAccessChain %_ptr_Function_uint %out %uint_1 |
| %100 = OpFunctionCall %uint %countTrailingZeros_21e394 |
| OpStore %99 %100 |
| %101 = OpLoad %VertexOutput %out |
| OpReturnValue %101 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %78 |
| %103 = OpLabel |
| %104 = OpFunctionCall %VertexOutput %vertex_main_inner |
| %105 = OpCompositeExtract %v4float %104 0 |
| OpStore %pos_1 %105 |
| %106 = OpCompositeExtract %uint %104 1 |
| OpStore %prevent_dce_1 %106 |
| OpStore %vertex_point_size %float_1 |
| OpReturn |
| OpFunctionEnd |