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

◆ End()

unsafe void Microsoft.Xna.Framework.Graphics.OcclusionQuery.End ( )
inline

Definition at line 133 of file OcclusionQuery.cs.

134 {
136 {
137 throw new InvalidOperationException(FrameworkResources.BeginMustBeCalledBeforeEnd);
138 }
139 IDirect3DQuery9* ptr = pComPtr;
140 int num = ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint, int>)(int)(*(uint*)(*(int*)ptr + 24)))((nint)ptr, 1u);
141 if (num < 0)
142 {
143 throw GraphicsHelpers.GetExceptionFromResult((uint)num);
144 }
145 _isInBeginEndPair = false;
146 }

References Microsoft.Xna.Framework.Graphics.OcclusionQuery._isInBeginEndPair, Microsoft.Xna.Framework.FrameworkResources.BeginMustBeCalledBeforeEnd, Microsoft.Xna.Framework.Graphics.GraphicsHelpers.GetExceptionFromResult(), and Microsoft.Xna.Framework.Graphics.OcclusionQuery.pComPtr.