|
OWL
OptiX7 Wrapper Library
|
#include <math.h>#include <stdio.h>#include <iostream>#include <stdexcept>#include <memory>#include <assert.h>#include <string>#include <cmath>#include <algorithm>Go to the source code of this file.
Namespaces | |
| owl | |
| owl::common | |
| owl::common::polymorphic | |
Macros | |
| #define | _USE_MATH_DEFINES |
| #define | OWL_DLL_EXPORT |
| #define | OWL_DLL_IMPORT |
| #define | OWL_INTERFACE /* nothing - currently not building any special 'owl.dll' */ |
| #define | PRINT(var) std::cout << #var << "=" << var << std::endl; |
| #define | PING std::cout << __FILE__ << "::" << __LINE__ << ": " << __PRETTY_FUNCTION__ << std::endl; |
| #define | __owl_device /* ignore */ |
| #define | __owl_host /* ignore */ |
| #define | __both__ __owl_host __owl_device |
| #define | MAYBE_UNUSED |
| #define | OWL_NOTIMPLEMENTED throw std::runtime_error(std::string(__PRETTY_FUNCTION__)+" not implemented") |
| #define | OWL_TERMINAL_RED "\033[0;31m" |
| #define | OWL_TERMINAL_GREEN "\033[0;32m" |
| #define | OWL_TERMINAL_LIGHT_GREEN "\033[1;32m" |
| #define | OWL_TERMINAL_YELLOW "\033[1;33m" |
| #define | OWL_TERMINAL_BLUE "\033[0;34m" |
| #define | OWL_TERMINAL_LIGHT_BLUE "\033[1;34m" |
| #define | OWL_TERMINAL_RESET "\033[0m" |
| #define | OWL_TERMINAL_DEFAULT OWL_TERMINAL_RESET |
| #define | OWL_TERMINAL_BOLD "\033[1;1m" |
| #define | OWL_TERMINAL_MAGENTA "\e[35m" |
| #define | OWL_TERMINAL_LIGHT_MAGENTA "\e[95m" |
| #define | OWL_TERMINAL_CYAN "\e[36m" |
| #define | OWL_TERMINAL_LIGHT_RED "\033[1;31m" |
| #define | OWL_ALIGN(alignment) __attribute__((aligned(alignment))) |
| #define | osp_snprintf snprintf |
Functions | |
| __both__ float | owl::common::saturate (const float &f) |
| __both__ float | owl::common::rcp (float f) |
| __both__ double | owl::common::rcp (double d) |
| __both__ int32_t | owl::common::divRoundUp (int32_t a, int32_t b) |
| __both__ uint32_t | owl::common::divRoundUp (uint32_t a, uint32_t b) |
| __both__ int64_t | owl::common::divRoundUp (int64_t a, int64_t b) |
| __both__ uint64_t | owl::common::divRoundUp (uint64_t a, uint64_t b) |
| __both__ float | owl::common::polymorphic::sqrt (const float f) |
| __both__ double | owl::common::polymorphic::sqrt (const double d) |
| __both__ float | owl::common::polymorphic::rsqrt (const float f) |
| __both__ double | owl::common::polymorphic::rsqrt (const double d) |
| std::string | owl::common::prettyDouble (const double val) |
| std::string | owl::common::prettyNumber (const size_t s) |
| double | owl::common::getCurrentTime () |
| bool | owl::common::hasSuffix (const std::string &s, const std::string &suffix) |
| #define __both__ __owl_host __owl_device |
| #define __owl_device /* ignore */ |
| #define __owl_host /* ignore */ |
| #define _USE_MATH_DEFINES |
| #define MAYBE_UNUSED |
| #define osp_snprintf snprintf |
| #define OWL_ALIGN | ( | alignment | ) | __attribute__((aligned(alignment))) |
| #define OWL_DLL_EXPORT |
| #define OWL_DLL_IMPORT |
| #define OWL_INTERFACE /* nothing - currently not building any special 'owl.dll' */ |
| #define OWL_NOTIMPLEMENTED throw std::runtime_error(std::string(__PRETTY_FUNCTION__)+" not implemented") |
| #define OWL_TERMINAL_BLUE "\033[0;34m" |
| #define OWL_TERMINAL_BOLD "\033[1;1m" |
| #define OWL_TERMINAL_CYAN "\e[36m" |
| #define OWL_TERMINAL_DEFAULT OWL_TERMINAL_RESET |
| #define OWL_TERMINAL_GREEN "\033[0;32m" |
| #define OWL_TERMINAL_LIGHT_BLUE "\033[1;34m" |
| #define OWL_TERMINAL_LIGHT_GREEN "\033[1;32m" |
| #define OWL_TERMINAL_LIGHT_MAGENTA "\e[95m" |
| #define OWL_TERMINAL_LIGHT_RED "\033[1;31m" |
| #define OWL_TERMINAL_MAGENTA "\e[35m" |
| #define OWL_TERMINAL_RED "\033[0;31m" |
| #define OWL_TERMINAL_RESET "\033[0m" |
| #define OWL_TERMINAL_YELLOW "\033[1;33m" |
| #define PING std::cout << __FILE__ << "::" << __LINE__ << ": " << __PRETTY_FUNCTION__ << std::endl; |
| #define PRINT | ( | var | ) | std::cout << #var << "=" << var << std::endl; |