Flutter Engine
The Flutter Engine
|
#include <GrD3DRenderTarget.h>
Static Public Member Functions | |
static sk_sp< GrD3DRenderTarget > | MakeWrappedRenderTarget (GrD3DGpu *, SkISize, int sampleCnt, const GrD3DTextureResourceInfo &, sk_sp< GrD3DResourceState >) |
Static Public Member Functions inherited from GrSurface | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
Static Public Member Functions inherited from GrGpuResource | |
static uint32_t | CreateUniqueID () |
Static Public Member Functions inherited from GrD3DTextureResource | |
static bool | InitTextureResourceInfo (GrD3DGpu *gpu, const D3D12_RESOURCE_DESC &desc, D3D12_RESOURCE_STATES initialState, GrProtected, D3D12_CLEAR_VALUE *, GrD3DTextureResourceInfo *) |
static std::pair< GrD3DTextureResourceInfo, sk_sp< GrD3DResourceState > > | CreateMSAA (GrD3DGpu *gpu, SkISize dimensions, int sampleCnt, const GrD3DTextureResourceInfo &info, SkColor4f clearColor) |
Protected Member Functions | |
GrD3DRenderTarget (GrD3DGpu *gpu, SkISize dimensions, const GrD3DTextureResourceInfo &info, sk_sp< GrD3DResourceState > state, const GrD3DTextureResourceInfo &msaaInfo, sk_sp< GrD3DResourceState > msaaState, const GrD3DDescriptorHeap::CPUHandle &colorRenderTargetView, const GrD3DDescriptorHeap::CPUHandle &resolveRenderTargetView, std::string_view label) | |
GrD3DRenderTarget (GrD3DGpu *gpu, SkISize dimensions, const GrD3DTextureResourceInfo &info, sk_sp< GrD3DResourceState > state, const GrD3DDescriptorHeap::CPUHandle &renderTargetView, std::string_view label) | |
void | onAbandon () override |
void | onRelease () override |
size_t | onGpuMemorySize () const override |
void | onSetLabel () override |
Protected Member Functions inherited from GrRenderTarget | |
GrRenderTarget (GrGpu *, const SkISize &, int sampleCount, GrProtected, std::string_view label, sk_sp< GrAttachment > stenicl=nullptr) | |
~GrRenderTarget () override | |
void | onAbandon () override |
void | onRelease () override |
Protected Member Functions inherited from GrSurface | |
void | setGLRTFBOIDIs0 () |
bool | glRTFBOIDis0 () const |
void | setRequiresManualMSAAResolve () |
bool | requiresManualMSAAResolve () const |
void | setReadOnly () |
void | setVkRTSupportsInputAttachment () |
GrSurface (GrGpu *gpu, const SkISize &dimensions, skgpu::Protected isProtected, std::string_view label) | |
~GrSurface () override | |
void | onRelease () override |
void | onAbandon () override |
Protected Member Functions inherited from GrGpuResource | |
void | registerWithCache (skgpu::Budgeted) |
void | registerWithCacheWrapped (GrWrapCacheable) |
GrGpuResource (GrGpu *, std::string_view label) | |
virtual | ~GrGpuResource () |
GrGpu * | getGpu () const |
virtual void | onRelease () |
virtual void | onAbandon () |
virtual void | setMemoryBacking (SkTraceMemoryDump *, const SkString &) const |
SkString | getResourceName () const |
void | dumpMemoryStatisticsPriv (SkTraceMemoryDump *traceMemoryDump, const SkString &resourceName, const char *type, size_t size) const |
Protected Member Functions inherited from GrIORef< GrGpuResource > | |
GrIORef () | |
bool | internalHasRef () const |
bool | internalHasNoCommandBufferUsages () const |
void | addInitialRef () const |
Protected Member Functions inherited from GrD3DTextureResource | |
void | releaseResource (GrD3DGpu *gpu) |
Additional Inherited Members | |
Public Types inherited from GrSurface | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Protected Attributes inherited from GrD3DTextureResource | |
GrD3DTextureResourceInfo | fInfo |
sk_sp< GrD3DResourceState > | fState |
Definition at line 25 of file GrD3DRenderTarget.h.
|
override |
Definition at line 137 of file GrD3DRenderTarget.cpp.
|
protected |
Definition at line 45 of file GrD3DRenderTarget.cpp.
|
protected |
Definition at line 84 of file GrD3DRenderTarget.cpp.
|
inlineoverridevirtual |
Implements GrSurface.
Reimplemented in GrD3DTextureRenderTarget.
Definition at line 32 of file GrD3DRenderTarget.h.
|
inlineoverridevirtual |
Implements GrRenderTarget.
Definition at line 42 of file GrD3DRenderTarget.h.
|
inline |
Definition at line 49 of file GrD3DRenderTarget.h.
void GrD3DRenderTarget::genKey | ( | skgpu::KeyBuilder * | b | ) | const |
Definition at line 200 of file GrD3DRenderTarget.cpp.
|
overridevirtual |
Implements GrRenderTarget.
Definition at line 183 of file GrD3DRenderTarget.cpp.
|
static |
Definition at line 96 of file GrD3DRenderTarget.cpp.
GrD3DTextureResource * GrD3DRenderTarget::msaaTextureResource | ( | ) |
Definition at line 154 of file GrD3DRenderTarget.cpp.
const GrD3DTextureResource * GrD3DRenderTarget::msaaTextureResource | ( | ) | const |
If this render target is multisampled, this returns the MSAA texture for rendering. This will be different than this when we have separate render/resolve images. If not multisampled returns nullptr.
Definition at line 142 of file GrD3DRenderTarget.cpp.
|
overrideprotectedvirtual |
Overridden to abandon any internal handles, ptrs, etc to backend API resources. This may be called when the underlying 3D context is no longer valid and so no backend API calls should be made.
Reimplemented from GrGpuResource.
Reimplemented in GrD3DTextureRenderTarget.
Definition at line 177 of file GrD3DRenderTarget.cpp.
|
inlineoverrideprotectedvirtual |
Implements GrGpuResource.
Definition at line 80 of file GrD3DRenderTarget.h.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Reimplemented in GrD3DTextureRenderTarget.
Definition at line 171 of file GrD3DRenderTarget.cpp.
|
overrideprotectedvirtual |
Implements GrGpuResource.
Definition at line 212 of file GrD3DRenderTarget.cpp.
DXGI_FORMAT GrD3DRenderTarget::stencilDxgiFormat | ( | ) | const |
Definition at line 192 of file GrD3DRenderTarget.cpp.