NVIDIA OptiX 6.5 API nvidia_logo_transpbg.gif Up
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
optix_prime.h File Reference

Go to the source code of this file.

Macros

#define OPTIX_PRIME_VERSION
 
#define RTPAPI   __declspec(dllimport)
 

Typedefs

typedef unsigned int RTPsize
 
typedef struct RTPcontext_api * RTPcontext
 
typedef struct RTPmodel_api * RTPmodel
 
typedef struct RTPquery_api * RTPquery
 
typedef struct RTPbufferdesc_api * RTPbufferdesc
 
typedef struct CUstream_st * cudaStream_t
 

Functions

RTPresult RTPAPI rtpContextCreate (RTPcontexttype type, RTPcontext *context)
 
RTPresult RTPAPI rtpContextSetCudaDeviceNumbers (RTPcontext context, unsigned deviceCount, const unsigned *deviceNumbers)
 
RTPresult RTPAPI rtpContextSetCpuThreads (RTPcontext context, unsigned numThreads)
 
RTPresult RTPAPI rtpContextDestroy (RTPcontext context)
 
RTPresult RTPAPI rtpContextGetLastErrorString (RTPcontext context, const char **return_string)
 
RTPresult RTPAPI rtpBufferDescCreate (RTPcontext context, RTPbufferformat format, RTPbuffertype type, void *buffer, RTPbufferdesc *desc)
 
RTPresult RTPAPI rtpBufferDescGetContext (RTPbufferdesc desc, RTPcontext *context)
 
RTPresult RTPAPI rtpBufferDescSetRange (RTPbufferdesc desc, RTPsize begin, RTPsize end)
 
RTPresult RTPAPI rtpBufferDescSetStride (RTPbufferdesc desc, unsigned strideBytes)
 
RTPresult RTPAPI rtpBufferDescSetCudaDeviceNumber (RTPbufferdesc desc, unsigned deviceNumber)
 
RTPresult RTPAPI rtpBufferDescDestroy (RTPbufferdesc desc)
 
RTPresult RTPAPI rtpModelCreate (RTPcontext context, RTPmodel *model)
 
RTPresult RTPAPI rtpModelGetContext (RTPmodel model, RTPcontext *context)
 
RTPresult RTPAPI rtpModelSetTriangles (RTPmodel model, RTPbufferdesc indices, RTPbufferdesc vertices)
 
RTPresult RTPAPI rtpModelSetInstances (RTPmodel model, RTPbufferdesc instances, RTPbufferdesc transforms)
 
RTPresult RTPAPI rtpModelUpdate (RTPmodel model, unsigned hints)
 
RTPresult RTPAPI rtpModelFinish (RTPmodel model)
 
RTPresult RTPAPI rtpModelGetFinished (RTPmodel model, int *isFinished)
 
RTPresult RTPAPI rtpModelCopy (RTPmodel model, RTPmodel srcModel)
 
RTPresult RTPAPI rtpModelSetBuilderParameter (RTPmodel model_api, RTPbuilderparam param, RTPsize size, const void *ptr)
 
RTPresult RTPAPI rtpModelDestroy (RTPmodel model)
 
RTPresult RTPAPI rtpQueryCreate (RTPmodel model, RTPquerytype queryType, RTPquery *query)
 
RTPresult RTPAPI rtpQueryGetContext (RTPquery query, RTPcontext *context)
 
RTPresult RTPAPI rtpQuerySetRays (RTPquery query, RTPbufferdesc rays)
 
RTPresult RTPAPI rtpQuerySetHits (RTPquery query, RTPbufferdesc hits)
 
RTPresult RTPAPI rtpQueryExecute (RTPquery query, unsigned hints)
 
RTPresult RTPAPI rtpQueryFinish (RTPquery query)
 
RTPresult RTPAPI rtpQueryGetFinished (RTPquery query, int *isFinished)
 
RTPresult RTPAPI rtpQuerySetCudaStream (RTPquery query, cudaStream_t stream)
 
RTPresult RTPAPI rtpQueryDestroy (RTPquery query)
 
RTPresult RTPAPI rtpHostBufferLock (void *buffer, RTPsize size)
 
RTPresult RTPAPI rtpHostBufferUnlock (void *buffer)
 
RTPresult RTPAPI rtpGetErrorString (RTPresult errorCode, const char **errorString)
 
RTPresult RTPAPI rtpGetVersion (unsigned *version)
 
RTPresult RTPAPI rtpGetVersionString (const char **versionString)
 

Detailed Description

OptiX Prime public API.

Author
NVIDIA Corporation OptiX Prime public API

Macro Definition Documentation

#define OPTIX_PRIME_VERSION
Value:
60500 /* major = OPTIX_PRIME_VERSION/10000, *
* minor = (OPTIX_PRIME_VERSION%10000)/100, *
* micro = OPTIX_PRIME_VERSION%100 */

Typedef Documentation

typedef struct RTPbufferdesc_api* RTPbufferdesc

Opaque type. Note that the *_api type should never be used directly. Only the typedef target name will be guaranteed to remain unchanged.

typedef struct RTPcontext_api* RTPcontext

Opaque type. Note that the *_api type should never be used directly. Only the typedef target name will be guaranteed to remain unchanged.

typedef struct RTPmodel_api* RTPmodel

Opaque type. Note that the *_api type should never be used directly. Only the typedef target name will be guaranteed to remain unchanged.

typedef struct RTPquery_api* RTPquery

Opaque type. Note that the *_api type should never be used directly. Only the typedef target name will be guaranteed to remain unchanged.