Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    QueryPool Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    A pool holding queries with a specific QueryType.

    System.Object → DisposeBase → ComponentBase → GraphicsResourceBase → QueryPool
    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[])
    | Improve this Doc View Source

    Constructors


    QueryPool(GraphicsDevice, QueryType, Int32)

    protected QueryPool(GraphicsDevice graphicsDevice, QueryType queryType, int queryCount)
    Parameters
    Type Name Description
    GraphicsDevice graphicsDevice
    QueryType queryType
    System.Int32 queryCount
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    GraphicsResourceBase.OnDestroyed()

    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
    GraphicsResourceBase.OnRecreate()

    TryGetData(Int64[])

    public bool TryGetData(long[] dataArray)
    Parameters
    Type Name Description
    System.Int64[] dataArray
    Returns
    Type Description
    System.Boolean

    Inherited Members

    GraphicsResourceBase.NativeResource
    GraphicsResourceBase.NativeDeviceChild
    GraphicsResourceBase.NativeDevice
    GraphicsResourceBase.Reload
    GraphicsResourceBase.GraphicsDevice
    GraphicsResourceBase.Destroyed
    GraphicsResourceBase.OnPause()
    GraphicsResourceBase.OnResume()
    GraphicsResourceBase.Destroy()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation