Init Callback Reference

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

The Init callback function is called the first time the shader is instantiated.

Note:
  This callback is mandatory

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, cus_rtshad_ExecutionFlow Execution Flow