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

Vertex buffer initialization data. More...

#include <BufferInitData.h>

Inheritance diagram for VertexBufferInitData:
BufferInitData

Public Member Functions

 VertexBufferInitData ()
 
BufferInfo CreateBufferInfo () const
 
- Public Member Functions inherited from BufferInitData
 BufferInitData ()
 

Public Attributes

ResourcePtr< ShaderInputLayoutVertexLayout
 [Optional] Layout of single vertex in buffer. You can add this layout to enable additional information in editor. Otherwise set to nullptr. More...
 
PrimitiveTopology Topology
 [Optional] Topology of verticies. More...
 
- Public Attributes inherited from BufferInitData
const uint8Data
 Pointer must be valid only in time of creation. More...
 
uint32 NumElements
 
uint32 ElementSize
 
rttr::type DataType
 [Optional] Type of single element in buffer. More...
 
ResourceUsage Usage
 

Detailed Description

Vertex buffer initialization data.

Constructor & Destructor Documentation

VertexBufferInitData::VertexBufferInitData ( )
inline

Member Function Documentation

BufferInfo VertexBufferInitData::CreateBufferInfo ( ) const
inline

Member Data Documentation

PrimitiveTopology VertexBufferInitData::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.
ResourcePtr< ShaderInputLayout > VertexBufferInitData::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: