8#ifndef skgpu_graphite_DrawPass_DEFINED
9#define skgpu_graphite_DrawPass_DEFINED
31class GraphicsPipeline;
35class RuntimeEffectDictionary;
37class TextureDataBlock;
62 std::unique_ptr<DrawList>,
65 std::pair<LoadOp, StoreOp>,
74 std::pair<LoadOp, StoreOp>
ops()
const {
return fOps; }
75 std::array<float, 4>
clearColor()
const {
return fClearColor; }
97 return fFullPipelines[index].get();
110 std::pair<LoadOp, StoreOp>
ops,
118 std::pair<LoadOp, StoreOp> fOps;
119 std::array<float, 4> fClearColor;
122 bool fRequiresMSAA =
false;
SkTBlockList< Command, 16 >::CIter Iter
size_t vertexBufferSize() const
const Texture * getTexture(size_t index) const
std::array< float, 4 > clearColor() const
bool prepareResources(ResourceProvider *, const RuntimeEffectDictionary *, const RenderPassDesc &)
size_t uniformBufferSize() const
const Sampler * getSampler(size_t index) const
DrawPassCommands::List::Iter commands() const
const SkIRect & bounds() const
SkEnumBitMask< DepthStencilFlags > depthStencilFlags() const
std::pair< LoadOp, StoreOp > ops() const
bool requiresDstTexture() const
TextureProxy * target() const
bool requiresMSAA() const
skia_private::TArray< sk_sp< TextureProxy > > sampledTextures() const
void addResourceRefs(CommandBuffer *) const
const GraphicsPipeline * getPipeline(size_t index) const
static std::unique_ptr< DrawPass > Make(Recorder *, std::unique_ptr< DrawList >, sk_sp< TextureProxy > target, const SkImageInfo &targetInfo, std::pair< LoadOp, StoreOp >, std::array< float, 4 > clearColor, sk_sp< TextureProxy > dstCopy, SkIPoint dstCopyOffset)
std::function< ProfileSample(void)> Sampler
Sampler is run during SamplingProfiler::SampleRepeatedly. Each platform should implement its version ...