diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-10 05:53:48 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-10 05:53:48 +0000 |
| commit | b857f55a94aedb6ef27ed5dc48dc8aa0fb15667f (patch) | |
| tree | dbb0fe74e568d247044a03ac54a2c757a7021f84 /Graphics/GraphicsEngineVulkan | |
| parent | Fixed creation of typeless textures in D3D12 backend (diff) | |
| download | DiligentCore-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.cpp | 2 |
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 |
