![]() |
Flutter Engine
The Flutter Engine
|
#include <GrD3DAttachment.h>
Public Member Functions | |
~GrD3DAttachment () override | |
GrBackendFormat | backendFormat () const override |
D3D12_CPU_DESCRIPTOR_HANDLE | view () const |
![]() | |
GR_DECL_BITFIELD_CLASS_OPS_FRIENDS (UsageFlags) | |
~GrAttachment () override | |
UsageFlags | supportedUsages () const |
int | numSamples () const |
skgpu::Mipmapped | mipmapped () const |
bool | hasPerformedInitialClear () const |
void | markHasPerformedInitialClear () |
![]() | |
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 () |
![]() | |
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 |
![]() | |
bool | unique () const |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
![]() | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
![]() | |
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 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 size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
![]() | |
static uint32_t | CreateUniqueID () |
![]() | |
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 |
![]() | |
GrAttachment (GrGpu *gpu, SkISize dimensions, UsageFlags supportedUsages, int sampleCnt, skgpu::Mipmapped mipmapped, GrProtected isProtected, std::string_view label, GrMemoryless memoryless=GrMemoryless::kNo) | |
![]() | |
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 |
![]() | |
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 |
![]() | |
GrIORef () | |
bool | internalHasRef () const |
bool | internalHasNoCommandBufferUsages () const |
void | addInitialRef () const |
![]() | |
void | releaseResource (GrD3DGpu *gpu) |
Additional Inherited Members | |
![]() | |
enum class | UsageFlags : uint8_t { kStencilAttachment = 0x1 , kColorAttachment = 0x2 , kTexture = 0x4 } |
![]() | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
![]() | |
enum | LastRemovedRef |
![]() | |
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.