Cogs.Core
Classes | Public Member Functions | Public Attributes | List of all members
Cogs::Core::Volumetric::OctAtlas Struct Reference

Classes

struct  Item
 
struct  Slot
 

Public Member Functions

unsigned checkTile (const uint64_t tilekey, const uint32_t nodeTimestamp, const uint32_t currentTimestamp)
 
void enforceOrder (const uint32_t currentTimestamp)
 
glm::uvec4 slotPosition (const OctComponent &octComp, const uint64_t tileKey) const
 
void handleStaging (const DrawContext *renderingContext, OctComponent &octComp, OctData &octData, const uint32_t currentTimestamp, unsigned delay=3)
 
void reset (const DrawContext *renderingContext, const OctData &octData, const uint32_t tileSize, const uint32_t gpuCacheSize, const uint32_t currentTimestamp)
 

Public Attributes

std::vector< Slotslots
 
std::list< uint32_t > slotsLRU
 
std::unordered_map< TileKey, uint32_t > slotsLUT
 
Cogs::TextureHandle textureAtlas0
 
Cogs::TextureHandle textureAtlas1
 
std::vector< ItemtoCopy
 
std::vector< ItemstagingUnused
 

Detailed Description

Definition at line 19 of file OctAtlas.h.

Member Function Documentation

◆ checkTile()

unsigned Cogs::Core::Volumetric::OctAtlas::checkTile ( const uint64_t  tilekey,
const uint32_t  nodeTimestamp,
const uint32_t  currentTimestamp 
)

Definition at line 145 of file OctAtlas.cpp.

◆ enforceOrder()

void Cogs::Core::Volumetric::OctAtlas::enforceOrder ( const uint32_t  currentTimestamp)

Definition at line 175 of file OctAtlas.cpp.

◆ handleStaging()

void Cogs::Core::Volumetric::OctAtlas::handleStaging ( const DrawContext renderingContext,
OctComponent octComp,
OctData octData,
const uint32_t  currentTimestamp,
unsigned  delay = 3 
)

Definition at line 203 of file OctAtlas.cpp.

◆ reset()

void Cogs::Core::Volumetric::OctAtlas::reset ( const DrawContext renderingContext,
const OctData octData,
const uint32_t  tileSize,
const uint32_t  gpuCacheSize,
const uint32_t  currentTimestamp 
)

Definition at line 14 of file OctAtlas.cpp.

◆ slotPosition()

glm::uvec4 Cogs::Core::Volumetric::OctAtlas::slotPosition ( const OctComponent octComp,
const uint64_t  tileKey 
) const

Definition at line 184 of file OctAtlas.cpp.

Member Data Documentation

◆ slots

std::vector<Slot> Cogs::Core::Volumetric::OctAtlas::slots

Definition at line 37 of file OctAtlas.h.

◆ slotsLRU

std::list<uint32_t> Cogs::Core::Volumetric::OctAtlas::slotsLRU

Definition at line 38 of file OctAtlas.h.

◆ slotsLUT

std::unordered_map<TileKey, uint32_t> Cogs::Core::Volumetric::OctAtlas::slotsLUT

Definition at line 39 of file OctAtlas.h.

◆ stagingUnused

std::vector<Item> Cogs::Core::Volumetric::OctAtlas::stagingUnused

Definition at line 64 of file OctAtlas.h.

◆ textureAtlas0

Cogs::TextureHandle Cogs::Core::Volumetric::OctAtlas::textureAtlas0

Definition at line 43 of file OctAtlas.h.

◆ textureAtlas1

Cogs::TextureHandle Cogs::Core::Volumetric::OctAtlas::textureAtlas1

Definition at line 46 of file OctAtlas.h.

◆ toCopy

std::vector<Item> Cogs::Core::Volumetric::OctAtlas::toCopy

Definition at line 63 of file OctAtlas.h.


The documentation for this struct was generated from the following files: