![]() |
XII Release 0.1.0
|
#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 |
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.