|
Blender V5.3
|
#include <BLI_virtual_array_range_spans.hh>
Public Member Functions | |
| VArrayRangeSpans ()=default | |
| VArrayRangeSpans (ResourceScope &scope, const VArray< T > &varray, const int max_range_size) | |
| Span< T > | get_span_for_range (const IndexRange range) const |
This allows efficiently accessing a single-value virtual array as span, assuming that only ever a partial span is necessary. Specifically, this is more efficient than materializing the full single-value VArray into a large array.
Definition at line 21 of file BLI_virtual_array_range_spans.hh.
|
default |
|
inline |
Definition at line 30 of file BLI_virtual_array_range_spans.hh.
References blender::VArrayCommon< T >::is_span().
|
inline |
Definition at line 54 of file BLI_virtual_array_range_spans.hh.
References blender::BLI_assert(), and blender::IndexRange::size().
Referenced by blender::tests::TEST_F(), blender::tests::TEST_F(), blender::tests::TEST_F(), and blender::tests::TEST_F().