Cogs.Core
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Cogs::Core::MeshStreamsLayout Struct Reference

#include <MeshStreamsLayout.h>

Public Member Functions

COGSCORE_DLL_API void updateHash ()
 
void logLayout (Cogs::Logging::Log &logger) const
 

Public Attributes

VertexFormatHandle vertexFormats [maxStreams]
 
size_t hash = 0
 
uint32_t numStreams = 0
 

Static Public Attributes

static constexpr size_t maxStreams = 8
 

Detailed Description

Specifies the layout and organization of the shader input data.

Definition at line 11 of file MeshStreamsLayout.h.

Member Function Documentation

◆ logLayout()

void Cogs::Core::MeshStreamsLayout::logLayout ( Cogs::Logging::Log logger) const

◆ updateHash()

void Cogs::Core::MeshStreamsLayout::updateHash ( )

Member Data Documentation

◆ hash

size_t Cogs::Core::MeshStreamsLayout::hash = 0

Hash for the current contents, call updateHash() when contents have been modified.

Definition at line 20 of file MeshStreamsLayout.h.

Referenced by updateHash().

◆ maxStreams

constexpr size_t Cogs::Core::MeshStreamsLayout::maxStreams = 8
staticconstexpr

Maximum number of independent streams we support, interleaved streams are coded as one stream.

Definition at line 14 of file MeshStreamsLayout.h.

Referenced by Cogs::Core::SeaCurrentsSystem::initialize(), and updateHash().

◆ numStreams

uint32_t Cogs::Core::MeshStreamsLayout::numStreams = 0

◆ vertexFormats

VertexFormatHandle Cogs::Core::MeshStreamsLayout::vertexFormats[maxStreams]

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