Skip to content

KDGpu::VulkanCommandRecorder

Module: Vulkan

VulkanCommandRecorder.

#include <vulkan_command_recorder.h>

Inherits from KDGpu::ApiCommandRecorder

Public Functions

Name
VulkanCommandRecorder(VkCommandPool _commandPool, const Handle< CommandBuffer_t > _commandBufferHandle, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle)
virtual void begin()
virtual void blitTexture(const TextureBlitOptions & options)
virtual void clearBuffer(const BufferClear & clear)
virtual void clearColorTexture(const ClearColorTexture & clear)
virtual void clearDepthStencilTexture(const ClearDepthStencilTexture & clear)
virtual void copyBuffer(const BufferCopy & copy)
virtual void copyBufferToTexture(const BufferToTextureCopy & copy)
virtual void copyTextureToBuffer(const TextureToBufferCopy & copy)
virtual void copyTextureToTexture(const TextureToTextureCopy & copy)
virtual void updateBuffer(const BufferUpdate & update)
virtual void memoryBarrier(const MemoryBarrierOptions & options)
virtual void bufferMemoryBarrier(const BufferMemoryBarrierOptions & options)
virtual void textureMemoryBarrier(const TextureMemoryBarrierOptions & options)
virtual void executeSecondaryCommandBuffer(const Handle< CommandBuffer_t > & secondaryCommandBuffer)
virtual void resolveTexture(const TextureResolveOptions & options)
virtual void buildAccelerationStructures(const BuildAccelerationStructureOptions & options)
virtual Handle< CommandBuffer_t > finish()

Public Attributes

Name
VkCommandPool commandPool
VkCommandBuffer commandBuffer
Handle< CommandBuffer_t > commandBufferHandle
VulkanResourceManager * vulkanResourceManager
Handle< Device_t > deviceHandle

Public Functions Documentation

function VulkanCommandRecorder

1
2
3
4
5
6
explicit VulkanCommandRecorder(
    VkCommandPool _commandPool,
    const Handle< CommandBuffer_t > _commandBufferHandle,
    VulkanResourceManager * _vulkanResourceManager,
    const Handle< Device_t > & _deviceHandle
)

function begin

1
virtual void begin()

Reimplements: KDGpu::ApiCommandRecorder::begin

function blitTexture

1
2
3
virtual void blitTexture(
    const TextureBlitOptions & options
)

Reimplements: KDGpu::ApiCommandRecorder::blitTexture

function clearBuffer

1
2
3
virtual void clearBuffer(
    const BufferClear & clear
)

Reimplements: KDGpu::ApiCommandRecorder::clearBuffer

function clearColorTexture

1
2
3
virtual void clearColorTexture(
    const ClearColorTexture & clear
)

Reimplements: KDGpu::ApiCommandRecorder::clearColorTexture

function clearDepthStencilTexture

1
2
3
virtual void clearDepthStencilTexture(
    const ClearDepthStencilTexture & clear
)

Reimplements: KDGpu::ApiCommandRecorder::clearDepthStencilTexture

function copyBuffer

1
2
3
virtual void copyBuffer(
    const BufferCopy & copy
)

Reimplements: KDGpu::ApiCommandRecorder::copyBuffer

function copyBufferToTexture

1
2
3
virtual void copyBufferToTexture(
    const BufferToTextureCopy & copy
)

Reimplements: KDGpu::ApiCommandRecorder::copyBufferToTexture

function copyTextureToBuffer

1
2
3
virtual void copyTextureToBuffer(
    const TextureToBufferCopy & copy
)

Reimplements: KDGpu::ApiCommandRecorder::copyTextureToBuffer

function copyTextureToTexture

1
2
3
virtual void copyTextureToTexture(
    const TextureToTextureCopy & copy
)

Reimplements: KDGpu::ApiCommandRecorder::copyTextureToTexture

function updateBuffer

1
2
3
virtual void updateBuffer(
    const BufferUpdate & update
)

Reimplements: KDGpu::ApiCommandRecorder::updateBuffer

function memoryBarrier

1
2
3
virtual void memoryBarrier(
    const MemoryBarrierOptions & options
)

Reimplements: KDGpu::ApiCommandRecorder::memoryBarrier

function bufferMemoryBarrier

1
2
3
virtual void bufferMemoryBarrier(
    const BufferMemoryBarrierOptions & options
)

Reimplements: KDGpu::ApiCommandRecorder::bufferMemoryBarrier

function textureMemoryBarrier

1
2
3
virtual void textureMemoryBarrier(
    const TextureMemoryBarrierOptions & options
)

Reimplements: KDGpu::ApiCommandRecorder::textureMemoryBarrier

function executeSecondaryCommandBuffer

1
2
3
virtual void executeSecondaryCommandBuffer(
    const Handle< CommandBuffer_t > & secondaryCommandBuffer
)

Reimplements: KDGpu::ApiCommandRecorder::executeSecondaryCommandBuffer

function resolveTexture

1
2
3
virtual void resolveTexture(
    const TextureResolveOptions & options
)

Reimplements: KDGpu::ApiCommandRecorder::resolveTexture

function buildAccelerationStructures

1
2
3
virtual void buildAccelerationStructures(
    const BuildAccelerationStructureOptions & options
)

Reimplements: KDGpu::ApiCommandRecorder::buildAccelerationStructures

function finish

1
virtual Handle< CommandBuffer_t > finish()

Reimplements: KDGpu::ApiCommandRecorder::finish

Public Attributes Documentation

variable commandPool

1
VkCommandPool commandPool { VK_NULL_HANDLE };

variable commandBuffer

1
VkCommandBuffer commandBuffer { VK_NULL_HANDLE };

variable commandBufferHandle

1
Handle< CommandBuffer_t > commandBufferHandle;

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable deviceHandle

1
Handle< Device_t > deviceHandle;

Updated on 2024-12-22 at 00:08:03 +0000