Flutter Engine
The Flutter Engine
|
#include <GrD3DTextureResource.h>
Public Member Functions | |
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 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 | releaseResource (GrD3DGpu *gpu) |
Protected Attributes | |
GrD3DTextureResourceInfo | fInfo |
sk_sp< GrD3DResourceState > | fState |
Friends | |
class | GrD3DRenderTarget |
Definition at line 20 of file GrD3DTextureResource.h.
|
inline |
Definition at line 25 of file GrD3DTextureResource.h.
|
virtual |
Definition at line 101 of file GrD3DTextureResource.cpp.
|
static |
Definition at line 63 of file GrD3DTextureResource.cpp.
|
inline |
Definition at line 50 of file GrD3DTextureResource.h.
|
inline |
Definition at line 34 of file GrD3DTextureResource.h.
|
inline |
Definition at line 38 of file GrD3DTextureResource.h.
|
inline |
Definition at line 39 of file GrD3DTextureResource.h.
|
inline |
Definition at line 48 of file GrD3DTextureResource.h.
|
static |
Definition at line 31 of file GrD3DTextureResource.cpp.
|
inline |
Definition at line 46 of file GrD3DTextureResource.h.
void GrD3DTextureResource::prepareForPresent | ( | GrD3DGpu * | gpu | ) |
Definition at line 107 of file GrD3DTextureResource.cpp.
|
protected |
Definition at line 111 of file GrD3DTextureResource.cpp.
|
inline |
Definition at line 42 of file GrD3DTextureResource.h.
|
inline |
Definition at line 60 of file GrD3DTextureResource.h.
void GrD3DTextureResource::setResourceRelease | ( | sk_sp< GrSurface::RefCntedReleaseProc > | releaseHelper | ) |
Definition at line 120 of file GrD3DTextureResource.cpp.
void GrD3DTextureResource::setResourceState | ( | const GrD3DGpu * | gpu, |
D3D12_RESOURCE_STATES | newResourceState, | ||
unsigned int | subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES |
||
) |
Definition at line 13 of file GrD3DTextureResource.cpp.
|
inline |
Definition at line 64 of file GrD3DTextureResource.h.
|
friend |
Definition at line 117 of file GrD3DTextureResource.h.
|
protected |
Definition at line 81 of file GrD3DTextureResource.h.
|
protected |
Definition at line 82 of file GrD3DTextureResource.h.