I have succeeded to make my OptiX renderer working with RTX on/off with GT 750M/RTX 2080Ti.
However OptiX 6.0 sample code fails to run.
For example, optixCompressedTexture sample reports exception at the first rtBufferCreate().
OptiX Error: 'Unknown error (Details: Function “_rtBufferCreate” caught exception: Encountered a rtcore error: m_exports->rtcDeviceContextCreateForCUDA( context, devctx ) returned (2): Invalid device context)
If I add rtGlobalSetAttribute(RT_GLOBAL_ATTRIBUTE_ENABLE_RTX) and disable RTX before creating the context then the program works fine.
When enabling RTX, the program reports the exception but this is reasonable because GPU used for this issue is GT 750M which doesn’t support RTX.
However the programming guide says that RTX is disabled by default.
Is this correct?
OS: Windows 10 1809
GPU: GT 750M 2GB
Driver version: 418.81