Nameless Engine
Loading...
Searching...
No Matches
ne::GlslVertexFormatDescription Class Referenceabstract

#include <GlslVertexFormatDescription.h>

Inheritance diagram for ne::GlslVertexFormatDescription:
ne::VertexFormatDescription ne::MeshNodeGlslVertexFormatDescription

Public Member Functions

virtual std::vector< std::string > getVertexLayoutBindingIndexMacros ()=0
 
virtual VkVertexInputBindingDescription getVertexBindingDescription ()=0
 
virtual std::vector< VkVertexInputAttributeDescription > getVertexAttributeDescriptions ()=0
 

Static Public Member Functions

static std::unique_ptr< GlslVertexFormatDescriptioncreateDescription (VertexFormat type)
 
- Static Public Member Functions inherited from ne::VertexFormatDescription
static std::unique_ptr< VertexFormatDescriptioncreateDescription (VertexFormat type, Renderer *pRenderer)
 

Static Protected Member Functions

static constexpr uint32_t getVertexBindingIndex ()
 

Static Private Attributes

static constexpr uint32_t iVertexBindingIndex = 0
 

Detailed Description

Describes a vertex format for Vulkan/GLSL.

Member Function Documentation

◆ createDescription()

std::unique_ptr< GlslVertexFormatDescription > ne::GlslVertexFormatDescription::createDescription ( VertexFormat  type)
static

Creates vertex format description.

Parameters
typeType of the vertex format.
Returns
Vertex format description.

◆ getVertexAttributeDescriptions()

virtual std::vector< VkVertexInputAttributeDescription > ne::GlslVertexFormatDescription::getVertexAttributeDescriptions ( )
pure virtual

Returns description of all vertex attributes.

Returns
Vertex attribute descriptions.

Implemented in ne::MeshNodeGlslVertexFormatDescription.

◆ getVertexBindingDescription()

virtual VkVertexInputBindingDescription ne::GlslVertexFormatDescription::getVertexBindingDescription ( )
pure virtual

Returns vertex description for vertex input binding.

Returns
Vertex input binding description.

Implemented in ne::MeshNodeGlslVertexFormatDescription.

◆ getVertexBindingIndex()

static constexpr uint32_t ne::GlslVertexFormatDescription::getVertexBindingIndex ( )
inlinestaticconstexprprotected

Returns index of the vertex input binding.

Returns
Binding index.

◆ getVertexLayoutBindingIndexMacros()

virtual std::vector< std::string > ne::GlslVertexFormatDescription::getVertexLayoutBindingIndexMacros ( )
pure virtual

Returns an array of macros (related to vertex format) used in GLSL shader.

Returns
Array of macro names where index in the array means binding location (index).

Implemented in ne::MeshNodeGlslVertexFormatDescription.

Member Data Documentation

◆ iVertexBindingIndex

constexpr uint32_t ne::GlslVertexFormatDescription::iVertexBindingIndex = 0
staticconstexprprivate

Index of the vertex input binding.


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