Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Public Attributes | List of all members
BufferInfo Struct Reference

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< ShaderInputLayoutVertexLayout
 
Index buffer only
bool Use4BytesIndex
 

Detailed Description

Descriptor of buffer.

Constructor & Destructor Documentation

BufferInfo::BufferInfo ( )
inline

Member Function Documentation

std::string BufferInfo::GetName ( ) const
inline

Member Data Documentation

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.

Note
Vertex buffer not always have topology. If you use index buffer, vertex buffer topology has no meaning. In this case it is set to PointList.
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.


The documentation for this struct was generated from the following file: