| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 44 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability VulkanMemoryModel |
| OpCapability VulkanMemoryModelDeviceScope |
| OpCapability CooperativeMatrixKHR |
| OpCapability Int8 |
| OpExtension "SPV_KHR_vulkan_memory_model" |
| OpExtension "SPV_KHR_cooperative_matrix" |
| %23 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical Vulkan |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpMemberName %prevent_dce_block_tint_explicit_layout 0 "inner" |
| OpName %prevent_dce_block_tint_explicit_layout "prevent_dce_block_tint_explicit_layout" |
| OpName %subgroupMatrixScalarMultiply_bd2cd3 "subgroupMatrixScalarMultiply_bd2cd3" |
| OpName %arg_0 "arg_0" |
| OpName %arg_1 "arg_1" |
| OpName %res "res" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_uint_uint_1024 ArrayStride 4 |
| OpMemberDecorate %prevent_dce_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %prevent_dce_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_uint_uint_1024 = OpTypeArray %uint %uint_1024 |
| %prevent_dce_block_tint_explicit_layout = OpTypeStruct %_arr_uint_uint_1024 |
| %_ptr_StorageBuffer_prevent_dce_block_tint_explicit_layout = OpTypePointer StorageBuffer %prevent_dce_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block_tint_explicit_layout StorageBuffer |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uchar = OpTypeInt 8 0 |
| %uint_0 = OpConstant %uint 0 |
| %8 = OpTypeCooperativeMatrixKHR %uchar %uint_3 %uint_8 %uint_8 %uint_0 |
| %13 = OpTypeFunction %8 |
| %15 = OpConstantNull %8 |
| %_ptr_Function_8 = OpTypePointer Function %8 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_255 = OpConstant %uint 255 |
| %void = OpTypeVoid |
| %32 = OpTypeFunction %void |
| %_ptr_StorageBuffer__arr_uint_uint_1024 = OpTypePointer StorageBuffer %_arr_uint_uint_1024 |
| %uint_64 = OpConstant %uint 64 |
| %uint_4 = OpConstant %uint 4 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %subgroupMatrixScalarMultiply_bd2cd3 = OpFunction %8 None %13 |
| %14 = OpLabel |
| %arg_0 = OpVariable %_ptr_Function_8 Function |
| %arg_1 = OpVariable %_ptr_Function_uint Function |
| %res = OpVariable %_ptr_Function_8 Function |
| OpStore %arg_0 %15 |
| OpStore %arg_1 %uint_8 |
| %20 = OpLoad %8 %arg_0 None |
| %21 = OpLoad %uint %arg_1 None |
| %22 = OpExtInst %uint %23 UClamp %21 %uint_0 %uint_255 |
| %25 = OpUConvert %uchar %22 |
| %26 = OpCompositeConstruct %8 %25 |
| %27 = OpIMul %8 %20 %26 |
| OpStore %res %27 |
| %29 = OpLoad %8 %res None |
| OpReturnValue %29 |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %32 |
| %33 = OpLabel |
| %34 = OpFunctionCall %8 %subgroupMatrixScalarMultiply_bd2cd3 |
| %35 = OpAccessChain %_ptr_StorageBuffer__arr_uint_uint_1024 %1 %uint_0 |
| %37 = OpUDiv %uint %uint_64 %uint_4 |
| %40 = OpUDiv %uint %uint_0 %uint_4 |
| %41 = OpAccessChain %_ptr_StorageBuffer_uint %35 %40 |
| OpCooperativeMatrixStoreKHR %41 %34 %uint_0 %37 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |