| Flutter Impeller |

pipelines.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_PIPELINES_H_
6 #define FLUTTER_IMPELLER_ENTITY_CONTENTS_PIPELINES_H_
7
8 #include "impeller/entity/advanced_blend.frag.h"
9 #include "impeller/entity/advanced_blend.vert.h"
10 #include "impeller/entity/border_mask_blur.frag.h"
11 #include "impeller/entity/clip.frag.h"
12 #include "impeller/entity/clip.vert.h"
13 #include "impeller/entity/color_matrix_color_filter.frag.h"
14 #include "impeller/entity/conical_gradient_fill_conical.frag.h"
15 #include "impeller/entity/conical_gradient_fill_radial.frag.h"
16 #include "impeller/entity/conical_gradient_fill_strip.frag.h"
17 #include "impeller/entity/conical_gradient_fill_strip_radial.frag.h"
18 #include "impeller/entity/conical_gradient_ssbo_fill.frag.h"
19 #include "impeller/entity/conical_gradient_uniform_fill_conical.frag.h"
20 #include "impeller/entity/conical_gradient_uniform_fill_radial.frag.h"
21 #include "impeller/entity/conical_gradient_uniform_fill_strip.frag.h"
22 #include "impeller/entity/conical_gradient_uniform_fill_strip_radial.frag.h"
23 #include "impeller/entity/fast_gradient.frag.h"
24 #include "impeller/entity/fast_gradient.vert.h"
25 #include "impeller/entity/filter_position.vert.h"
26 #include "impeller/entity/filter_position_uv.vert.h"
27 #include "impeller/entity/framebuffer_blend.frag.h"
28 #include "impeller/entity/framebuffer_blend.vert.h"
29 #include "impeller/entity/gaussian.frag.h"
30 #include "impeller/entity/glyph_atlas.frag.h"
31 #include "impeller/entity/glyph_atlas.vert.h"
32 #include "impeller/entity/gradient_fill.vert.h"
33 #include "impeller/entity/line.frag.h"
34 #include "impeller/entity/line.vert.h"
35 #include "impeller/entity/linear_gradient_fill.frag.h"
36 #include "impeller/entity/linear_gradient_ssbo_fill.frag.h"
37 #include "impeller/entity/linear_gradient_uniform_fill.frag.h"
38 #include "impeller/entity/linear_to_srgb_filter.frag.h"
39 #include "impeller/entity/morphology_filter.frag.h"
40 #include "impeller/entity/porter_duff_blend.frag.h"
41 #include "impeller/entity/porter_duff_blend.vert.h"
42 #include "impeller/entity/radial_gradient_fill.frag.h"
43 #include "impeller/entity/radial_gradient_ssbo_fill.frag.h"
44 #include "impeller/entity/radial_gradient_uniform_fill.frag.h"
45 #include "impeller/entity/rrect_blur.frag.h"
46 #include "impeller/entity/rrect_blur.vert.h"
47 #include "impeller/entity/solid_fill.frag.h"
48 #include "impeller/entity/solid_fill.vert.h"
49 #include "impeller/entity/srgb_to_linear_filter.frag.h"
50 #include "impeller/entity/sweep_gradient_fill.frag.h"
51 #include "impeller/entity/sweep_gradient_ssbo_fill.frag.h"
52 #include "impeller/entity/sweep_gradient_uniform_fill.frag.h"
53 #include "impeller/entity/texture_downsample.frag.h"
54 #include "impeller/entity/texture_fill.frag.h"
55 #include "impeller/entity/texture_fill.vert.h"
56 #include "impeller/entity/texture_fill_strict_src.frag.h"
57 #include "impeller/entity/texture_uv_fill.vert.h"
58 #include "impeller/entity/tiled_texture_fill.frag.h"
59 #include "impeller/entity/vertices_uber_1.frag.h"
60 #include "impeller/entity/vertices_uber_2.frag.h"
61 #include "impeller/entity/yuv_to_rgb_filter.frag.h"
62 #include "impeller/renderer/pipeline.h"
63
64 #ifdef IMPELLER_ENABLE_OPENGLES
65 #include "impeller/entity/texture_downsample_gles.frag.h"
66 #include "impeller/entity/tiled_texture_fill_external.frag.h"
67 #endif // IMPELLER_ENABLE_OPENGLES
68
69 // TODO(gaaclarke): These should be split up into different files.
70 namespace impeller {
71
72 template <typename T>
73 using GradientPipelineHandle =
74 RenderPipelineHandle<GradientFillVertexShader, T>;
75
76 using AdvancedBlendPipelineHandle =
77 RenderPipelineHandle<AdvancedBlendVertexShader,
78 AdvancedBlendFragmentShader>;
79
80 using FramebufferBlendPipelineHandle =
81 RenderPipelineHandle<FramebufferBlendVertexShader,
82 FramebufferBlendFragmentShader>;
83
84 // clang-format off
85 using BlendColorBurnPipeline = AdvancedBlendPipelineHandle;
86 using BlendColorDodgePipeline = AdvancedBlendPipelineHandle;
87 using BlendColorPipeline = AdvancedBlendPipelineHandle;
88 using BlendDarkenPipeline = AdvancedBlendPipelineHandle;
89 using BlendDifferencePipeline = AdvancedBlendPipelineHandle;
90 using BlendExclusionPipeline = AdvancedBlendPipelineHandle;
91 using BlendHardLightPipeline = AdvancedBlendPipelineHandle;
92 using BlendHuePipeline = AdvancedBlendPipelineHandle;
93 using BlendLightenPipeline = AdvancedBlendPipelineHandle;
94 using BlendLuminosityPipeline = AdvancedBlendPipelineHandle;
95 using BlendMultiplyPipeline = AdvancedBlendPipelineHandle;
96 using BlendOverlayPipeline = AdvancedBlendPipelineHandle;
97 using BlendSaturationPipeline = AdvancedBlendPipelineHandle;
98 using BlendScreenPipeline = AdvancedBlendPipelineHandle;
99 using BlendSoftLightPipeline = AdvancedBlendPipelineHandle;
100 using BorderMaskBlurPipeline = RenderPipelineHandle<FilterPositionUvVertexShader, BorderMaskBlurFragmentShader>;
101 using ClipPipeline = RenderPipelineHandle<ClipVertexShader, ClipFragmentShader>;
102 using ColorMatrixColorFilterPipeline = RenderPipelineHandle<FilterPositionUvVertexShader, ColorMatrixColorFilterFragmentShader>;
103 using ConicalGradientFillConicalPipeline = GradientPipelineHandle<ConicalGradientFillConicalFragmentShader>;
104 using ConicalGradientFillRadialPipeline = GradientPipelineHandle<ConicalGradientFillRadialFragmentShader>;
105 using ConicalGradientFillStripPipeline = GradientPipelineHandle<ConicalGradientFillStripFragmentShader>;
106 using ConicalGradientFillStripRadialPipeline = GradientPipelineHandle<ConicalGradientFillStripRadialFragmentShader>;
107 using ConicalGradientSSBOFillPipeline = GradientPipelineHandle<ConicalGradientSsboFillFragmentShader>;
108 using ConicalGradientUniformFillConicalPipeline = GradientPipelineHandle<ConicalGradientUniformFillConicalFragmentShader>;
109 using ConicalGradientUniformFillRadialPipeline = GradientPipelineHandle<ConicalGradientUniformFillRadialFragmentShader>;
110 using ConicalGradientUniformFillStripPipeline = GradientPipelineHandle<ConicalGradientUniformFillStripFragmentShader>;
111 using ConicalGradientUniformFillStripRadialPipeline = GradientPipelineHandle<ConicalGradientUniformFillStripRadialFragmentShader>;
112 using FastGradientPipeline = RenderPipelineHandle<FastGradientVertexShader, FastGradientFragmentShader>;
113 using FramebufferBlendColorBurnPipeline = FramebufferBlendPipelineHandle;
114 using FramebufferBlendColorDodgePipeline = FramebufferBlendPipelineHandle;
115 using FramebufferBlendColorPipeline = FramebufferBlendPipelineHandle;
116 using FramebufferBlendDarkenPipeline = FramebufferBlendPipelineHandle;
117 using FramebufferBlendDifferencePipeline = FramebufferBlendPipelineHandle;
118 using FramebufferBlendExclusionPipeline = FramebufferBlendPipelineHandle;
119 using FramebufferBlendHardLightPipeline = FramebufferBlendPipelineHandle;
120 using FramebufferBlendHuePipeline = FramebufferBlendPipelineHandle;
121 using FramebufferBlendLightenPipeline = FramebufferBlendPipelineHandle;
122 using FramebufferBlendLuminosityPipeline = FramebufferBlendPipelineHandle;
123 using FramebufferBlendMultiplyPipeline = FramebufferBlendPipelineHandle;
124 using FramebufferBlendOverlayPipeline = FramebufferBlendPipelineHandle;
125 using FramebufferBlendSaturationPipeline = FramebufferBlendPipelineHandle;
126 using FramebufferBlendScreenPipeline = FramebufferBlendPipelineHandle;
127 using FramebufferBlendSoftLightPipeline = FramebufferBlendPipelineHandle;
128 using GaussianBlurPipeline = RenderPipelineHandle<FilterPositionUvVertexShader, GaussianFragmentShader>;
129 using GlyphAtlasPipeline = RenderPipelineHandle<GlyphAtlasVertexShader, GlyphAtlasFragmentShader>;
130 using LinePipeline = RenderPipelineHandle<LineVertexShader, LineFragmentShader>;
131 using LinearGradientFillPipeline = GradientPipelineHandle<LinearGradientFillFragmentShader>;
132 using LinearGradientSSBOFillPipeline = GradientPipelineHandle<LinearGradientSsboFillFragmentShader>;
133 using LinearGradientUniformFillPipeline = GradientPipelineHandle<LinearGradientUniformFillFragmentShader>;
134 using LinearToSrgbFilterPipeline = RenderPipelineHandle<FilterPositionVertexShader, LinearToSrgbFilterFragmentShader>;
135 using MorphologyFilterPipeline = RenderPipelineHandle<FilterPositionUvVertexShader, MorphologyFilterFragmentShader>;
136 using PorterDuffBlendPipeline = RenderPipelineHandle<PorterDuffBlendVertexShader, PorterDuffBlendFragmentShader>;
137 using RadialGradientFillPipeline = GradientPipelineHandle<RadialGradientFillFragmentShader>;
138 using RadialGradientSSBOFillPipeline = GradientPipelineHandle<RadialGradientSsboFillFragmentShader>;
139 using RadialGradientUniformFillPipeline = GradientPipelineHandle<RadialGradientUniformFillFragmentShader>;
140 using RRectBlurPipeline = RenderPipelineHandle<RrectBlurVertexShader, RrectBlurFragmentShader>;
141 using SolidFillPipeline = RenderPipelineHandle<SolidFillVertexShader, SolidFillFragmentShader>;
142 using SrgbToLinearFilterPipeline = RenderPipelineHandle<FilterPositionVertexShader, SrgbToLinearFilterFragmentShader>;
143 using SweepGradientFillPipeline = GradientPipelineHandle<SweepGradientFillFragmentShader>;
144 using SweepGradientSSBOFillPipeline = GradientPipelineHandle<SweepGradientSsboFillFragmentShader>;
145 using SweepGradientUniformFillPipeline = GradientPipelineHandle<SweepGradientUniformFillFragmentShader>;
146 using TextureDownsamplePipeline = RenderPipelineHandle<TextureFillVertexShader, TextureDownsampleFragmentShader>;
147 using TexturePipeline = RenderPipelineHandle<TextureFillVertexShader, TextureFillFragmentShader>;
148 using TextureStrictSrcPipeline = RenderPipelineHandle<TextureFillVertexShader, TextureFillStrictSrcFragmentShader>;
149 using TiledTexturePipeline = RenderPipelineHandle<TextureUvFillVertexShader, TiledTextureFillFragmentShader>;
150 using VerticesUber1Shader = RenderPipelineHandle<PorterDuffBlendVertexShader, VerticesUber1FragmentShader>;
151 using VerticesUber2Shader = RenderPipelineHandle<PorterDuffBlendVertexShader, VerticesUber2FragmentShader>;
152 using YUVToRGBFilterPipeline = RenderPipelineHandle<FilterPositionVertexShader, YuvToRgbFilterFragmentShader>;
153 // clang-format on
154
155 #ifdef IMPELLER_ENABLE_OPENGLES
156 using TiledTextureExternalPipeline =
157 RenderPipelineHandle<TextureFillVertexShader,
158 TiledTextureFillExternalFragmentShader>;
159 using TiledTextureUvExternalPipeline =
160 RenderPipelineHandle<TextureUvFillVertexShader,
161 TiledTextureFillExternalFragmentShader>;
162 using TextureDownsampleGlesPipeline =
163 RenderPipelineHandle<TextureFillVertexShader,
164 TextureDownsampleGlesFragmentShader>;
165 #endif // IMPELLER_ENABLE_OPENGLES
166 } // namespace impeller
167
168 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_PIPELINES_H_
impeller::RenderPipelineHandle
Definition: pipeline.h:117
impeller
Definition: allocation.cc:12
impeller::AdvancedBlendPipelineHandle
RenderPipelineHandle< AdvancedBlendVertexShader, AdvancedBlendFragmentShader > AdvancedBlendPipelineHandle
Definition: pipelines.h:78
impeller::FramebufferBlendPipelineHandle
RenderPipelineHandle< FramebufferBlendVertexShader, FramebufferBlendFragmentShader > FramebufferBlendPipelineHandle
Definition: pipelines.h:82
pipeline.h