Flutter Engine
The Flutter Engine
|
#include <GrD3DCommandList.h>
Public Member Functions | |
~GrD3DDirectCommandList () override=default | |
void | setPipelineState (const sk_sp< GrD3DPipeline > &pipeline) |
void | setStencilRef (unsigned int stencilRef) |
void | setBlendFactor (const float blendFactor[4]) |
void | setPrimitiveTopology (D3D12_PRIMITIVE_TOPOLOGY primitiveTopology) |
void | setScissorRects (unsigned int numRects, const D3D12_RECT *rects) |
void | setViewports (unsigned int numViewports, const D3D12_VIEWPORT *viewports) |
void | setGraphicsRootSignature (const sk_sp< GrD3DRootSignature > &rootSignature) |
void | setComputeRootSignature (const sk_sp< GrD3DRootSignature > &rootSignature) |
void | setVertexBuffers (unsigned int startSlot, sk_sp< const GrBuffer > vertexBuffer, size_t vertexStride, sk_sp< const GrBuffer > instanceBuffer, size_t instanceStride) |
void | setIndexBuffer (sk_sp< const GrBuffer > indexBuffer) |
void | drawInstanced (unsigned int vertexCount, unsigned int instanceCount, unsigned int startVertex, unsigned int startInstance) |
void | drawIndexedInstanced (unsigned int indexCount, unsigned int instanceCount, unsigned int startIndex, unsigned int baseVertex, unsigned int startInstance) |
void | executeIndirect (const sk_sp< GrD3DCommandSignature > commandSig, unsigned int maxCommandCnt, const GrD3DBuffer *argumentBuffer, size_t argumentBufferOffset) |
void | dispatch (unsigned int threadGroupCountX, unsigned int threadGroupCountY, unsigned int threadGroupCountZ=1) |
void | clearRenderTargetView (const GrD3DRenderTarget *renderTarget, std::array< float, 4 > color, const D3D12_RECT *rect) |
void | clearDepthStencilView (const GrD3DAttachment *, uint8_t stencilClearValue, const D3D12_RECT *rect) |
void | setRenderTarget (const GrD3DRenderTarget *renderTarget) |
void | resolveSubresourceRegion (const GrD3DTextureResource *dstTexture, unsigned int dstX, unsigned int dstY, const GrD3DTextureResource *srcTexture, D3D12_RECT *srcRect) |
void | setGraphicsRootConstantBufferView (unsigned int rootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS bufferLocation) |
void | setGraphicsRootDescriptorTable (unsigned int rootParameterIndex, D3D12_GPU_DESCRIPTOR_HANDLE bufferLocation) |
void | setComputeRootConstantBufferView (unsigned int rootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS bufferLocation) |
void | setComputeRootDescriptorTable (unsigned int rootParameterIndex, D3D12_GPU_DESCRIPTOR_HANDLE bufferLocation) |
void | setDescriptorHeaps (ID3D12DescriptorHeap *srvDescriptorHeap, ID3D12DescriptorHeap *samplerDescriptorHeap) |
void | addSampledTextureRef (GrD3DTexture *) |
Public Member Functions inherited from GrD3DCommandList | |
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) |
Static Public Member Functions | |
static std::unique_ptr< GrD3DDirectCommandList > | Make (GrD3DGpu *gpu) |
Additional Inherited Members | |
Public Types inherited from GrD3DCommandList | |
enum class | SubmitResult { kNoWork , kSuccess , kFailure } |
Protected Types inherited from GrD3DCommandList | |
template<typename T > | |
using | TrackedResourceArray = skia_private::STArray< kInitialTrackedResourcesCount, T > |
Protected Member Functions inherited from GrD3DCommandList | |
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 inherited from GrD3DCommandList | |
gr_cp< ID3D12GraphicsCommandList > | fCommandList |
TrackedResourceArray< sk_sp< GrManagedResource > > | fTrackedResources |
TrackedResourceArray< sk_sp< GrRecycledResource > > | fTrackedRecycledResources |
TrackedResourceArray< sk_sp< const GrBuffer > > | fTrackedGpuBuffers |
Definition at line 158 of file GrD3DCommandList.h.
|
overridedefault |
void GrD3DDirectCommandList::addSampledTextureRef | ( | GrD3DTexture * | texture | ) |
Definition at line 592 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::clearDepthStencilView | ( | const GrD3DAttachment * | stencil, |
uint8_t | stencilClearValue, | ||
const D3D12_RECT * | rect | ||
) |
Definition at line 473 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::clearRenderTargetView | ( | const GrD3DRenderTarget * | renderTarget, |
std::array< float, 4 > | color, | ||
const D3D12_RECT * | rect | ||
) |
Definition at line 459 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::dispatch | ( | unsigned int | threadGroupCountX, |
unsigned int | threadGroupCountY, | ||
unsigned int | threadGroupCountZ = 1 |
||
) |
Definition at line 451 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::drawIndexedInstanced | ( | unsigned int | indexCount, |
unsigned int | instanceCount, | ||
unsigned int | startIndex, | ||
unsigned int | baseVertex, | ||
unsigned int | startInstance | ||
) |
Definition at line 426 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::drawInstanced | ( | unsigned int | vertexCount, |
unsigned int | instanceCount, | ||
unsigned int | startVertex, | ||
unsigned int | startInstance | ||
) |
Definition at line 419 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::executeIndirect | ( | const sk_sp< GrD3DCommandSignature > | commandSig, |
unsigned int | maxCommandCnt, | ||
const GrD3DBuffer * | argumentBuffer, | ||
size_t | argumentBufferOffset | ||
) |
Definition at line 437 of file GrD3DCommandList.cpp.
|
static |
Definition at line 270 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::resolveSubresourceRegion | ( | const GrD3DTextureResource * | dstTexture, |
unsigned int | dstX, | ||
unsigned int | dstY, | ||
const GrD3DTextureResource * | srcTexture, | ||
D3D12_RECT * | srcRect | ||
) |
Definition at line 504 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setBlendFactor | ( | const float | blendFactor[4] | ) |
Definition at line 326 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setComputeRootConstantBufferView | ( | unsigned int | rootParameterIndex, |
D3D12_GPU_VIRTUAL_ADDRESS | bufferLocation | ||
) |
Definition at line 541 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setComputeRootDescriptorTable | ( | unsigned int | rootParameterIndex, |
D3D12_GPU_DESCRIPTOR_HANDLE | bufferLocation | ||
) |
Definition at line 563 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setComputeRootSignature | ( | const sk_sp< GrD3DRootSignature > & | rootSignature | ) |
Definition at line 358 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setDescriptorHeaps | ( | ID3D12DescriptorHeap * | srvDescriptorHeap, |
ID3D12DescriptorHeap * | samplerDescriptorHeap | ||
) |
Definition at line 577 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setGraphicsRootConstantBufferView | ( | unsigned int | rootParameterIndex, |
D3D12_GPU_VIRTUAL_ADDRESS | bufferLocation | ||
) |
Definition at line 531 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setGraphicsRootDescriptorTable | ( | unsigned int | rootParameterIndex, |
D3D12_GPU_DESCRIPTOR_HANDLE | bufferLocation | ||
) |
Definition at line 551 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setGraphicsRootSignature | ( | const sk_sp< GrD3DRootSignature > & | rootSignature | ) |
Definition at line 347 of file GrD3DCommandList.cpp.
Definition at line 404 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setPipelineState | ( | const sk_sp< GrD3DPipeline > & | pipeline | ) |
Definition at line 312 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setPrimitiveTopology | ( | D3D12_PRIMITIVE_TOPOLOGY | primitiveTopology | ) |
Definition at line 331 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setRenderTarget | ( | const GrD3DRenderTarget * | renderTarget | ) |
Definition at line 483 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setScissorRects | ( | unsigned int | numRects, |
const D3D12_RECT * | rects | ||
) |
Definition at line 336 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setStencilRef | ( | unsigned int | stencilRef | ) |
Definition at line 321 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setVertexBuffers | ( | unsigned int | startSlot, |
sk_sp< const GrBuffer > | vertexBuffer, | ||
size_t | vertexStride, | ||
sk_sp< const GrBuffer > | instanceBuffer, | ||
size_t | instanceStride | ||
) |
Definition at line 369 of file GrD3DCommandList.cpp.
void GrD3DDirectCommandList::setViewports | ( | unsigned int | numViewports, |
const D3D12_VIEWPORT * | viewports | ||
) |
Definition at line 341 of file GrD3DCommandList.cpp.