Skip to content

Commit 130d14a

Browse files
committed
Graphics: TimestampFrequency had a different type between D3D11 and other APIs
1 parent ae167bc commit 130d14a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/engine/Stride.Graphics/Direct3D11/GraphicsDevice.Direct3D11.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public unsafe partial class GraphicsDevice
8686
/// <summary>
8787
/// Gets the tick frquency of timestamp queries, in hertz.
8888
/// </summary>
89-
public ulong TimestampFrequency { get; private set; }
89+
public long TimestampFrequency { get; private set; }
9090

9191
/// <summary>
9292
/// Gets the current status of the Graphics Device.
@@ -152,7 +152,7 @@ public void Begin()
152152
else
153153
{
154154
// The query is ready, we can reuse it
155-
TimestampFrequency = queryResult.Frequency;
155+
TimestampFrequency = (long)queryResult.Frequency;
156156
currentDisjointQuery = disjointQueries.Dequeue();
157157
}
158158
}

0 commit comments

Comments
 (0)