mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
VideoBackends: add support for cube maps for OGL, Vulkan, and D3D
This commit is contained in:
parent
2764978beb
commit
e892b7f1ac
7 changed files with 81 additions and 24 deletions
|
@ -34,7 +34,9 @@ public:
|
|||
GLuint GetGLTextureId() const { return m_texId; }
|
||||
GLenum GetGLTarget() const
|
||||
{
|
||||
return IsMultisampled() ? GL_TEXTURE_2D_MULTISAMPLE_ARRAY : GL_TEXTURE_2D_ARRAY;
|
||||
return m_config.IsCubeMap() ? GL_TEXTURE_CUBE_MAP :
|
||||
IsMultisampled() ? GL_TEXTURE_2D_MULTISAMPLE_ARRAY :
|
||||
GL_TEXTURE_2D_ARRAY;
|
||||
}
|
||||
static GLenum GetGLInternalFormatForTextureFormat(AbstractTextureFormat format, bool storage);
|
||||
GLenum GetGLFormatForImageTexture() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue