Versions Compared

Key

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

class Enlighten::InputLightingBuffer

A single frame of the InputWorkspace lighting (internal).

Runtime data allocated by end user that stores one frame of light bounce.

The data for this class lies immediately after it in memory.

Functions

NameDescription
CalculateBufferSize(const InputWorkspace *, PrecisionHint::Value)

Factory Methods.

ConvertEndian(Geo::EConvertEndianMode)

Converts the endian-ness of this buffer.

Copy(const InputLightingBuffer &)

Copy the contents from a source buffer.

Create(const InputWorkspace *, void *, PrecisionHint::Value)

Factory Methods.

Create(Geo::s32, void *, PrecisionHint::Value)

Factory Methods.

Create(const InputLightingBuffer &, void *)

Factory Methods.

Create(void *, const InputLightingBuffer &)

Factory Methods.

GetLightValues()

Return a pointer to the light values.

GetLightValues()

Return a const pointer to the light values.

GetNumLightValues()

Return the number of light values.

GetSize()

Gets the total size (in bytes) of this buffer.

GetStatic()

The number of updates since the last change.

GetSystemId()

Return the system guid for this InputLightingBuffer.

IsFrozen()

Queries the frozen flag of this buffer.

PostUpdate(bool)

Called after the buffer is updated.

Variables

NameDescription
Geo::u32 m_Frozen

Frozen flag in sign bit, remaining bits store the number of updates since the last change.

Geo::s32 m_NumClusters

Number of clusters in the leaf level.

Geo::u32 m_ObjectSize

Total size of this buffer (in bytes).

PrecisionHint::Value m_Precision

Precision.

Geo::GeoGuid m_SystemId

The system GUID for this buffer.


Anchor
a15de48b15e6d3c8f4825e61c2bc47de8
a15de48b15e6d3c8f4825e61c2bc47de8

static Geo::u32 Enlighten::InputLightingBuffer::CalculateBufferSize

...

public: Geo::u32 CalculateBufferSize
(
    const InputWorkspace * inputWorkspace,
    PrecisionHint::Value precisionHint
)

...

Factory Methods.


Anchor
a3fff8979df071a183c1eb8f2f9664eaf
a3fff8979df071a183c1eb8f2f9664eaf

void Enlighten::InputLightingBuffer::ConvertEndian

...

public: void ConvertEndian
(
    Geo::EConvertEndianMode mode
)

...

Converts the endian-ness of this buffer.


Anchor
aa5b434cbaaab9ad90febcc0d612dbf8c
aa5b434cbaaab9ad90febcc0d612dbf8c

bool Enlighten::InputLightingBuffer::Copy

...

public: bool Copy
(
    const InputLightingBuffer & source
)

...

Copy the contents from a source buffer.


Anchor
a27a00d74bcecbdc63b5e228b34da2a6a
a27a00d74bcecbdc63b5e228b34da2a6a

static InputLightingBuffer* Enlighten::InputLightingBuffer::Create

...

public: InputLightingBuffer * Create
(
    const InputWorkspace * inputWorkspace,
    void * memory,
    PrecisionHint::Value precisionHint
)

...

Factory Methods.


Anchor
a43055519f636645c3acb49a1771124b5
a43055519f636645c3acb49a1771124b5

static InputLightingBuffer* Enlighten::InputLightingBuffer::Create

...

public: InputLightingBuffer * Create
(
    Geo::s32 environmentResolution,
    void * memory,
    PrecisionHint::Value precisionHint
)

...

Factory Methods.


Anchor
af7527a5c626dc0794ec2c052218c164a
af7527a5c626dc0794ec2c052218c164a

static InputLightingBuffer* Enlighten::InputLightingBuffer::Create

...

public: InputLightingBuffer * Create
(
    const InputLightingBuffer & source,
    void * memory
)

...

Factory Methods.


Anchor
a96246d16bf058de4864cac38ee983dc9
a96246d16bf058de4864cac38ee983dc9

static InputLightingBuffer* Enlighten::InputLightingBuffer::Create

...

public: InputLightingBuffer * Create
(
    void * memory,
    const InputLightingBuffer & source
)

...

Factory Methods.


Anchor
a0761df48137a8448a662cb5cf8561b43
a0761df48137a8448a662cb5cf8561b43

LightValueIterator Enlighten::InputLightingBuffer::GetLightValues

...

public: LightValueIterator GetLightValues()

...

Return a pointer to the light values.


Anchor
a5dbb2b90e0ba6303a278e3d28c198e93
a5dbb2b90e0ba6303a278e3d28c198e93

ConstLightValueIterator Enlighten::InputLightingBuffer::GetLightValues

...

public: ConstLightValueIterator GetLightValues() const

...

Return a const pointer to the light values.


Anchor
ade1968807efc83b474c9687ac3d62c17
ade1968807efc83b474c9687ac3d62c17

Geo::u32 Enlighten::InputLightingBuffer::GetNumLightValues

...

public: Geo::u32 GetNumLightValues() const

...

Return the number of light values.


Anchor
ad919e516025b9f98a9827a35685e263d
ad919e516025b9f98a9827a35685e263d

Geo::u32 Enlighten::InputLightingBuffer::GetSize

...

public: Geo::u32 GetSize() const

...

Gets the total size (in bytes) of this buffer.


Anchor
a398b97972b522d3f5c8b4c6b0f03b351
a398b97972b522d3f5c8b4c6b0f03b351

Geo::s32 Enlighten::InputLightingBuffer::GetStatic

...

public: Geo::s32 GetStatic() const

...

The number of updates since the last change.


Anchor
a4e1e3828e8175ba64a6cf68d94260061
a4e1e3828e8175ba64a6cf68d94260061

Geo::GeoGuid Enlighten::InputLightingBuffer::GetSystemId

...

public: Geo::GeoGuid GetSystemId() const

...

Return the system guid for this InputLightingBuffer.


Anchor
a4ca835266e1a40941d1936aa560a137e
a4ca835266e1a40941d1936aa560a137e

bool Enlighten::InputLightingBuffer::IsFrozen

...

public: bool IsFrozen() const

...

Queries the frozen flag of this buffer.


Anchor
a6901e7348bb53fc3df7d1102e024c15c
a6901e7348bb53fc3df7d1102e024c15c

void Enlighten::InputLightingBuffer::PostUpdate

...

public: void PostUpdate
(
    bool freeze
)

...

Called after the buffer is updated.