SetShaderAt Data Member Function

Sets the path to the shader source for the indicated shader stage.

Prototype

int32 SetShaderAt( int32 p_nShaderStageIndex, string p_sPathToFile )

Parameters

Parameter Type Parameter Name Documentation
int32p_nShaderStageIndexAn <int32> where 0 = vertex shader, 1 = control shader, 2 = evaluation shader, 3 = geometry shader, 4 = fragment shader, and 5 = compute shader.
stringp_sPathToFileA string containing the absolute or relative path to the shader source code.

Examples

Copy Text To Clipboard

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