|
Sleeping Wombat Graphic API
1.010
swGraphicAPI
|
Descriptor of buffer. More...
#include <IBuffer.h>
Public Member Functions | |
| std::string | GetName () const |
Public Attributes | |
| uint32 | NumElements |
| Number of elements of type BufferDescriptor::DataType. | |
| uint32 | ElementSize |
| Size of single element in buffer. | |
| rttr::type | DataType |
| [Optional] Type of single element in buffer. | |
| ResourceUsage | Usage |
| Usage of resource by graphic card. | |
| BufferType | BufferType |
| Vertex, index or constant buffer. | |
| filesystem::Path | Name |
| Buffer name or file path. | |
Only for vertex or index buffer. | |
| PrimitiveTopology | Topology |
Vertex buffer only | |
For other buffer types VertexLayout should be set to nullptr. | |
| ResourcePtr< ShaderInputLayout > | VertexLayout |
Index buffer only | |
| bool | Use4BytesIndex |
Descriptor of buffer.
| PrimitiveTopology BufferInfo::Topology |
[Optional] Topology of verticies.
| bool BufferInfo::Use4BytesIndex |
Index buffer consists of 4 bytes instead of 2 bytes indicies.
| ResourcePtr< ShaderInputLayout > BufferInfo::VertexLayout |
[Optional] Layout of single vertex in buffer. You can add this layout to enable additional information in editor. Otherwise set to nullptr.
1.8.9.1