Flutter Engine
The Flutter Engine
|
#include <GrD3DTexture.h>
Public Member Functions | |
~GrD3DTexture () override | |
GrBackendTexture | getBackendTexture () const override |
GrBackendFormat | backendFormat () const override |
D3D12_CPU_DESCRIPTOR_HANDLE | shaderResourceView () |
void | textureParamsModified () override |
Public Member Functions inherited from GrTexture | |
GrTexture * | asTexture () override |
const GrTexture * | asTexture () const override |
virtual GrBackendTexture | getBackendTexture () const =0 |
virtual void | textureParamsModified ()=0 |
GrTextureType | textureType () const |
bool | hasRestrictedSampling () const |
void | markMipmapsDirty () |
void | markMipmapsClean () |
skgpu::Mipmapped | mipmapped () const |
bool | mipmapsAreDirty () const |
GrMipmapStatus | mipmapStatus () const |
int | maxMipmapLevel () const |
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< GrD3DTexture > | MakeNewTexture (GrD3DGpu *, skgpu::Budgeted, SkISize dimensions, const D3D12_RESOURCE_DESC &, GrProtected, GrMipmapStatus, std::string_view label) |
static sk_sp< GrD3DTexture > | MakeWrappedTexture (GrD3DGpu *, SkISize dimensions, GrWrapCacheable, GrIOType, const GrD3DTextureResourceInfo &, sk_sp< GrD3DResourceState >) |
static sk_sp< GrD3DTexture > | MakeAliasingTexture (GrD3DGpu *, sk_sp< GrD3DTexture >, const D3D12_RESOURCE_DESC &newDesc, D3D12_RESOURCE_STATES) |
Static Public Member Functions inherited from GrTexture | |
static bool | StealBackendTexture (sk_sp< GrTexture >, GrBackendTexture *, SkImages::BackendTextureReleaseProc *) |
static void | ComputeScratchKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, GrRenderable, int sampleCnt, skgpu::Mipmapped, GrProtected, 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) |
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 18 of file GrD3DTexture.h.
|
inlineoverride |
Definition at line 40 of file GrD3DTexture.h.
|
protected |
Definition at line 54 of file GrD3DTexture.cpp.
|
inlineoverridevirtual |
Implements GrSurface.
Reimplemented in GrD3DTextureRenderTarget.
Definition at line 44 of file GrD3DTexture.h.
|
overridevirtual |
Implements GrTexture.
Definition at line 163 of file GrD3DTexture.cpp.
|
protected |
Definition at line 167 of file GrD3DTexture.cpp.
|
static |
Definition at line 119 of file GrD3DTexture.cpp.
|
static |
Definition at line 68 of file GrD3DTexture.cpp.
|
static |
Definition at line 96 of file GrD3DTexture.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 156 of file GrD3DTexture.cpp.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Reimplemented in GrD3DTextureRenderTarget.
Definition at line 148 of file GrD3DTexture.cpp.
|
overrideprotectedvirtual |
Implements GrGpuResource.
Definition at line 172 of file GrD3DTexture.cpp.
|
inlineoverrideprotectedvirtual |
|
inline |
Definition at line 45 of file GrD3DTexture.h.
|
inlineoverridevirtual |
This function indicates that the texture parameters (wrap mode, filtering, ...) have been changed externally to Skia.
Implements GrTexture.
Definition at line 47 of file GrD3DTexture.h.