Sleeping Wombat GUI
0.100
swGUI
|
Descriptor of buffer. More...
#include <IBuffer.h>
Public Member Functions | |
BufferInfo () | |
std::string | GetName () const |
Public Attributes | |
uint32 | NumElements |
Number of elements of type BufferDescriptor::DataType. More... | |
uint32 | ElementSize |
Size of single element in buffer. More... | |
rttr::type | DataType |
[Optional] Type of single element in buffer. More... | |
ResourceUsage | Usage |
Usage of resource by graphic card. More... | |
BufferType | BufferType |
Vertex, index or constant buffer. More... | |
filesystem::Path | Name |
Buffer name or file path. More... | |
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.
|
inline |
|
inline |
BufferType BufferInfo::BufferType |
Vertex, index or constant buffer.
rttr::type BufferInfo::DataType |
[Optional] Type of single element in buffer.
uint32 BufferInfo::ElementSize |
Size of single element in buffer.
filesystem::Path BufferInfo::Name |
Buffer name or file path.
uint32 BufferInfo::NumElements |
Number of elements of type BufferDescriptor::DataType.
PrimitiveTopology BufferInfo::Topology |
[Optional] Topology of verticies.
ResourceUsage BufferInfo::Usage |
Usage of resource by graphic card.
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.