mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 23:21:29 +00:00
[idd] transport: route immutable texture frames
This commit is contained in:
@@ -66,11 +66,12 @@ bool Frame::Valid(FrameDamage damage, const RECT * rects, unsigned count,
|
||||
|
||||
void CFrameGraph::Reset()
|
||||
{
|
||||
m_cfg = GraphCfg {};
|
||||
m_nodeCount = 0;
|
||||
m_leafCount = 0;
|
||||
m_begun = false;
|
||||
m_sealed = false;
|
||||
m_cfg = GraphCfg {};
|
||||
m_generation = 0;
|
||||
m_nodeCount = 0;
|
||||
m_leafCount = 0;
|
||||
m_begun = false;
|
||||
m_sealed = false;
|
||||
}
|
||||
|
||||
bool CFrameGraph::Begin(const GraphCfg& cfg)
|
||||
@@ -288,6 +289,14 @@ bool CFrameGraph::Seal()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CFrameGraph::Stamp(uint64_t generation)
|
||||
{
|
||||
if (!m_sealed || m_generation || !generation)
|
||||
return false;
|
||||
m_generation = generation;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CFrameGraph::Same(const GraphCfg& cfg) const
|
||||
{
|
||||
return m_sealed && Frame::Same(m_cfg, cfg);
|
||||
|
||||
Reference in New Issue
Block a user