FSpirvReflectBindings::AssignInputAttributeLocationsBySemanticIndex

Assigns the binding location for all input attributes by its semantic index if their name is equal to 'SemanticName'.

Unreal Engine C++ API Reference > Developer > ShaderCompilerCommon > FSpirvReflectBindings

References

   
Module ShaderCompilerCommon
Header /Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvReflectCommon.h
Include #include "SpirvReflectCommon.h"
Source /Engine/Source/Developer/ShaderCompilerCommon/Private/SpirvReflectCommon.cpp
void AssignInputAttributeLocationsBySemanticIndex
(
    spv_reflect::ShaderModule & SpirvReflection,
    const ANSICHAR * SemanticName
)

Remarks

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.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library