Versions Compared

Key

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

class Enlighten::VisibilityBuffer

Encapsulation of light visibility information.

Functions

NameDescription
GetClusterVisibilityFactor(Geo::u32, Geo::u32)

Gets the cluster visibility factor for the given cluster.

GetFourSampleVisibilityFactors(Geo::u32, Geo::u32)

Load the next four consecutive visibility bytes into each channel of the v128.

GetMaskedIndex(Geo::u32, Geo::u32)

Gets the masked index for the given cluster and quad.

GetQuadVisibilityMask(Geo::u32, Geo::u32)

Gets the quad visibility mask for the given quad.

GetVisibilityData()

Gets the raw visibility data.

VisibilityBuffer(const VisibilityFormat::Type, const void *)

Constructor.


Anchor
a7bc6d68d4f14f13e70791d7c72468a87
a7bc6d68d4f14f13e70791d7c72468a87

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::VisibilityBuffer::GetClusterVisibilityFactor

...

public: GEO_CONTROLLED_INLINEGeo::v128 GetClusterVisibilityFactor
(
    Geo::u32 clusterIdx,
    Geo::u32 hasVisibility
) const

...

Gets the cluster visibility factor for the given cluster.


Anchor
aa6414a7bdb36bd73c609c683ec0a0cc2
aa6414a7bdb36bd73c609c683ec0a0cc2

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::VisibilityBuffer::GetFourSampleVisibilityFactors

...

public: GEO_CONTROLLED_INLINEGeo::v128 GetFourSampleVisibilityFactors
(
    Geo::u32 startIdx,
    Geo::u32 hasVisibility
) const

...

Load the next four consecutive visibility bytes into each channel of the v128.


Anchor
acacb25ede0ee928771eceb935cb4420e
acacb25ede0ee928771eceb935cb4420e

GEO_CONTROLLED_INLINE Geo::u32 Enlighten::VisibilityBuffer::GetMaskedIndex

...

public: GEO_CONTROLLED_INLINEGeo::u32 GetMaskedIndex
(
    Geo::u32 clusterIdx,
    Geo::u32 quadIdx
)

...

Gets the masked index for the given cluster and quad.


Anchor
abb21b3c0e60f4192073bf0110f303fd4
abb21b3c0e60f4192073bf0110f303fd4

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::VisibilityBuffer::GetQuadVisibilityMask

...

public: GEO_CONTROLLED_INLINEGeo::v128 GetQuadVisibilityMask
(
    Geo::u32 quadIdx,
    Geo::u32 hasVisibility
) const

...

Gets the quad visibility mask for the given quad.


Anchor
a7567d33478215a0913800e6596c72dd8
a7567d33478215a0913800e6596c72dd8

const Geo::u8* Enlighten::VisibilityBuffer::GetVisibilityData

...

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

...

Gets the raw visibility data.


Anchor
af2c1c0036620f2edf384f67b242c18b2
af2c1c0036620f2edf384f67b242c18b2

Enlighten::VisibilityBuffer::VisibilityBuffer

...

public: VisibilityBuffer
(
    const VisibilityFormat::Type format,
    const void * visibilityData
)

...

Constructor.