| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 38 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpMemberName %u_block 0 "inner" |
| OpName %u_block "u_block" |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| OpName %f "f" |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %u_block 0 ColMajor |
| OpMemberDecorate %u_block 0 MatrixStride 16 |
| OpDecorate %u_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpMemberDecorate %s_block 0 ColMajor |
| OpMemberDecorate %s_block 0 MatrixStride 16 |
| OpDecorate %s_block Block |
| OpDecorate %7 DescriptorSet 0 |
| OpDecorate %7 Binding 1 |
| OpDecorate %7 Coherent |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %u_block = OpTypeStruct %mat2v4float |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %1 = OpVariable %_ptr_Uniform_u_block Uniform |
| %s_block = OpTypeStruct %mat2v4float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %7 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void |
| %_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %f = OpFunction %void None %12 |
| %13 = OpLabel |
| %14 = OpAccessChain %_ptr_Uniform_mat2v4float %1 %uint_0 |
| %18 = OpLoad %mat2v4float %14 None |
| %19 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %7 %uint_0 |
| OpStore %19 %18 None |
| %21 = OpAccessChain %_ptr_StorageBuffer_v4float %7 %uint_0 %uint_1 |
| %24 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_0 |
| %26 = OpLoad %v4float %24 None |
| OpStore %21 %26 None |
| %27 = OpAccessChain %_ptr_StorageBuffer_v4float %7 %uint_0 %uint_1 |
| %28 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_0 |
| %29 = OpLoad %v4float %28 None |
| %30 = OpVectorShuffle %v4float %29 %29 1 3 0 2 |
| OpStore %27 %30 None |
| %31 = OpAccessChain %_ptr_StorageBuffer_v4float %7 %uint_0 %uint_0 |
| %32 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_1 |
| %33 = OpAccessChain %_ptr_Uniform_float %32 %uint_0 |
| %35 = OpLoad %float %33 None |
| %36 = OpAccessChain %_ptr_StorageBuffer_float %31 %uint_1 |
| OpStore %36 %35 None |
| OpReturn |
| OpFunctionEnd |