This is the documentation for Enlighten.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

class Enlighten::WorkerThreadData

Helper class for holding per-thread working data.

Note that each thread needs its own copy of the InputLights because they may set different visibility data for each light.

Variables

Name Description
void ** m_ThreadVisibilityPointers

List of visibility pointers for the current task.

void * m_WorkingMemory

Workspace memory for this thread.

Functions

Name Description
EnsureThreadVisibilityPointerListSize(Geo::u32)

Helper function to (re)allocate the list of visibility pointers, if necessary.

EnsureWorkingMemorySize(Geo::u32)

Helper function to (re)allocate the lighting workspace array, if necessary.

GetSizeOfWorkingMemory()

Returns the size of the currently reserved working memory for this thread.


void Enlighten::WorkerThreadData::EnsureThreadVisibilityPointerListSize


public: void EnsureThreadVisibilityPointerListSize
(
    Geo::u32 minimumSize
)


Helper function to (re)allocate the list of visibility pointers, if necessary.


void Enlighten::WorkerThreadData::EnsureWorkingMemorySize


public: void EnsureWorkingMemorySize
(
    Geo::u32 minimumWorkspaceSize
)


Helper function to (re)allocate the lighting workspace array, if necessary.


Geo::u32 Enlighten::WorkerThreadData::GetSizeOfWorkingMemory


public: Geo::u32 GetSizeOfWorkingMemory() const


Returns the size of the currently reserved working memory for this thread.

  • No labels