3 #include "testing/testing.h"
9 TEST(generic_span, TypeConstructor)
11 GSpan span(CPPType::get<float>());
17 TEST(generic_span, BufferAndSizeConstructor)
19 int values[4] = {6, 7, 3, 2};
20 void *
buffer = (
void *)values;
31 TEST(generic_mutable_span, TypeConstructor)
38 TEST(generic_mutable_span, BufferAndSizeConstructor)
40 int values[4] = {4, 7, 3, 5};
41 void *
buffer = (
void *)values;
49 span.
typed<
int>()[2] = 20;
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
MutableSpan< T > typed() const
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer