Skip to content

KDGpu::VulkanBuffer

Module: Vulkan

VulkanBuffer.

#include <vulkan_buffer.h>

Public Functions

Name
VulkanBuffer(VkBuffer _buffer, VmaAllocation _allocation, VmaAllocator _allocator, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle, const MemoryHandle & _externalMemoryHandle, const BufferDeviceAddress & _deviceAddress)
void * map()
void unmap()
void invalidate()
void flush()
MemoryHandle externalMemoryHandle() const
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
void * map()

function unmap

1
void unmap()

function invalidate

1
void invalidate()

function flush

1
void flush()

function externalMemoryHandle

1
MemoryHandle externalMemoryHandle() const

function bufferDeviceAddress

1
BufferDeviceAddress bufferDeviceAddress() const

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-12-22 at 00:01:23 +0000