GetProgramSubroutineName Data Member Function

Populates a <Str> object with the name of the subroutine at the specified index.

Prototype

int32 GetProgramSubroutineName( uint64 p_iHandle, int32 p_eStage, int32 p_nIndex, Str p_oName )

Parameters

Parameter Type Parameter Name Documentation
uint64p_iHandleThe <Program> handle, which can be queried by calling the <Program> object's GetHandle() data interface.
int32p_eStageA value from the ShaderStage enumeration for the shader stage to query. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_nIndexThe index of the subroutine to query.
<Str>p_oNameA pointer to the <Str> object that stores the name.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.