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

◆ Begin()

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

Definition at line 111 of file OcclusionQuery.cs.

112 {
114 {
115 throw new InvalidOperationException(FrameworkResources.EndMustBeCalledBeforeBegin);
116 }
118 {
119 throw new InvalidOperationException(FrameworkResources.IsCompleteMustBeCalled);
120 }
121 IDirect3DQuery9* ptr = pComPtr;
122 int num = ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint, int>)(int)(*(uint*)(*(int*)ptr + 24)))((nint)ptr, 2u);
123 if (num < 0)
124 {
125 throw GraphicsHelpers.GetExceptionFromResult((uint)num);
126 }
127 _isAvailable = false;
128 _isInBeginEndPair = true;
129 _hasCalledBegin = true;
131 }

References Microsoft.Xna.Framework.Graphics.OcclusionQuery._hasCalledBegin, Microsoft.Xna.Framework.Graphics.OcclusionQuery._hasIsCompleteBeenQueried, Microsoft.Xna.Framework.Graphics.OcclusionQuery._isAvailable, Microsoft.Xna.Framework.Graphics.OcclusionQuery._isInBeginEndPair, Microsoft.Xna.Framework.FrameworkResources.EndMustBeCalledBeforeBegin, Microsoft.Xna.Framework.Graphics.GraphicsHelpers.GetExceptionFromResult(), Microsoft.Xna.Framework.FrameworkResources.IsCompleteMustBeCalled, and Microsoft.Xna.Framework.Graphics.OcclusionQuery.pComPtr.