From bcce631cc2e47702b5855af164fe24a0562e67ad Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 3 Jul 2018 18:49:34 -0700 Subject: Enabled vertexPipelineStoresAndAtomics and fragmentStoresAndAtomics device features --- Graphics/GraphicsEngineVulkan/src/RenderDeviceFactoryVk.cpp | 2 ++ Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineVulkan') 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; } -- cgit v1.2.3