internal void InitPostAllocation() { if (this.m_Ptr == IntPtr.Zero) { if (SystemInfo.supportsGPUFence) { throw new NullReferenceException("The internal fence ptr is null, this should not be possible for fences that have been correctly constructed using Graphics.CreateGPUFence() or CommandBuffer.CreateGPUFence()"); } this.m_Version = this.GetPlatformNotSupportedVersion(); } else { this.m_Version = GPUFence.GetVersionNumber(this.m_Ptr); } }
internal bool IsFencePending() { return(!(this.m_Ptr == IntPtr.Zero) && this.m_Version == GPUFence.GetVersionNumber(this.m_Ptr)); }