Sleeping Wombat Graphic API  1.010
swGraphicAPI
Public Member Functions | Public Attributes | List of all members
BufferInfo Struct Reference

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

Detailed Description

Descriptor of buffer.

Member Data Documentation

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.
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: