瀏覽代碼

Cubemap array support (#649)

BaronKiko 7 年之前
父節點
當前提交
1b2e430e88
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs

+ 6 - 0
Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs

@@ -165,6 +165,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
                             data.Length,
                             data);
                         break;
+                    // Cube map arrays are just 2D texture arrays with 6 entries
+                    // per cube map so we can handle them in the same way
+                    case TextureTarget.TextureCubeMapArray:
                     case TextureTarget.Texture2DArray:
                         GL.CompressedTexImage3D(
                             target,
@@ -263,6 +266,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
                             type,
                             data);
                         break;
+                    // Cube map arrays are just 2D texture arrays with 6 entries
+                    // per cube map so we can handle them in the same way
+                    case TextureTarget.TextureCubeMapArray:
                     case TextureTarget.Texture2DArray:
                         GL.TexImage3D(
                             target,