|
wren
Vulkan-based game engine
|
#include <buffer.hpp>

Public Member Functions | |
| Buffer (const VmaAllocator &allocator) | |
| ~Buffer () | |
| Buffer (const Buffer &)=delete | |
| Buffer (Buffer &&)=delete | |
| auto | operator= (const Buffer &)=delete |
| auto | operator= (Buffer &&)=delete |
| template<typename T> | |
| auto | set_data_raw (std::span< const T > data) -> expected< void > |
| auto | set_data_raw (const void *data, std::size_t size) -> expected< void > |
| auto | map () |
| auto | unmap () |
| auto | get () const |
Static Public Member Functions | |
| static auto | create (const VmaAllocator &allocator, size_t size, VkBufferUsageFlags usage, const std::optional< VmaAllocationCreateFlags > &flags={}) -> std::shared_ptr< Buffer > |
| static auto | copy_buffer (const ::vk::Device &device, const ::vk::Queue &submit_queue, const ::vk::CommandPool &command_pool, const std::shared_ptr< Buffer > &src, const std::shared_ptr< Buffer > &dst, size_t size) -> expected< void > |
Private Attributes | |
| ::vk::Buffer | buffer_ {} |
| VmaAllocator | allocator_ = nullptr |
| VmaAllocation | allocation_ {} |
| void * | mapped_ptr_ = nullptr |
|
inline |

| wren::vk::Buffer::~Buffer | ( | ) |

|
delete |

|
delete |

|
static |

|
static |

|
inlinenodiscard |
|
inline |
|
delete |

|
delete |

| auto wren::vk::Buffer::set_data_raw | ( | const void * | data, |
| std::size_t | size ) -> expected< void > |

| auto wren::vk::Buffer::set_data_raw | ( | std::span< const T > | data | ) | -> expected< void > |
|
inline |

|
private |
|
private |
|
private |
|
private |