Flutter Engine
The Flutter Engine
|
#include <GrD3DCommandList.h>
Public Types | |
enum class | SubmitResult { kNoWork , kSuccess , kFailure } |
Public Member Functions | |
virtual | ~GrD3DCommandList () |
SubmitResult | submit (ID3D12CommandQueue *queue) |
bool | close () |
void | reset () |
void | resourceBarrier (sk_sp< GrManagedResource > managedResource, int numBarriers, const D3D12_RESOURCE_TRANSITION_BARRIER *barriers) |
void | uavBarrier (sk_sp< GrManagedResource > managedResource, ID3D12Resource *uavResource) |
void | aliasingBarrier (sk_sp< GrManagedResource > beforeManagedResource, ID3D12Resource *beforeResource, sk_sp< GrManagedResource > afterManagedResource, ID3D12Resource *afterResource) |
void | copyBufferToTexture (ID3D12Resource *srcBuffer, const GrD3DTextureResource *dstTexture, uint32_t subresourceCount, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *bufferFootprints, int left, int top) |
void | copyTextureRegionToTexture (sk_sp< GrManagedResource > dst, const D3D12_TEXTURE_COPY_LOCATION *dstLocation, UINT dstX, UINT dstY, sk_sp< GrManagedResource > src, const D3D12_TEXTURE_COPY_LOCATION *srcLocation, const D3D12_BOX *srcBox) |
void | copyTextureRegionToBuffer (sk_sp< const GrBuffer > dst, const D3D12_TEXTURE_COPY_LOCATION *dstLocation, UINT dstX, UINT dstY, sk_sp< GrManagedResource > src, const D3D12_TEXTURE_COPY_LOCATION *srcLocation, const D3D12_BOX *srcBox) |
void | copyTextureToTexture (const GrD3DTexture *dst, const GrD3DTexture *src, UINT subresourceIndex=-1) |
void | copyBufferToBuffer (sk_sp< GrD3DBuffer > dstBuffer, uint64_t dstOffset, ID3D12Resource *srcBuffer, uint64_t srcOffset, uint64_t numBytes) |
void | addGrBuffer (sk_sp< const GrBuffer > buffer) |
void | addRecycledResource (sk_sp< GrRecycledResource > resource) |
void | releaseResources () |
bool | hasWork () const |
void | addFinishedCallback (sk_sp< skgpu::RefCntedCallback > callback) |
Protected Types | |
template<typename T > | |
using | TrackedResourceArray = skia_private::STArray< kInitialTrackedResourcesCount, T > |
Protected Member Functions | |
GrD3DCommandList (gr_cp< ID3D12CommandAllocator > allocator, gr_cp< ID3D12GraphicsCommandList > commandList) | |
void | addResource (sk_sp< GrManagedResource > resource) |
void | addingWork () |
virtual void | onReset () |
void | submitResourceBarriers () |
SkDEBUGCODE (bool fIsActive=true;) bool fHasWork | |
Protected Attributes | |
gr_cp< ID3D12GraphicsCommandList > | fCommandList |
TrackedResourceArray< sk_sp< GrManagedResource > > | fTrackedResources |
TrackedResourceArray< sk_sp< GrRecycledResource > > | fTrackedRecycledResources |
TrackedResourceArray< sk_sp< const GrBuffer > > | fTrackedGpuBuffers |
Definition at line 33 of file GrD3DCommandList.h.
|
protected |
Definition at line 138 of file GrD3DCommandList.h.
|
strong |
Enumerator | |
---|---|
kNoWork | |
kSuccess | |
kFailure |
Definition at line 39 of file GrD3DCommandList.h.
|
inlinevirtual |
Definition at line 35 of file GrD3DCommandList.h.
|
protected |
Definition at line 22 of file GrD3DCommandList.cpp.
void GrD3DCommandList::addFinishedCallback | ( | sk_sp< skgpu::RefCntedCallback > | callback | ) |
Definition at line 83 of file GrD3DCommandList.cpp.
Definition at line 100 of file GrD3DCommandList.h.
|
protected |
Definition at line 263 of file GrD3DCommandList.cpp.
|
inline |
Definition at line 106 of file GrD3DCommandList.h.
|
inlineprotected |
Definition at line 125 of file GrD3DCommandList.h.
void GrD3DCommandList::aliasingBarrier | ( | sk_sp< GrManagedResource > | beforeManagedResource, |
ID3D12Resource * | beforeResource, | ||
sk_sp< GrManagedResource > | afterManagedResource, | ||
ID3D12Resource * | afterResource | ||
) |
Definition at line 125 of file GrD3DCommandList.cpp.
bool GrD3DCommandList::close | ( | ) |
Definition at line 28 of file GrD3DCommandList.cpp.
void GrD3DCommandList::copyBufferToBuffer | ( | sk_sp< GrD3DBuffer > | dstBuffer, |
uint64_t | dstOffset, | ||
ID3D12Resource * | srcBuffer, | ||
uint64_t | srcOffset, | ||
uint64_t | numBytes | ||
) |
Definition at line 246 of file GrD3DCommandList.cpp.
void GrD3DCommandList::copyBufferToTexture | ( | ID3D12Resource * | srcBuffer, |
const GrD3DTextureResource * | dstTexture, | ||
uint32_t | subresourceCount, | ||
D3D12_PLACED_SUBRESOURCE_FOOTPRINT * | bufferFootprints, | ||
int | left, | ||
int | top | ||
) |
Definition at line 159 of file GrD3DCommandList.cpp.
void GrD3DCommandList::copyTextureRegionToBuffer | ( | sk_sp< const GrBuffer > | dst, |
const D3D12_TEXTURE_COPY_LOCATION * | dstLocation, | ||
UINT | dstX, | ||
UINT | dstY, | ||
sk_sp< GrManagedResource > | src, | ||
const D3D12_TEXTURE_COPY_LOCATION * | srcLocation, | ||
const D3D12_BOX * | srcBox | ||
) |
Definition at line 199 of file GrD3DCommandList.cpp.
void GrD3DCommandList::copyTextureRegionToTexture | ( | sk_sp< GrManagedResource > | dst, |
const D3D12_TEXTURE_COPY_LOCATION * | dstLocation, | ||
UINT | dstX, | ||
UINT | dstY, | ||
sk_sp< GrManagedResource > | src, | ||
const D3D12_TEXTURE_COPY_LOCATION * | srcLocation, | ||
const D3D12_BOX * | srcBox | ||
) |
Definition at line 185 of file GrD3DCommandList.cpp.
void GrD3DCommandList::copyTextureToTexture | ( | const GrD3DTexture * | dst, |
const GrD3DTexture * | src, | ||
UINT | subresourceIndex = -1 |
||
) |
Definition at line 215 of file GrD3DCommandList.cpp.
|
inline |
Definition at line 112 of file GrD3DCommandList.h.
|
inlineprotectedvirtual |
Definition at line 131 of file GrD3DCommandList.h.
void GrD3DCommandList::releaseResources | ( | ) |
Definition at line 65 of file GrD3DCommandList.cpp.
void GrD3DCommandList::reset | ( | ) |
Definition at line 53 of file GrD3DCommandList.cpp.
void GrD3DCommandList::resourceBarrier | ( | sk_sp< GrManagedResource > | managedResource, |
int | numBarriers, | ||
const D3D12_RESOURCE_TRANSITION_BARRIER * | barriers | ||
) |
Definition at line 91 of file GrD3DCommandList.cpp.
|
protected |
GrD3DCommandList::SubmitResult GrD3DCommandList::submit | ( | ID3D12CommandQueue * | queue | ) |
Definition at line 36 of file GrD3DCommandList.cpp.
|
protected |
Definition at line 149 of file GrD3DCommandList.cpp.
void GrD3DCommandList::uavBarrier | ( | sk_sp< GrManagedResource > | managedResource, |
ID3D12Resource * | uavResource | ||
) |
Definition at line 110 of file GrD3DCommandList.cpp.
|
protected |
Definition at line 135 of file GrD3DCommandList.h.
|
protected |
Definition at line 141 of file GrD3DCommandList.h.
|
protected |
Definition at line 140 of file GrD3DCommandList.h.
|
protected |
Definition at line 139 of file GrD3DCommandList.h.