Encapsulation of light visibility information.
Name | Description |
---|---|
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. |
public: GEO_CONTROLLED_INLINEGeo::v128 GetClusterVisibilityFactor
(
Geo::u32 clusterIdx,
Geo::u32 hasVisibility
) const
Gets the cluster visibility factor for the given cluster.
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.
public: GEO_CONTROLLED_INLINEGeo::u32 GetMaskedIndex
(
Geo::u32 clusterIdx,
Geo::u32 quadIdx
)
Gets the masked index for the given cluster and quad.
public: GEO_CONTROLLED_INLINEGeo::v128 GetQuadVisibilityMask
(
Geo::u32 quadIdx,
Geo::u32 hasVisibility
) const
Gets the quad visibility mask for the given quad.
public: const Geo::u8 * GetVisibilityData() const
Gets the raw visibility data.
public: VisibilityBuffer
(
const VisibilityFormat::Type format,
const void * visibilityData
)
Constructor.