Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientMeshVertexSource Class Referencefinal

Retains read access to CPU vertex data and packs it into renderer-selected buffers. More...

#include <RadientMeshVertexSource.hpp>

Public Member Functions

RadientVertexLayoutDesc GetVertexLayout () const
std::string MakeCacheKey () const
 Returns a key for vertex attribute data and destination layout, excluding padding.

Detailed Description

Retains read access to CPU vertex data and packs it into renderer-selected buffers.

Member Function Documentation

◆ GetVertexLayout()

RadientVertexLayoutDesc Diligent::RadientMeshVertexSource::GetVertexLayout ( ) const
inline

Returns the stored layout with active buffers numbered densely from zero. Arrays and semantic strings remain valid until SetVertexAttributes is called again or this source is destroyed.