;
; fragment_main
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 51
; Schema: 0
               OpCapability Shader
         %23 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Fragment %fragment_main "fragment_main"
               OpExecutionMode %fragment_main OriginUpperLeft
               OpMemberName %prevent_dce_block 0 "inner"
               OpName %prevent_dce_block "prevent_dce_block"
               OpName %pack4xU8Clamp_6b8c1b "pack4xU8Clamp_6b8c1b"
               OpName %arg_0 "arg_0"
               OpName %res "res"
               OpName %fragment_main "fragment_main"
               OpMemberDecorate %prevent_dce_block 0 Offset 0
               OpDecorate %prevent_dce_block Block
               OpDecorate %1 DescriptorSet 0
               OpDecorate %1 Binding 0
               OpDecorate %1 Coherent
       %uint = OpTypeInt 32 0
%prevent_dce_block = OpTypeStruct %uint
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
          %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
          %6 = OpTypeFunction %uint
     %v4uint = OpTypeVector %uint 4
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
     %uint_1 = OpConstant %uint 1
         %11 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
     %uint_0 = OpConstant %uint 0
     %uint_8 = OpConstant %uint 8
    %uint_16 = OpConstant %uint 16
    %uint_24 = OpConstant %uint 24
   %uint_255 = OpConstant %uint 255
%_ptr_Function_uint = OpTypePointer Function %uint
       %void = OpTypeVoid
         %46 = OpTypeFunction %void
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%pack4xU8Clamp_6b8c1b = OpFunction %uint None %6
          %7 = OpLabel
      %arg_0 = OpVariable %_ptr_Function_v4uint Function
        %res = OpVariable %_ptr_Function_uint Function
               OpStore %arg_0 %11
         %13 = OpLoad %v4uint %arg_0 None
         %14 = OpCompositeConstruct %v4uint %uint_0 %uint_8 %uint_16 %uint_24
         %19 = OpCompositeConstruct %v4uint %uint_0 %uint_0 %uint_0 %uint_0
         %20 = OpCompositeConstruct %v4uint %uint_255 %uint_255 %uint_255 %uint_255
         %22 = OpExtInst %v4uint %23 UClamp %13 %19 %20
         %24 = OpShiftLeftLogical %v4uint %22 %14
         %25 = OpCompositeConstruct %v4uint %uint_1 %uint_1 %uint_1 %uint_1
         %26 = OpCompositeExtract %uint %24 0
         %27 = OpCompositeExtract %uint %25 0
         %28 = OpIMul %uint %26 %27
         %29 = OpCompositeExtract %uint %24 1
         %30 = OpCompositeExtract %uint %25 1
         %31 = OpIMul %uint %29 %30
         %32 = OpIAdd %uint %28 %31
         %33 = OpCompositeExtract %uint %24 2
         %34 = OpCompositeExtract %uint %25 2
         %35 = OpIMul %uint %33 %34
         %36 = OpIAdd %uint %32 %35
         %37 = OpCompositeExtract %uint %24 3
         %38 = OpCompositeExtract %uint %25 3
         %39 = OpIMul %uint %37 %38
         %40 = OpIAdd %uint %36 %39
               OpStore %res %40
         %43 = OpLoad %uint %res None
               OpReturnValue %43
               OpFunctionEnd
%fragment_main = OpFunction %void None %46
         %47 = OpLabel
         %48 = OpFunctionCall %uint %pack4xU8Clamp_6b8c1b
         %49 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0
               OpStore %49 %48 None
               OpReturn
               OpFunctionEnd
;
; compute_main
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 51
; Schema: 0
               OpCapability Shader
         %23 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %compute_main "compute_main"
               OpExecutionMode %compute_main LocalSize 1 1 1
               OpMemberName %prevent_dce_block 0 "inner"
               OpName %prevent_dce_block "prevent_dce_block"
               OpName %pack4xU8Clamp_6b8c1b "pack4xU8Clamp_6b8c1b"
               OpName %arg_0 "arg_0"
               OpName %res "res"
               OpName %compute_main "compute_main"
               OpMemberDecorate %prevent_dce_block 0 Offset 0
               OpDecorate %prevent_dce_block Block
               OpDecorate %1 DescriptorSet 0
               OpDecorate %1 Binding 0
               OpDecorate %1 Coherent
       %uint = OpTypeInt 32 0
%prevent_dce_block = OpTypeStruct %uint
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
          %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
          %6 = OpTypeFunction %uint
     %v4uint = OpTypeVector %uint 4
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
     %uint_1 = OpConstant %uint 1
         %11 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
     %uint_0 = OpConstant %uint 0
     %uint_8 = OpConstant %uint 8
    %uint_16 = OpConstant %uint 16
    %uint_24 = OpConstant %uint 24
   %uint_255 = OpConstant %uint 255
%_ptr_Function_uint = OpTypePointer Function %uint
       %void = OpTypeVoid
         %46 = OpTypeFunction %void
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%pack4xU8Clamp_6b8c1b = OpFunction %uint None %6
          %7 = OpLabel
      %arg_0 = OpVariable %_ptr_Function_v4uint Function
        %res = OpVariable %_ptr_Function_uint Function
               OpStore %arg_0 %11
         %13 = OpLoad %v4uint %arg_0 None
         %14 = OpCompositeConstruct %v4uint %uint_0 %uint_8 %uint_16 %uint_24
         %19 = OpCompositeConstruct %v4uint %uint_0 %uint_0 %uint_0 %uint_0
         %20 = OpCompositeConstruct %v4uint %uint_255 %uint_255 %uint_255 %uint_255
         %22 = OpExtInst %v4uint %23 UClamp %13 %19 %20
         %24 = OpShiftLeftLogical %v4uint %22 %14
         %25 = OpCompositeConstruct %v4uint %uint_1 %uint_1 %uint_1 %uint_1
         %26 = OpCompositeExtract %uint %24 0
         %27 = OpCompositeExtract %uint %25 0
         %28 = OpIMul %uint %26 %27
         %29 = OpCompositeExtract %uint %24 1
         %30 = OpCompositeExtract %uint %25 1
         %31 = OpIMul %uint %29 %30
         %32 = OpIAdd %uint %28 %31
         %33 = OpCompositeExtract %uint %24 2
         %34 = OpCompositeExtract %uint %25 2
         %35 = OpIMul %uint %33 %34
         %36 = OpIAdd %uint %32 %35
         %37 = OpCompositeExtract %uint %24 3
         %38 = OpCompositeExtract %uint %25 3
         %39 = OpIMul %uint %37 %38
         %40 = OpIAdd %uint %36 %39
               OpStore %res %40
         %43 = OpLoad %uint %res None
               OpReturnValue %43
               OpFunctionEnd
%compute_main = OpFunction %void None %46
         %47 = OpLabel
         %48 = OpFunctionCall %uint %pack4xU8Clamp_6b8c1b
         %49 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0
               OpStore %49 %48 None
               OpReturn
               OpFunctionEnd
;
; vertex_main
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 70
; Schema: 0
               OpCapability Shader
         %28 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output
               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 %pack4xU8Clamp_6b8c1b "pack4xU8Clamp_6b8c1b"
               OpName %arg_0 "arg_0"
               OpName %res "res"
               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"
               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
      %float = OpTypeFloat 32
    %v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
       %uint = OpTypeInt 32 0
%_ptr_Output_uint = OpTypePointer Output %uint
%vertex_main_loc0_Output = OpVariable %_ptr_Output_uint Output
%_ptr_Output_float = OpTypePointer Output %float
%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
         %11 = OpTypeFunction %uint
     %v4uint = OpTypeVector %uint 4
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
     %uint_1 = OpConstant %uint 1
         %16 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
     %uint_0 = OpConstant %uint 0
     %uint_8 = OpConstant %uint 8
    %uint_16 = OpConstant %uint 16
    %uint_24 = OpConstant %uint 24
   %uint_255 = OpConstant %uint 255
%_ptr_Function_uint = OpTypePointer Function %uint
%VertexOutput = OpTypeStruct %v4float %uint
         %51 = OpTypeFunction %VertexOutput
%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
         %55 = OpConstantNull %VertexOutput
%_ptr_Function_v4float = OpTypePointer Function %v4float
         %58 = OpConstantNull %v4float
       %void = OpTypeVoid
         %64 = OpTypeFunction %void
    %float_1 = OpConstant %float 1
%pack4xU8Clamp_6b8c1b = OpFunction %uint None %11
         %12 = OpLabel
      %arg_0 = OpVariable %_ptr_Function_v4uint Function
        %res = OpVariable %_ptr_Function_uint Function
               OpStore %arg_0 %16
         %18 = OpLoad %v4uint %arg_0 None
         %19 = OpCompositeConstruct %v4uint %uint_0 %uint_8 %uint_16 %uint_24
         %24 = OpCompositeConstruct %v4uint %uint_0 %uint_0 %uint_0 %uint_0
         %25 = OpCompositeConstruct %v4uint %uint_255 %uint_255 %uint_255 %uint_255
         %27 = OpExtInst %v4uint %28 UClamp %18 %24 %25
         %29 = OpShiftLeftLogical %v4uint %27 %19
         %30 = OpCompositeConstruct %v4uint %uint_1 %uint_1 %uint_1 %uint_1
         %31 = OpCompositeExtract %uint %29 0
         %32 = OpCompositeExtract %uint %30 0
         %33 = OpIMul %uint %31 %32
         %34 = OpCompositeExtract %uint %29 1
         %35 = OpCompositeExtract %uint %30 1
         %36 = OpIMul %uint %34 %35
         %37 = OpIAdd %uint %33 %36
         %38 = OpCompositeExtract %uint %29 2
         %39 = OpCompositeExtract %uint %30 2
         %40 = OpIMul %uint %38 %39
         %41 = OpIAdd %uint %37 %40
         %42 = OpCompositeExtract %uint %29 3
         %43 = OpCompositeExtract %uint %30 3
         %44 = OpIMul %uint %42 %43
         %45 = OpIAdd %uint %41 %44
               OpStore %res %45
         %48 = OpLoad %uint %res None
               OpReturnValue %48
               OpFunctionEnd
%vertex_main_inner = OpFunction %VertexOutput None %51
         %52 = OpLabel
        %out = OpVariable %_ptr_Function_VertexOutput Function %55
         %56 = OpAccessChain %_ptr_Function_v4float %out %uint_0
               OpStore %56 %58 None
         %59 = OpAccessChain %_ptr_Function_uint %out %uint_1
         %60 = OpFunctionCall %uint %pack4xU8Clamp_6b8c1b
               OpStore %59 %60 None
         %61 = OpLoad %VertexOutput %out None
               OpReturnValue %61
               OpFunctionEnd
%vertex_main = OpFunction %void None %64
         %65 = OpLabel
         %66 = OpFunctionCall %VertexOutput %vertex_main_inner
         %67 = OpCompositeExtract %v4float %66 0
               OpStore %vertex_main_position_Output %67 None
         %68 = OpCompositeExtract %uint %66 1
               OpStore %vertex_main_loc0_Output %68 None
               OpStore %vertex_main___point_size_Output %float_1 None
               OpReturn
               OpFunctionEnd
