RenderManAPI  24.0
RixLightFilterContext::Allocator Class Reference

Allocator is a utility (fully inlined) class to assist with tedious memory pool allocations. More...

#include <RixLightFilter.h>

Public Member Functions

 Allocator (RixLightFilterContext const *lfCtx)
 
template<typename T >
T * Allocate (int num)
 

Detailed Description

Allocator is a utility (fully inlined) class to assist with tedious memory pool allocations.

Uses templates to support the variety of atomic datatypes. Refer to above comments on Allocate for destructor policies.

Usage: RixLightFilterContext::Allocator m(sCtx); float *scmem = m.Allocate<float>(n); // default lifetime float *smem = m.AllocForBxdf<float>(n);

Constructor & Destructor Documentation

◆ Allocator()

RixLightFilterContext::Allocator::Allocator ( RixLightFilterContext const *  lfCtx)
inline

Member Function Documentation

◆ Allocate()

template<typename T >
T* RixLightFilterContext::Allocator::Allocate ( int  num)
inline

The documentation for this class was generated from the following file: