Versions Compared

Key

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

class Enlighten::IncidentLightingBuffer

A buffer containing the incident lighting for a system's input sample points (internal).

Runtime data allocated by end user that stores incident lighting from a set of lights for each cluster.

E.g. leaf clusters or "input lighting" cube map samples. It would not typically include bounce or albedo. Implemented as straight forward set of lighting values, but can operate at two different precisions.

Functions

NameDescription
CalculateBufferSize(Geo::s32, PrecisionHint::Value)

Factory Methods.

Clear()

Clears this buffer to all zeroes.

ConvertEndian(Geo::EConvertEndianMode)

Converts the endian-ness of this buffer.

Copy(const IncidentLightingBuffer &)

Copy the contents of the given buffer into this one.

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

Factory Methods.

Create(const IncidentLightingBuffer &, void *)

Factory Methods.

GetLastSkipHash()

A hash of the lights before they have been sorted.

GetLightValues()

Return a pointer to the light values.

GetLightValues()

Return a const pointer to the light values.

GetNumLightValues()

Return the number of light values.

GetPostSortHash()

A hash of the lights after they have been sorted.

GetPrecision()

Gets the precision.

GetSize()

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

GetSystemId()

Return the system guid for this IncidentLightingBuffer.

WasLastUpdateSkipped()

returns true if the last update of the IncidentLightingBuffer was skipped due to the input lights being unchanged.


Anchor
ab82ead9338d0fca5fe926519398ef92e
ab82ead9338d0fca5fe926519398ef92e

static Geo::u32 Enlighten::IncidentLightingBuffer::CalculateBufferSize

...

public: Geo::u32 CalculateBufferSize
(
    Geo::s32 numSamplePoints,
    PrecisionHint::Value precision
)

...

Factory Methods.


Anchor
aedd23134c2fcdbd07a81f79b8253bd22
aedd23134c2fcdbd07a81f79b8253bd22

void Enlighten::IncidentLightingBuffer::Clear

...

public: void Clear()

...

Clears this buffer to all zeroes.


Anchor
add3dd1c047d4a16e9b2cebf441192df9
add3dd1c047d4a16e9b2cebf441192df9

void Enlighten::IncidentLightingBuffer::ConvertEndian

...

public: void ConvertEndian
(
    Geo::EConvertEndianMode mode
)

...

Converts the endian-ness of this buffer.


Anchor
a498a019c0dae6411a4b4c53b8305e7e1
a498a019c0dae6411a4b4c53b8305e7e1

bool Enlighten::IncidentLightingBuffer::Copy

...

public: bool Copy
(
    const IncidentLightingBuffer & source
)

...

Copy the contents of the given buffer into this one.


Anchor
abd8c17290549f08a769dcea8fde5a1de
abd8c17290549f08a769dcea8fde5a1de

static IncidentLightingBuffer* Enlighten::IncidentLightingBuffer::Create

...

public: IncidentLightingBuffer * Create
(
    Geo::GeoGuid objectId,
    Geo::s32 numSamplePoints,
    void * memory,
    PrecisionHint::Value precision
)

...

Factory Methods.


Anchor
a47d99d595a76c186476ddd6b18883402
a47d99d595a76c186476ddd6b18883402

static IncidentLightingBuffer* Enlighten::IncidentLightingBuffer::Create

...

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

...

Factory Methods.


Anchor
a34aecc03e29071d5976214d53c1b35ef
a34aecc03e29071d5976214d53c1b35ef

Geo::u32* Enlighten::IncidentLightingBuffer::GetLastSkipHash

...

public: Geo::u32 * GetLastSkipHash()

...

A hash of the lights before they have been sorted.


Anchor
a41af31ccf6d02e09589b6e7b1df2c6d0
a41af31ccf6d02e09589b6e7b1df2c6d0

LightValueIterator Enlighten::IncidentLightingBuffer::GetLightValues

...

public: LightValueIterator GetLightValues()

...

Return a pointer to the light values.


Anchor
a740ddce51172ca0f591eaa299872abea
a740ddce51172ca0f591eaa299872abea

ConstLightValueIterator Enlighten::IncidentLightingBuffer::GetLightValues

...

public: ConstLightValueIterator GetLightValues() const

...

Return a const pointer to the light values.


Anchor
ac58ba5ada5f9f68b10fad668f8f7c519
ac58ba5ada5f9f68b10fad668f8f7c519

Geo::u32 Enlighten::IncidentLightingBuffer::GetNumLightValues

...

public: Geo::u32 GetNumLightValues() const

...

Return the number of light values.


Anchor
aca0d47e7d41e711e14852c7b51a9ce4d
aca0d47e7d41e711e14852c7b51a9ce4d

Geo::u32* Enlighten::IncidentLightingBuffer::GetPostSortHash

...

public: Geo::u32 * GetPostSortHash()

...

A hash of the lights after they have been sorted.


Anchor
a5202b5c6585ac1f220681f1310de3408
a5202b5c6585ac1f220681f1310de3408

PrecisionHint::Value Enlighten::IncidentLightingBuffer::GetPrecision

...

public: PrecisionHint::Value GetPrecision() const

...

Gets the precision.


Anchor
a98ee7e08888185ec7fd7166740968e2e
a98ee7e08888185ec7fd7166740968e2e

Geo::u32 Enlighten::IncidentLightingBuffer::GetSize

...

public: Geo::u32 GetSize() const

...

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


Anchor
a89b3781c5b581eb79621a82d099bac7b
a89b3781c5b581eb79621a82d099bac7b

Geo::GeoGuid Enlighten::IncidentLightingBuffer::GetSystemId

...

public: Geo::GeoGuid GetSystemId() const

...

Return the system guid for this IncidentLightingBuffer.


Anchor
af9e764d3349ed1d2cbe64ed29e2c6bf9
af9e764d3349ed1d2cbe64ed29e2c6bf9

bool Enlighten::IncidentLightingBuffer::WasLastUpdateSkipped

...

public: bool WasLastUpdateSkipped() const

...

returns true if the last update of the IncidentLightingBuffer was skipped due to the input lights being unchanged.