XII Release 0.1.0
Loading...
Searching...
No Matches
xiiVirtualShadowPageId Struct Reference

#include <VirtualShadowMap.h>

Public Member Functions

 XII_DECLARE_POD_TYPE ()
bool IsValid () const
xiiUInt64 GetPackedValue () const

Static Public Member Functions

static xiiVirtualShadowPageId FromPackedValue (xiiUInt64 uiPackedValue)

Public Attributes

xiiUInt32 m_uiLightId = xiiInvalidIndex
xiiUInt32 m_uiMipLevel = 0U
xiiUInt32 m_uiPageX = 0U
xiiUInt32 m_uiPageY = 0U

Detailed Description

Stable virtual address of one shadow-map page.

The packed representation reserves 24 bits for the light, 6 for the mip, and 17 bits for each page coordinate. It is deterministic across frames and can be written directly to GPU feedback and page-table update buffers.


The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Lighting/VirtualShadowMap.h
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Lighting/Implementation/VirtualShadowMap.cpp