| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 35 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %Src "Src" |
| OpName %Dst "Dst" |
| OpName %main_1 "main_1" |
| OpName %srcValue "srcValue" |
| OpName %main "main" |
| OpDecorate %Src DescriptorSet 0 |
| OpDecorate %Src Binding 0 |
| OpDecorate %Dst NonReadable |
| OpDecorate %Dst DescriptorSet 0 |
| OpDecorate %Dst Binding 1 |
| %uint = OpTypeInt 32 0 |
| %3 = OpTypeImage %uint 2D 0 0 0 1 Unknown |
| %_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3 |
| %Src = OpVariable %_ptr_UniformConstant_3 UniformConstant |
| %7 = OpTypeImage %uint 2D 0 0 0 2 R32ui |
| %_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7 |
| %Dst = OpVariable %_ptr_UniformConstant_7 UniformConstant |
| %void = OpTypeVoid |
| %8 = OpTypeFunction %void |
| %v4uint = OpTypeVector %uint 4 |
| %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| %15 = OpConstantNull %v4uint |
| %int = OpTypeInt 32 1 |
| %v2int = OpTypeVector %int 2 |
| %20 = OpConstantNull %v2int |
| %21 = OpConstantNull %int |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_1 = OpConstant %uint 1 |
| %main_1 = OpFunction %void None %8 |
| %11 = OpLabel |
| %srcValue = OpVariable %_ptr_Function_v4uint Function %15 |
| %17 = OpLoad %3 %Src |
| %16 = OpImageFetch %v4uint %17 %20 Lod %21 |
| OpStore %srcValue %16 |
| %24 = OpAccessChain %_ptr_Function_uint %srcValue %uint_0 |
| %25 = OpLoad %uint %24 |
| %26 = OpAccessChain %_ptr_Function_uint %srcValue %uint_0 |
| %28 = OpIAdd %uint %25 %uint_1 |
| OpStore %26 %28 |
| %29 = OpLoad %v4uint %srcValue |
| %31 = OpLoad %7 %Dst |
| OpImageWrite %31 %20 %29 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %8 |
| %33 = OpLabel |
| %34 = OpFunctionCall %void %main_1 |
| OpReturn |
| OpFunctionEnd |