 |
Blender V4.3
|
Go to the documentation of this file.
11# ifdef WITH_CUDA_DYNLOAD
14# define OPTIX_DONT_INCLUDE_CUDA
17# include <optix_stubs.h>
20# define optix_device_assert(optix_device, stmt) \
22 OptixResult result = stmt; \
23 if (result != OPTIX_SUCCESS) { \
24 const char *name = optixGetErrorName(result); \
25 optix_device->set_error( \
26 string_printf("%s in %s (%s:%d)", name, #stmt, __FILE__, __LINE__)); \
31# define optix_assert(stmt) optix_device_assert(this, stmt)