@@ -81,7 +81,7 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
81
81
m_limits.maxResidentInvocations = beefyGPUWorkgroupMaxOccupancy*m_limits.maxOptimallyResidentWorkgroupInvocations ;
82
82
83
83
m_limits.spirvVersion = asset::IGLSLCompiler::ESV_1_3;
84
- # if 0
84
+
85
85
switch (VK_API_VERSION_MINOR (deviceProperties.properties .apiVersion ))
86
86
{
87
87
case 0 :
@@ -94,7 +94,6 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
94
94
_NBL_DEBUG_BREAK_IF (" Invalid Vulkan minor version!" );
95
95
break ;
96
96
}
97
- #endif
98
97
99
98
// AccelerationStructure
100
99
if (m_availableFeatureSet.find (VK_KHR_ACCELERATION_STRUCTURE_EXTENSION_NAME) != m_availableFeatureSet.end ())
@@ -221,7 +220,8 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
221
220
}
222
221
223
222
std::ostringstream pool;
224
- addCommonGLSLDefines (pool,false /* TODO: @achal detect if RenderDoc is running*/ );
223
+ bool runningRDoc = (m_rdoc_api != nullptr );
224
+ addCommonGLSLDefines (pool,runningRDoc);
225
225
finalizeGLSLDefinePool (std::move (pool));
226
226
}
227
227
@@ -347,11 +347,11 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
347
347
if (!insertFeatureIfAvailable (params.optionalFeatures [i], selectedFeatureSet))
348
348
continue ;
349
349
}
350
-
351
- if (selectedFeatureSet.find (VK_KHR_SPIRV_1_4_EXTENSION_NAME) != selectedFeatureSet.end ()
352
- && (m_limits.spirvVersion < asset::IGLSLCompiler::ESV_1_4))
350
+
351
+ if (m_availableFeatureSet.find (VK_KHR_SPIRV_1_4_EXTENSION_NAME) != m_availableFeatureSet.end () && (m_limits.spirvVersion < asset::IGLSLCompiler::ESV_1_4))
353
352
{
354
353
m_limits.spirvVersion = asset::IGLSLCompiler::ESV_1_4;
354
+ selectedFeatureSet.insert (VK_KHR_SPIRV_1_4_EXTENSION_NAME);
355
355
}
356
356
357
357
core::vector<const char *> selectedFeatures (selectedFeatureSet.size ());
0 commit comments