Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientTesseraFrameHistory Class Reference

#include <RadientTesseraFrameHistory.hpp>

Public Member Functions

void BeginFrame (RadientFrameID RenderFrameID) noexcept

Static Public Member Functions

static bool IsContinuous (RadientFrameID PreviousFrameID, RadientFrameID CurrentFrameID) noexcept

Detailed Description

Per-view temporal state used to generate camera and object motion vectors. Global render frame IDs invalidate all history when the view skips a frame. Drawable generations prevent recycled IDs from inheriting old transforms, while view frame numbers invalidate history after a drawable was not rendered by an otherwise continuously rendered view.

Member Function Documentation

◆ BeginFrame()

void Diligent::RadientTesseraFrameHistory::BeginFrame ( RadientFrameID RenderFrameID)
noexcept

Starts history tracking for a view rendered during RenderFrameID. Temporal history is reset unless the view was last rendered during the immediately preceding global render frame.

◆ IsContinuous()

bool Diligent::RadientTesseraFrameHistory::IsContinuous ( RadientFrameID PreviousFrameID,
RadientFrameID CurrentFrameID )
staticnoexcept

Returns whether CurrentFrameID immediately follows PreviousFrameID, including wraparound to 1. Invalid frame IDs never form a valid pair.