Flutter Engine
The Flutter Engine
|
#include <DispatchGroup.h>
Classes | |
class | Builder |
struct | Dispatch |
Public Member Functions | |
~DispatchGroup () | |
const skia_private::TArray< Dispatch > & | dispatches () const |
const ComputePipeline * | getPipeline (size_t index) const |
const Texture * | getTexture (size_t index) const |
const Sampler * | getSampler (size_t index) const |
bool | prepareResources (ResourceProvider *) |
void | addResourceRefs (CommandBuffer *) const |
sk_sp< Task > | snapChildTask () |
Friends | |
class | DispatchGroupBuilder |
DispatchGroup groups a series of compute pipeline dispatches that need to execute sequentially (i.e. with a barrier). Dispatches are stored in the order that they will be encoded in the eventual command buffer.
A DispatchGroup can be constructed from a series of ComputeSteps using a Builder. The Builder verifies that the data flow specification between successive ComputeSteps are compatible. The resources required by a ComputeStep (such as Buffers and TextureProxies) are created by the Builder as they get added.
Once a DispatchGroup is finalized, it is immutable. It contains the complete ResourceBinding list for each dispatch. A list of finalized DispatchGroups can be submitted to the command buffer in a ComputeTask.
Definition at line 61 of file DispatchGroup.h.
|
default |
void skgpu::graphite::DispatchGroup::addResourceRefs | ( | CommandBuffer * | commandBuffer | ) | const |
Definition at line 66 of file DispatchGroup.cpp.
|
inline |
Definition at line 77 of file DispatchGroup.h.
|
inline |
Definition at line 79 of file DispatchGroup.h.
const Sampler * skgpu::graphite::DispatchGroup::getSampler | ( | size_t | index | ) | const |
Definition at line 89 of file DispatchGroup.cpp.
const Texture * skgpu::graphite::DispatchGroup::getTexture | ( | size_t | index | ) | const |
Definition at line 82 of file DispatchGroup.cpp.
bool skgpu::graphite::DispatchGroup::prepareResources | ( | ResourceProvider * | resourceProvider | ) |
Definition at line 27 of file DispatchGroup.cpp.
Definition at line 75 of file DispatchGroup.cpp.
|
friend |
Definition at line 91 of file DispatchGroup.h.