| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 75 |
| ; Schema: 0 |
| OpCapability Shader |
| %19 = OpExtInstImport "GLSL.std.450" |
| 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 %prevent_dce_block "prevent_dce_block" |
| OpMemberName %prevent_dce_block 0 "inner" |
| OpName %prevent_dce "prevent_dce" |
| OpName %tint_pack_4xu8_clamp "tint_pack_4xu8_clamp" |
| OpName %a "a" |
| OpName %pack4xU8Clamp_6b8c1b "pack4xU8Clamp_6b8c1b" |
| OpName %arg_0 "arg_0" |
| 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 |
| OpDecorate %prevent_dce_block Block |
| OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| OpDecorate %prevent_dce DescriptorSet 2 |
| OpDecorate %prevent_dce Binding 0 |
| %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 |
| %uint = OpTypeInt 32 0 |
| %prevent_dce_block = OpTypeStruct %uint |
| %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| %v4uint = OpTypeVector %uint 4 |
| %13 = OpTypeFunction %uint %v4uint |
| %20 = OpConstantNull %v4uint |
| %uint_255 = OpConstant %uint 255 |
| %22 = OpConstantComposite %v4uint %uint_255 %uint_255 %uint_255 %uint_255 |
| %24 = OpConstantNull %uint |
| %uint_8 = OpConstant %uint 8 |
| %uint_16 = OpConstant %uint 16 |
| %uint_24 = OpConstant %uint 24 |
| %28 = OpConstantComposite %v4uint %24 %uint_8 %uint_16 %uint_24 |
| %uint_1 = OpConstant %uint 1 |
| %32 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1 |
| %void = OpTypeVoid |
| %47 = OpTypeFunction %void |
| %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %61 = OpTypeFunction %v4float |
| %float_1 = OpConstant %float 1 |
| %tint_pack_4xu8_clamp = OpFunction %uint None %13 |
| %a = OpFunctionParameter %v4uint |
| %17 = OpLabel |
| %18 = OpExtInst %v4uint %19 UClamp %a %20 %22 |
| %29 = OpShiftLeftLogical %v4uint %18 %28 |
| %33 = OpCompositeExtract %uint %29 0 |
| %34 = OpCompositeExtract %uint %32 0 |
| %35 = OpIMul %uint %33 %34 |
| %36 = OpCompositeExtract %uint %29 1 |
| %37 = OpCompositeExtract %uint %32 1 |
| %38 = OpIMul %uint %36 %37 |
| %39 = OpIAdd %uint %35 %38 |
| %40 = OpCompositeExtract %uint %29 2 |
| %41 = OpCompositeExtract %uint %32 2 |
| %42 = OpIMul %uint %40 %41 |
| %43 = OpIAdd %uint %39 %42 |
| %44 = OpCompositeExtract %uint %29 3 |
| %45 = OpCompositeExtract %uint %32 3 |
| %46 = OpIMul %uint %44 %45 |
| %30 = OpIAdd %uint %43 %46 |
| OpReturnValue %30 |
| OpFunctionEnd |
| %pack4xU8Clamp_6b8c1b = OpFunction %void None %47 |
| %50 = OpLabel |
| %arg_0 = OpVariable %_ptr_Function_v4uint Function %20 |
| %res = OpVariable %_ptr_Function_uint Function %24 |
| OpStore %arg_0 %32 |
| %54 = OpLoad %v4uint %arg_0 |
| %53 = OpFunctionCall %uint %tint_pack_4xu8_clamp %54 |
| OpStore %res %53 |
| %59 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0 |
| %60 = OpLoad %uint %res |
| OpStore %59 %60 |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %v4float None %61 |
| %63 = OpLabel |
| %64 = OpFunctionCall %void %pack4xU8Clamp_6b8c1b |
| OpReturnValue %5 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %47 |
| %66 = OpLabel |
| %67 = OpFunctionCall %v4float %vertex_main_inner |
| OpStore %value %67 |
| OpStore %vertex_point_size %float_1 |
| OpReturn |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %47 |
| %70 = OpLabel |
| %71 = OpFunctionCall %void %pack4xU8Clamp_6b8c1b |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %47 |
| %73 = OpLabel |
| %74 = OpFunctionCall %void %pack4xU8Clamp_6b8c1b |
| OpReturn |
| OpFunctionEnd |