| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 41 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %u "u" |
| OpName %s "s" |
| OpName %assign_and_preserve_padding_s "assign_and_preserve_padding_s" |
| OpName %value "value" |
| OpName %main "main" |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %u_block 0 ColMajor |
| OpMemberDecorate %u_block 0 MatrixStride 16 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %mat4v3float = OpTypeMatrix %v3float 4 |
| %u_block = OpTypeStruct %mat4v3float |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block |
| %s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer |
| %void = OpTypeVoid |
| %9 = OpTypeFunction %void %mat4v3float |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %int = OpTypeInt 32 1 |
| %17 = OpConstantNull %int |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %20 = OpConstantNull %uint |
| %int_1 = OpConstant %int 1 |
| %uint_1 = OpConstant %uint 1 |
| %int_2 = OpConstant %int 2 |
| %uint_2 = OpConstant %uint 2 |
| %int_3 = OpConstant %int 3 |
| %uint_3 = OpConstant %uint 3 |
| %34 = OpTypeFunction %void |
| %_ptr_Uniform_mat4v3float = OpTypePointer Uniform %mat4v3float |
| %assign_and_preserve_padding_s = OpFunction %void None %9 |
| %value = OpFunctionParameter %mat4v3float |
| %13 = OpLabel |
| %19 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %17 |
| %21 = OpCompositeExtract %v3float %value 0 |
| OpStore %19 %21 |
| %23 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1 |
| %25 = OpCompositeExtract %v3float %value 1 |
| OpStore %23 %25 |
| %27 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_2 |
| %29 = OpCompositeExtract %v3float %value 2 |
| OpStore %27 %29 |
| %31 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_3 |
| %33 = OpCompositeExtract %v3float %value 3 |
| OpStore %31 %33 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %34 |
| %36 = OpLabel |
| %38 = OpAccessChain %_ptr_Uniform_mat4v3float %u %uint_0 |
| %39 = OpLoad %mat4v3float %38 |
| %40 = OpFunctionCall %void %assign_and_preserve_padding_s %39 |
| OpReturn |
| OpFunctionEnd |