blob: d602c8d9d0314d5e04ad3dad65beb57065a41bb1 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 61
; 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_0"
OpMemberName %u_block_std140 1 "inner_1"
OpMemberName %u_block_std140 2 "inner_2"
OpName %u "u"
OpName %a "a"
OpName %m "m"
OpName %b "b"
OpName %v "v"
OpName %c "c"
OpName %f_1 "f_1"
OpName %load_u_inner "load_u_inner"
OpName %f "f"
OpDecorate %u_block_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%u_block_std140 = OpTypeStruct %v2float %v2float %v2float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%void = OpTypeVoid
%mat3v2float = OpTypeMatrix %v2float 3
%6 = OpTypeFunction %void %mat3v2float
%12 = OpTypeFunction %void %v2float
%16 = OpTypeFunction %void %float
%20 = OpTypeFunction %mat3v2float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%39 = OpTypeFunction %void
%52 = OpConstantNull %uint
%_ptr_Uniform_float = OpTypePointer Uniform %float
%a = OpFunction %void None %6
%m = OpFunctionParameter %mat3v2float
%11 = OpLabel
OpReturn
OpFunctionEnd
%b = OpFunction %void None %12
%v = OpFunctionParameter %v2float
%15 = OpLabel
OpReturn
OpFunctionEnd
%c = OpFunction %void None %16
%f_1 = OpFunctionParameter %float
%19 = OpLabel
OpReturn
OpFunctionEnd
%load_u_inner = OpFunction %mat3v2float None %20
%22 = OpLabel
%28 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0
%29 = OpLoad %v2float %28
%32 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%33 = OpLoad %v2float %32
%36 = OpAccessChain %_ptr_Uniform_v2float %u %uint_2
%37 = OpLoad %v2float %36
%38 = OpCompositeConstruct %mat3v2float %29 %33 %37
OpReturnValue %38
OpFunctionEnd
%f = OpFunction %void None %39
%41 = OpLabel
%43 = OpFunctionCall %mat3v2float %load_u_inner
%42 = OpFunctionCall %void %a %43
%45 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%46 = OpLoad %v2float %45
%44 = OpFunctionCall %void %b %46
%48 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%49 = OpLoad %v2float %48
%50 = OpVectorShuffle %v2float %49 %49 1 0
%47 = OpFunctionCall %void %b %50
%54 = OpAccessChain %_ptr_Uniform_float %u %uint_1 %52
%55 = OpLoad %float %54
%51 = OpFunctionCall %void %c %55
%57 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%58 = OpLoad %v2float %57
%59 = OpVectorShuffle %v2float %58 %58 1 0
%60 = OpCompositeExtract %float %59 0
%56 = OpFunctionCall %void %c %60
OpReturn
OpFunctionEnd