4 #include "testing/testing.h"
8 TEST(index_mask, DefaultConstructor)
15 TEST(index_mask, ArrayConstructor)
20 EXPECT_FALSE(
mask.is_range());
28 TEST(index_mask, RangeConstructor)
34 EXPECT_TRUE(
mask.is_range());
43 TEST(index_mask, SliceAndOffset)
67 TEST(index_mask, ExtractRanges)
103 for (
const IndexRange &range : {range1, range2, range3, range4}) {
104 for (
const int64_t i : range) {
116 const int64_t max_test_range_size = 50;
128 const IndexRange range = ranges[range_size - 1];
141 EXPECT_TRUE(new_indices.
is_empty());
147 EXPECT_TRUE(inverted_mask.
is_empty());
165 TEST(index_mask, ExtractRangesInvert)
192 EXPECT_TRUE(skip_amounts.
is_empty());
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert
Vector< IndexRange > extract_ranges_invert(const IndexRange full_range, Vector< int64_t > *r_skip_amounts=nullptr) const
Span< int64_t > indices() const
Vector< IndexRange > extract_ranges() const
IndexMask invert(const IndexRange full_range, Vector< int64_t > &r_new_indices) const
constexpr int64_t size() const
Span< T > as_span() const
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
ccl_gpu_kernel_postfix int ccl_global int * indices
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
TEST(any, DefaultConstructor)