Flutter Engine
The Flutter Engine
|
#include <GrVkCommandBuffer.h>
Public Member Functions | |
~GrVkPrimaryCommandBuffer () override | |
void | begin (GrVkGpu *gpu) |
void | end (GrVkGpu *gpu, bool abandoningBuffer=false) |
bool | beginRenderPass (GrVkGpu *gpu, const GrVkRenderPass *, sk_sp< const GrVkFramebuffer >, const VkClearValue clearValues[], const GrSurface *target, const SkIRect &bounds, bool forSecondaryCB) |
void | endRenderPass (const GrVkGpu *gpu) |
void | nexSubpass (GrVkGpu *gpu, bool forSecondaryCB) |
void | executeCommands (const GrVkGpu *gpu, std::unique_ptr< GrVkSecondaryCommandBuffer > secondaryBuffer) |
void | clearColorImage (const GrVkGpu *gpu, GrVkImage *image, const VkClearColorValue *color, uint32_t subRangeCount, const VkImageSubresourceRange *subRanges) |
void | clearDepthStencilImage (const GrVkGpu *gpu, GrVkImage *image, const VkClearDepthStencilValue *color, uint32_t subRangeCount, const VkImageSubresourceRange *subRanges) |
void | copyImage (const GrVkGpu *gpu, GrVkImage *srcImage, VkImageLayout srcLayout, GrVkImage *dstImage, VkImageLayout dstLayout, uint32_t copyRegionCount, const VkImageCopy *copyRegions) |
void | blitImage (const GrVkGpu *gpu, const GrManagedResource *srcResource, VkImage srcImage, VkImageLayout srcLayout, const GrManagedResource *dstResource, VkImage dstImage, VkImageLayout dstLayout, uint32_t blitRegionCount, const VkImageBlit *blitRegions, VkFilter filter) |
void | blitImage (const GrVkGpu *gpu, const GrVkImage &srcImage, const GrVkImage &dstImage, uint32_t blitRegionCount, const VkImageBlit *blitRegions, VkFilter filter) |
void | copyImageToBuffer (const GrVkGpu *gpu, GrVkImage *srcImage, VkImageLayout srcLayout, sk_sp< GrGpuBuffer > dstBuffer, uint32_t copyRegionCount, const VkBufferImageCopy *copyRegions) |
void | copyBufferToImage (const GrVkGpu *gpu, VkBuffer srcBuffer, GrVkImage *dstImage, VkImageLayout dstLayout, uint32_t copyRegionCount, const VkBufferImageCopy *copyRegions) |
void | fillBuffer (GrVkGpu *gpu, sk_sp< GrGpuBuffer >, VkDeviceSize offset, VkDeviceSize size, uint32_t data) |
void | copyBuffer (GrVkGpu *gpu, sk_sp< GrGpuBuffer > srcBuffer, sk_sp< GrGpuBuffer > dstBuffer, uint32_t regionCount, const VkBufferCopy *regions) |
void | updateBuffer (GrVkGpu *gpu, sk_sp< GrVkBuffer > dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void *data) |
void | resolveImage (GrVkGpu *gpu, const GrVkImage &srcImage, const GrVkImage &dstImage, uint32_t regionCount, const VkImageResolve *regions) |
bool | submitToQueue (GrVkGpu *gpu, VkQueue queue, skia_private::TArray< GrVkSemaphore::Resource * > &signalSemaphores, skia_private::TArray< GrVkSemaphore::Resource * > &waitSemaphores) |
void | forceSync (GrVkGpu *gpu) |
bool | finished (GrVkGpu *gpu) |
void | addFinishedProc (sk_sp< skgpu::RefCntedCallback > finishedProc) |
void | callFinishedProcs () |
void | recycleSecondaryCommandBuffers (GrVkCommandPool *cmdPool) |
Public Member Functions inherited from GrVkCommandBuffer | |
virtual | ~GrVkCommandBuffer () |
void | invalidateState () |
void | pipelineBarrier (const GrVkGpu *gpu, const GrManagedResource *resource, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, bool byRegion, BarrierType barrierType, void *barrier) |
void | bindInputBuffer (GrVkGpu *gpu, uint32_t binding, sk_sp< const GrBuffer > buffer) |
void | bindIndexBuffer (GrVkGpu *gpu, sk_sp< const GrBuffer > buffer) |
void | bindPipeline (const GrVkGpu *gpu, sk_sp< const GrVkPipeline > pipeline) |
void | bindDescriptorSets (const GrVkGpu *gpu, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const VkDescriptorSet *descriptorSets, uint32_t dynamicOffsetCount, const uint32_t *dynamicOffsets) |
void | pushConstants (const GrVkGpu *gpu, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void *values) |
void | setViewport (const GrVkGpu *gpu, uint32_t firstViewport, uint32_t viewportCount, const VkViewport *viewports) |
void | setScissor (const GrVkGpu *gpu, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D *scissors) |
void | setBlendConstants (const GrVkGpu *gpu, const float blendConstants[4]) |
void | clearAttachments (const GrVkGpu *gpu, int numAttachments, const VkClearAttachment *attachments, int numRects, const VkClearRect *clearRects) |
void | drawIndexed (const GrVkGpu *gpu, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance) |
void | draw (const GrVkGpu *gpu, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) |
void | drawIndirect (const GrVkGpu *gpu, sk_sp< const GrBuffer > indirectBuffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) |
void | drawIndexedIndirect (const GrVkGpu *gpu, sk_sp< const GrBuffer > indirectBuffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) |
void | addResource (sk_sp< const GrManagedResource > resource) |
void | addResource (const GrManagedResource *resource) |
void | addRecycledResource (gr_rp< const GrRecycledResource > resource) |
void | addRecycledResource (const GrRecycledResource *resource) |
void | addGrBuffer (sk_sp< const GrBuffer > buffer) |
void | addGrSurface (sk_sp< const GrSurface > surface) |
void | releaseResources () |
void | freeGPUData (const GrGpu *gpu, VkCommandPool pool) const |
bool | hasWork () const |
Static Public Member Functions | |
static GrVkPrimaryCommandBuffer * | Create (GrVkGpu *gpu, VkCommandPool cmdPool) |
Definition at line 206 of file GrVkCommandBuffer.h.
|
override |
Definition at line 410 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::addFinishedProc | ( | sk_sp< skgpu::RefCntedCallback > | finishedProc | ) |
Definition at line 688 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::begin | ( | GrVkGpu * | gpu | ) |
Definition at line 434 of file GrVkCommandBuffer.cpp.
bool GrVkPrimaryCommandBuffer::beginRenderPass | ( | GrVkGpu * | gpu, |
const GrVkRenderPass * | renderPass, | ||
sk_sp< const GrVkFramebuffer > | framebuffer, | ||
const VkClearValue | clearValues[], | ||
const GrSurface * | target, | ||
const SkIRect & | bounds, | ||
bool | forSecondaryCB | ||
) |
Definition at line 467 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::blitImage | ( | const GrVkGpu * | gpu, |
const GrManagedResource * | srcResource, | ||
VkImage | srcImage, | ||
VkImageLayout | srcLayout, | ||
const GrManagedResource * | dstResource, | ||
VkImage | dstImage, | ||
VkImageLayout | dstLayout, | ||
uint32_t | blitRegionCount, | ||
const VkImageBlit * | blitRegions, | ||
VkFilter | filter | ||
) |
Definition at line 727 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::blitImage | ( | const GrVkGpu * | gpu, |
const GrVkImage & | srcImage, | ||
const GrVkImage & | dstImage, | ||
uint32_t | blitRegionCount, | ||
const VkImageBlit * | blitRegions, | ||
VkFilter | filter | ||
) |
Definition at line 752 of file GrVkCommandBuffer.cpp.
|
inline |
Definition at line 324 of file GrVkCommandBuffer.h.
void GrVkPrimaryCommandBuffer::clearColorImage | ( | const GrVkGpu * | gpu, |
GrVkImage * | image, | ||
const VkClearColorValue * | color, | ||
uint32_t | subRangeCount, | ||
const VkImageSubresourceRange * | subRanges | ||
) |
Definition at line 879 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::clearDepthStencilImage | ( | const GrVkGpu * | gpu, |
GrVkImage * | image, | ||
const VkClearDepthStencilValue * | color, | ||
uint32_t | subRangeCount, | ||
const VkImageSubresourceRange * | subRanges | ||
) |
Definition at line 896 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::copyBuffer | ( | GrVkGpu * | gpu, |
sk_sp< GrGpuBuffer > | srcBuffer, | ||
sk_sp< GrGpuBuffer > | dstBuffer, | ||
uint32_t | regionCount, | ||
const VkBufferCopy * | regions | ||
) |
Definition at line 829 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::copyBufferToImage | ( | const GrVkGpu * | gpu, |
VkBuffer | srcBuffer, | ||
GrVkImage * | dstImage, | ||
VkImageLayout | dstLayout, | ||
uint32_t | copyRegionCount, | ||
const VkBufferImageCopy * | copyRegions | ||
) |
Definition at line 791 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::copyImage | ( | const GrVkGpu * | gpu, |
GrVkImage * | srcImage, | ||
VkImageLayout | srcLayout, | ||
GrVkImage * | dstImage, | ||
VkImageLayout | dstLayout, | ||
uint32_t | copyRegionCount, | ||
const VkImageCopy * | copyRegions | ||
) |
Definition at line 706 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::copyImageToBuffer | ( | const GrVkGpu * | gpu, |
GrVkImage * | srcImage, | ||
VkImageLayout | srcLayout, | ||
sk_sp< GrGpuBuffer > | dstBuffer, | ||
uint32_t | copyRegionCount, | ||
const VkBufferImageCopy * | copyRegions | ||
) |
Definition at line 771 of file GrVkCommandBuffer.cpp.
|
static |
Definition at line 415 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::end | ( | GrVkGpu * | gpu, |
bool | abandoningBuffer = false |
||
) |
Definition at line 447 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::endRenderPass | ( | const GrVkGpu * | gpu | ) |
Definition at line 506 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::executeCommands | ( | const GrVkGpu * | gpu, |
std::unique_ptr< GrVkSecondaryCommandBuffer > | secondaryBuffer | ||
) |
Definition at line 523 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::fillBuffer | ( | GrVkGpu * | gpu, |
sk_sp< GrGpuBuffer > | buffer, | ||
VkDeviceSize | offset, | ||
VkDeviceSize | size, | ||
uint32_t | data | ||
) |
Definition at line 810 of file GrVkCommandBuffer.cpp.
bool GrVkPrimaryCommandBuffer::finished | ( | GrVkGpu * | gpu | ) |
Definition at line 665 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::forceSync | ( | GrVkGpu * | gpu | ) |
Definition at line 658 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::nexSubpass | ( | GrVkGpu * | gpu, |
bool | forSecondaryCB | ||
) |
Definition at line 515 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::recycleSecondaryCommandBuffers | ( | GrVkCommandPool * | cmdPool | ) |
Definition at line 699 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::resolveImage | ( | GrVkGpu * | gpu, |
const GrVkImage & | srcImage, | ||
const GrVkImage & | dstImage, | ||
uint32_t | regionCount, | ||
const VkImageResolve * | regions | ||
) |
Definition at line 913 of file GrVkCommandBuffer.cpp.
bool GrVkPrimaryCommandBuffer::submitToQueue | ( | GrVkGpu * | gpu, |
VkQueue | queue, | ||
skia_private::TArray< GrVkSemaphore::Resource * > & | signalSemaphores, | ||
skia_private::TArray< GrVkSemaphore::Resource * > & | waitSemaphores | ||
) |
Definition at line 577 of file GrVkCommandBuffer.cpp.
void GrVkPrimaryCommandBuffer::updateBuffer | ( | GrVkGpu * | gpu, |
sk_sp< GrVkBuffer > | dstBuffer, | ||
VkDeviceSize | dstOffset, | ||
VkDeviceSize | dataSize, | ||
const void * | data | ||
) |
Definition at line 860 of file GrVkCommandBuffer.cpp.