Class QueryPool
A pool holding queries with a specific QueryType.
public class QueryPool : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder- Inheritance
- 
      objectQueryPool
- Implements
- Inherited Members
- Extension Methods
Constructors
QueryPool(GraphicsDevice, QueryType, int)
protected QueryPool(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)Parameters
- graphicsDeviceGraphicsDevice
- queryTypeQueryType
- queryCountint
Properties
QueryCount
Capacity of this pool.
public int QueryCount { get; }Property Value
QueryType
QueryType for this pool.
public QueryType QueryType { get; }Property Value
Methods
New(GraphicsDevice, QueryType, int)
Creates a new QueryPool instance.
public static QueryPool New(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)Parameters
- graphicsDeviceGraphicsDevice
- The GraphicsDevice. 
- queryTypeQueryType
- The QueryType of the pool. 
- queryCountint
- The capacity of the pool. 
Returns
OnDestroyed()
Called when graphics device has been detected to be internally destroyed.
protected override void OnDestroyed()OnRecreate()
Called when graphics device has been recreated.
protected override bool OnRecreate()Returns
TryGetData(long[])
public bool TryGetData(long[] dataArray)Parameters
- dataArraylong[]