summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-12-09 19:00:11 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2023-12-15 11:06:02 -0600
commit12dd15c8ddb587e2f76351b59e0097940061485b (patch)
tree0a0ba100b4b60b208ee5dfbeceeb73d6d990bb90 /Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp
parent370474a7cbec12c9647b155f9d7cc4409c438df8 (diff)
VideoBackends / VideoCommon: add type enum to dictate whether a texture is a 2D texture, a texture array, or a cube map; support 2D texture type across backends
Co-authored-by: TellowKrinkle <tellowkrinkle@gmail.com>
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp b/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp
index 48102df64d..58e2e439e8 100644
--- a/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp
@@ -428,8 +428,9 @@ bool SwapChain::SetupSwapChainImages()
images.data());
ASSERT(res == VK_SUCCESS);
- const TextureConfig texture_config(TextureConfig(
- m_width, m_height, 1, m_layers, 1, m_texture_format, AbstractTextureFlag_RenderTarget));
+ const TextureConfig texture_config(
+ TextureConfig(m_width, m_height, 1, m_layers, 1, m_texture_format,
+ AbstractTextureFlag_RenderTarget, AbstractTextureType::Texture_2DArray));
const VkRenderPass load_render_pass = g_object_cache->GetRenderPass(
m_surface_format.format, VK_FORMAT_UNDEFINED, 1, VK_ATTACHMENT_LOAD_OP_LOAD);
const VkRenderPass clear_render_pass = g_object_cache->GetRenderPass(