Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Combines all structs used for initialization. More...
#include <foray_managedbuffer.hpp>
Public Member Functions | |
CreateInfo () | |
Default constructor (initializes .sType field and nulls everything else) | |
CreateInfo (VkBufferUsageFlags usage, VkDeviceSize size, VmaMemoryUsage memoryUsage, VmaAllocationCreateFlags flags={}, std::string_view name="") | |
Shorthand for most commonly used fields. | |
Public Attributes | |
VkBufferCreateInfo | BufferCreateInfo {} |
Buffer Create info used to configure Vulkan buffer create. | |
VmaAllocationCreateInfo | AllocationCreateInfo {} |
Allocation create info used to configure Vma. | |
VkDeviceSize | Alignment {} |
If non zero, Vma's aligned buffer allocate function is invoked. | |
std::string | Name {} |
Debug name assigned to both VmaAllocation and VkBuffer vulkan object. | |
Combines all structs used for initialization.
foray::core::ManagedBuffer::CreateInfo::CreateInfo | ( | ) |
Default constructor (initializes .sType field and nulls everything else)
foray::core::ManagedBuffer::CreateInfo::CreateInfo | ( | VkBufferUsageFlags | usage, |
VkDeviceSize | size, | ||
VmaMemoryUsage | memoryUsage, | ||
VmaAllocationCreateFlags | flags = {} , |
||
std::string_view | name = "" |
||
) |
Shorthand for most commonly used fields.
VkDeviceSize foray::core::ManagedBuffer::CreateInfo::Alignment {} |
If non zero, Vma's aligned buffer allocate function is invoked.
VmaAllocationCreateInfo foray::core::ManagedBuffer::CreateInfo::AllocationCreateInfo {} |
Allocation create info used to configure Vma.
VkBufferCreateInfo foray::core::ManagedBuffer::CreateInfo::BufferCreateInfo {} |
Buffer Create info used to configure Vulkan buffer create.
std::string foray::core::ManagedBuffer::CreateInfo::Name {} |
Debug name assigned to both VmaAllocation and VkBuffer vulkan object.