Blender V5.3
device.cpp File Reference
#include "device/optix/device.h"
#include "device/cuda/device.h"
#include "device/device.h"
#include "util/log.h"

Go to the source code of this file.

Macros

#define OPTIX_FUNCTION_TABLE_SYMBOL   g_optixFunctionTable

Functions

CCL_NAMESPACE_BEGIN bool device_optix_init (bool *r_meets_driver_requirement)
void device_optix_info (const vector< DeviceInfo > &cuda_devices, vector< DeviceInfo > &devices)
unique_ptr< Device > device_optix_create (const DeviceInfo &info, Stats &stats, Profiler &profiler, bool headless)

Macro Definition Documentation

◆ OPTIX_FUNCTION_TABLE_SYMBOL

#define OPTIX_FUNCTION_TABLE_SYMBOL   g_optixFunctionTable

Definition at line 26 of file device/optix/device.cpp.

Referenced by device_optix_init().

Function Documentation

◆ device_optix_create()

unique_ptr< Device > device_optix_create ( const DeviceInfo & info,
Stats & stats,
Profiler & profiler,
bool headless )

Definition at line 113 of file device/optix/device.cpp.

References device_optix_create(), and LOG_FATAL.

Referenced by Device::create(), and device_optix_create().

◆ device_optix_info()

void device_optix_info ( const vector< DeviceInfo > & cuda_devices,
vector< DeviceInfo > & devices )

Generate proper OptiX DeviceInfo based on an existing CUDA DeviceInfo for the same device. Does not require usage of the OptiX API, only CUDA API.

Definition at line 69 of file device/optix/device.cpp.

References assert, DENOISER_OPENIMAGEDENOISE, DENOISER_OPTIX, DEVICE_CUDA, DEVICE_OPTIX, and device_optix_info().

Referenced by Device::available_devices(), and device_optix_info().

◆ device_optix_init()

CCL_NAMESPACE_BEGIN bool device_optix_init ( bool * r_meets_driver_requirement)