mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
use GL_TEXTURE_2D_ARRAY for most of our textures
This commit is contained in:
parent
60e9301f40
commit
6670cacddc
7 changed files with 86 additions and 69 deletions
|
@ -47,13 +47,14 @@ namespace OGL
|
|||
|
||||
struct XFBSource : public XFBSourceBase
|
||||
{
|
||||
XFBSource(GLuint tex) : texture(tex) {}
|
||||
XFBSource(GLuint tex, int layers) : texture(tex), m_layers(layers) {}
|
||||
~XFBSource();
|
||||
|
||||
void CopyEFB(float Gamma) override;
|
||||
void DecodeToTexture(u32 xfbAddr, u32 fbWidth, u32 fbHeight) override;
|
||||
|
||||
const GLuint texture;
|
||||
const int m_layers;
|
||||
};
|
||||
|
||||
class FramebufferManager : public FramebufferManagerBase
|
||||
|
@ -100,6 +101,7 @@ private:
|
|||
static int m_msaaSamples;
|
||||
|
||||
static GLenum m_textureType;
|
||||
static int m_EFBLayers;
|
||||
|
||||
static GLuint m_efbFramebuffer;
|
||||
static GLuint m_xfbFramebuffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue