summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-10 05:53:48 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-10 05:53:48 +0000
commitb857f55a94aedb6ef27ed5dc48dc8aa0fb15667f (patch)
treedbb0fe74e568d247044a03ac54a2c757a7021f84 /Graphics/GraphicsEngineVulkan
parentFixed creation of typeless textures in D3D12 backend (diff)
downloadDiligentCore-b857f55a94aedb6ef27ed5dc48dc8aa0fb15667f.tar.gz
DiligentCore-b857f55a94aedb6ef27ed5dc48dc8aa0fb15667f.zip
Fixed rgba8_typeless texture creation in Vulkan
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp
index 4562a073..58e99eb5 100644
--- a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp
@@ -78,6 +78,8 @@ TextureVkImpl :: TextureVkImpl(IReferenceCounters* pRefCounters,
TEXTURE_VIEW_TYPE DefaultTexView;
if(m_Desc.BindFlags & BIND_DEPTH_STENCIL)
DefaultTexView = TEXTURE_VIEW_DEPTH_STENCIL;
+ else if (m_Desc.BindFlags & BIND_UNORDERED_ACCESS)
+ DefaultTexView = TEXTURE_VIEW_UNORDERED_ACCESS;
else if (m_Desc.BindFlags & BIND_RENDER_TARGET)
DefaultTexView = TEXTURE_VIEW_RENDER_TARGET;
else