Browse Source

Disable vulkan device buffer address when RT is off

Panagiotis Christopoulos Charitos 5 years ago
parent
commit
7c89f2340e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/anki/gr/vulkan/GrManagerImpl.cpp

+ 2 - 1
src/anki/gr/vulkan/GrManagerImpl.cpp

@@ -561,7 +561,8 @@ Error GrManagerImpl::initDevice(const GrManagerInitInfo& init)
 			ci.pNext = &m_descriptorIndexingFeatures;
 		}
 
-		// Enable the buffer address features required
+		// Enable the buffer address only with ray tracing ATM
+		if(!!(m_extensions & VulkanExtensions::KHR_RAY_TRACING))
 		{
 			m_bufferDeviceAddressFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES;