Cubemap array support

This commit is contained in:
Andy Adshead 2019-03-14 22:09:56 +00:00
parent 1bef70c068
commit ba0b991aac

View file

@ -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,