31 #ifndef __optix_optix_prime_h__
32 #define __optix_optix_prime_h__
34 #define OPTIX_PRIME_VERSION 3090
39 # if defined( _WIN32 )
40 # define RTPAPI __declspec(dllimport)
55 typedef unsigned __int64 RTPsize;
56 #elif defined( _WIN32 )
57 typedef unsigned int RTPsize;
59 typedef long unsigned int RTPsize;
77 typedef struct CUstream_st *cudaStream_t;
RTPresult RTPAPI rtpHostBufferLock(void *buffer, RTPsize size)
Page-locks a host buffer.
RTPresult RTPAPI rtpModelGetContext(RTPmodel model, RTPcontext *context)
Gets the context object associated with the model.
RTPresult RTPAPI rtpQueryCreate(RTPmodel model, RTPquerytype queryType, RTPquery *query)
Creates a query on a model.
RTPresult RTPAPI rtpBufferDescDestroy(RTPbufferdesc desc)
Destroys a buffer descriptor.
RTPresult RTPAPI rtpBufferDescSetRange(RTPbufferdesc desc, RTPsize begin, RTPsize end)
Sets the element range of a buffer to use.
RTPresult RTPAPI rtpBufferDescSetStride(RTPbufferdesc desc, unsigned strideBytes)
Sets the stride for elements in a buffer.
RTPresult RTPAPI rtpQueryExecute(RTPquery query, unsigned hints)
Executes a raytracing query.
RTPresult RTPAPI rtpGetErrorString(RTPresult errorCode, const char **errorString)
Translates an RTPresult error code to a string.
RTPresult RTPAPI rtpBufferDescSetCudaDeviceNumber(RTPbufferdesc desc, unsigned deviceNumber)
Sets the CUDA device number for a buffer.
RTPresult RTPAPI rtpModelCopy(RTPmodel model, RTPmodel srcModel)
Copies one model to another.
RTPresult RTPAPI rtpContextCreate(RTPcontexttype type, RTPcontext *context)
Creates an OptiX Prime context.
RTPresult RTPAPI rtpModelSetTriangles(RTPmodel model, RTPbufferdesc indices, RTPbufferdesc vertices)
Sets the triangle data for a model.
RTPquerytype
Definition: optix_prime_declarations.h:97
RTPresult RTPAPI rtpGetVersion(unsigned *version)
Gets OptiX Prime version number.
RTPresult RTPAPI rtpQueryGetContext(RTPquery query, RTPcontext *context)
Gets the context object associated with a query.
RTPresult RTPAPI rtpQueryFinish(RTPquery query)
Blocks current thread until query is finished.
RTPresult RTPAPI rtpModelDestroy(RTPmodel model)
Destroys a model.
OptiX Prime public API declarations.
RTPresult RTPAPI rtpBufferDescGetContext(RTPbufferdesc desc, RTPcontext *context)
Gets the context object associated with the provided buffer descriptor.
RTPresult RTPAPI rtpQueryGetFinished(RTPquery query, int *isFinished)
Polls the status of a query.
RTPbuilderparam
Definition: optix_prime_declarations.h:121
RTPresult RTPAPI rtpQuerySetHits(RTPquery query, RTPbufferdesc hits)
Sets the hits buffer for a query.
RTPbufferformat
Definition: optix_prime_declarations.h:64
RTPresult RTPAPI rtpContextGetLastErrorString(RTPcontext context, const char **return_string)
Returns a string describing last error encountered.
struct RTPbufferdesc_api * RTPbufferdesc
Definition: optix_prime.h:69
RTPcontexttype
Definition: optix_prime_declarations.h:50
RTPresult RTPAPI rtpBufferDescCreate(RTPcontext context, RTPbufferformat format, RTPbuffertype type, void *buffer, RTPbufferdesc *desc)
Create a buffer descriptor.
struct RTPcontext_api * RTPcontext
Definition: optix_prime.h:63
RTPbuffertype
Definition: optix_prime_declarations.h:57
RTPresult RTPAPI rtpHostBufferUnlock(void *buffer)
Unlocks a previously page-locked host buffer.
RTPresult RTPAPI rtpModelSetBuilderParameter(RTPmodel model_api, RTPbuilderparam param, RTPsize size, const void *ptr)
Specifies a builder parameter for a model.
RTPresult RTPAPI rtpContextSetCpuThreads(RTPcontext context, unsigned numThreads)
Sets the number of CPU threads used by a CPU context.
RTPresult RTPAPI rtpGetVersionString(const char **versionString)
Gets OptiX Prime version string.
struct RTPquery_api * RTPquery
Definition: optix_prime.h:67
RTPresult RTPAPI rtpModelCreate(RTPcontext context, RTPmodel *model)
Creates a model.
RTPresult RTPAPI rtpModelFinish(RTPmodel model)
Blocks current thread until model update is finished.
RTPresult RTPAPI rtpContextDestroy(RTPcontext context)
Destroys an OptiX Prime context.
RTPresult
Definition: optix_prime_declarations.h:34
struct RTPmodel_api * RTPmodel
Definition: optix_prime.h:65
RTPresult RTPAPI rtpQuerySetRays(RTPquery query, RTPbufferdesc rays)
Sets the rays buffer for a query.
RTPresult RTPAPI rtpModelGetFinished(RTPmodel model, int *isFinished)
Polls the status of a model update.
RTPresult RTPAPI rtpModelSetInstances(RTPmodel model, RTPbufferdesc instances, RTPbufferdesc transforms)
Sets the instance data for a model.
RTPresult RTPAPI rtpContextSetCudaDeviceNumbers(RTPcontext context, unsigned deviceCount, const unsigned *deviceNumbers)
Sets the CUDA devices used by a context.
RTPresult RTPAPI rtpModelUpdate(RTPmodel model, unsigned hints)
Updates data, or creates an acceleration structure over triangles or instances.
RTPresult RTPAPI rtpQuerySetCudaStream(RTPquery query, cudaStream_t stream)
Sets a sync stream for a query.
RTPresult RTPAPI rtpQueryDestroy(RTPquery query)
Destroys a query.