wrapper around Vulkan memory objects
More...
#include <memory-obj.hpp>
|
| Application * | _app |
| | the application
|
| |
| vk::DeviceMemory | _mem |
| | the device memory object
|
| |
| size_t | _sz |
| | the size of the memory object
|
| |
wrapper around Vulkan memory objects
◆ MemoryObj()
| cs237::MemoryObj::MemoryObj |
( |
Application * | app, |
|
|
vk::MemoryRequirements const & | reqs ) |
◆ ~MemoryObj()
| cs237::MemoryObj::~MemoryObj |
( |
| ) |
|
◆ copyTo() [1/2]
| void cs237::MemoryObj::copyTo |
( |
const void * | src | ) |
|
|
inline |
copy data to the device memory object
- Parameters
-
| src | address of data to copy |
◆ copyTo() [2/2]
| void cs237::MemoryObj::copyTo |
( |
const void * | src, |
|
|
size_t | offset, |
|
|
size_t | sz ) |
|
inline |
copy data to a subrange of the device memory object
- Parameters
-
| src | address of data to copy |
| offset | offset from the beginning of the memory object to copy the data to |
| sz | size in bytes of the data to copy |
◆ getDeviceMemory()
| vk::DeviceMemory cs237::MemoryObj::getDeviceMemory |
( |
| ) |
|
|
inline |
◆ size()
| size_t cs237::MemoryObj::size |
( |
| ) |
const |
|
inline |
the size of the memory object in bytes
◆ Buffer
◆ _app
◆ _mem
| vk::DeviceMemory cs237::MemoryObj::_mem |
|
protected |
◆ _sz
| size_t cs237::MemoryObj::_sz |
|
protected |
the size of the memory object
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2024/cs237-upstream/cs237-library/include/cs237/memory-obj.hpp