3 #include "testing/testing.h"
33 for (
uint32_t index = 0; index < num_items; index++) {
53 for (
int i = 0; i < num_items; i++) {
54 float *co = &ctx->
coords[i][0];
69 TEST(lattice_deform_performance, performance_no_dvert_1)
78 TEST(lattice_deform_performance, performance_no_dvert_1000)
87 TEST(lattice_deform_performance, performance_no_dvert_10000)
89 const int32_t num_items = 10000;
96 TEST(lattice_deform_performance, performance_no_dvert_100000)
98 const int32_t num_items = 100000;
105 TEST(lattice_deform_performance, performance_no_dvert_1000000)
107 const int32_t num_items = 1000000;
114 TEST(lattice_deform_performance, performance_no_dvert_10000000)
116 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)
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)
TEST(action_groups, ReconstructGroupsWithReordering)
IDTypeInitDataFunction init_data
IDTypeFreeDataFunction free_data