summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2023-08-10 18:36:48 -0400
committerGitHub <noreply@github.com>2023-08-10 18:36:48 -0400
commit5512d19d4b66af1f7738cf5df9744e01364ffb11 (patch)
tree6a9d958c1306b2d937bea595865f7f2d1896f438 /Source/Core/VideoCommon
parent032c77b462a220016f23c5079e71bb23e0ad2adf (diff)
parente892b7f1ac426fdc8a3ac1fa28026b86cc06279b (diff)
Merge pull request #12061 from iwubcode/cubemap_backends_only
VideoBackends: add support for cube maps for OGL, Vulkan, and D3D
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/TextureConfig.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureConfig.h b/Source/Core/VideoCommon/TextureConfig.h
index c076ff85c0..75d7387f17 100644
--- a/Source/Core/VideoCommon/TextureConfig.h
+++ b/Source/Core/VideoCommon/TextureConfig.h
@@ -39,6 +39,7 @@ enum AbstractTextureFlag : u32
{
AbstractTextureFlag_RenderTarget = (1 << 0), // Texture is used as a framebuffer.
AbstractTextureFlag_ComputeImage = (1 << 1), // Texture is used as a compute image.
+ AbstractTextureFlag_CubeMap = (1 << 2), // Texture is used as a cube map.
};
struct TextureConfig
@@ -61,6 +62,7 @@ struct TextureConfig
bool IsMultisampled() const { return samples > 1; }
bool IsRenderTarget() const { return (flags & AbstractTextureFlag_RenderTarget) != 0; }
bool IsComputeImage() const { return (flags & AbstractTextureFlag_ComputeImage) != 0; }
+ bool IsCubeMap() const { return (flags & AbstractTextureFlag_CubeMap) != 0; }
u32 width = 0;
u32 height = 0;