mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 02:59:00 +00:00
VideoBackends: add support for cube maps for OGL, Vulkan, and D3D
This commit is contained in:
parent
a00c97f0d8
commit
805a8b5fa0
7 changed files with 81 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue