VV::V2::Buffer struct

A linear array of data.

Base classes

struct VV::V1::Buffer
A linear array of data.

Derived classes

class VV::V3::Buffer
A linear array of data.

Public types

struct CreateInfo
Offers alternative constructor.
using Parent = V1::Buffer

Public static functions

static auto Create(LogicalDevice::Handle _device, const CreateInfo& _createInfo, Handle& _buffer) -> EResult
Create a new buffer object. (Default allocator)
static void Destroy(LogicalDevice::Handle _device, Handle _buffer)
Destroy a buffer object. (Default allocator)
static auto CreateAndBind(PhysicalDevice::Handle _physicalDevice, LogicalDevice::Handle _device, CreateInfo _bufferInfo, Handle& _buffer, Memory::PropertyFlags _propertyFlags, Memory::Handle& _bufferMemory) -> EResult
Will create a buffer and immediately bind it to allocated memory made just for it.
static auto CreateAndBind(PhysicalDevice::Handle _physicalDevice, LogicalDevice::Handle _device, CreateInfo _bufferInfo, Handle& _buffer, Memory::PropertyFlags _propertyFlags, Memory::Handle& _bufferMemory, Memory::AllocationCallbacks* _allcator) -> EResult
Will create a buffer and immediately bind it to allocated memory made just for it.
static auto Create(LogicalDevice::Handle _device, const CreateInfo& _createInfo, const Memory::AllocationCallbacks* _allocator, Handle& _buffer) -> EResult
Create a new buffer object.
static void Destroy(LogicalDevice::Handle _device, Handle _buffer, const Memory::AllocationCallbacks* _allocator)
Destroy a buffer object.

Function documentation

static EResult VV::V2::Buffer::Create(LogicalDevice::Handle _device, const CreateInfo& _createInfo, Handle& _buffer)

Create a new buffer object. (Default allocator)

Parameters
_device
_createInfo
_buffer

static void VV::V2::Buffer::Destroy(LogicalDevice::Handle _device, Handle _buffer)

Destroy a buffer object. (Default allocator)

Parameters
_device
_buffer

static EResult VV::V2::Buffer::CreateAndBind(PhysicalDevice::Handle _physicalDevice, LogicalDevice::Handle _device, CreateInfo _bufferInfo, Handle& _buffer, Memory::PropertyFlags _propertyFlags, Memory::Handle& _bufferMemory)

Will create a buffer and immediately bind it to allocated memory made just for it.

Parameters
_physicalDevice
_device
_bufferInfo
_buffer
_propertyFlags
_bufferMemory

static EResult VV::V2::Buffer::CreateAndBind(PhysicalDevice::Handle _physicalDevice, LogicalDevice::Handle _device, CreateInfo _bufferInfo, Handle& _buffer, Memory::PropertyFlags _propertyFlags, Memory::Handle& _bufferMemory, Memory::AllocationCallbacks* _allcator)

Will create a buffer and immediately bind it to allocated memory made just for it.

Parameters
_physicalDevice
_device
_bufferInfo
_buffer
_propertyFlags
_bufferMemory
_allcator

static EResult VV::V2::Buffer::Create(LogicalDevice::Handle _device, const CreateInfo& _createInfo, const Memory::AllocationCallbacks* _allocator, Handle& _buffer)

Create a new buffer object.

Parameters
_device
_createInfo
_allocator
_buffer

Specification

static void VV::V2::Buffer::Destroy(LogicalDevice::Handle _device, Handle _buffer, const Memory::AllocationCallbacks* _allocator)

Destroy a buffer object.

Parameters
_device
_buffer
_allocator

Specification