| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 0 | |
| ; Bound: 38 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %f "f" | |
| OpExecutionMode %f LocalSize 1 1 1 | |
| OpName %UBO "UBO" | |
| OpMemberName %UBO 0 "dynamic_idx" | |
| OpName %ubo "ubo" | |
| OpName %Result "Result" | |
| OpMemberName %Result 0 "out" | |
| OpName %result "result" | |
| OpName %S "S" | |
| OpMemberName %S 0 "data" | |
| OpName %s "s" | |
| OpName %x "x" | |
| OpName %p "p" | |
| OpName %f "f" | |
| OpDecorate %UBO Block | |
| OpMemberDecorate %UBO 0 Offset 0 | |
| OpDecorate %ubo NonWritable | |
| OpDecorate %ubo DescriptorSet 0 | |
| OpDecorate %ubo Binding 0 | |
| OpDecorate %Result Block | |
| OpMemberDecorate %Result 0 Offset 0 | |
| OpDecorate %result DescriptorSet 0 | |
| OpDecorate %result Binding 1 | |
| OpMemberDecorate %S 0 Offset 0 | |
| OpDecorate %_arr_int_uint_64 ArrayStride 4 | |
| %int = OpTypeInt 32 1 | |
| %UBO = OpTypeStruct %int | |
| %_ptr_Uniform_UBO = OpTypePointer Uniform %UBO | |
| %ubo = OpVariable %_ptr_Uniform_UBO Uniform | |
| %Result = OpTypeStruct %int | |
| %_ptr_StorageBuffer_Result = OpTypePointer StorageBuffer %Result | |
| %result = OpVariable %_ptr_StorageBuffer_Result StorageBuffer | |
| %uint = OpTypeInt 32 0 | |
| %uint_64 = OpConstant %uint 64 | |
| %_arr_int_uint_64 = OpTypeArray %int %uint_64 | |
| %S = OpTypeStruct %_arr_int_uint_64 | |
| %_ptr_Private_S = OpTypePointer Private %S | |
| %14 = OpConstantNull %S | |
| %s = OpVariable %_ptr_Private_S Private %14 | |
| %void = OpTypeVoid | |
| %15 = OpTypeFunction %void %_ptr_Private_S | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_Uniform_int = OpTypePointer Uniform %int | |
| %_ptr_Private_int = OpTypePointer Private %int | |
| %int_1 = OpConstant %int 1 | |
| %28 = OpTypeFunction %void | |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int | |
| %int_3 = OpConstant %int 3 | |
| %x = OpFunction %void None %15 | |
| %p = OpFunctionParameter %_ptr_Private_S | |
| %19 = OpLabel | |
| %23 = OpAccessChain %_ptr_Uniform_int %ubo %uint_0 | |
| %24 = OpLoad %int %23 | |
| %26 = OpAccessChain %_ptr_Private_int %p %uint_0 %24 | |
| OpStore %26 %int_1 | |
| OpReturn | |
| OpFunctionEnd | |
| %f = OpFunction %void None %28 | |
| %30 = OpLabel | |
| %31 = OpFunctionCall %void %x %s | |
| %34 = OpAccessChain %_ptr_StorageBuffer_int %result %uint_0 | |
| %36 = OpAccessChain %_ptr_Private_int %s %uint_0 %int_3 | |
| %37 = OpLoad %int %36 | |
| OpStore %34 %37 | |
| OpReturn | |
| OpFunctionEnd |