8#ifndef GrD3DOpsRenderPass_DEFINED
9#define GrD3DOpsRenderPass_DEFINED
37 GrGpu* gpu()
override;
39 void onBegin()
override;
42 void onSetScissorRect(
const SkIRect&)
override;
48 void onDraw(
int vertexCount,
int baseVertex)
override {
49 this->onDrawInstanced(1, 0, vertexCount, baseVertex);
51 void onDrawIndexed(
int indexCount,
int baseIndex, uint16_t minIndexValue,
52 uint16_t maxIndexValue,
int baseVertex)
override {
53 this->onDrawIndexedInstanced(indexCount, baseIndex, 1, 0, baseVertex);
55 void onDrawInstanced(
int instanceCount,
int baseInstance,
int vertexCount,
56 int baseVertex)
override;
57 void onDrawIndexedInstanced(
int indexCount,
int baseIndex,
int instanceCount,
int baseInstance,
58 int baseVertex)
override;
59 void onDrawIndirect(
const GrBuffer*,
size_t offset,
int drawCount)
override;
60 void onDrawIndexedIndirect(
const GrBuffer*,
size_t offset,
int drawCount)
override;
64 void onClearStencilClip(
const GrScissorState& scissor,
bool insideStencilMask)
override;
74 std::array<float, 4> fClearColor;
std::function< void(GrDeferredTextureUploadWritePixelsFn &)> GrDeferredTextureUploadFn
void inlineUpload(GrOpFlushState *state, GrDeferredTextureUploadFn &upload) override
~GrD3DOpsRenderPass() override
bool set(GrRenderTarget *, GrSurfaceOrigin, const SkIRect &bounds, const GrOpsRenderPass::LoadAndStoreInfo &, const GrOpsRenderPass::StencilLoadAndStoreInfo &, const skia_private::TArray< GrSurfaceProxy *, true > &sampledProxies)
GrD3DOpsRenderPass(GrD3DGpu *)
void onExecuteDrawable(std::unique_ptr< SkDrawable::GpuDrawHandler >) override
Optional< SkRect > bounds