| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 108 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability VulkanMemoryModel |
| OpCapability VulkanMemoryModelDeviceScope |
| OpCapability CooperativeMatrixKHR |
| OpExtension "SPV_KHR_vulkan_memory_model" |
| OpExtension "SPV_KHR_cooperative_matrix" |
| OpMemoryModel Logical Vulkan |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 64 1 1 |
| OpMemberName %buffer_block_tint_explicit_layout 0 "inner" |
| OpName %buffer_block_tint_explicit_layout "buffer_block_tint_explicit_layout" |
| OpName %main "main" |
| OpName %m "m" |
| OpName %m_array "m_array" |
| OpName %m_nested_array "m_nested_array" |
| OpMemberName %S 0 "l" |
| OpMemberName %S 1 "r" |
| OpName %S "S" |
| OpName %m_struct "m_struct" |
| OpMemberName %S_Nested 0 "s" |
| OpName %S_Nested "S_Nested" |
| OpName %m_nested_struct "m_nested_struct" |
| OpDecorate %_runtimearr_float ArrayStride 4 |
| OpMemberDecorate %buffer_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %buffer_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| %float = OpTypeFloat 32 |
| %_runtimearr_float = OpTypeRuntimeArray %float |
| %buffer_block_tint_explicit_layout = OpTypeStruct %_runtimearr_float |
| %_ptr_StorageBuffer_buffer_block_tint_explicit_layout = OpTypePointer StorageBuffer %buffer_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_buffer_block_tint_explicit_layout StorageBuffer |
| %void = OpTypeVoid |
| %8 = OpTypeFunction %void |
| %uint = OpTypeInt 32 0 |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uint_0 = OpConstant %uint 0 |
| %12 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0 |
| %_ptr_Function_12 = OpTypePointer Function %12 |
| %17 = OpConstantNull %12 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_12_uint_4 = OpTypeArray %12 %uint_4 |
| %_ptr_Function__arr_12_uint_4 = OpTypePointer Function %_arr_12_uint_4 |
| %22 = OpConstantNull %_arr_12_uint_4 |
| %_arr__arr_12_uint_4_uint_4 = OpTypeArray %_arr_12_uint_4 %uint_4 |
| %_ptr_Function__arr__arr_12_uint_4_uint_4 = OpTypePointer Function %_arr__arr_12_uint_4_uint_4 |
| %26 = OpConstantNull %_arr__arr_12_uint_4_uint_4 |
| %uint_1 = OpConstant %uint 1 |
| %30 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1 |
| %S = OpTypeStruct %12 %30 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %32 = OpConstantNull %S |
| %S_Nested = OpTypeStruct %S |
| %_ptr_Function_S_Nested = OpTypePointer Function %S_Nested |
| %36 = OpConstantNull %S_Nested |
| %_ptr_StorageBuffer__runtimearr_float = OpTypePointer StorageBuffer %_runtimearr_float |
| %uint_64 = OpConstant %uint 64 |
| %uint_7 = OpConstant %uint 7 |
| %bool = OpTypeBool |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Function_30 = OpTypePointer Function %30 |
| %main = OpFunction %void None %8 |
| %9 = OpLabel |
| %m = OpVariable %_ptr_Function_12 Function %17 |
| %m_array = OpVariable %_ptr_Function__arr_12_uint_4 Function %22 |
| %m_nested_array = OpVariable %_ptr_Function__arr__arr_12_uint_4_uint_4 Function %26 |
| %m_struct = OpVariable %_ptr_Function_S Function %32 |
| %m_nested_struct = OpVariable %_ptr_Function_S_Nested Function %36 |
| %37 = OpLoad %12 %m None |
| %38 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %40 = OpArrayLength %uint %1 0 |
| %41 = OpIMul %uint %uint_64 %uint_7 |
| %44 = OpIAdd %uint %uint_0 %41 |
| %45 = OpIAdd %uint %44 %uint_8 |
| %46 = OpULessThanEqual %bool %45 %40 |
| %48 = OpSelect %uint %46 %uint_0 %uint_0 |
| %49 = OpSelect %uint %46 %uint_64 %uint_8 |
| %50 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %51 = OpAccessChain %_ptr_StorageBuffer_float %50 %48 |
| OpCooperativeMatrixStoreKHR %51 %37 %uint_0 %49 NonPrivatePointer |
| %54 = OpAccessChain %_ptr_Function_12 %m_array %uint_0 |
| %55 = OpLoad %12 %54 None |
| %56 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %57 = OpArrayLength %uint %1 0 |
| %58 = OpIMul %uint %uint_64 %uint_7 |
| %59 = OpIAdd %uint %uint_0 %58 |
| %60 = OpIAdd %uint %59 %uint_8 |
| %61 = OpULessThanEqual %bool %60 %57 |
| %62 = OpSelect %uint %61 %uint_0 %uint_0 |
| %63 = OpSelect %uint %61 %uint_64 %uint_8 |
| %64 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %65 = OpAccessChain %_ptr_StorageBuffer_float %64 %62 |
| OpCooperativeMatrixStoreKHR %65 %55 %uint_0 %63 NonPrivatePointer |
| %67 = OpAccessChain %_ptr_Function_12 %m_nested_array %uint_1 %uint_2 |
| %69 = OpLoad %12 %67 None |
| %70 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %71 = OpArrayLength %uint %1 0 |
| %72 = OpIMul %uint %uint_64 %uint_7 |
| %73 = OpIAdd %uint %uint_0 %72 |
| %74 = OpIAdd %uint %73 %uint_8 |
| %75 = OpULessThanEqual %bool %74 %71 |
| %76 = OpSelect %uint %75 %uint_0 %uint_0 |
| %77 = OpSelect %uint %75 %uint_64 %uint_8 |
| %78 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %79 = OpAccessChain %_ptr_StorageBuffer_float %78 %76 |
| OpCooperativeMatrixStoreKHR %79 %69 %uint_0 %77 NonPrivatePointer |
| %81 = OpAccessChain %_ptr_Function_12 %m_struct %uint_0 |
| %82 = OpLoad %12 %81 None |
| %83 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %84 = OpArrayLength %uint %1 0 |
| %85 = OpIMul %uint %uint_64 %uint_7 |
| %86 = OpIAdd %uint %uint_0 %85 |
| %87 = OpIAdd %uint %86 %uint_8 |
| %88 = OpULessThanEqual %bool %87 %84 |
| %89 = OpSelect %uint %88 %uint_0 %uint_0 |
| %90 = OpSelect %uint %88 %uint_64 %uint_8 |
| %91 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %92 = OpAccessChain %_ptr_StorageBuffer_float %91 %89 |
| OpCooperativeMatrixStoreKHR %92 %82 %uint_0 %90 NonPrivatePointer |
| %94 = OpAccessChain %_ptr_Function_30 %m_nested_struct %uint_0 %uint_1 |
| %96 = OpLoad %30 %94 None |
| %97 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %98 = OpArrayLength %uint %1 0 |
| %99 = OpIMul %uint %uint_64 %uint_7 |
| %100 = OpIAdd %uint %uint_0 %99 |
| %101 = OpIAdd %uint %100 %uint_8 |
| %102 = OpULessThanEqual %bool %101 %98 |
| %103 = OpSelect %uint %102 %uint_0 %uint_0 |
| %104 = OpSelect %uint %102 %uint_64 %uint_8 |
| %105 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %106 = OpAccessChain %_ptr_StorageBuffer_float %105 %103 |
| OpCooperativeMatrixStoreKHR %106 %96 %uint_0 %104 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |