18 #include "testing/testing.h"
48 for (
uint32_t index = 0; index < num_items; index++) {
68 for (
int i = 0; i < num_items; i++) {
69 float *co = &ctx->
coords[i][0];
84 TEST(lattice_deform_performance, performance_no_dvert_1)
93 TEST(lattice_deform_performance, performance_no_dvert_1000)
102 TEST(lattice_deform_performance, performance_no_dvert_10000)
104 const int32_t num_items = 10000;
111 TEST(lattice_deform_performance, performance_no_dvert_100000)
113 const int32_t num_items = 100000;
120 TEST(lattice_deform_performance, performance_no_dvert_1000000)
122 const int32_t num_items = 1000000;
129 TEST(lattice_deform_performance, performance_no_dvert_10000000)
131 const int32_t num_items = 10000000;
typedef float(TangentPoint)[2]
void BKE_lattice_deform_data_destroy(struct LatticeDeformData *lattice_deform_data)
void BKE_lattice_deform_data_eval_co(struct LatticeDeformData *lattice_deform_data, float co[3], float weight)
struct LatticeDeformData * BKE_lattice_deform_data_create(const struct Object *oblatt, const struct Object *ob) ATTR_WARN_UNUSED_RESULT
Object is a sort of wrapper for general info.
Read Guarded memory(de)allocation.
void *(* MEM_malloc_arrayN)(size_t len, size_t size, const char *str)
void(* MEM_freeN)(void *vmemh)
static void test_lattice_deform_free(LatticeDeformTestContext *ctx)
TEST(mat3_vec_to_roll, UnitMatrix)
static void test_lattice_deform(LatticeDeformTestContext *ctx, int32_t num_items)
static void test_lattice_deform_init(LatticeDeformTestContext *ctx, RandomNumberGenerator *rng, int32_t num_items)
IDTypeInitDataFunction init_data
IDTypeFreeDataFunction free_data