1.3.72
 
Loading...
Searching...
No Matches
helios::RadiationModelTestHelper Class Reference

Test helper for creating RadiationModel with backend selection. More...

Static Public Member Functions

static bool isGPUAvailable ()
 Check if a GPU backend is available for testing.
 
static RadiationModel createWithSharedDevice (Context *context)
 

Detailed Description

Test helper for creating RadiationModel with backend selection.

INTERNAL TEST-ONLY HELPER

  • OptiX builds: Use default constructor (no singleton needed)
  • Vulkan builds: Use shared VulkanDevice singleton (NVIDIA driver bug workaround)

Definition at line 28 of file selfTest.cpp.

Member Function Documentation

◆ createWithSharedDevice()

static RadiationModel helios::RadiationModelTestHelper::createWithSharedDevice ( Context context)
inlinestatic

Definition at line 47 of file selfTest.cpp.

◆ isGPUAvailable()

static bool helios::RadiationModelTestHelper::isGPUAvailable ( )
inlinestatic

Check if a GPU backend is available for testing.

Returns
True if GPU tests can run (always true for OptiX, Vulkan-dependent otherwise)

Definition at line 35 of file selfTest.cpp.


The documentation for this class was generated from the following file: