Class QueryPool
A pool holding queries with a specific QueryType.
public class QueryPool : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
- Inheritance
-
QueryPool
- Implements
- Inherited Members
- Extension Methods
Constructors
QueryPool(GraphicsDevice, QueryType, int)
protected QueryPool(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)
Parameters
graphicsDevice
GraphicsDevicequeryType
QueryTypequeryCount
int
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
graphicsDevice
GraphicsDeviceThe GraphicsDevice.
queryType
QueryTypeThe QueryType of the pool.
queryCount
intThe 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
dataArray
long[]