blob: 62a260754f64bc2d1ba2b8b8337a0c68a4e9c499 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 57
; 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"
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
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%u_block_std140 = OpTypeStruct %v2float %v2float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%void = OpTypeVoid
%mat2v2float = OpTypeMatrix %v2float 2
%6 = OpTypeFunction %void %mat2v2float
%12 = OpTypeFunction %void %v2float
%16 = OpTypeFunction %void %float
%20 = OpTypeFunction %mat2v2float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_1 = OpConstant %uint 1
%35 = OpTypeFunction %void
%48 = OpConstantNull %uint
%_ptr_Uniform_float = OpTypePointer Uniform %float
%a = OpFunction %void None %6
%m = OpFunctionParameter %mat2v2float
%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 %mat2v2float 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
%34 = OpCompositeConstruct %mat2v2float %29 %33
OpReturnValue %34
OpFunctionEnd
%f = OpFunction %void None %35
%37 = OpLabel
%39 = OpFunctionCall %mat2v2float %load_u_inner
%38 = OpFunctionCall %void %a %39
%41 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%42 = OpLoad %v2float %41
%40 = OpFunctionCall %void %b %42
%44 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%45 = OpLoad %v2float %44
%46 = OpVectorShuffle %v2float %45 %45 1 0
%43 = OpFunctionCall %void %b %46
%50 = OpAccessChain %_ptr_Uniform_float %u %uint_1 %48
%51 = OpLoad %float %50
%47 = OpFunctionCall %void %c %51
%53 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%54 = OpLoad %v2float %53
%55 = OpVectorShuffle %v2float %54 %54 1 0
%56 = OpCompositeExtract %float %55 0
%52 = OpFunctionCall %void %c %56
OpReturn
OpFunctionEnd