blob: d90a57393560bef6fbced865f0f438178489d1e6 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 66
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %u_block "u_block"
OpMemberName %u_block 0 "inner"
OpName %u "u"
OpName %s_block "s_block"
OpMemberName %s_block 0 "inner"
OpName %s "s"
OpName %a "a"
OpName %a_1 "a_1"
OpName %b "b"
OpName %m "m"
OpName %c "c"
OpName %v "v"
OpName %d "d"
OpName %f_1 "f_1"
OpName %f "f"
OpDecorate %u_block Block
OpMemberDecorate %u_block 0 Offset 0
OpMemberDecorate %u_block 0 ColMajor
OpMemberDecorate %u_block 0 MatrixStride 16
OpDecorate %_arr_mat4v4float_uint_4 ArrayStride 64
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
OpDecorate %s_block Block
OpMemberDecorate %s_block 0 Offset 0
OpDecorate %s DescriptorSet 0
OpDecorate %s Binding 1
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat4v4float = OpTypeMatrix %v4float 4
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_mat4v4float_uint_4 = OpTypeArray %mat4v4float %uint_4
%u_block = OpTypeStruct %_arr_mat4v4float_uint_4
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
%u = OpVariable %_ptr_Uniform_u_block Uniform
%s_block = OpTypeStruct %float
%_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block
%s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer
%13 = OpTypeFunction %float %_arr_mat4v4float_uint_4
%int = OpTypeInt 32 1
%18 = OpConstantNull %int
%22 = OpTypeFunction %float %mat4v4float
%28 = OpTypeFunction %float %v4float
%33 = OpTypeFunction %float %float
%void = OpTypeVoid
%37 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Uniform__arr_mat4v4float_uint_4 = OpTypePointer Uniform %_arr_mat4v4float_uint_4
%int_1 = OpConstant %int 1
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%a = OpFunction %float None %13
%a_1 = OpFunctionParameter %_arr_mat4v4float_uint_4
%16 = OpLabel
%19 = OpCompositeExtract %mat4v4float %a_1 0
%20 = OpCompositeExtract %v4float %19 0
%21 = OpCompositeExtract %float %20 0
OpReturnValue %21
OpFunctionEnd
%b = OpFunction %float None %22
%m = OpFunctionParameter %mat4v4float
%25 = OpLabel
%26 = OpCompositeExtract %v4float %m 0
%27 = OpCompositeExtract %float %26 0
OpReturnValue %27
OpFunctionEnd
%c = OpFunction %float None %28
%v = OpFunctionParameter %v4float
%31 = OpLabel
%32 = OpCompositeExtract %float %v 0
OpReturnValue %32
OpFunctionEnd
%d = OpFunction %float None %33
%f_1 = OpFunctionParameter %float
%36 = OpLabel
OpReturnValue %f_1
OpFunctionEnd
%f = OpFunction %void None %37
%40 = OpLabel
%44 = OpAccessChain %_ptr_Uniform__arr_mat4v4float_uint_4 %u %uint_0
%45 = OpLoad %_arr_mat4v4float_uint_4 %44
%41 = OpFunctionCall %float %a %45
%49 = OpAccessChain %_ptr_Uniform_mat4v4float %u %uint_0 %int_1
%50 = OpLoad %mat4v4float %49
%46 = OpFunctionCall %float %b %50
%53 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %int_1 %18
%54 = OpLoad %v4float %53
%55 = OpVectorShuffle %v4float %54 %54 1 3 0 2
%51 = OpFunctionCall %float %c %55
%57 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %int_1 %18
%58 = OpLoad %v4float %57
%59 = OpVectorShuffle %v4float %58 %58 1 3 0 2
%60 = OpCompositeExtract %float %59 0
%56 = OpFunctionCall %float %d %60
%62 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0
%63 = OpFAdd %float %41 %46
%64 = OpFAdd %float %63 %51
%65 = OpFAdd %float %64 %56
OpStore %62 %65
OpReturn
OpFunctionEnd