Exemplo n.º 1
0
        /// <summary>
        /// Gets the description of the buffers in the TextureSwapChain
        /// </summary>
        /// <param name="textureSwapChainDescription">Returns the description of the specified chain.</param>
        /// <returns>Returns an ovrResult for which the return code is negative upon error. </returns>
        public Result GetDescription(out TextureSwapChainDesc textureSwapChainDescription)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException("TextureSwapChain");
            }

            TextureSwapChainDesc textureSwapChainDesc = new TextureSwapChainDesc();

            Result result = _ovr.GetTextureSwapChainDesc(_sessionPtr, TextureSwapChainPtr, ref textureSwapChainDesc);

            textureSwapChainDescription = textureSwapChainDesc;

            return(result);
        }