VKBuffer
The VKBuffer class is a Vulkan-specific implementation of the Buffer class, providing access to Vulkan buffer resources and views. It allows for the creation of external buffers, specifying Vulkan buffer handles and access modes, and includes methods for managing buffer access, retrieving the buffer address, and obtaining shared pointers for interoperability. The class also inherits the create method from the Buffer class, facilitating the initialization of buffers in Vulkan-based applications.
#include <platform/TellusimBuffer.h>
Inheritance
- Inherits from Buffer
Constructors
VKBuffer()
Methods
Create external buffer.
bool create(Flags flags, size_t size, VkBuffer buffer, uint32_t access)
VkBuffer getVKBuffer() const
VkBufferView getBufferView() const
uint64_t getBufferAddress() const
void setBufferAccess(uint32_t access)
uint32_t getBufferAccess() const
void *getSharedPtr() const
void *getInteropHandle() const