OWL
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
owl::RangeAllocator Struct Reference

#include <DeviceContext.h>

Public Member Functions

int alloc (size_t size)
 
void release (size_t begin, size_t size)
 

Public Attributes

size_t maxAllocedID = 0
 

Detailed Description

tracks which ID regions in the SBT have already been used - newly created groups allocate ranges of IDs in the SBT (to allow its geometries to be in successive SBT regions), and this struct keeps track of whats already used, and what is available

Member Function Documentation

◆ alloc()

int owl::RangeAllocator::alloc ( size_t  size)

allocate 'size' consecutive SBT entries, and return index of first of those

◆ release()

void owl::RangeAllocator::release ( size_t  begin,
size_t  size 
)

a given group has died, and tells us to release given range (starting at begin, with 'siez' elements', to be re-used when appropriate


The documentation for this struct was generated from the following files: