CMSC23700 Common Code Library
Support code for CS23700 programming projects
|
#include <cs237-buffer.hpp>
Public Types | |
using | BufferType = UB |
the type of the buffer's contents | |
Public Member Functions | |
UniformBuffer (Application *app) | |
UniformBuffer (Application *app, UB const &src) | |
void | copyTo (UB const &src) |
vk::DescriptorBufferInfo | descInfo () |
get the default buffer-descriptor info for this buffer | |
Public Member Functions inherited from cs237::Buffer | |
vk::Buffer | vkBuffer () const |
get the Vulkan buffer object for this buffer | |
const MemoryObj * | memory () const |
get the memory object for this buffer | |
vk::MemoryRequirements | requirements () |
get the memory requirements of this buffer | |
Additional Inherited Members | |
Protected Member Functions inherited from cs237::Buffer | |
Buffer (Application *app, vk::BufferUsageFlags usage, size_t sz) | |
~Buffer () | |
destructor | |
void | _copyTo (const void *src, size_t offset, size_t sz) |
void | _copyTo (const void *src) |
Protected Attributes inherited from cs237::Buffer | |
Application * | _app |
the application | |
vk::Buffer | _buf |
the Vulkan buffer object | |
MemoryObj * | _mem |
the Vulkan memory object that holds the buffer | |
Buffer class for uniform data; the type parameter UB
is the C++ struct type of the buffer contents
using cs237::UniformBuffer< UB >::BufferType = UB |
the type of the buffer's contents
|
inline |
constructor
app | the owning application object |
|
inline |
constructor with initialization
app | the owning application object | |
[in] | src | the buffer contents to copy to the Vulkan memory buffer |
|
inline |
copy the buffer data to the device memory object
[in] | src | the buffer contents to copy to the Vulkan memory buffer |
|
inline |
get the default buffer-descriptor info for this buffer