Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
RenderPassTask.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef skgpu_graphite_task_RenderPassTask_DEFINED
9#define skgpu_graphite_task_RenderPassTask_DEFINED
10
14
15namespace skgpu::graphite {
16
17class DrawPass;
18
19/**
20 * RenderPassTask handles preparing and recording DrawLists into a single render pass within a
21 * command buffer. If the backend supports subpasses, and the DrawLists/surfaces are compatible, a
22 * RenderPassTask can execute multiple DrawLists across different surfaces as subpasses nested
23 * within a single render pass. If there is no such support, a RenderPassTask is one-to-one with a
24 * "render pass" to specific surface.
25 */
47
48} // namespace skgpu::graphite
49
50#endif // skgpu_graphite_task_RenderPassTask_DEFINED
static sk_sp< RenderPassTask > Make(DrawPassList, const RenderPassDesc &, sk_sp< TextureProxy > target)
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
Status prepareResources(ResourceProvider *, const RuntimeEffectDictionary *) override
uint32_t * target