30 #ifndef __optix_optix_gl_interop_h__
31 #define __optix_optix_gl_interop_h__
408 #if !defined(WGL_NV_gpu_affinity)
409 typedef void* HGPUNV;
RTresult
Definition: optix_declarations.h:236
RTresult RTAPI rtBufferGLRegister(RTbuffer buffer)
Declares an OpenGL buffer as immutable and accessible by OptiX.
RTresult RTAPI rtTextureSamplerGLUnregister(RTtexturesampler textureSampler)
Declares an OpenGL texture as mutable and inaccessible by OptiX.
RTresult RTAPI rtBufferGLUnregister(RTbuffer buffer)
Declares an OpenGL buffer as mutable and inaccessible by OptiX.
RTgltarget
Definition: optix_declarations.h:172
struct RTtexturesampler_api * RTtexturesampler
Definition: optix_host.h:96
struct RTbuffer_api * RTbuffer
Definition: optix_host.h:69
RTresult RTAPI rtTextureSamplerGetGLImageId(RTtexturesampler textureSampler, unsigned int *glId)
Gets the OpenGL image object id associated with this texture sampler.
RTresult RTAPI rtBufferGetGLBOId(RTbuffer buffer, unsigned int *glId)
Gets the OpenGL Buffer Object ID associated with this buffer.
RTresult RTAPI rtTextureSamplerCreateFromGLImage(RTcontext context, unsigned int glId, RTgltarget target, RTtexturesampler *textureSampler)
Creates a new texture sampler object from an OpenGL image.
RTresult RTAPI rtTextureSamplerGLRegister(RTtexturesampler textureSampler)
Declares an OpenGL texture as immutable and accessible by OptiX.
RTresult RTAPI rtBufferCreateFromGLBO(RTcontext context, unsigned int bufferdesc, unsigned int glId, RTbuffer *buffer)
Creates a new buffer object from an OpenGL buffer object.
struct RTcontext_api * RTcontext
Definition: optix_host.h:72
RTresult RTAPI rtDeviceGetWGLDevice(int *device, HGPUNV gpu)
returns the OptiX device number associated with the specified GPU