Gorgon
Show / Hide Table of Contents

Class GorgonQuery<T>

A query used to retrieve information about rendering.

Inheritance
object
GorgonQuery<T>
GorgonEventQuery
GorgonOcclusionPredicateQuery
GorgonOcclusionQuery
GorgonPipelineStatisticsQuery
GorgonTimestampDisjointQuery
GorgonTimestampQuery
Implements
IGorgonGraphicsObject
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public abstract class GorgonQuery<T> : IGorgonGraphicsObject, IDisposable where T : unmanaged
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

GorgonQuery(GorgonGraphics, string)

Initializes a new instance of the GorgonQuery<T> class.

Declaration
protected GorgonQuery(GorgonGraphics graphics, string name)
Parameters
Type Name Description
GorgonGraphics graphics

The graphics interface used to build the query.

string name

[Optional] The name for the query.

Exceptions
Type Condition
ArgumentNullException

Thrown when the graphics parameter is null.

Properties

| Edit this page View Source

Graphics

Property to return the graphics interface that built this object.

Declaration
public GorgonGraphics Graphics { get; }
Property Value
Type Description
GorgonGraphics
| Edit this page View Source

HasData

Property to return whether the data from the query is ready for consumption or not.

Declaration
public bool HasData { get; }
Property Value
Type Description
bool
| Edit this page View Source

Name

Property to return the name of this object.

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

QueryType

Property to return the type of query to execute.

Declaration
public abstract QueryType QueryType { get; }
Property Value
Type Description
QueryType

Methods

| Edit this page View Source

Begin()

Function to start the query.

Declaration
public void Begin()
| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Edit this page View Source

End()

Function to end the query.

Declaration
public void End()
| Edit this page View Source

GetData(out T)

Function to retrieve the result data for the query.

Declaration
public bool GetData(out T result)
Parameters
Type Name Description
T result

The result of the query.

Returns
Type Description
bool

true if the query results are ready to be consumed, or false if not.

| Edit this page View Source

OnGetData(out T)

Function to retrieve the result data for the query.

Declaration
protected abstract bool OnGetData(out T result)
Parameters
Type Name Description
T result

The result of the query.

Returns
Type Description
bool

true if the query results are ready to be consumed, or false if not.

Implements

IGorgonGraphicsObject
IDisposable

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author