#include "src/gpu/graphite/compute/ComputeStep.h"
#include "include/private/base/SkAssert.h"
#include <atomic>
#include <unordered_set>
namespace skgpu::graphite {
namespace {
static uint32_t next_id() { … }
}
ComputeStep::ComputeStep(std::string_view name,
WorkgroupSize localDispatchSize,
SkSpan<const ResourceDesc> resources,
SkSpan<const WorkgroupBufferDesc> workgroupBuffers,
Flags baseFlags)
: … { … }
void ComputeStep::prepareStorageBuffer(int, const ResourceDesc&, void*, size_t) const { … }
void ComputeStep::prepareUniformBuffer(int, const ResourceDesc&, UniformManager*) const { … }
std::string ComputeStep::computeSkSL() const { … }
ComputeStep::NativeShaderSource ComputeStep::nativeShaderSource(NativeShaderFormat) const { … }
size_t ComputeStep::calculateBufferSize(int, const ResourceDesc&) const { … }
std::tuple<SkISize, SkColorType> ComputeStep::calculateTextureParameters(
int, const ResourceDesc&) const { … }
SamplerDesc ComputeStep::calculateSamplerParameters(int resourceIndex, const ResourceDesc&) const { … }
WorkgroupSize ComputeStep::calculateGlobalDispatchSize() const { … }
}