Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:01

0001 #pragma once
0002 /**
0003 Ctx : instanciation creates OptiX 7 optixDeviceContext and populates Properties  
0004 ==================================================================================
0005 
0006 Instanciated by CSGOptiX::initCtx dump properties using: CSGOptiX=INFO
0007 
0008 
0009 **/
0010 
0011 #include <optix.h>
0012 #include <vector>
0013 #include <string>
0014 #include "plog/Severity.h"
0015 
0016 struct Properties ; 
0017 
0018 struct Ctx 
0019 {
0020     static const plog::Severity LEVEL ; 
0021     static std::vector<std::string> LOGLINES ; 
0022     static std::string GetLOG(); 
0023 
0024     static OptixDeviceContext context ;
0025     static void log_cb( unsigned int level, const char* tag, const char* message, void* /*cbdata */); 
0026 
0027    
0028     Properties* props  ; 
0029 
0030     Ctx(); 
0031 
0032     std::string desc() const ; 
0033 
0034 };
0035