internal void InitPostAllocation()
        {
            bool flag = this.m_Ptr == IntPtr.Zero;

            if (flag)
            {
                bool supportsGraphicsFence = SystemInfo.supportsGraphicsFence;
                if (supportsGraphicsFence)
                {
                    throw new NullReferenceException("The internal fence ptr is null, this should not be possible for fences that have been correctly constructed using Graphics.CreateGraphicsFence() or CommandBuffer.CreateGraphicsFence()");
                }
                this.m_Version = this.GetPlatformNotSupportedVersion();
            }
            else
            {
                this.m_Version = GraphicsFence.GetVersionNumber(this.m_Ptr);
            }
        }
        internal bool IsFencePending()
        {
            bool flag = this.m_Ptr == IntPtr.Zero;

            return(!flag && this.m_Version == GraphicsFence.GetVersionNumber(this.m_Ptr));
        }