|
|
| GLBuffer (size_t size, Type type, Usage usage) |
| |
| void | map (size_t size=-1, size_t offset=0) override |
| | 映射缓冲区到内存. 更多...
|
| |
| void | unmap () override |
| | 取消映射. 更多...
|
| |
| void | flush (size_t size=-1, size_t offset=0) override |
| | 刷新映射缓冲区. 更多...
|
| |
|
void | bind () |
| |
|
| operator GLuint () noexcept |
| |
|
| operator GLuint () const noexcept |
| |
| | Buffer (size_t size, Type type, Usage usage) |
| | 构造函数. 更多...
|
| |
| template<typename T > |
| void | write (std::span< T > data, size_t offset=0) |
| | 写入映射缓冲区. 更多...
|
| |
| void | write (const void *data, size_t size, size_t offset=0) |
| | 写入映射缓冲区. 更多...
|
| |
| void | read (void *data, size_t size, size_t offset=0) |
| | 读取映射缓冲区. 更多...
|
| |
|
size_t | get_size () const |
| | 获取缓冲区大小, 单位: 字节.
|
| |
|
Type | get_type () const |
| | 获取缓冲区类型.
|
| |
|
Usage | get_usage () const |
| | 获取缓冲区使用方式.
|
| |
|
void * | get_data () |
| | 获取映射的缓冲区.
|
| |
| virtual void | map (size_t size=-1, size_t offset=0)=0 |
| | 映射缓冲区到内存. 更多...
|
| |
| virtual void | unmap ()=0 |
| | 取消映射. 更多...
|
| |
| virtual void | flush (size_t size=-1, size_t offset=0)=0 |
| | 刷新映射缓冲区. 更多...
|
| |