LoadShaderSource Data Member Function

Uses Glslang to process shader source code into symbol information.

Prototype

int32 LoadShaderSource( int32 p_eShaderStage, string p_oSource, StrList p_slInfoLog )

Parameters

Parameter Type Parameter Name Documentation
int32p_eShaderStageGets or sets the shader stage for which you wish to load symbol information. This refers to the RenderProgramStageFlag enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
stringp_oSourceA pointer to a <Str> object that contains the shader source.
<StrList>p_slInfoLogA pointer to a <StrList> that will contain the output of the Glslang shader compiler. For example, error messages generated during source code processing are stored in this <StrList>.

Examples

Copy Text To Clipboard

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