blob: 57a7b89001191f00bb2a39d9b3e056e29c580b7a [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %sk_FragColor
OpExecutionMode %main OriginUpperLeft
; Debug Information
OpName %sk_FragColor "sk_FragColor" ; id %3
OpName %_UniformBuffer "_UniformBuffer" ; id %8
OpMemberName %_UniformBuffer 0 "src"
OpMemberName %_UniformBuffer 1 "dst"
OpName %main "main" ; id %2
; Annotations
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpMemberDecorate %_UniformBuffer 0 Offset 0
OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 1 Offset 16
OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
OpDecorate %_UniformBuffer Block
OpDecorate %7 Binding 0
OpDecorate %7 DescriptorSet 0
OpDecorate %17 RelaxedPrecision
OpDecorate %18 RelaxedPrecision
OpDecorate %22 RelaxedPrecision
OpDecorate %23 RelaxedPrecision
OpDecorate %24 RelaxedPrecision
OpDecorate %26 RelaxedPrecision
OpDecorate %28 RelaxedPrecision
OpDecorate %29 RelaxedPrecision
OpDecorate %31 RelaxedPrecision
OpDecorate %32 RelaxedPrecision
OpDecorate %33 RelaxedPrecision
OpDecorate %35 RelaxedPrecision
OpDecorate %36 RelaxedPrecision
OpDecorate %38 RelaxedPrecision
OpDecorate %39 RelaxedPrecision
OpDecorate %40 RelaxedPrecision
OpDecorate %41 RelaxedPrecision
OpDecorate %42 RelaxedPrecision
OpDecorate %43 RelaxedPrecision
OpDecorate %44 RelaxedPrecision
OpDecorate %45 RelaxedPrecision
OpDecorate %47 RelaxedPrecision
OpDecorate %48 RelaxedPrecision
OpDecorate %51 RelaxedPrecision
OpDecorate %52 RelaxedPrecision
OpDecorate %53 RelaxedPrecision
OpDecorate %55 RelaxedPrecision
OpDecorate %56 RelaxedPrecision
OpDecorate %57 RelaxedPrecision
OpDecorate %58 RelaxedPrecision
OpDecorate %59 RelaxedPrecision
; Types, variables and constants
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%sk_FragColor = OpVariable %_ptr_Output_v4float Output ; RelaxedPrecision, Location 0, Index 0
%_UniformBuffer = OpTypeStruct %v4float %v4float ; Block
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
%7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform ; Binding 0, DescriptorSet 0
%void = OpTypeVoid
%11 = OpTypeFunction %void
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%v3float = OpTypeVector %float 3
%int_1 = OpConstant %int 1
%float_2 = OpConstant %float 2
%float_1 = OpConstant %float 1
; Function main
%main = OpFunction %void None %11
%12 = OpLabel
%13 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
%17 = OpLoad %v4float %13 ; RelaxedPrecision
%18 = OpVectorShuffle %v3float %17 %17 0 1 2 ; RelaxedPrecision
%20 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1
%22 = OpLoad %v4float %20 ; RelaxedPrecision
%23 = OpVectorShuffle %v3float %22 %22 0 1 2 ; RelaxedPrecision
%24 = OpFAdd %v3float %18 %23 ; RelaxedPrecision
%27 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
%28 = OpLoad %v4float %27 ; RelaxedPrecision
%29 = OpVectorShuffle %v3float %28 %28 0 1 2 ; RelaxedPrecision
%30 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1
%31 = OpLoad %v4float %30 ; RelaxedPrecision
%32 = OpCompositeExtract %float %31 3 ; RelaxedPrecision
%33 = OpVectorTimesScalar %v3float %29 %32 ; RelaxedPrecision
%34 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1
%35 = OpLoad %v4float %34 ; RelaxedPrecision
%36 = OpVectorShuffle %v3float %35 %35 0 1 2 ; RelaxedPrecision
%37 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
%38 = OpLoad %v4float %37 ; RelaxedPrecision
%39 = OpCompositeExtract %float %38 3 ; RelaxedPrecision
%40 = OpVectorTimesScalar %v3float %36 %39 ; RelaxedPrecision
%26 = OpExtInst %v3float %1 FMin %33 %40 ; RelaxedPrecision
%41 = OpVectorTimesScalar %v3float %26 %float_2 ; RelaxedPrecision
%42 = OpFSub %v3float %24 %41 ; RelaxedPrecision
%43 = OpCompositeExtract %float %42 0 ; RelaxedPrecision
%44 = OpCompositeExtract %float %42 1 ; RelaxedPrecision
%45 = OpCompositeExtract %float %42 2 ; RelaxedPrecision
%46 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
%47 = OpLoad %v4float %46 ; RelaxedPrecision
%48 = OpCompositeExtract %float %47 3 ; RelaxedPrecision
%50 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
%51 = OpLoad %v4float %50 ; RelaxedPrecision
%52 = OpCompositeExtract %float %51 3 ; RelaxedPrecision
%53 = OpFSub %float %float_1 %52 ; RelaxedPrecision
%54 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1
%55 = OpLoad %v4float %54 ; RelaxedPrecision
%56 = OpCompositeExtract %float %55 3 ; RelaxedPrecision
%57 = OpFMul %float %53 %56 ; RelaxedPrecision
%58 = OpFAdd %float %48 %57 ; RelaxedPrecision
%59 = OpCompositeConstruct %v4float %43 %44 %45 %58 ; RelaxedPrecision
OpStore %sk_FragColor %59
OpReturn
OpFunctionEnd