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)
virtual void * map()
virtual void unmap()
virtual void invalidate()
virtual void flush()
virtual MemoryHandle externalMemoryHandle() const

Public Attributes

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

Public Functions Documentation

function VulkanBuffer

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

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

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 {};

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