8#ifndef skgpu_graphite_DrawPass_DEFINED
9#define skgpu_graphite_DrawPass_DEFINED
31class GraphicsPipeline;
35class RuntimeEffectDictionary;
37class TextureDataBlock;
58 std::unique_ptr<DrawList>,
61 std::pair<LoadOp, StoreOp>,
68 std::pair<LoadOp, StoreOp>
ops()
const {
return fOps; }
69 std::array<float, 4>
clearColor()
const {
return fClearColor; }
86 DrawPassCommands::List::Iter
commands()
const {
91 return fFullPipelines[index].get();
104 std::pair<LoadOp, StoreOp>
ops,
112 std::pair<LoadOp, StoreOp> fOps;
113 std::array<float, 4> fClearColor;
116 bool fRequiresMSAA =
false;
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
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)
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
std::function< ProfileSample(void)> Sampler
Sampler is run during SamplingProfiler::SampleRepeatedly. Each platform should implement its version ...