SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLOptixHelper.h File Reference

Error checking macros and helpers for the OptiX ray tracer. More...

Go to the source code of this file.

Detailed Description

Error checking macros and helpers for the OptiX ray tracer.

Everything in this header is compiled only when SL_HAS_OPTIX is defined, which the build sets when SL_BUILD_WITH_OPTIX is ON (OFF by default). SL_HAS_OPTIX is not in the Doxyfile PREDEFINED list either, so none of these symbols appear in the generated documentation — read the header itself.

The OPTIX_CHECK, OPTIX_CHECK_LOG, CUDA_CHECK and CUDA_SYNC_CHECK macros wrap a call, compare its result against the success code and throw an SLOptixException carrying the file and line on failure. They are adapted from NVIDIA's OptiX sutil samples.

Date
October 2019
Authors
Nic Dorner
Remarks
Please use clangformat to format the code. See more code style on https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style

Definition in file SLOptixHelper.h.