From e25b7c9848b6ec486eb513297b5c536857665c7f Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 5 Dec 2019 17:34:47 -0300 Subject: Initial support for the guest OpenGL driver (NVIDIA and Nouveau) --- Ryujinx.Graphics.GAL/Texture/TextureCreateInfo.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Ryujinx.Graphics.GAL/Texture') diff --git a/Ryujinx.Graphics.GAL/Texture/TextureCreateInfo.cs b/Ryujinx.Graphics.GAL/Texture/TextureCreateInfo.cs index ad365f6b..c6a73d91 100644 --- a/Ryujinx.Graphics.GAL/Texture/TextureCreateInfo.cs +++ b/Ryujinx.Graphics.GAL/Texture/TextureCreateInfo.cs @@ -66,6 +66,11 @@ namespace Ryujinx.Graphics.GAL.Texture return GetMipStride(level) * GetLevelHeight(level) * GetLevelDepth(level); } + public int GetMipSize2D(int level) + { + return GetMipStride(level) * GetLevelHeight(level); + } + public int GetMipStride(int level) { return BitUtils.AlignUp(GetLevelWidth(level) * BytesPerPixel, 4); -- cgit v1.2.3