File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1917,6 +1917,9 @@ bool IGPUCommandBuffer::traceRays(
1917
1917
if (!checkStateBeforeRecording (queue_flags_t ::COMPUTE_BIT,RENDERPASS_SCOPE::OUTSIDE))
1918
1918
return false ;
1919
1919
1920
+ // https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-width-03638
1921
+ // https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-height-03639
1922
+ // https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-depth-03640
1920
1923
const auto & limits = getOriginDevice ()->getPhysicalDevice ()->getLimits ();
1921
1924
const auto maxWidth = limits.maxComputeWorkGroupCount [0 ] * limits.maxWorkgroupSize [0 ];
1922
1925
const auto maxHeight = limits.maxComputeWorkGroupCount [1 ] * limits.maxWorkgroupSize [1 ];
@@ -1927,6 +1930,7 @@ bool IGPUCommandBuffer::traceRays(
1927
1930
return false ;
1928
1931
}
1929
1932
1933
+ // https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-width-03641
1930
1934
const auto invocationCount = width * height * depth;
1931
1935
if (invocationCount > limits.maxRayDispatchInvocationCount )
1932
1936
{
You can’t perform that action at this time.
0 commit comments