30 #ifndef __optix_optix_dx10_interop_h__
31 #define __optix_optix_dx10_interop_h__
57 typedef struct IDXGIAdapter IDXGIAdapter;
58 typedef struct ID3D10Device ID3D10Device;
59 typedef struct ID3D10Resource ID3D10Resource;
RTresult RTAPI rtTextureSamplerCreateFromD3D10Resource(RTcontext context, ID3D10Resource *resource, RTtexturesampler *textureSampler)
Creates a new texture sampler object from a D3D10 resource.
RTresult
Definition: optix_declarations.h:236
RTresult RTAPI rtContextSetD3D10Device(RTcontext context, ID3D10Device *device)
Binds a D3D10 device to a context and enables interop.
RTresult RTAPI rtTextureSamplerD3D10Register(RTtexturesampler textureSampler)
Declares a D3D10 texture as immutable and accessible by OptiX.
struct RTtexturesampler_api * RTtexturesampler
Definition: optix_host.h:96
struct RTbuffer_api * RTbuffer
Definition: optix_host.h:69
RTresult RTAPI rtBufferGetD3D10Resource(RTbuffer buffer, ID3D10Resource **resource)
Gets the D3D10 resource associated with this buffer.
RTresult RTAPI rtBufferD3D10Unregister(RTbuffer buffer)
Declares a D3D10 buffer as mutable and inaccessible by OptiX.
RTresult RTAPI rtTextureSamplerGetD3D10Resource(RTtexturesampler textureSampler, ID3D10Resource **resource)
Gets the D3D10 resource associated with this texture sampler.
RTresult RTAPI rtBufferCreateFromD3D10Resource(RTcontext context, unsigned int bufferdesc, ID3D10Resource *resource, RTbuffer *buffer)
Creates a new buffer object from a D3D10 resource.
RTresult RTAPI rtDeviceGetD3D10Device(int *device, IDXGIAdapter *pAdapter)
Returns the OptiX device number associated with the pointer to a D3D10 adapter.
struct RTcontext_api * RTcontext
Definition: optix_host.h:72
RTresult RTAPI rtBufferD3D10Register(RTbuffer buffer)
Declares a D3D10 buffer as immutable and accessible by OptiX.
RTresult RTAPI rtTextureSamplerD3D10Unregister(RTtexturesampler textureSampler)
Declares a D3D10 texture as mutable and inaccessible by OptiX.