A base class for buffer objects of all kinds.
More...
#include <buffer.hpp>
|
vk::Buffer | vkBuffer () const |
| get the Vulkan buffer object for this buffer
|
|
MemoryObj * | memory () const |
| get the memory object for this buffer
|
|
vk::MemoryRequirements | requirements () |
| get the memory requirements of this buffer
|
|
A base class for buffer objects of all kinds.
◆ Buffer()
cs237::Buffer::Buffer |
( |
Application * | app, |
|
|
vk::BufferUsageFlags | usage, |
|
|
size_t | sz ) |
|
inlineprotected |
constructor
- Parameters
-
app | the owning application object |
usage | specify the purpose of the buffer object |
sz | the buffer's size in bytes |
◆ ~Buffer()
cs237::Buffer::~Buffer |
( |
| ) |
|
|
inlineprotected |
◆ _copyTo() [1/2]
void cs237::Buffer::_copyTo |
( |
const void * | src | ) |
|
|
inlineprotected |
copy data to the device memory object
- Parameters
-
src | address of data to copy |
◆ _copyTo() [2/2]
void cs237::Buffer::_copyTo |
( |
const void * | src, |
|
|
size_t | offset, |
|
|
size_t | sz ) |
|
inlineprotected |
copy data to a subrange of the device memory object
- Parameters
-
src | address of data to copy |
offset | offset (in bytes) from the beginning of the buffer to copy the data to |
sz | size in bytes of the data to copy |
◆ memory()
get the memory object for this buffer
◆ requirements()
vk::MemoryRequirements cs237::Buffer::requirements |
( |
| ) |
|
|
inline |
get the memory requirements of this buffer
◆ vkBuffer()
vk::Buffer cs237::Buffer::vkBuffer |
( |
| ) |
const |
|
inline |
get the Vulkan buffer object for this buffer
◆ _app
◆ _buf
vk::Buffer cs237::Buffer::_buf |
|
protected |
◆ _mem
the Vulkan memory object that holds the buffer
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2024/cs237-upstream/cs237-library/include/cs237/buffer.hpp