Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

NameDescription
void ** m_ThreadVisibilityPointers

List of visibility pointers for the current task.

void * m_WorkingMemory

Workspace memory for this thread.

Functions

NameDescription
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.


Anchor
a961a348226ff0d1f4b21ceb35c4b567f
a961a348226ff0d1f4b21ceb35c4b567f

void Enlighten::WorkerThreadData::EnsureThreadVisibilityPointerListSize

...

public: void EnsureThreadVisibilityPointerListSize
(
    Geo::u32 minimumSize
)

...

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


Anchor
a677ea338c0c88e3af39229ad279baba2
a677ea338c0c88e3af39229ad279baba2

void Enlighten::WorkerThreadData::EnsureWorkingMemorySize

...

public: void EnsureWorkingMemorySize
(
    Geo::u32 minimumWorkspaceSize
)

...

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


Anchor
a4db0171195f3ee36d6138687b0f5e326
a4db0171195f3ee36d6138687b0f5e326

Geo::u32 Enlighten::WorkerThreadData::GetSizeOfWorkingMemory

...

public: Geo::u32 GetSizeOfWorkingMemory() const

...

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