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

#include <HlslVertexFormatDescription.h>

Inheritance diagram for ne::HlslVertexFormatDescription:
ne::VertexFormatDescription ne::MeshNodeHlslVertexFormatDescription

Public Member Functions

virtual std::vector< std::string > getVertexSemanticLocations ()=0
 
virtual std::vector< D3D12_INPUT_ELEMENT_DESC > getShaderInputElementDescription ()=0
 

Static Public Member Functions

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

Detailed Description

Describes a vertex format for DirectX/HLSL.

Member Function Documentation

◆ createDescription()

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

Creates vertex format description.

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

◆ getShaderInputElementDescription()

virtual std::vector< D3D12_INPUT_ELEMENT_DESC > ne::HlslVertexFormatDescription::getShaderInputElementDescription ( )
pure virtual

Returns shader input layout description (vertex attribute description).

Returns
Input layout description.

Implemented in ne::MeshNodeHlslVertexFormatDescription.

◆ getVertexSemanticLocations()

virtual std::vector< std::string > ne::HlslVertexFormatDescription::getVertexSemanticLocations ( )
pure virtual

Returns information about vertex semantics used by shaders.

Returns
Array of semantics where index (in the array) describes semantic location.

Implemented in ne::MeshNodeHlslVertexFormatDescription.


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