Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
Description
Returns word offset to the entry point (OpEntryPoint) and name of the entry point (OpName). If the respective entry has not been found, the output offset is 0.
| Name | FindOffsetToSpirvEntryPoint |
| Type | function |
| Header File | /Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvCommon.h |
| Include Path | #include "SpirvCommon.h" |
| Source | /Engine/Source/Developer/ShaderCompilerCommon/Private/SpirvCommon.cpp |
void FindOffsetToSpirvEntryPoint
(
const FSpirv & Spirv,
const ANSICHAR * EntryPointName,
uint32 & OutWordOffsetToEntryPoint,
uint32 & OutWordOffsetToMainName
)