struct Enlighten ProbeBucketPattern

This is the documentation for Enlighten.

struct Enlighten ProbeBucketPattern

struct Enlighten::ProbeBucketPattern

The bit-packed probe group data structure class.

Variables

Name

Description

Name

Description

Geo::PackedByte4 subtree

28 bits (8 + 8 + 8 + 4)

Geo::u8 visibility

8 bits

Geo::PackedByte4 voxel

28 bits (8 + 8 + 8 + 4)

Functions

Name

Description

Name

Description

operator Geo::u64()

Convert to u64.

ProbeBucketPattern(Geo::PackedByte4, Geo::PackedByte4, Geo::u8)

Construct from subtree, voxel and visibility.

ProbeBucketPattern(Geo::u64)

Construct from a existing probe group.



Enlighten::ProbeBucketPattern::operator Geo::u64


public: operator Geo::u64() const


Convert to u64.



Enlighten::ProbeBucketPattern::ProbeBucketPattern


public: ProbeBucketPattern
(
    Geo::PackedByte4 subtree,
    Geo::PackedByte4 voxel,
    Geo::u8 visibility
)


Construct from subtree, voxel and visibility.

 

Parameters

[in]

subtree

The subtree pattern and subtree LOD, 4 bits + 8 bits * 3

[in]

voxel

The voxel pattern and voxel LOD, 4 bits + 8 bits * 3

[in]

visibility

The visibility, 8 bits

 



Enlighten::ProbeBucketPattern::ProbeBucketPattern


public: ProbeBucketPattern
(
    Geo::u64 packed
)


Construct from a existing probe group.

 

Parameters

[in]

packed

A existing probe bucket pattern