# Term Callback Reference

        RTSHADER_API bool (*RTS_Shader3_Term)
        {
            IRTSExecutionState  *in_pExecState,
            void                *in_pParams,
            void                **io_pShaderInstanceData
        }

The Term callback enables the shader to clean up after itself (for example, shader instance data).

Parameters:

  | in_pExecState | The execution state interface
  | in_pParams | The shader property page parameters

Return values:

  | io_pShaderInstanceData | Pointer to the shader's instance user data

Returns:
  Success/failure

See also:
  IRTSExecutionState, Realtime Shader Callbacks, Execution Flow