30 #ifndef __optix_optix_dx11_interop_h__
31 #define __optix_optix_dx11_interop_h__
57 typedef struct IDXGIAdapter IDXGIAdapter;
58 typedef struct ID3D11Device ID3D11Device;
59 typedef struct ID3D11Resource ID3D11Resource;
RTresult RTAPI rtTextureSamplerD3D11Unregister(RTtexturesampler textureSampler)
Declares a D3D11 texture as mutable and inaccessible by OptiX.
RTresult
Definition: optix_declarations.h:236
RTresult RTAPI rtBufferD3D11Register(RTbuffer buffer)
Declares a D3D11 buffer as immutable and accessible by OptiX.
RTresult RTAPI rtBufferD3D11Unregister(RTbuffer buffer)
Declares a D3D11 buffer as mutable and inaccessible by OptiX.
RTresult RTAPI rtTextureSamplerD3D11Register(RTtexturesampler textureSampler)
Declares a D3D11 texture as immutable and accessible by OptiX.
RTresult RTAPI rtTextureSamplerGetD3D11Resource(RTtexturesampler textureSampler, ID3D11Resource **resource)
Gets the D3D11 resource associated with this texture sampler.
RTresult RTAPI rtBufferCreateFromD3D11Resource(RTcontext context, unsigned int bufferdesc, ID3D11Resource *resource, RTbuffer *buffer)
Creates a new buffer object from a D3D11 resource.
struct RTtexturesampler_api * RTtexturesampler
Definition: optix_host.h:96
struct RTbuffer_api * RTbuffer
Definition: optix_host.h:69
RTresult RTAPI rtDeviceGetD3D11Device(int *device, IDXGIAdapter *pAdapter)
Returns the OptiX device number associated with the pointer to a D3D11 adapter.
RTresult RTAPI rtContextSetD3D11Device(RTcontext context, ID3D11Device *device)
Binds a D3D11 device to a context and enables interop.
RTresult RTAPI rtTextureSamplerCreateFromD3D11Resource(RTcontext context, ID3D11Resource *resource, RTtexturesampler *textureSampler)
Creates a new texture sampler object from a D3D11 resource.
struct RTcontext_api * RTcontext
Definition: optix_host.h:72
RTresult RTAPI rtBufferGetD3D11Resource(RTbuffer buffer, ID3D11Resource **resource)
Gets the D3D11 resource associated with this buffer.