Array position - dense buffer index (0, 1, 2, ...) More...
#include <IndexTypes.h>
Public Member Functions | |
| constexpr | ArrayPosition (size_t v) |
| Explicit construction from size_t. | |
| constexpr | operator size_t () const |
| Implicit conversion to size_t (enables array indexing) | |
| constexpr bool | operator== (const ArrayPosition &other) const |
| Equality comparison. | |
| constexpr bool | operator!= (const ArrayPosition &other) const |
Data Fields | |
| size_t | value |
| Array index value (0 to primitive_count-1) | |
Array position - dense buffer index (0, 1, 2, ...)
Array positions are sequential indices into GPU buffers. They are computed during geometry building by reordering primitives by parent object for cache locality.
Allows implicit conversion to size_t for convenient array indexing.
Definition at line 82 of file IndexTypes.h.
|
inlineexplicitconstexpr |
Explicit construction from size_t.
Definition at line 86 of file IndexTypes.h.
|
inlineconstexpr |
Implicit conversion to size_t (enables array indexing)
Definition at line 90 of file IndexTypes.h.
|
inlineconstexpr |
Definition at line 98 of file IndexTypes.h.
|
inlineconstexpr |
Equality comparison.
Definition at line 95 of file IndexTypes.h.
| size_t helios::ArrayPosition::value |
Array index value (0 to primitive_count-1)
Definition at line 83 of file IndexTypes.h.