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

◆ ReleaseNativeObject()

unsafe void Microsoft.Xna.Framework.Graphics.RenderTargetHelper.ReleaseNativeObject ( )
inlinepackage

Definition at line 61 of file RenderTargetHelper.cs.

62 {
63 IDirect3DSurface9* ptr = pRenderTargetSurface;
64 if (ptr != null)
65 {
66 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr + 8)))((nint)ptr);
68 }
69 IDirect3DSurface9* ptr2 = pDepthSurface;
70 if (ptr2 != null)
71 {
72 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr2 + 8)))((nint)ptr2);
73 pDepthSurface = null;
74 }
75 }

References Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pDepthSurface, and Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pRenderTargetSurface.

Referenced by Microsoft.Xna.Framework.Graphics.RenderTargetHelper._0021RenderTargetHelper(), Microsoft.Xna.Framework.Graphics.RenderTargetHelper._007ERenderTargetHelper(), Microsoft.Xna.Framework.Graphics.RenderTargetHelper.Dispose(), Microsoft.Xna.Framework.Graphics.RenderTarget2D.ReleaseNativeObject(), and Microsoft.Xna.Framework.Graphics.RenderTargetCube.ReleaseNativeObject().