|
Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
Public 成员函数 | |
| VKVertexBuffer (const void *data, size_t size, const VertexFormat &layout, Buffer::Usage usage) | |
| Buffer & | get_buffer () override |
| operator VkBuffer () | |
| operator VkBuffer () const | |
Public 成员函数 继承自 VertexBuffer | |
| size_t | get_size () const |
| 获取缓冲区大小, 单位: 字节. | |
| uint32_t | get_count () const |
| 获取顶点数. | |
| const VertexFormat & | get_format () const |
| 获取顶格式. | |
| virtual Buffer & | get_buffer ()=0 |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 VertexBuffer | |
| template<typename T > | |
| static std::shared_ptr< VertexBuffer > | create (const std::vector< T > &data, const VertexFormat &fmt, Buffer::Usage usage=Buffer::Usage::Static) |
| 创建 VertexBuffer. 更多... | |
| static std::shared_ptr< VertexBuffer > | create (const void *data, size_t size, const VertexFormat &fmt, Buffer::Usage usage=Buffer::Usage::Static) |
| 创建 VertexBuffer. 更多... | |
Protected 成员函数 继承自 VertexBuffer | |
| VertexBuffer (const void *data, size_t size, const VertexFormat &layout) | |
|
overridevirtual |
实现了 VertexBuffer.