Optix Code/Optix7.3.0LightFIeldViewer/SDK/optixModuleCreateAbort/optixModuleCreateAbort.cpp
//------------------------------------------------------------------------------
//
// Helper functions
// TODO: some of these should move to sutil or optix util header
//
//------------------------------------------------------------------------------
Helper functions
TODO: some of these should move to sutil or optix util header
Helper functions TODO : some of these should move to sutil or optix util header
void printUsageAndExit( const char* argv0 )
{
    std::cerr << "Usage  : " << argv0 << " [options]\n";
    std::cerr << "Options:\n";
    std::cerr << "         --launch-samples | -s       Number of samples per pixel per launch (default 16)\n";
    std::cerr << "         --light-samples  | -l       Number of radiance samples (default 1)\n";
    std::cerr << "         --no-specialize             ...\n";
    std::cerr << "         --no-gl-interop             Disable GL interop for display\n";
    std::cerr << "         --dim=<width>x<height>      Set image dimensions; defaults to 768x768\n";
    std::cerr << "         --help | -h                 Print this usage message\n";
    exit( 0 );
}
void printUsageAndExit ( const char * argv0 ) { std :: cerr << " " << argv0 << " \n " ; std :: cerr << " \n " ; std :: cerr << " \n " ; std :: cerr << " \n " ; std :: cerr << " \n " ; std :: cerr << " \n " ; std :: cerr << " \n " ; std :: cerr << " \n " ; exit ( 0 ) ; }
Helper functions
TODO: some of these should move to sutil or optix util header
Helper functions TODO : some of these should move to sutil or optix util header