Versions Compared

Key

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

class Enlighten::TransparencyWorkspace

Workspace used for authored destruction of lightmapped geometry (internal).

The transparency workspace.

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

An optional feature of the extended input lighting api. This is created using CreateTransparencyWorkspace() from an existing InputWorkspace. The implementation of this class should be considered internal, but is readable in InputWorkspace.h. Normal operation should be through the api below.

Functions

NameDescription
CalculateSize(const InputWorkspace *, Geo::s32, Geo::s32, PrecisionHint::Value)

Determine the required size of the buffer.

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

Construct the buffer in the provided memory.

GetClusterValues()

Gets the cluster values.

GetClusterValues()

Gets the cluster values.

GetInputLightingSurroundings()

Gets the input lighting surroundings.

GetLastUsedOffset()

Gets/sets the last used offset.

GetMaxNumInterpolants()

Gets the max number of interpolants.

GetNumInterpolantsArray(Geo::s32)

Gets the num interpolants array for a cluster. Size of array equals NumLods.

GetNumLods()

Gets number of LODs.

GetNumPositions()

Gets the number of positions.

GetProbeInterpolants(Geo::s32, Geo::s32)

Gets the probe interpolants for a cluster at a given lod.

GetProbeInterpolants(Geo::s32, Geo::s32)

Gets the probe interpolants for a cluster at a given lod.

GetQuadTransparencyValues()

Get the quad transparency values.

GetQuadTransparencyValues()

Get the quad transparency values.

GetSamplePositions()

Get the cluster positions.

GetSamplePositions()

Get the cluster positions.

GetTransparencyBuffer()

Gets the transparency buffer.

GetTransparencyBuffer()

Gets the transparency buffer.

SetLastUsedOffset(float)

Gets/sets the last used offset.


Anchor
a8933711cc95c01bdb397eb6b1f555bbf
a8933711cc95c01bdb397eb6b1f555bbf

static Geo::u32 Enlighten::TransparencyWorkspace::CalculateSize

...

public: Geo::u32 CalculateSize
(
    const InputWorkspace * inputWorkspace,
    Geo::s32 numInterpolants,
    Geo::s32 numLods,
    PrecisionHint::Value precision
)

...

Determine the required size of the buffer.


Anchor
a41249f9ae561514b18963b42645fed7c
a41249f9ae561514b18963b42645fed7c

static TransparencyWorkspace* Enlighten::TransparencyWorkspace::Create

...

public: TransparencyWorkspace * Create
(
    const InputWorkspace * inputWorkspace,
    Geo::s32 numInterpolants,
    Geo::s32 numLods,
    void * memory,
    PrecisionHint::Value precision
)

...

Construct the buffer in the provided memory.


Anchor
a291868be1db9aa38f49f2a697a26d065
a291868be1db9aa38f49f2a697a26d065

LightValueIterator Enlighten::TransparencyWorkspace::GetClusterValues

...

public: LightValueIterator GetClusterValues()

...

Gets the cluster values.

There is one value per cluster. Each represents the probe sampled lighting through the cluster.


Anchor
a29141dd6e274b09d754379ed12908ab7
a29141dd6e274b09d754379ed12908ab7

ConstLightValueIterator Enlighten::TransparencyWorkspace::GetClusterValues

...

public: ConstLightValueIterator GetClusterValues() const

...

Gets the cluster values.

There is one value per cluster. Each represents the probe sampled lighting through the cluster.


Anchor
a3543375cc993a3be8a50db0fb41f8229
a3543375cc993a3be8a50db0fb41f8229

const Geo::v128* Enlighten::TransparencyWorkspace::GetInputLightingSurroundings

...

public: const Geo::v128 * GetInputLightingSurroundings() const

...

Gets the input lighting surroundings.


Anchor
adcd98abd31341b1877f17d82298bed54
adcd98abd31341b1877f17d82298bed54

float Enlighten::TransparencyWorkspace::GetLastUsedOffset

...

public: float GetLastUsedOffset() const

...

Gets/sets the last used offset.


Anchor
adbf30f21054751675066e6ecddfeaac6
adbf30f21054751675066e6ecddfeaac6

Geo::s32 Enlighten::TransparencyWorkspace::GetMaxNumInterpolants

...

public: Geo::s32 GetMaxNumInterpolants() const

...

Gets the max number of interpolants.


Anchor
ab51098ae73af1a13014e3996f860b4eb
ab51098ae73af1a13014e3996f860b4eb

Geo::u8* Enlighten::TransparencyWorkspace::GetNumInterpolantsArray

...

public: Geo::u8 * GetNumInterpolantsArray
(
    Geo::s32 cluster
)

...

Gets the num interpolants array for a cluster. Size of array equals NumLods.


Anchor
a8442b0b5f9c30edf65cd167707b777b5
a8442b0b5f9c30edf65cd167707b777b5

Geo::s32 Enlighten::TransparencyWorkspace::GetNumLods

...

public: Geo::s32 GetNumLods() const

...

Gets number of LODs.


Anchor
a83bf1ee8a228ff0e4126443f2d0d04ec
a83bf1ee8a228ff0e4126443f2d0d04ec

Geo::s32 Enlighten::TransparencyWorkspace::GetNumPositions

...

public: Geo::s32 GetNumPositions() const

...

Gets the number of positions.


Anchor
a01d441d86d62c434ffab162eb5f850b1
a01d441d86d62c434ffab162eb5f850b1

ProbeInterpolant* Enlighten::TransparencyWorkspace::GetProbeInterpolants

...

public: ProbeInterpolant * GetProbeInterpolants
(
    Geo::s32 cluster,
    Geo::s32 lod
)

...

Gets the probe interpolants for a cluster at a given lod.

Size of array equals MaxNumInterpolants.


Anchor
a074f3e5b7aa4eda8cc38047afbc9f527
a074f3e5b7aa4eda8cc38047afbc9f527

const ProbeInterpolant* Enlighten::TransparencyWorkspace::GetProbeInterpolants

...

public: const ProbeInterpolant * GetProbeInterpolants
(
    Geo::s32 cluster,
    Geo::s32 lod
) const

...

Gets the probe interpolants for a cluster at a given lod.

Size of array equals MaxNumInterpolants.


Anchor
a510143479daabece866e575d1d3aa25c
a510143479daabece866e575d1d3aa25c

const Geo::u8* Enlighten::TransparencyWorkspace::GetQuadTransparencyValues

...

public: const Geo::u8 * GetQuadTransparencyValues() const

...

Get the quad transparency values.

This layout matches the InputWorkspace layout.


Anchor
a7add201a278b7a32a4ba05d8650b8f21
a7add201a278b7a32a4ba05d8650b8f21

Geo::u8* Enlighten::TransparencyWorkspace::GetQuadTransparencyValues

...

public: Geo::u8 * GetQuadTransparencyValues()

...

Get the quad transparency values.

This layout matches the InputWorkspace layout.


Anchor
a1fdddad6bd14503985a94faaa7404b6a
a1fdddad6bd14503985a94faaa7404b6a

const Geo::v128* Enlighten::TransparencyWorkspace::GetSamplePositions

...

public: const Geo::v128 * GetSamplePositions() const

...

Get the cluster positions.


Anchor
a8a06a00b1c18e8cbc19076bc87c453d6
a8a06a00b1c18e8cbc19076bc87c453d6

Geo::v128* Enlighten::TransparencyWorkspace::GetSamplePositions

...

public: Geo::v128 * GetSamplePositions()

...

Get the cluster positions.


Anchor
a3c330da914671d2d82f5c7f14d58ef4f
a3c330da914671d2d82f5c7f14d58ef4f

TransparencyBuffer* Enlighten::TransparencyWorkspace::GetTransparencyBuffer

...

public: TransparencyBuffer * GetTransparencyBuffer()

...

Gets the transparency buffer.


Anchor
a624f0026b5a43978c927d9fe304a8346
a624f0026b5a43978c927d9fe304a8346

const TransparencyBuffer* Enlighten::TransparencyWorkspace::GetTransparencyBuffer

...

public: const TransparencyBuffer * GetTransparencyBuffer() const

...

Gets the transparency buffer.


Anchor
a5791964f94acf418f2b94bc098ab075a
a5791964f94acf418f2b94bc098ab075a

void Enlighten::TransparencyWorkspace::SetLastUsedOffset

...

public: void SetLastUsedOffset
(
    float offset
)

...

Gets/sets the last used offset.