| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 31 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %uniforms_block "uniforms_block" |
| OpMemberName %uniforms_block 0 "inner" |
| OpName %Uniforms "Uniforms" |
| OpMemberName %Uniforms 0 "i" |
| OpName %uniforms "uniforms" |
| OpName %main "main" |
| OpName %OuterS "OuterS" |
| OpMemberName %OuterS 0 "m1" |
| OpName %s1 "s1" |
| OpDecorate %uniforms_block Block |
| OpMemberDecorate %uniforms_block 0 Offset 0 |
| OpMemberDecorate %Uniforms 0 Offset 0 |
| OpDecorate %uniforms NonWritable |
| OpDecorate %uniforms DescriptorSet 1 |
| OpDecorate %uniforms Binding 4 |
| OpMemberDecorate %OuterS 0 Offset 0 |
| OpMemberDecorate %OuterS 0 ColMajor |
| OpMemberDecorate %OuterS 0 MatrixStride 16 |
| %uint = OpTypeInt 32 0 |
| %Uniforms = OpTypeStruct %uint |
| %uniforms_block = OpTypeStruct %Uniforms |
| %_ptr_Uniform_uniforms_block = OpTypePointer Uniform %uniforms_block |
| %uniforms = OpVariable %_ptr_Uniform_uniforms_block Uniform |
| %void = OpTypeVoid |
| %6 = OpTypeFunction %void |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %OuterS = OpTypeStruct %mat2v4float |
| %_ptr_Function_OuterS = OpTypePointer Function %OuterS |
| %16 = OpConstantNull %OuterS |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_uint = OpTypePointer Uniform %uint |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %float_1 = OpConstant %float 1 |
| %24 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %main = OpFunction %void None %6 |
| %9 = OpLabel |
| %s1 = OpVariable %_ptr_Function_OuterS Function %16 |
| %19 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 %uint_0 |
| %20 = OpLoad %uint %19 |
| %22 = OpAccessChain %_ptr_Function_v4float %s1 %uint_0 %20 |
| OpStore %22 %24 |
| %25 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 %uint_0 |
| %26 = OpLoad %uint %25 |
| %27 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 %uint_0 |
| %28 = OpLoad %uint %27 |
| %30 = OpAccessChain %_ptr_Function_float %s1 %uint_0 %26 %28 |
| OpStore %30 %float_1 |
| OpReturn |
| OpFunctionEnd |