mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-17 23:13:22 +09:00
[MG_Remote] (Disaggregated): carry native query results and complete XFB object deletion
This commit is contained in:
@@ -1455,6 +1455,13 @@ namespace MobileGL::MG_State {
|
||||
return it != m_transformFeedbackObjects.end() && it->second.everBound;
|
||||
}
|
||||
|
||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||
Uint64 GLContext::GetTransformFeedbackLifetimeId(Uint index) const {
|
||||
const auto found = m_transformFeedbackObjects.find(index);
|
||||
return found == m_transformFeedbackObjects.end() ? 0 : found->second.lifetimeId;
|
||||
}
|
||||
#endif
|
||||
|
||||
void GLContext::MarkTransformFeedbackObjectForDeletion(Uint index) {
|
||||
if (index == 0 || !m_transformFeedbackNames.IsValid(index)) return;
|
||||
// Deleting the bound object reverts to the default one (GL 4.6 core 13.2.1);
|
||||
|
||||
@@ -531,6 +531,9 @@ namespace MobileGL {
|
||||
// Never returns 0 - the counter starts at 1 so a zero-initialised memo slot cannot
|
||||
// be mistaken for a live object.
|
||||
Uint64 GetBoundTransformFeedbackLifetimeId() const { return m_boundTransformFeedbackLifetimeId; }
|
||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||
Uint64 GetTransformFeedbackLifetimeId(Uint index) const;
|
||||
#endif
|
||||
// Whether the object carrying this identity still has an OPEN capture span - one
|
||||
// that glBeginTransformFeedback started and glEndTransformFeedback has not closed,
|
||||
// paused or not. A backend that hands out a bounded set of per-object slots must
|
||||
|
||||
Reference in New Issue
Block a user