![]() |
RenderMan API
23.0
|
#include <RixLightFilter.h>
Public Member Functions | |
Allocator (RixLightFilterContext const *lfCtx) | |
template<typename T > | |
T * | Allocate (int num) |
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);
Definition at line 226 of file RixLightFilter.h.
|
inline |
Definition at line 229 of file RixLightFilter.h.
|
inline |
Definition at line 232 of file RixLightFilter.h.