Struct DxgiFrameStatistics
Describes timing and presentation statistics for a frame.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiFrameStatistics : IEquatable<DxgiFrameStatistics>
Properties
| Edit this page View SourcePresentCount
Gets a value that represents the running total count of times that an image was presented to the monitor since the computer booted.
Declaration
public uint PresentCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
PresentRefreshCount
Gets a value that represents the running total count of v-blanks at which the last image was presented to the monitor and that have happened since the computer booted (for windowed mode, since the swap chain was created).
Declaration
public uint PresentRefreshCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
SyncGpuTime
Gets the GPU time. Reserved. Always returns 0.
Declaration
public ulong SyncGpuTime { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
SyncQpcTime
Gets a value that represents the high-resolution performance counter timer. This value is the same as the value returned by the QueryPerformanceCounter function.
Declaration
public ulong SyncQpcTime { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
SyncRefreshCount
Gets a value that represents the running total count of v-blanks when the scheduler last sampled the machine time by calling QueryPerformanceCounter and that have happened since the computer booted (for windowed mode, since the swap chain was created).
Declaration
public uint SyncRefreshCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceEquals(DxgiFrameStatistics)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DxgiFrameStatistics other)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiFrameStatistics | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DxgiFrameStatistics, DxgiFrameStatistics)
Compares two DxgiFrameStatistics objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DxgiFrameStatistics left, DxgiFrameStatistics right)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiFrameStatistics | left | The left DxgiFrameStatistics to compare. |
| DxgiFrameStatistics | right | The right DxgiFrameStatistics to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(DxgiFrameStatistics, DxgiFrameStatistics)
Compares two DxgiFrameStatistics objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DxgiFrameStatistics left, DxgiFrameStatistics right)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiFrameStatistics | left | The left DxgiFrameStatistics to compare. |
| DxgiFrameStatistics | right | The right DxgiFrameStatistics to compare. |
Returns
| Type | Description |
|---|---|
| bool |