Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::ShaderSemantic Class Reference

Describes a shader semantic (name + index). This should match the semantic declared in AZSL. More...

#include <ShaderSemantic.h>

Public Member Functions

 AZ_TYPE_INFO (ShaderSemantic, "{C6FFF25F-FE52-4D08-8D96-D04C14048816}")
 
 ShaderSemantic (const Name &name, size_t index=0)
 
 ShaderSemantic (AZStd::string_view name, size_t index=0)
 
bool operator== (const ShaderSemantic &rhs) const
 
HashValue64 GetHash (HashValue64 seed=HashValue64{ 0 }) const
 
AZStd::string ToString () const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
static ShaderSemantic Parse (AZStd::string_view semantic)
 

Public Attributes

Name m_name
 Name of the binding.
 
uint32_t m_index = 0
 Index of the binding with this semantic.
 

Static Public Attributes

static constexpr const char UvStreamSemantic [] = "UV"
 The prefix keyword to extract UV shader inputs, so that we can stream different UV sets.
 

Detailed Description

Describes a shader semantic (name + index). This should match the semantic declared in AZSL.


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