Cogs.Rendering
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
VertexFormat.h File Reference
#include "Common.h"
#include "DataFormat.h"
#include <vector>

Go to the source code of this file.

Classes

struct  Cogs::VertexElement
 Vertex element structure used to describe a single data element in a vertex for the input assembler. More...
 
struct  Cogs::PackedVertexElement
 
struct  Cogs::VertexFormat
 Vertex format structure used to describe a single vertex for the input assembler. More...
 
struct  Cogs::VertexFormats
 

Namespaces

namespace  Cogs
 

Enumerations

enum class  Cogs::ElementSemantic : uint16_t {
  Cogs::Position , Cogs::Normal , Cogs::Color , Cogs::TextureCoordinate ,
  Cogs::Tangent , Cogs::InstanceVector , Cogs::InstanceMatrix , Cogs::Semantic_Size
}
 Element semantics used to map data to the shader stage. More...
 
enum class  Cogs::InputType : uint16_t { Cogs::VertexData = 0 , Cogs::InstanceData }
 Input types for the input assembler. More...
 

Functions

StringView COGSRENDERING_DLL_API Cogs::getElementSemanticName (ElementSemantic semantic)
 
uint32_t COGSRENDERING_DLL_API Cogs::getSize (const Cogs::VertexFormat &vertexFormat)
 
uint32_t COGSRENDERING_DLL_API Cogs::getSize (VertexFormatHandle vertexFormatHandle)
 
size_t COGSRENDERING_DLL_API Cogs::getHash (const Cogs::VertexFormat &vertexFormat)
 
size_t COGSRENDERING_DLL_API Cogs::getHash (VertexFormatHandle vertexFormatHandle)
 
size_t Cogs::hash (const VertexElement &element, size_t hashValue=Cogs::hash())
 Calculate a hash value for the specified vertex element.
 
size_t Cogs::hash (const Cogs::VertexFormat &format, size_t hashValue=Cogs::hash())
 Calculate a hash value for the given vertex format.