Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
foray::core::ManagedBuffer::CreateInfo Struct Reference

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.
 

Detailed Description

Combines all structs used for initialization.

Constructor & Destructor Documentation

◆ CreateInfo() [1/2]

foray::core::ManagedBuffer::CreateInfo::CreateInfo ( )

Default constructor (initializes .sType field and nulls everything else)

◆ CreateInfo() [2/2]

foray::core::ManagedBuffer::CreateInfo::CreateInfo ( VkBufferUsageFlags  usage,
VkDeviceSize  size,
VmaMemoryUsage  memoryUsage,
VmaAllocationCreateFlags  flags = {},
std::string_view  name = "" 
)

Shorthand for most commonly used fields.

Member Data Documentation

◆ Alignment

VkDeviceSize foray::core::ManagedBuffer::CreateInfo::Alignment {}

If non zero, Vma's aligned buffer allocate function is invoked.

◆ AllocationCreateInfo

VmaAllocationCreateInfo foray::core::ManagedBuffer::CreateInfo::AllocationCreateInfo {}

Allocation create info used to configure Vma.

◆ BufferCreateInfo

VkBufferCreateInfo foray::core::ManagedBuffer::CreateInfo::BufferCreateInfo {}

Buffer Create info used to configure Vulkan buffer create.

◆ Name

std::string foray::core::ManagedBuffer::CreateInfo::Name {}

Debug name assigned to both VmaAllocation and VkBuffer vulkan object.


The documentation for this struct was generated from the following file: