|
|
static constexpr unsigned long long | PixelLightBits = 8 |
|
static constexpr unsigned long long | LightmapBits = 8 |
|
static constexpr unsigned long long | MaterialBits = 16 |
|
static constexpr unsigned long long | PipelineStateBits = 24 |
|
static constexpr unsigned long long | RenderOrderBits = 8 |
|
static constexpr unsigned long long | PixelLightMask = (1ull << PixelLightBits) - 1 |
|
static constexpr unsigned long long | LightmapMask = (1ull << LightmapBits) - 1 |
|
static constexpr unsigned long long | MaterialMask = (1ull << MaterialBits) - 1 |
|
static constexpr unsigned long long | PipelineStateMask = (1ull << PipelineStateBits) - 1 |
|
static constexpr unsigned long long | RenderOrderMask = (1ull << RenderOrderBits) - 1 |
|
static constexpr unsigned long long | PixelLightOffset = 0 |
|
static constexpr unsigned long long | LightmapOffset = PixelLightOffset + PixelLightBits |
|
static constexpr unsigned long long | MaterialOffset = LightmapOffset + LightmapBits |
|
static constexpr unsigned long long | PipelineStateOffset = MaterialOffset + MaterialBits |
|
static constexpr unsigned long long | RenderOrderOffset = PipelineStateOffset + PipelineStateBits |
|
|
static constexpr unsigned long long | ReservedBits = 16 |
|
static constexpr unsigned long long | VertexLightsBits = 24 |
|
static constexpr unsigned long long | GeometryBits = 24 |
|
static constexpr unsigned long long | ReservedMask = (1ull << ReservedBits) - 1 |
|
static constexpr unsigned long long | VertexLightsMask = (1ull << VertexLightsBits) - 1 |
|
static constexpr unsigned long long | GeometryMask = (1ull << GeometryBits) - 1 |
|
static constexpr unsigned long long | ReservedOffset = 0 |
|
static constexpr unsigned long long | VertexLightsOffset = ReservedOffset + ReservedBits |
|
static constexpr unsigned long long | GeometryOffset = VertexLightsOffset + VertexLightsBits |
|
Scene batch sorted by pipeline state, material and geometry. Also sorted front to back.