evan 2026.1.4
Evan
Loading...
Searching...
No Matches
evan::ADeviceBackend::CreateBufferProperties Struct Reference

Properties required for creating a Vulkan buffer and allocating its memory. More...

#include <headers/evan/ADeviceBackend.hpp>

Public Attributes

VkDeviceSize _size
 The size of the buffer in bytes.
 
VkBufferUsageFlags _usage
 The usage flags for the buffer (e.g., VK_BUFFER_USAGE_VERTEX_BUFFER_BIT).
 
VkMemoryPropertyFlags _properties
 The memory property flags for the buffer (e.g., VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT).
 
VkBuffer & _buffer
 A reference to the VkBuffer object that will be created.
 
VkDeviceMemory & _bufferMemory
 A reference to the VkDeviceMemory object that will be allocated for the buffer.
 

Detailed Description

Properties required for creating a Vulkan buffer and allocating its memory.

This structure encapsulates all necessary parameters for buffer creation, including device handles, buffer size, usage flags, memory properties, and references to the resulting buffer and its memory.

Note
TODO: Remove useless properties (such as the logical device which is already a member of the class).

Definition at line 251 of file ADeviceBackend.hpp.

Member Data Documentation

◆ _buffer

VkBuffer& evan::ADeviceBackend::CreateBufferProperties::_buffer

A reference to the VkBuffer object that will be created.

Definition at line 269 of file ADeviceBackend.hpp.

◆ _bufferMemory

VkDeviceMemory& evan::ADeviceBackend::CreateBufferProperties::_bufferMemory

A reference to the VkDeviceMemory object that will be allocated for the buffer.

Definition at line 274 of file ADeviceBackend.hpp.

◆ _properties

VkMemoryPropertyFlags evan::ADeviceBackend::CreateBufferProperties::_properties

The memory property flags for the buffer (e.g., VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT).

Definition at line 265 of file ADeviceBackend.hpp.

◆ _size

VkDeviceSize evan::ADeviceBackend::CreateBufferProperties::_size

The size of the buffer in bytes.

Definition at line 255 of file ADeviceBackend.hpp.

◆ _usage

VkBufferUsageFlags evan::ADeviceBackend::CreateBufferProperties::_usage

The usage flags for the buffer (e.g., VK_BUFFER_USAGE_VERTEX_BUFFER_BIT).

Definition at line 260 of file ADeviceBackend.hpp.


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