1.3.72
 
Loading...
Searching...
No Matches
OptiX8Backend.h File Reference
#include "RayTracingBackend.h"
#include "../optix8/OptiX8LaunchParams.h"
#include <cuda_runtime.h>
#include <optix.h>
#include <optix_stubs.h>
#include <optix_stack_size.h>
#include <vector>
#include <string>

Go to the source code of this file.

Data Structures

class  helios::OptiX8Backend
 OptiX 8.1 implementation of the ray tracing backend. More...
 

Macros

#define CUDA_CHECK(call)
 
#define OPTIX_CHECK(call)
 

Detailed Description

OptiX 8.1 ray tracing backend implementation.

Copyright (C) 2016-2026 Brian Bailey

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Definition in file OptiX8Backend.h.

Macro Definition Documentation

◆ CUDA_CHECK

#define CUDA_CHECK (   call)
Value:
do { \
cudaError_t rc = call; \
if (rc != cudaSuccess) { \
helios_runtime_error("CUDA error in " + std::string(__FILE__) + ":" + \
std::to_string(__LINE__) + ": " + cudaGetErrorString(rc)); \
} \
} while (0)

Definition at line 35 of file OptiX8Backend.h.

◆ OPTIX_CHECK

#define OPTIX_CHECK (   call)
Value:
do { \
OptixResult rc = call; \
if (rc != OPTIX_SUCCESS) { \
helios_runtime_error("OptiX error in " + std::string(__FILE__) + ":" + \
std::to_string(__LINE__) + ": " + optixGetErrorName(rc) + \
" (" + optixGetErrorString(rc) + ")"); \
} \
} while (0)

Definition at line 45 of file OptiX8Backend.h.