Photon Common Library 2.0.0-beta
A physically based renderer.
|
Implementation detail mainly for internal usages. More...
Namespaces | |
namespace | core_logging |
Core logging functionalities. Most logs will output information (logs) via a main logger, which we refer to as "core logger". This namespace contains implementation details for core logging functionalities. | |
namespace | stats |
Classes | |
struct | AlignedMemoryDeleter |
struct | HeterogeneousStringHash |
Concepts | |
concept | CPermissiveImplicitLifetime |
Functions | |
void | output_assertion_message (const std::string &filename, const std::string &lineNumber, const std::string &condition, const std::string &message) |
void | on_assertion_failed () |
void * | allocate_aligned_memory (std::size_t numBytes, std::size_t alignmentInBytes) |
void | free_aligned_memory (void *ptr) |
void | output_not_implemented_warning (const std::string &filename, const std::string &lineNumber) |
template<typename T , std::size_t... Is> | |
constexpr std::array< T, sizeof...(Is)> | make_array (T element, std::index_sequence< Is... >) |
Variables | |
template<typename T > | |
constexpr bool | DEPENDENT_FALSE = false |
Implementation detail mainly for internal usages.
|
nodiscard |
numBytes | Number of bytes to allocate. Must be an integer multiple of alignmentInBytes . |
alignmentInBytes | How many bytes to align (so the returned pointer is an integer multiple of alignmentInBytes ). Must be an integer power of 2 and a multiple of sizeof(void*) . |
nullptr
on failure. malloc()
, and object lifetime can be reasoned w.r.t. malloc()
. This function is thread safe. void ph::detail::free_aligned_memory | ( | void * | ptr | ) |
ptr | The memory to be deallocated. ptr must be allocated by allocate_aligned_memory(std::size_t, std::size_t). If ptr is nullptr , no action is performed. |
|
inlineconstexpr |
void ph::detail::on_assertion_failed | ( | ) |
void ph::detail::output_assertion_message | ( | const std::string & | filename, |
const std::string & | lineNumber, | ||
const std::string & | condition, | ||
const std::string & | message ) |
void ph::detail::output_not_implemented_warning | ( | const std::string & | filename, |
const std::string & | lineNumber ) |
|
inlineconstexpr |