Пример #1
0
        public bool TestDevice()
        {
            bool result = false;

            SharpDX.Result hr = SharpDX.Result.Fail;
            if (device != null)
            {
                hr = device.TestCooperativeLevel();
            }

            result = (texture2D11 != null && !texture2D11.IsDisposed) && hr.Success && (surface?.NativePointer != IntPtr.Zero);

            return(result);
        }