File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -969,6 +969,27 @@ bool ILogicalDevice::createRayTracingPipelines(IGPUPipelineCache* const pipeline
969
969
return false ;
970
970
}
971
971
972
+ if (!features.rayTraversalPrimitiveCulling )
973
+ {
974
+ for (const auto & param : params)
975
+ {
976
+ // https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#VUID-VkRayTracingPipelineCreateInfoKHR-rayTraversalPrimitiveCulling-03596
977
+ if (param.flags & IGPURayTracingPipeline::SCreationParams::FLAGS::SKIP_AABBS)
978
+ {
979
+ NBL_LOG_ERROR (" Feature `rayTraversalPrimitiveCulling` is not enabled when pipeline is created with SKIP_AABBS" );
980
+ return false ;
981
+ }
982
+
983
+ // https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#VUID-VkRayTracingPipelineCreateInfoKHR-rayTraversalPrimitiveCulling-03597
984
+ if (param.flags & IGPURayTracingPipeline::SCreationParams::FLAGS::SKIP_BUILT_IN_PRIMITIVES)
985
+ {
986
+ NBL_LOG_ERROR (" Feature `rayTraversalPrimitiveCulling` is not enabled when pipeline is created with SKIP_BUILT_IN_PRIMITIVES" );
987
+ return false ;
988
+ }
989
+
990
+ }
991
+ }
992
+
972
993
const auto & limits = getPhysicalDeviceLimits ();
973
994
for (const auto & param : params)
974
995
{
You can’t perform that action at this time.
0 commit comments