示例#1
0
 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);
     }
 }
示例#2
0
 internal bool IsFencePending()
 {
     return(!(this.m_Ptr == IntPtr.Zero) && this.m_Version == GPUFence.GetVersionNumber(this.m_Ptr));
 }