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

◆ IsDeviceLost

unsafe bool Microsoft.Xna.Framework.Graphics.GraphicsDevice.IsDeviceLost
getpackage

Definition at line 149 of file GraphicsDevice.cs.

150 {
151 [return: MarshalAs(UnmanagedType.U1)]
152 get
153 {
154 IDirect3DDevice9* ptr = pComPtr;
155 if (ptr == null)
156 {
157 return true;
158 }
159 int num = ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, int>)(int)(*(uint*)(*(int*)ptr + 12)))((nint)ptr);
160 int num2 = ((num == -2005530520 || num == -2005530519) ? 1 : 0);
161 return (byte)num2 != 0;
162 }
163 }

Referenced by Microsoft.Xna.Framework.Graphics.TextureCube.CopyData< T >(), Microsoft.Xna.Framework.Graphics.Texture2D.CopyData< T >(), Microsoft.Xna.Framework.Graphics.VertexBuffer.CopyData< T >(), and Microsoft.Xna.Framework.Graphics.IndexBuffer.CopyData< T >().