| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 100 |
| ; 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 %foo "foo" |
| 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 %main "main" |
| OpName %m_0 "m" |
| OpName %m_array_0 "m_array" |
| OpName %m_nested_array_0 "m_nested_array" |
| OpName %m_struct_0 "m_struct" |
| OpName %m_nested_struct_0 "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 |
| %uint = OpTypeInt 32 0 |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uint_0 = OpConstant %uint 0 |
| %8 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_8_uint_4 = OpTypeArray %8 %uint_4 |
| %_arr__arr_8_uint_4_uint_4 = OpTypeArray %_arr_8_uint_4 %uint_4 |
| %uint_1 = OpConstant %uint 1 |
| %20 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1 |
| %S = OpTypeStruct %8 %20 |
| %S_Nested = OpTypeStruct %S |
| %25 = OpTypeFunction %void %8 %_arr_8_uint_4 %_arr__arr_8_uint_4_uint_4 %S %S_Nested |
| %_ptr_StorageBuffer__runtimearr_float = OpTypePointer StorageBuffer %_runtimearr_float |
| %uint_456 = OpConstant %uint 456 |
| %bool = OpTypeBool |
| %uint_64 = OpConstant %uint 64 |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %77 = OpTypeFunction %void |
| %_ptr_Function_8 = OpTypePointer Function %8 |
| %81 = OpConstantNull %8 |
| %_ptr_Function__arr_8_uint_4 = OpTypePointer Function %_arr_8_uint_4 |
| %84 = OpConstantNull %_arr_8_uint_4 |
| %_ptr_Function__arr__arr_8_uint_4_uint_4 = OpTypePointer Function %_arr__arr_8_uint_4_uint_4 |
| %87 = OpConstantNull %_arr__arr_8_uint_4_uint_4 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %90 = OpConstantNull %S |
| %_ptr_Function_S_Nested = OpTypePointer Function %S_Nested |
| %93 = OpConstantNull %S_Nested |
| %foo = OpFunction %void None %25 |
| %m = OpFunctionParameter %8 |
| %m_array = OpFunctionParameter %_arr_8_uint_4 |
| %m_nested_array = OpFunctionParameter %_arr__arr_8_uint_4_uint_4 |
| %m_struct = OpFunctionParameter %S |
| %m_nested_struct = OpFunctionParameter %S_Nested |
| %26 = OpLabel |
| %27 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %29 = OpArrayLength %uint %1 0 |
| %30 = OpULessThanEqual %bool %uint_456 %29 |
| %33 = OpSelect %uint %30 %uint_0 %uint_0 |
| %34 = OpSelect %uint %30 %uint_64 %uint_8 |
| %36 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %37 = OpAccessChain %_ptr_StorageBuffer_float %36 %33 |
| OpCooperativeMatrixStoreKHR %37 %m %uint_0 %34 NonPrivatePointer |
| %40 = OpCompositeExtract %8 %m_array 0 |
| %41 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %42 = OpArrayLength %uint %1 0 |
| %43 = OpULessThanEqual %bool %uint_456 %42 |
| %44 = OpSelect %uint %43 %uint_0 %uint_0 |
| %45 = OpSelect %uint %43 %uint_64 %uint_8 |
| %46 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %47 = OpAccessChain %_ptr_StorageBuffer_float %46 %44 |
| OpCooperativeMatrixStoreKHR %47 %40 %uint_0 %45 NonPrivatePointer |
| %49 = OpCompositeExtract %8 %m_nested_array 1 2 |
| %50 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %51 = OpArrayLength %uint %1 0 |
| %52 = OpULessThanEqual %bool %uint_456 %51 |
| %53 = OpSelect %uint %52 %uint_0 %uint_0 |
| %54 = OpSelect %uint %52 %uint_64 %uint_8 |
| %55 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %56 = OpAccessChain %_ptr_StorageBuffer_float %55 %53 |
| OpCooperativeMatrixStoreKHR %56 %49 %uint_0 %54 NonPrivatePointer |
| %58 = OpCompositeExtract %8 %m_struct 0 |
| %59 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %60 = OpArrayLength %uint %1 0 |
| %61 = OpULessThanEqual %bool %uint_456 %60 |
| %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 %58 %uint_0 %63 NonPrivatePointer |
| %67 = OpCompositeExtract %20 %m_nested_struct 0 1 |
| %68 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %69 = OpArrayLength %uint %1 0 |
| %70 = OpULessThanEqual %bool %uint_456 %69 |
| %71 = OpSelect %uint %70 %uint_0 %uint_0 |
| %72 = OpSelect %uint %70 %uint_64 %uint_8 |
| %73 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %74 = OpAccessChain %_ptr_StorageBuffer_float %73 %71 |
| OpCooperativeMatrixStoreKHR %74 %67 %uint_0 %72 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %77 |
| %78 = OpLabel |
| %m_0 = OpVariable %_ptr_Function_8 Function %81 |
| %m_array_0 = OpVariable %_ptr_Function__arr_8_uint_4 Function %84 |
| %m_nested_array_0 = OpVariable %_ptr_Function__arr__arr_8_uint_4_uint_4 Function %87 |
| %m_struct_0 = OpVariable %_ptr_Function_S Function %90 |
| %m_nested_struct_0 = OpVariable %_ptr_Function_S_Nested Function %93 |
| %94 = OpLoad %8 %m_0 None |
| %95 = OpLoad %_arr_8_uint_4 %m_array_0 None |
| %96 = OpLoad %_arr__arr_8_uint_4_uint_4 %m_nested_array_0 None |
| %97 = OpLoad %S %m_struct_0 None |
| %98 = OpLoad %S_Nested %m_nested_struct_0 None |
| %99 = OpFunctionCall %void %foo %94 %95 %96 %97 %98 |
| OpReturn |
| OpFunctionEnd |