Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GraphicsDeviceStatus

unsafe GraphicsDeviceStatus Microsoft.Xna.Framework.Graphics.GraphicsDevice.GraphicsDeviceStatus
get

Definition at line 342 of file GraphicsDevice.cs.

343 {
344 get
345 {
346 IntPtr intPtr = (IntPtr)pComPtr;
347 Helpers.CheckDisposed(this, intPtr);
348 IDirect3DDevice9* intPtr2 = pComPtr;
349 int num = ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, int>)(int)(*(uint*)(*(int*)intPtr2 + 12)))((nint)intPtr2);
350 if (num < 0)
351 {
352 return num switch
353 {
354 -2005530519 => GraphicsDeviceStatus.NotReset,
355 -2005530520 => GraphicsDeviceStatus.Lost,
356 _ => throw GraphicsHelpers.GetExceptionFromResult((uint)num),
357 };
358 }
359 return GraphicsDeviceStatus.Normal;
360 }
361 }