blob: 6342891f7143cbb4be7838479590d14052325420 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 54
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %a_block "a_block"
OpMemberName %a_block 0 "inner"
OpName %Outer "Outer"
OpMemberName %Outer 0 "a"
OpName %Inner "Inner"
OpMemberName %Inner 0 "m"
OpName %a "a"
OpName %counter "counter"
OpName %i "i"
OpName %f "f"
OpDecorate %a_block Block
OpMemberDecorate %a_block 0 Offset 0
OpMemberDecorate %Outer 0 Offset 0
OpMemberDecorate %Inner 0 Offset 0
OpMemberDecorate %Inner 0 ColMajor
OpMemberDecorate %Inner 0 MatrixStride 16
OpDecorate %_arr_Inner_uint_4 ArrayStride 64
OpDecorate %_arr_Outer_uint_4 ArrayStride 256
OpDecorate %a NonWritable
OpDecorate %a DescriptorSet 0
OpDecorate %a Binding 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat3v4float = OpTypeMatrix %v4float 3
%Inner = OpTypeStruct %mat3v4float
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_Inner_uint_4 = OpTypeArray %Inner %uint_4
%Outer = OpTypeStruct %_arr_Inner_uint_4
%_arr_Outer_uint_4 = OpTypeArray %Outer %uint_4
%a_block = OpTypeStruct %_arr_Outer_uint_4
%_ptr_Uniform_a_block = OpTypePointer Uniform %a_block
%a = OpVariable %_ptr_Uniform_a_block Uniform
%int = OpTypeInt 32 1
%14 = OpConstantNull %int
%_ptr_Private_int = OpTypePointer Private %int
%counter = OpVariable %_ptr_Private_int Private %14
%17 = OpTypeFunction %int
%int_1 = OpConstant %int 1
%void = OpTypeVoid
%24 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Uniform__arr_Outer_uint_4 = OpTypePointer Uniform %_arr_Outer_uint_4
%_ptr_Uniform_Outer = OpTypePointer Uniform %Outer
%_ptr_Uniform__arr_Inner_uint_4 = OpTypePointer Uniform %_arr_Inner_uint_4
%_ptr_Uniform_Inner = OpTypePointer Uniform %Inner
%_ptr_Uniform_mat3v4float = OpTypePointer Uniform %mat3v4float
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%i = OpFunction %int None %17
%19 = OpLabel
%20 = OpLoad %int %counter
%22 = OpIAdd %int %20 %int_1
OpStore %counter %22
%23 = OpLoad %int %counter
OpReturnValue %23
OpFunctionEnd
%f = OpFunction %void None %24
%27 = OpLabel
%28 = OpFunctionCall %int %i
%29 = OpFunctionCall %int %i
%30 = OpFunctionCall %int %i
%33 = OpAccessChain %_ptr_Uniform__arr_Outer_uint_4 %a %uint_0
%34 = OpLoad %_arr_Outer_uint_4 %33
%36 = OpAccessChain %_ptr_Uniform_Outer %a %uint_0 %28
%37 = OpLoad %Outer %36
%39 = OpAccessChain %_ptr_Uniform__arr_Inner_uint_4 %a %uint_0 %28 %uint_0
%40 = OpLoad %_arr_Inner_uint_4 %39
%42 = OpAccessChain %_ptr_Uniform_Inner %a %uint_0 %28 %uint_0 %29
%43 = OpLoad %Inner %42
%45 = OpAccessChain %_ptr_Uniform_mat3v4float %a %uint_0 %28 %uint_0 %29 %uint_0
%46 = OpLoad %mat3v4float %45
%48 = OpAccessChain %_ptr_Uniform_v4float %a %uint_0 %28 %uint_0 %29 %uint_0 %30
%49 = OpLoad %v4float %48
%50 = OpFunctionCall %int %i
%52 = OpAccessChain %_ptr_Uniform_float %a %uint_0 %28 %uint_0 %29 %uint_0 %30 %50
%53 = OpLoad %float %52
OpReturn
OpFunctionEnd