| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 30 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| OpName %main "main" |
| OpName %m "m" |
| OpName %v "v" |
| OpName %f "f" |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpDecorate %s_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| %float = OpTypeFloat 32 |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %1 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %void = OpTypeVoid |
| %7 = OpTypeFunction %void |
| %v3float = OpTypeVector %float 3 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %float_1 = OpConstant %float 1 |
| %float_2 = OpConstant %float 2 |
| %float_3 = OpConstant %float 3 |
| %12 = OpConstantComposite %v3float %float_1 %float_2 %float_3 |
| %float_4 = OpConstant %float 4 |
| %float_5 = OpConstant %float 5 |
| %float_6 = OpConstant %float 6 |
| %16 = OpConstantComposite %v3float %float_4 %float_5 %float_6 |
| %float_7 = OpConstant %float 7 |
| %float_8 = OpConstant %float 8 |
| %float_9 = OpConstant %float 9 |
| %20 = OpConstantComposite %v3float %float_7 %float_8 %float_9 |
| %m = OpConstantComposite %mat3v3float %12 %16 %20 |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %main = OpFunction %void None %7 |
| %8 = OpLabel |
| %v = OpCompositeExtract %v3float %m 1 |
| %f = OpCompositeExtract %float %v 1 |
| %26 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
| OpStore %26 %f None |
| OpReturn |
| OpFunctionEnd |