NVIDIAGameWorks / FleX

Other
664 stars 100 forks source link

How to create context for opengl #16

Closed e3dos closed 7 years ago

e3dos commented 7 years ago

Hi, I'm using opengl to draw a debugger for flex, is there any way to use d3d for computation only? I tried to create a d3d11 context and passing to flex but it keeps crashing when using NvFlexInit.

mmacklin commented 7 years ago

If you use the D3D libs/dlls, and pass NvFlexComputeType::eNvFlexD3D11 to NvFlexInit() then it will initialize the D3D context itself (just leave the NvFlexInitDesc::renderDevice NULL).

e3dos commented 7 years ago

Thanks, setting to NULL worked.