- Documentation
- Client functions
- dxSetTestMode
Function
dxSetTestMode
Turns on a test mode to check that a script handles failures: "no_mem" (creating textures fails), "low_mem" (no effect), "no_shader" (dxCreateShader fails), "none" (off).
Syntax
bool dxSetTestMode(string testMode)Arguments
testModestring- The mode.
Returns
true on success.
Example
dxSetTestMode("no_shader")
local shader = dxCreateShader("efekt.fx") -- false
dxSetTestMode("none")