![]() |
CMSC23700 Common Code Library
Support code for CS23700 programming projects
|
Buffer class for index data; the type parameter I is the index type.
More...
#include <cs237-buffer.hpp>


Public Types | |
| using | IndexType = I |
| the type of indices | |
Public Member Functions | |
| IndexBuffer (Application *app, uint32_t nIndices) | |
| IndexBuffer (Application *app, vk::ArrayProxy< I > const &src) | |
| uint32_t | nIndices () const |
| get the number of indices in the buffer | |
| void | copyTo (vk::ArrayProxy< I > const &src) |
| void | copyTo (vk::ArrayProxy< I > const &src, uint32_t offset) |
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 index data; the type parameter I is the index type.
| using cs237::IndexBuffer< I >::IndexType = I |
the type of indices
|
inline |
constructor
| app | the owning application object |
| nIndices | the number of indices in the buffer |
|
inline |
constructor with initialization
| app | the owning application object |
| src | the array of indices used to initialize the buffer |
|
inline |
copy indices to the device memory object
| src | the array of indices that are copied to the buffer |
|
inline |
copy vertices to the device memory object
| src | the array of indices that are copied to the buffer |
| offset | offset from the beginning of the buffer to copy the data to |
|
inline |
get the number of indices in the buffer