Blender V4.3
sort.cpp File Reference
#include "bvh/sort.h"
#include "bvh/build.h"
#include "util/algorithm.h"
#include "util/task.h"

Go to the source code of this file.

Classes

struct  BVHReferenceCompare
 

Functions

static void bvh_reference_sort_threaded (TaskPool *task_pool, BVHReference *data, const int job_start, const int job_end, const BVHReferenceCompare &compare)
 
void bvh_reference_sort (int start, int end, BVHReference *data, int dim, const BVHUnaligned *unaligned_heuristic, const Transform *aligned_space)
 

Variables

static CCL_NAMESPACE_BEGIN const int BVH_SORT_THRESHOLD = 4096
 

Function Documentation

◆ bvh_reference_sort()

void bvh_reference_sort ( int start,
int end,
BVHReference * data,
int dim,
const BVHUnaligned * unaligned_heuristic,
const Transform * aligned_space )

◆ bvh_reference_sort_threaded()

static void bvh_reference_sort_threaded ( TaskPool * task_pool,
BVHReference * data,
const int job_start,
const int job_end,
const BVHReferenceCompare & compare )
static

Variable Documentation

◆ BVH_SORT_THRESHOLD

CCL_NAMESPACE_BEGIN const int BVH_SORT_THRESHOLD = 4096
static

Definition at line 17 of file sort.cpp.

Referenced by bvh_reference_sort(), and bvh_reference_sort_threaded().