QueryPool Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
A pool holding queries with a specific QueryType.
Derived from QueryPool:
public class QueryPool : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Name | Description | |
---|---|---|
Constructors | ||
QueryPool(GraphicsDevice, QueryType, Int32) | ||
Properties | ||
QueryCount | Capacity of this pool. |
|
QueryType | QueryType for this pool. |
|
Methods | ||
New(GraphicsDevice, QueryType, Int32) | Creates a new QueryPool instance. |
|
OnDestroyed() | Called when graphics device has been detected to be internally destroyed. |
|
OnRecreate() | Called when graphics device has been recreated. |
|
TryGetData(Int64[]) |
Constructors
QueryPool(GraphicsDevice, QueryType, Int32)
protected QueryPool(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | graphicsDevice | |
QueryType | queryType | |
System.Int32 | queryCount |
Properties
QueryCount
Capacity of this pool.
public int QueryCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
QueryType
QueryType for this pool.
public QueryType QueryType { get; }
Property Value
Type | Description |
---|---|
QueryType |
Methods
New(GraphicsDevice, QueryType, Int32)
Creates a new QueryPool instance.
public static QueryPool New(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | graphicsDevice | The GraphicsDevice. |
QueryType | queryType | The QueryType of the pool. |
System.Int32 | queryCount | The capacity of the pool. |
Returns
Type | Description |
---|---|
QueryPool | An instance of a new QueryPool |
OnDestroyed()
Called when graphics device has been detected to be internally destroyed.
protected override void OnDestroyed()
Overrides
OnRecreate()
Called when graphics device has been recreated.
protected override bool OnRecreate()
Returns
Type | Description |
---|---|
System.Boolean | True if item transitioned to a Active state. |
Overrides
TryGetData(Int64[])
public bool TryGetData(long[] dataArray)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | dataArray |
Returns
Type | Description |
---|---|
System.Boolean |