Skip to main content

Module cache

Module cache 

Source

Structs§

CachedLightBlock
Cached section slot and local nibble index for one block.
CachedLightChunk
Cached chunk slot plus its ScalableLux cache role.
CachedLightSection
Cached section slot for one section position.
LightCacheLayout
ScalableLux cache-window layout for chunk, section, and nibble arrays.
LightCacheSetupChunks
Iterator over chunks scanned by ScalableLux cache setup.
LightChunkSectionSlots
Iterator over one inner cached chunk’s vanilla light-section slots.
LightChunkSlotArray
Optional value slots for ScalableLux’s 5x5 chunk cache arrays.
LightSectionSlotArray
Optional value slots for ScalableLux’s section/nibble cache arrays.
LightUpdateNotificationCache
Section-slot notification flags used while publishing visible light updates.
PackedLightBlockPos
ScalableLux packed block position used in light propagation queue entries.

Enums§

LightCacheChunkScope
ScalableLux cache role for a cached chunk column.
LightCacheSetupRadius
ScalableLux setup-cache radius.

Constants§

LIGHT_CACHE_CHUNK_SLOTS
Number of chunk columns in one light-engine cache window.
LIGHT_CACHE_CHUNK_SLOTS_I64 🔒
LIGHT_CACHE_DIAMETER
Horizontal cache width and depth used by ScalableLux light propagation.
LIGHT_CACHE_DIAMETER_I64 🔒
LIGHT_CACHE_RADIUS
Horizontal cache radius used by ScalableLux light propagation.
LIGHT_CACHE_SECTION_RADIUS
Horizontal radius where ScalableLux populates section and nibble cache data.
LIGHT_CACHE_SECTION_RADIUS_I64 🔒
LIGHT_ENCODED_HORIZONTAL_BITS 🔒
LIGHT_ENCODED_HORIZONTAL_MASK 🔒
LIGHT_ENCODED_POSITION_MASK 🔒
LIGHT_ENCODED_VERTICAL_BITS 🔒
LIGHT_ENCODED_VERTICAL_MASK 🔒
LIGHT_ENCODED_Y_SHIFT 🔒
LIGHT_ENCODED_Z_SHIFT 🔒
LIGHT_LOCAL_BLOCK_MASK 🔒
LIGHT_LOCAL_BLOCK_Y_SHIFT 🔒
LIGHT_LOCAL_BLOCK_Z_SHIFT 🔒

Functions§

empty_option_slots 🔒
sections_around_and_at_block_pos 🔒