| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 106 |
| ; 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" |
| OpName %m_let "m_let" |
| OpName %m_array_let "m_array_let" |
| OpName %m_nested_array_let "m_nested_array_let" |
| OpName %m_struct_let "m_struct_let" |
| OpName %m_nested_struct_let "m_nested_struct_let" |
| 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 |
| %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 |
| %m_let = OpLoad %12 %m None |
| %m_array_let = OpLoad %_arr_12_uint_4 %m_array None |
| %m_nested_array_let = OpLoad %_arr__arr_12_uint_4_uint_4 %m_nested_array None |
| %m_struct_let = OpLoad %S %m_struct None |
| %m_nested_struct_let = OpLoad %S_Nested %m_nested_struct None |
| %42 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %44 = OpArrayLength %uint %1 0 |
| %45 = OpIMul %uint %uint_64 %uint_7 |
| %48 = OpIAdd %uint %uint_0 %45 |
| %49 = OpIAdd %uint %48 %uint_8 |
| %50 = OpULessThanEqual %bool %49 %44 |
| OpSelectionMerge %52 None |
| OpBranchConditional %50 %53 %52 |
| %53 = OpLabel |
| %90 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %91 = OpAccessChain %_ptr_StorageBuffer_float %90 %uint_0 |
| OpCooperativeMatrixStoreKHR %91 %m_let %uint_0 %uint_64 NonPrivatePointer |
| OpBranch %52 |
| %52 = OpLabel |
| %54 = OpCompositeExtract %12 %m_array_let 0 |
| %55 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %56 = OpArrayLength %uint %1 0 |
| %57 = OpIMul %uint %uint_64 %uint_7 |
| %58 = OpIAdd %uint %uint_0 %57 |
| %59 = OpIAdd %uint %58 %uint_8 |
| %60 = OpULessThanEqual %bool %59 %56 |
| OpSelectionMerge %61 None |
| OpBranchConditional %60 %62 %61 |
| %62 = OpLabel |
| %94 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %95 = OpAccessChain %_ptr_StorageBuffer_float %94 %uint_0 |
| OpCooperativeMatrixStoreKHR %95 %54 %uint_0 %uint_64 NonPrivatePointer |
| OpBranch %61 |
| %61 = OpLabel |
| %63 = OpCompositeExtract %12 %m_nested_array_let 1 2 |
| %64 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %65 = OpArrayLength %uint %1 0 |
| %66 = OpIMul %uint %uint_64 %uint_7 |
| %67 = OpIAdd %uint %uint_0 %66 |
| %68 = OpIAdd %uint %67 %uint_8 |
| %69 = OpULessThanEqual %bool %68 %65 |
| OpSelectionMerge %70 None |
| OpBranchConditional %69 %71 %70 |
| %71 = OpLabel |
| %97 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %98 = OpAccessChain %_ptr_StorageBuffer_float %97 %uint_0 |
| OpCooperativeMatrixStoreKHR %98 %63 %uint_0 %uint_64 NonPrivatePointer |
| OpBranch %70 |
| %70 = OpLabel |
| %72 = OpCompositeExtract %12 %m_struct_let 0 |
| %73 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %74 = OpArrayLength %uint %1 0 |
| %75 = OpIMul %uint %uint_64 %uint_7 |
| %76 = OpIAdd %uint %uint_0 %75 |
| %77 = OpIAdd %uint %76 %uint_8 |
| %78 = OpULessThanEqual %bool %77 %74 |
| OpSelectionMerge %79 None |
| OpBranchConditional %78 %80 %79 |
| %80 = OpLabel |
| %100 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %101 = OpAccessChain %_ptr_StorageBuffer_float %100 %uint_0 |
| OpCooperativeMatrixStoreKHR %101 %72 %uint_0 %uint_64 NonPrivatePointer |
| OpBranch %79 |
| %79 = OpLabel |
| %81 = OpCompositeExtract %30 %m_nested_struct_let 0 1 |
| %82 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %83 = OpArrayLength %uint %1 0 |
| %84 = OpIMul %uint %uint_64 %uint_7 |
| %85 = OpIAdd %uint %uint_0 %84 |
| %86 = OpIAdd %uint %85 %uint_8 |
| %87 = OpULessThanEqual %bool %86 %83 |
| OpSelectionMerge %88 None |
| OpBranchConditional %87 %89 %88 |
| %89 = OpLabel |
| %103 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %104 = OpAccessChain %_ptr_StorageBuffer_float %103 %uint_0 |
| OpCooperativeMatrixStoreKHR %104 %81 %uint_0 %uint_64 NonPrivatePointer |
| OpBranch %88 |
| %88 = OpLabel |
| OpReturn |
| OpFunctionEnd |