| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 32 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %ubo_block "ubo_block" |
| OpMemberName %ubo_block 0 "inner" |
| OpName %UBO "UBO" |
| OpMemberName %UBO 0 "dynamic_idx" |
| OpName %ubo "ubo" |
| OpName %result_block "result_block" |
| OpMemberName %result_block 0 "inner" |
| OpName %Result "Result" |
| OpMemberName %Result 0 "out" |
| OpName %result "result" |
| OpName %ssbo_block "ssbo_block" |
| OpMemberName %ssbo_block 0 "inner" |
| OpName %SSBO "SSBO" |
| OpMemberName %SSBO 0 "data" |
| OpName %ssbo "ssbo" |
| OpName %f "f" |
| OpDecorate %ubo_block Block |
| OpMemberDecorate %ubo_block 0 Offset 0 |
| OpMemberDecorate %UBO 0 Offset 0 |
| OpDecorate %ubo NonWritable |
| OpDecorate %ubo DescriptorSet 0 |
| OpDecorate %ubo Binding 0 |
| OpDecorate %result_block Block |
| OpMemberDecorate %result_block 0 Offset 0 |
| OpMemberDecorate %Result 0 Offset 0 |
| OpDecorate %result DescriptorSet 0 |
| OpDecorate %result Binding 2 |
| OpDecorate %ssbo_block Block |
| OpMemberDecorate %ssbo_block 0 Offset 0 |
| OpMemberDecorate %SSBO 0 Offset 0 |
| OpDecorate %_arr_int_uint_4 ArrayStride 4 |
| OpDecorate %ssbo DescriptorSet 0 |
| OpDecorate %ssbo Binding 1 |
| %int = OpTypeInt 32 1 |
| %UBO = OpTypeStruct %int |
| %ubo_block = OpTypeStruct %UBO |
| %_ptr_Uniform_ubo_block = OpTypePointer Uniform %ubo_block |
| %ubo = OpVariable %_ptr_Uniform_ubo_block Uniform |
| %Result = OpTypeStruct %int |
| %result_block = OpTypeStruct %Result |
| %_ptr_StorageBuffer_result_block = OpTypePointer StorageBuffer %result_block |
| %result = OpVariable %_ptr_StorageBuffer_result_block StorageBuffer |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_int_uint_4 = OpTypeArray %int %uint_4 |
| %SSBO = OpTypeStruct %_arr_int_uint_4 |
| %ssbo_block = OpTypeStruct %SSBO |
| %_ptr_StorageBuffer_ssbo_block = OpTypePointer StorageBuffer %ssbo_block |
| %ssbo = OpVariable %_ptr_StorageBuffer_ssbo_block StorageBuffer |
| %void = OpTypeVoid |
| %17 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %int_1 = OpConstant %int 1 |
| %int_3 = OpConstant %int 3 |
| %f = OpFunction %void None %17 |
| %20 = OpLabel |
| %23 = OpAccessChain %_ptr_Uniform_int %ubo %uint_0 %uint_0 |
| %24 = OpLoad %int %23 |
| %26 = OpAccessChain %_ptr_StorageBuffer_int %ssbo %uint_0 %uint_0 %24 |
| OpStore %26 %int_1 |
| %28 = OpAccessChain %_ptr_StorageBuffer_int %result %uint_0 %uint_0 |
| %30 = OpAccessChain %_ptr_StorageBuffer_int %ssbo %uint_0 %uint_0 %int_3 |
| %31 = OpLoad %int %30 |
| OpStore %28 %31 |
| OpReturn |
| OpFunctionEnd |