Skip to content

KDGpu::VulkanBuffer

Module: Vulkan

VulkanBuffer.

#include <vulkan_buffer.h>

Inherits from KDGpu::ApiBuffer

Public Functions

Name
VulkanBuffer(VkBuffer _buffer, VmaAllocation _allocation, VmaAllocator _allocator, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle, const MemoryHandle & _externalMemoryHandle, const BufferDeviceAddress & _deviceAddress)
virtual void * map()
virtual void unmap()
virtual void invalidate()
virtual void flush()
virtual MemoryHandle externalMemoryHandle() const
virtual BufferDeviceAddress bufferDeviceAddress() const

Public Attributes

Name
VkBuffer buffer
VmaAllocation allocation
VmaAllocator allocator
void * mapped
VulkanResourceManager * vulkanResourceManager
Handle< Device_t > deviceHandle
MemoryHandle m_externalMemoryHandle
BufferDeviceAddress m_bufferAddress

Public Functions Documentation

function VulkanBuffer

1
2
3
4
5
6
7
8
9
explicit VulkanBuffer(
    VkBuffer _buffer,
    VmaAllocation _allocation,
    VmaAllocator _allocator,
    VulkanResourceManager * _vulkanResourceManager,
    const Handle< Device_t > & _deviceHandle,
    const MemoryHandle & _externalMemoryHandle,
    const BufferDeviceAddress & _deviceAddress
)

function map

1
virtual void * map()

Reimplements: KDGpu::ApiBuffer::map

function unmap

1
virtual void unmap()

Reimplements: KDGpu::ApiBuffer::unmap

function invalidate

1
virtual void invalidate()

Reimplements: KDGpu::ApiBuffer::invalidate

function flush

1
virtual void flush()

Reimplements: KDGpu::ApiBuffer::flush

function externalMemoryHandle

1
virtual MemoryHandle externalMemoryHandle() const

Reimplements: KDGpu::ApiBuffer::externalMemoryHandle

function bufferDeviceAddress

1
virtual BufferDeviceAddress bufferDeviceAddress() const

Reimplements: KDGpu::ApiBuffer::bufferDeviceAddress

Public Attributes Documentation

variable buffer

1
VkBuffer buffer { VK_NULL_HANDLE };

variable allocation

1
VmaAllocation allocation { VK_NULL_HANDLE };

variable allocator

1
VmaAllocator allocator { VK_NULL_HANDLE };

variable mapped

1
void * mapped { nullptr };

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager;

variable deviceHandle

1
Handle< Device_t > deviceHandle;

variable m_externalMemoryHandle

1
MemoryHandle m_externalMemoryHandle {};

variable m_bufferAddress

1
BufferDeviceAddress m_bufferAddress { 0 };

Updated on 2024-11-25 at 00:15:04 +0000