OWL
OptiX7 Wrapper Library
|
Go to the documentation of this file.
38 using owl::common::vec2uc;
39 using owl::common::vec3uc;
40 using owl::common::vec4uc;
42 using owl::common::vec2f;
43 using owl::common::vec3f;
44 using owl::common::vec4f;
46 using owl::common::vec2i;
47 using owl::common::vec3i;
48 using owl::common::vec4i;
50 using owl::common::vec2ui;
51 using owl::common::vec3ui;
52 using owl::common::vec4ui;
54 using owl::common::vec2l;
55 using owl::common::vec3l;
56 using owl::common::vec4l;
58 using owl::common::vec2ul;
59 using owl::common::vec3ul;
60 using owl::common::vec4ul;
62 using owl::common::box3f;
69 template<
size_t alignment>
72 const size_t numBlocks = (unalignedSize+alignment-1)/alignment;
73 return numBlocks*alignment;
78 if (ptr ==
nullptr)
return nullptr;
79 return (
void*)((
unsigned char *)ptr + offset);
84 #define IGNORING_THIS() std::cout << OWL_TERMINAL_YELLOW << "## ignoring " << __PRETTY_FUNCTION__ << OWL_TERMINAL_DEFAULT << std::endl;
size_t smallestMultipleOf(size_t unalignedSize)
Definition: common.h:70
std::string prettyDouble(const double val)
Definition: owl-common.h:210
AffineSpace3f affine3f
Definition: AffineSpace.h:167
std::string prettyNumber(const size_t s)
Definition: owl-common.h:232
LinearSpace3f linear3f
Definition: LinearSpace.h:395
void * addPointerOffset(void *ptr, size_t offset)
Definition: common.h:76
Definition: APIContext.cpp:36