Flutter Engine
The Flutter Engine
|
#include <GrD3DAttachment.h>
Public Member Functions | |
~GrD3DAttachment () override | |
GrBackendFormat | backendFormat () const override |
D3D12_CPU_DESCRIPTOR_HANDLE | view () const |
Public Member Functions inherited from GrAttachment | |
GR_DECL_BITFIELD_CLASS_OPS_FRIENDS (UsageFlags) | |
~GrAttachment () override | |
UsageFlags | supportedUsages () const |
int | numSamples () const |
skgpu::Mipmapped | mipmapped () const |
bool | hasPerformedInitialClear () const |
void | markHasPerformedInitialClear () |
Public Member Functions inherited from GrSurface | |
SkISize | dimensions () const |
int | width () const |
int | height () const |
SkRect | getBoundsRect () const |
virtual GrBackendFormat | backendFormat () const =0 |
void | setRelease (sk_sp< skgpu::RefCntedCallback > releaseHelper) |
void | setRelease (ReleaseProc proc, ReleaseCtx ctx) |
virtual GrTexture * | asTexture () |
virtual const GrTexture * | asTexture () const |
virtual GrRenderTarget * | asRenderTarget () |
virtual const GrRenderTarget * | asRenderTarget () const |
GrInternalSurfaceFlags | flags () const |
bool | readOnly () const |
bool | framebufferOnly () const |
bool | isProtected () const |
void | setFramebufferOnly () |
Public Member Functions inherited from GrGpuResource | |
bool | wasDestroyed () const |
const GrDirectContext * | getContext () const |
GrDirectContext * | getContext () |
size_t | gpuMemorySize () const |
UniqueID | uniqueID () const |
const skgpu::UniqueKey & | getUniqueKey () const |
std::string | getLabel () const |
void | setLabel (std::string_view label) |
CacheAccess | cacheAccess () |
const CacheAccess | cacheAccess () const |
ProxyAccess | proxyAccess () |
ResourcePriv | resourcePriv () |
const ResourcePriv | resourcePriv () const |
virtual void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
virtual const char * | getResourceType () const =0 |
Public Member Functions inherited from GrIORef< GrGpuResource > | |
bool | unique () const |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Public Member Functions inherited from GrD3DTextureResource | |
GrD3DTextureResource (const GrD3DTextureResourceInfo &info, sk_sp< GrD3DResourceState > state) | |
virtual | ~GrD3DTextureResource () |
ID3D12Resource * | d3dResource () const |
DXGI_FORMAT | dxgiFormat () const |
GrBackendFormat | getBackendFormat () const |
sk_sp< Resource > | resource () const |
uint32_t | mipLevels () const |
sk_sp< GrD3DResourceState > | grD3DResourceState () const |
D3D12_RESOURCE_STATES | currentState () const |
void | setResourceState (const GrD3DGpu *gpu, D3D12_RESOURCE_STATES newResourceState, unsigned int subresource=D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES) |
void | prepareForPresent (GrD3DGpu *gpu) |
unsigned int | sampleQualityPattern () const |
void | updateResourceState (D3D12_RESOURCE_STATES newState) |
void | setResourceRelease (sk_sp< GrSurface::RefCntedReleaseProc > releaseHelper) |
Static Public Member Functions | |
static sk_sp< GrD3DAttachment > | MakeStencil (GrD3DGpu *gpu, SkISize dimensions, int sampleCnt, DXGI_FORMAT format) |
Static Public Member Functions inherited from GrAttachment | |
static void | ComputeSharedAttachmentUniqueKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, UsageFlags requiredUsage, int sampleCnt, skgpu::Mipmapped mipmapped, GrProtected isProtected, GrMemoryless memoryless, skgpu::UniqueKey *key) |
static void | ComputeScratchKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, UsageFlags requiredUsage, int sampleCnt, skgpu::Mipmapped mipmapped, GrProtected, GrMemoryless, skgpu::ScratchKey *key) |
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 | |
void | onRelease () override |
void | onAbandon () override |
Protected Member Functions inherited from GrAttachment | |
GrAttachment (GrGpu *gpu, SkISize dimensions, UsageFlags supportedUsages, int sampleCnt, skgpu::Mipmapped mipmapped, GrProtected isProtected, std::string_view label, GrMemoryless memoryless=GrMemoryless::kNo) | |
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 GrAttachment | |
enum class | UsageFlags : uint8_t { kStencilAttachment = 0x1 , kColorAttachment = 0x2 , kTexture = 0x4 } |
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 19 of file GrD3DAttachment.h.
|
inlineoverride |
Definition at line 26 of file GrD3DAttachment.h.
|
inlineoverridevirtual |
Implements GrSurface.
Definition at line 28 of file GrD3DAttachment.h.
|
static |
Definition at line 34 of file GrD3DAttachment.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.
Definition at line 82 of file GrD3DAttachment.cpp.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Definition at line 75 of file GrD3DAttachment.cpp.
|
inline |
Definition at line 30 of file GrD3DAttachment.h.