internal static MyOcclusionQueryRender Get(string debugName) { var query = new MyOcclusionQueryRender() { Query = MyQueryFactory.CreateOcclusionQuery(debugName), Size = 1.0f, NextQueryTime = 0 }; m_queries.Add(query); return(query); }
internal static void Remove(MyOcclusionQueryRender query) { m_queries.Remove(query); query.Query.Destroy(); }