mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-10 13:43:17 +02:00
Cubemap array support (#649)
This commit is contained in:
parent
efebd8f94d
commit
1b2e430e88
@ -165,6 +165,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||||||
data.Length,
|
data.Length,
|
||||||
data);
|
data);
|
||||||
break;
|
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:
|
case TextureTarget.Texture2DArray:
|
||||||
GL.CompressedTexImage3D(
|
GL.CompressedTexImage3D(
|
||||||
target,
|
target,
|
||||||
@ -263,6 +266,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||||||
type,
|
type,
|
||||||
data);
|
data);
|
||||||
break;
|
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:
|
case TextureTarget.Texture2DArray:
|
||||||
GL.TexImage3D(
|
GL.TexImage3D(
|
||||||
target,
|
target,
|
||||||
|
Loading…
Reference in New Issue
Block a user