Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon > API/Developer/ShaderCompilerCommon/FSpirvReflectBindings
Description
Assigns the binding location for all input attributes by its semantic index if their name is equal to 'SemanticName'. Used for vertex shaders where all input attributes have the "ATTRIBUTE" semantic.
| Name | AssignInputAttributeLocationsBySemanticIndex |
| Type | function |
| Header File | /Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvReflectCommon.h |
| Include Path | #include "SpirvReflectCommon.h" |
| Source | /Engine/Source/Developer/ShaderCompilerCommon/Private/SpirvReflectCommon.cpp |
void AssignInputAttributeLocationsBySemanticIndex
(
spv_reflect::ShaderModule & SpirvReflection,
const ANSICHAR * SemanticName
)