diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-07-04 01:49:34 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-07-04 01:49:34 +0000 |
| commit | bcce631cc2e47702b5855af164fe24a0562e67ad (patch) | |
| tree | 21069aeab92aca686fa26726217e2ddf370c869b /Graphics/GraphicsEngineVulkan | |
| parent | Fixed DeviceContextVkImpl::CommitRenderPassAndFramebuffer() to check if frame... (diff) | |
| download | DiligentCore-bcce631cc2e47702b5855af164fe24a0562e67ad.tar.gz DiligentCore-bcce631cc2e47702b5855af164fe24a0562e67ad.zip | |
Enabled vertexPipelineStoresAndAtomics and fragmentStoresAndAtomics device features
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/RenderDeviceFactoryVk.cpp | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceFactoryVk.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceFactoryVk.cpp index 68367d72..0edb78ac 100644 --- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceFactoryVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceFactoryVk.cpp @@ -161,6 +161,8 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk( const EngineVkAttribs& Crea DeviceFeatures.multiViewport = VK_TRUE; DeviceFeatures.imageCubeArray = VK_TRUE; DeviceFeatures.textureCompressionBC = VK_TRUE; + DeviceFeatures.vertexPipelineStoresAndAtomics = VK_TRUE; + DeviceFeatures.fragmentStoresAndAtomics = VK_TRUE; DeviceCreateInfo.pEnabledFeatures = &DeviceFeatures; // NULL or a pointer to a VkPhysicalDeviceFeatures structure that contains // boolean indicators of all the features to be enabled. diff --git a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp index 5ec367eb..1695d7eb 100644 --- a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp @@ -606,7 +606,7 @@ VulkanUtilities::ImageViewWrapper TextureVkImpl::CreateImageView(TextureViewDesc ImageViewCI.viewType = VK_IMAGE_VIEW_TYPE_3D; if (ViewDesc.FirstDepthSlice != 0 || ViewDesc.NumDepthSlices != m_Desc.Depth) { - LOG_ERROR_MESSAGE("In Vulkan SRVs and UAVs of a 3D texture must reference all depth slices."); + LOG_ERROR_MESSAGE("3D texture views in Vulkan must address all depth slices."); ViewDesc.FirstDepthSlice = 0; ViewDesc.NumDepthSlices = m_Desc.Depth; } |
