9#ifndef GrD3DRenderTarget_DEFINED
10#define GrD3DRenderTarget_DEFINED
50 return fColorRenderTargetView.
fHandle;
67 std::string_view label);
74 std::string_view label);
82 if (numColorSamples > 1) {
94 enum Wrapped { kWrapped };
104 std::string_view label);
112 std::string_view label);
116 bool completeStencilAttachment(
GrAttachment* stencil,
bool useMSAASurface)
override {
128 void releaseInternalObjects();
130 std::unique_ptr<GrD3DTextureResource> fMSAATextureResource;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
bool canAttemptStencilAttachment(bool useMSAASurface) const override
void genKey(skgpu::KeyBuilder *b) const
DXGI_FORMAT stencilDxgiFormat() const
void onRelease() override
size_t onGpuMemorySize() const override
static sk_sp< GrD3DRenderTarget > MakeWrappedRenderTarget(GrD3DGpu *, SkISize, int sampleCnt, const GrD3DTextureResourceInfo &, sk_sp< GrD3DResourceState >)
const GrD3DTextureResource * msaaTextureResource() const
~GrD3DRenderTarget() override
GrBackendFormat backendFormat() const override
GrBackendRenderTarget getBackendRenderTarget() const override
void onAbandon() override
D3D12_CPU_DESCRIPTOR_HANDLE colorRenderTargetView() const
void onSetLabel() override
friend class GrD3DRenderTarget
GrBackendFormat getBackendFormat() const
void setResourceRelease(sk_sp< GrSurface::RefCntedReleaseProc > releaseHelper)
SkISize dimensions() const
static size_t ComputeSize(const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false)
D3D12_CPU_DESCRIPTOR_HANDLE fHandle