VkBuffer holder. Stores a value and handles buffer mapping and lifetime management.
More...
|
| | Buffer (VkBufferUsageFlags usageFlags, VkMemoryPropertyFlags memoryPropertyFlags, std::uint32_t count=1) |
| | Creates and initializes a Vulkan buffer with the specified usage and memory properties.
|
| |
|
| ~Buffer () |
| | Frees all resources assosiacted with the buffer.
|
| |
|
|
T * | value |
| |
|
VkDescriptorBufferInfo | descriptor |
| |
template<typename T>
class Crafter::Buffer< T >
VkBuffer holder. Stores a value and handles buffer mapping and lifetime management.
- Template Parameters
-
◆ Buffer()
template<typename T>
| Crafter::Buffer< T >::Buffer |
( |
VkBufferUsageFlags | usageFlags, |
|
|
VkMemoryPropertyFlags | memoryPropertyFlags, |
|
|
std::uint32_t | count = 1 ) |
|
inline |
Creates and initializes a Vulkan buffer with the specified usage and memory properties.
This constructor allocates a buffer capable of holding count elements of type T. The buffer usage and memory property flags control how the buffer will be used and how its memory is managed.
- Parameters
-
| usageFlags | Vulkan buffer usage flags that define allowed operations on the buffer (e.g., vertex buffer, index buffer, uniform buffer). |
| memoryPropertyFlags | Vulkan memory property flags specifying the desired memory properties (e.g., device local, host visible). |
| count | Number of elements to allocate space for in the buffer. The total buffer size will be count * sizeof(T). Must be above 0. |
The documentation for this class was generated from the following file:
- src/module/Crafter.Graphics-VulkanBuffer.cppm