Table of Contents

Class QueryPool

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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 GraphicsDevice
queryType QueryType
queryCount int

Properties

QueryCount

Capacity of this pool.

public int QueryCount { get; }

Property Value

int

QueryType

QueryType for this pool.

public QueryType QueryType { get; }

Property Value

QueryType

Methods

New(GraphicsDevice, QueryType, int)

Creates a new QueryPool instance.

public static QueryPool New(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)

Parameters

graphicsDevice GraphicsDevice

The GraphicsDevice.

queryType QueryType

The QueryType of the pool.

queryCount int

The capacity of the pool.

Returns

QueryPool

An instance of a new QueryPool

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

bool

True if item transitioned to a Active state.

TryGetData(long[])

public bool TryGetData(long[] dataArray)

Parameters

dataArray long[]

Returns

bool