FindOffsetToSpirvEntryPoint

Returns word offset to the entry point (OpEntryPoint) and name of the entry point (OpName).

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvCommon.h

Include

#include "SpirvCommon.h"

Source

/Engine/Source/Developer/ShaderCompilerCommon/Private/SpirvCommon.cpp

Syntax

void FindOffsetToSpirvEntryPoint
(
    const FSpirv & Spirv,
    const ANSICHAR * EntryPointName,
    uint32 & OutWordOffsetToEntryPoint,
    uint32 & OutWordOffsetToMainName
)

Remarks

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.