Struct CUDAScanCompactionConfig

Struct Documentation

struct flamegpu::CUDAScanCompactionConfig

Scan and Compaction buffer data for a specific stream and scan type

Public Functions

inline CUDAScanCompactionConfig()

Default constructor Initially no memory is allocated, all buffers are empty.

~CUDAScanCompactionConfig()

Releases all allocated memory

CUDAScanCompactionConfig(CUDAScanCompactionConfig const&) = delete

Copy construction is disabled

void operator=(CUDAScanCompactionConfig const&) = delete

Assignment is disabled

void free_scan_flag()

Release the two scan buffers inside d_ptrs

void resize_scan_flag(const unsigned int &count)

Resize the two scan buffers inside d_ptrs

Parameters

count – The number of items required to fit in the resized buffers

void zero_scan_flag()

Reset all data inside the two scan buffers to 0

Public Members

unsigned int scan_flag_len = 0
CUDAScanCompactionPtrs d_ptrs

Structure of scan flag buffers

void *hd_cub_temp = nullptr

Host copy of device pointer to cub temp memory

size_t cub_temp_size = 0

Size of the device memory pointed to by hd_cub_temp;

unsigned int cub_temp_size_max_list_size = 0

The size of the list that hd_cub_temp was allocated for This is a proxy for ensuring cub_temp_size is suitable.