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

◆ IsComplete

unsafe bool Microsoft.Xna.Framework.Graphics.OcclusionQuery.IsComplete
get

Definition at line 34 of file OcclusionQuery.cs.

35 {
36 [return: MarshalAs(UnmanagedType.U1)]
37 get
38 {
40 IDirect3DQuery9* ptr = pComPtr;
41 if (ptr == null)
42 {
43 return false;
44 }
45 if (!_hasCalledBegin)
46 {
47 return false;
48 }
49 System.Runtime.CompilerServices.Unsafe.SkipInit(out uint pixelCount);
50 byte b = ((((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, void*, uint, uint, int>)(int)(*(uint*)(*(int*)ptr + 28)))((nint)ptr, &pixelCount, 4u, 1u) == 0) ? ((byte)1) : ((byte)0));
51 _isAvailable = b != 0;
52 if (b != 0)
53 {
54 _pixelCount = (int)pixelCount;
55 }
56 return b != 0;
57 }
58 }