| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 102 | |
| ; 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_root "m_root" | |
| OpName %m_array_root "m_array_root" | |
| OpName %m_nested_array_root "m_nested_array_root" | |
| OpMemberName %S 0 "l" | |
| OpMemberName %S 1 "r" | |
| OpName %S "S" | |
| OpName %m_struct_root "m_struct_root" | |
| OpMemberName %S_Nested 0 "s" | |
| OpName %S_Nested "S_Nested" | |
| OpName %m_nested_struct_root "m_nested_struct_root" | |
| OpName %main "main" | |
| OpName %m "m" | |
| OpName %m_array "m_array" | |
| OpName %m_nested_array "m_nested_array" | |
| OpName %m_struct "m_struct" | |
| 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 | |
| %uint = OpTypeInt 32 0 | |
| %uint_3 = OpConstant %uint 3 | |
| %uint_8 = OpConstant %uint 8 | |
| %uint_0 = OpConstant %uint 0 | |
| %9 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0 | |
| %_ptr_Function_9 = OpTypePointer Function %9 | |
| %uint_4 = OpConstant %uint 4 | |
| %_arr_9_uint_4 = OpTypeArray %9 %uint_4 | |
| %_ptr_Function__arr_9_uint_4 = OpTypePointer Function %_arr_9_uint_4 | |
| %_arr__arr_9_uint_4_uint_4 = OpTypeArray %_arr_9_uint_4 %uint_4 | |
| %_ptr_Function__arr__arr_9_uint_4_uint_4 = OpTypePointer Function %_arr__arr_9_uint_4_uint_4 | |
| %uint_1 = OpConstant %uint 1 | |
| %24 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1 | |
| %S = OpTypeStruct %9 %24 | |
| %_ptr_Function_S = OpTypePointer Function %S | |
| %S_Nested = OpTypeStruct %S | |
| %_ptr_Function_S_Nested = OpTypePointer Function %S_Nested | |
| %30 = OpTypeFunction %void %_ptr_Function_9 %_ptr_Function__arr_9_uint_4 %_ptr_Function__arr__arr_9_uint_4_uint_4 %_ptr_Function_S %_ptr_Function_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 | |
| %uint_2 = OpConstant %uint 2 | |
| %_ptr_Function_24 = OpTypePointer Function %24 | |
| %89 = OpTypeFunction %void | |
| %92 = OpConstantNull %9 | |
| %94 = OpConstantNull %_arr_9_uint_4 | |
| %96 = OpConstantNull %_arr__arr_9_uint_4_uint_4 | |
| %98 = OpConstantNull %S | |
| %100 = OpConstantNull %S_Nested | |
| %foo = OpFunction %void None %30 | |
| %m_root = OpFunctionParameter %_ptr_Function_9 | |
| %m_array_root = OpFunctionParameter %_ptr_Function__arr_9_uint_4 | |
| %m_nested_array_root = OpFunctionParameter %_ptr_Function__arr__arr_9_uint_4_uint_4 | |
| %m_struct_root = OpFunctionParameter %_ptr_Function_S | |
| %m_nested_struct_root = OpFunctionParameter %_ptr_Function_S_Nested | |
| %31 = OpLabel | |
| %32 = OpLoad %9 %m_root None | |
| %33 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %35 = OpArrayLength %uint %1 0 | |
| %36 = OpULessThanEqual %bool %uint_456 %35 | |
| %39 = OpSelect %uint %36 %uint_0 %uint_0 | |
| %40 = OpSelect %uint %36 %uint_64 %uint_8 | |
| %42 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %43 = OpAccessChain %_ptr_StorageBuffer_float %42 %39 | |
| OpCooperativeMatrixStoreKHR %43 %32 %uint_0 %40 NonPrivatePointer | |
| %46 = OpAccessChain %_ptr_Function_9 %m_array_root %uint_0 | |
| %47 = OpLoad %9 %46 None | |
| %48 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %49 = OpArrayLength %uint %1 0 | |
| %50 = OpULessThanEqual %bool %uint_456 %49 | |
| %51 = OpSelect %uint %50 %uint_0 %uint_0 | |
| %52 = OpSelect %uint %50 %uint_64 %uint_8 | |
| %53 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %54 = OpAccessChain %_ptr_StorageBuffer_float %53 %51 | |
| OpCooperativeMatrixStoreKHR %54 %47 %uint_0 %52 NonPrivatePointer | |
| %56 = OpAccessChain %_ptr_Function_9 %m_nested_array_root %uint_1 %uint_2 | |
| %58 = OpLoad %9 %56 None | |
| %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 = OpAccessChain %_ptr_Function_9 %m_struct_root %uint_0 | |
| %68 = OpLoad %9 %67 None | |
| %69 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %70 = OpArrayLength %uint %1 0 | |
| %71 = OpULessThanEqual %bool %uint_456 %70 | |
| %72 = OpSelect %uint %71 %uint_0 %uint_0 | |
| %73 = OpSelect %uint %71 %uint_64 %uint_8 | |
| %74 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %75 = OpAccessChain %_ptr_StorageBuffer_float %74 %72 | |
| OpCooperativeMatrixStoreKHR %75 %68 %uint_0 %73 NonPrivatePointer | |
| %77 = OpAccessChain %_ptr_Function_24 %m_nested_struct_root %uint_0 %uint_1 | |
| %79 = OpLoad %24 %77 None | |
| %80 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %81 = OpArrayLength %uint %1 0 | |
| %82 = OpULessThanEqual %bool %uint_456 %81 | |
| %83 = OpSelect %uint %82 %uint_0 %uint_0 | |
| %84 = OpSelect %uint %82 %uint_64 %uint_8 | |
| %85 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 | |
| %86 = OpAccessChain %_ptr_StorageBuffer_float %85 %83 | |
| OpCooperativeMatrixStoreKHR %86 %79 %uint_0 %84 NonPrivatePointer | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %89 | |
| %90 = OpLabel | |
| %m = OpVariable %_ptr_Function_9 Function %92 | |
| %m_array = OpVariable %_ptr_Function__arr_9_uint_4 Function %94 | |
| %m_nested_array = OpVariable %_ptr_Function__arr__arr_9_uint_4_uint_4 Function %96 | |
| %m_struct = OpVariable %_ptr_Function_S Function %98 | |
| %m_nested_struct = OpVariable %_ptr_Function_S_Nested Function %100 | |
| %101 = OpFunctionCall %void %foo %m %m_array %m_nested_array %m_struct %m_nested_struct | |
| OpReturn | |
| OpFunctionEnd |