8#ifndef skgpu_graphite_compute_DispatchGroup_DEFINED
9#define skgpu_graphite_compute_DispatchGroup_DEFINED
40 std::variant<std::monostate, BufferView, TextureIndex, SamplerIndex>;
179 std::unique_ptr<DispatchGroup>
finalize();
181#if defined(GRAPHITE_TEST_UTILS)
193 bool appendStepInternal(
const ComputeStep*,
const std::variant<WorkgroupSize, BufferView>&);
202 std::unique_ptr<DispatchGroup> fObj;
205 OutputTable fOutputTable;
static int step(int x, SkScalar min, SkScalar max)
static SkString resource(SkPDFResourceType type, int index)
bool appendStepIndirect(const ComputeStep *, BufferView indirectBuffer)
void assignSharedBuffer(BufferView buffer, unsigned int slot, ClearBuffer cleared=ClearBuffer::kNo)
sk_sp< TextureProxy > getSharedTextureResource(unsigned int slot) const
std::unique_ptr< DispatchGroup > finalize()
bool appendStep(const ComputeStep *, std::optional< WorkgroupSize > globalSize=std::nullopt)
const OutputTable & outputTable() const
void assignSharedTexture(sk_sp< TextureProxy > texture, unsigned int slot)
BindBufferInfo getSharedBufferResource(unsigned int slot) const
void addResourceRefs(CommandBuffer *) const
const ComputePipeline * getPipeline(size_t index) const
const Texture * getTexture(size_t index) const
friend class DispatchGroupBuilder
sk_sp< Task > snapChildTask()
const skia_private::TArray< Dispatch > & dispatches() const
bool prepareResources(ResourceProvider *)
const Sampler * getSampler(size_t index) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
std::variant< BufferView, TextureIndex, SamplerIndex > DispatchResource
constexpr int kMaxComputeDataFlowSlots
std::variant< std::monostate, BufferView, TextureIndex, SamplerIndex > DispatchResourceOptional
DispatchResourceOptional fSharedSlots[kMaxComputeDataFlowSlots]
skia_private::TArray< ComputeStep::WorkgroupBufferDesc > fWorkgroupBuffers
std::optional< WorkgroupSize > fGlobalDispatchSize
std::variant< WorkgroupSize, BufferView > fGlobalSizeOrIndirect
skia_private::TArray< ResourceBinding > fBindings
DispatchResource fResource