Sleeping Wombat Graphic API  1.010
swGraphicAPI
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

BufferInfo CreateBufferInfo () const
 

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.
 
PrimitiveTopology Topology
 [Optional] Topology of verticies. More...
 
- Public Attributes inherited from BufferInitData
const uint8 * Data
 Pointer must be valid only in time of creation.
 
uint32 NumElements
 
uint32 ElementSize
 
rttr::type DataType
 [Optional] Type of single element in buffer.
 
ResourceUsage Usage
 

Detailed Description

Vertex buffer initialization data.

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.

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