blob: e7483d22b443aa4a6f5cf5260cf59994f3baa24f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 124
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %u_block_std140 "u_block_std140"
OpMemberName %u_block_std140 0 "inner"
OpName %S_std140 "S_std140"
OpMemberName %S_std140 0 "before"
OpMemberName %S_std140 1 "m_0"
OpMemberName %S_std140 2 "m_1"
OpMemberName %S_std140 3 "m_2"
OpMemberName %S_std140 4 "after"
OpName %u "u"
OpName %S "S"
OpMemberName %S 0 "before"
OpMemberName %S 1 "m"
OpMemberName %S 2 "after"
OpName %a "a"
OpName %a_1 "a_1"
OpName %b "b"
OpName %s "s"
OpName %c "c"
OpName %m "m"
OpName %d "d"
OpName %v "v"
OpName %e "e"
OpName %f_1 "f_1"
OpName %conv_S "conv_S"
OpName %val "val"
OpName %conv_arr4_S "conv_arr4_S"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i "i"
OpName %var_for_index "var_for_index"
OpName %load_u_inner_2_m "load_u_inner_2_m"
OpName %f "f"
OpDecorate %u_block_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %S_std140 0 Offset 0
OpMemberDecorate %S_std140 1 Offset 8
OpMemberDecorate %S_std140 2 Offset 16
OpMemberDecorate %S_std140 3 Offset 24
OpMemberDecorate %S_std140 4 Offset 72
OpDecorate %_arr_S_std140_uint_4 ArrayStride 80
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 8
OpMemberDecorate %S 1 ColMajor
OpMemberDecorate %S 1 MatrixStride 8
OpMemberDecorate %S 2 Offset 72
OpDecorate %_arr_S_uint_4 ArrayStride 80
%int = OpTypeInt 32 1
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%S_std140 = OpTypeStruct %int %v2float %v2float %v2float %int
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_S_std140_uint_4 = OpTypeArray %S_std140 %uint_4
%u_block_std140 = OpTypeStruct %_arr_S_std140_uint_4
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%void = OpTypeVoid
%mat3v2float = OpTypeMatrix %v2float 3
%S = OpTypeStruct %int %mat3v2float %int
%_arr_S_uint_4 = OpTypeArray %S %uint_4
%11 = OpTypeFunction %void %_arr_S_uint_4
%19 = OpTypeFunction %void %S
%23 = OpTypeFunction %void %mat3v2float
%27 = OpTypeFunction %void %v2float
%31 = OpTypeFunction %void %float
%35 = OpTypeFunction %S %S_std140
%46 = OpTypeFunction %_arr_S_uint_4 %_arr_S_std140_uint_4
%_ptr_Function__arr_S_uint_4 = OpTypePointer Function %_arr_S_uint_4
%52 = OpConstantNull %_arr_S_uint_4
%_ptr_Function_uint = OpTypePointer Function %uint
%55 = OpConstantNull %uint
%bool = OpTypeBool
%_ptr_Function__arr_S_std140_uint_4 = OpTypePointer Function %_arr_S_std140_uint_4
%68 = OpConstantNull %_arr_S_std140_uint_4
%_ptr_Function_S = OpTypePointer Function %S
%_ptr_Function_S_std140 = OpTypePointer Function %S_std140
%uint_1 = OpConstant %uint 1
%81 = OpTypeFunction %mat3v2float
%uint_0 = OpConstant %uint 0
%uint_2 = OpConstant %uint 2
%_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_3 = OpConstant %uint 3
%101 = OpTypeFunction %void
%_ptr_Uniform__arr_S_std140_uint_4 = OpTypePointer Uniform %_arr_S_std140_uint_4
%a = OpFunction %void None %11
%a_1 = OpFunctionParameter %_arr_S_uint_4
%18 = OpLabel
OpReturn
OpFunctionEnd
%b = OpFunction %void None %19
%s = OpFunctionParameter %S
%22 = OpLabel
OpReturn
OpFunctionEnd
%c = OpFunction %void None %23
%m = OpFunctionParameter %mat3v2float
%26 = OpLabel
OpReturn
OpFunctionEnd
%d = OpFunction %void None %27
%v = OpFunctionParameter %v2float
%30 = OpLabel
OpReturn
OpFunctionEnd
%e = OpFunction %void None %31
%f_1 = OpFunctionParameter %float
%34 = OpLabel
OpReturn
OpFunctionEnd
%conv_S = OpFunction %S None %35
%val = OpFunctionParameter %S_std140
%38 = OpLabel
%39 = OpCompositeExtract %int %val 0
%40 = OpCompositeExtract %v2float %val 1
%41 = OpCompositeExtract %v2float %val 2
%42 = OpCompositeExtract %v2float %val 3
%43 = OpCompositeConstruct %mat3v2float %40 %41 %42
%44 = OpCompositeExtract %int %val 4
%45 = OpCompositeConstruct %S %39 %43 %44
OpReturnValue %45
OpFunctionEnd
%conv_arr4_S = OpFunction %_arr_S_uint_4 None %46
%val_0 = OpFunctionParameter %_arr_S_std140_uint_4
%49 = OpLabel
%arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %52
%i = OpVariable %_ptr_Function_uint Function %55
%var_for_index = OpVariable %_ptr_Function__arr_S_std140_uint_4 Function %68
OpBranch %56
%56 = OpLabel
OpLoopMerge %57 %58 None
OpBranch %59
%59 = OpLabel
%61 = OpLoad %uint %i
%62 = OpULessThan %bool %61 %uint_4
%60 = OpLogicalNot %bool %62
OpSelectionMerge %64 None
OpBranchConditional %60 %65 %64
%65 = OpLabel
OpBranch %57
%64 = OpLabel
OpStore %var_for_index %val_0
%69 = OpLoad %uint %i
%71 = OpAccessChain %_ptr_Function_S %arr %69
%73 = OpLoad %uint %i
%75 = OpAccessChain %_ptr_Function_S_std140 %var_for_index %73
%76 = OpLoad %S_std140 %75
%72 = OpFunctionCall %S %conv_S %76
OpStore %71 %72
OpBranch %58
%58 = OpLabel
%77 = OpLoad %uint %i
%79 = OpIAdd %uint %77 %uint_1
OpStore %i %79
OpBranch %56
%57 = OpLabel
%80 = OpLoad %_arr_S_uint_4 %arr
OpReturnValue %80
OpFunctionEnd
%load_u_inner_2_m = OpFunction %mat3v2float None %81
%83 = OpLabel
%88 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2
%91 = OpAccessChain %_ptr_Uniform_v2float %88 %uint_1
%92 = OpLoad %v2float %91
%94 = OpAccessChain %_ptr_Uniform_v2float %88 %uint_2
%95 = OpLoad %v2float %94
%98 = OpAccessChain %_ptr_Uniform_v2float %88 %uint_3
%99 = OpLoad %v2float %98
%100 = OpCompositeConstruct %mat3v2float %92 %95 %99
OpReturnValue %100
OpFunctionEnd
%f = OpFunction %void None %101
%103 = OpLabel
%107 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0
%108 = OpLoad %_arr_S_std140_uint_4 %107
%105 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %108
%104 = OpFunctionCall %void %a %105
%111 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2
%112 = OpLoad %S_std140 %111
%110 = OpFunctionCall %S %conv_S %112
%109 = OpFunctionCall %void %b %110
%114 = OpFunctionCall %mat3v2float %load_u_inner_2_m
%113 = OpFunctionCall %void %c %114
%116 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0 %55 %uint_2
%117 = OpLoad %v2float %116
%118 = OpVectorShuffle %v2float %117 %117 1 0
%115 = OpFunctionCall %void %d %118
%120 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0 %55 %uint_2
%121 = OpLoad %v2float %120
%122 = OpVectorShuffle %v2float %121 %121 1 0
%123 = OpCompositeExtract %float %122 0
%119 = OpFunctionCall %void %e %123
OpReturn
OpFunctionEnd