File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -736,14 +736,20 @@ bool IGPUCommandBuffer::invalidShaderGroups(
736
736
// https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html#VUID-vkCmdTraceRaysKHR-pRayGenShaderBindingTable-03689
737
737
if (range.offset % limits.shaderGroupBaseAlignment != 0 )
738
738
{
739
- NBL_LOG_ERROR (" %s buffer offset must be multiple of %u!" , limits.shaderGroupBaseAlignment );
739
+ NBL_LOG_ERROR (" %s buffer offset must be multiple of %u!" , groupName, limits.shaderGroupBaseAlignment );
740
740
return true ;
741
741
}
742
742
743
743
// https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html#VUID-vkCmdTraceRaysKHR-pHitShaderBindingTable-03690
744
744
if (stride % limits.shaderGroupHandleAlignment )
745
745
{
746
- NBL_LOG_ERROR (" %s buffer offset must be multiple of %u!" , limits.shaderGroupHandleAlignment );
746
+ NBL_LOG_ERROR (" %s buffer offset must be multiple of %u!" , groupName, limits.shaderGroupHandleAlignment );
747
+ return true ;
748
+ }
749
+
750
+ if (stride > limits.maxShaderGroupStride )
751
+ {
752
+ NBL_LOG_ERROR (" %s buffer stride must not exceed %u!" , groupName, limits.shaderGroupHandleAlignment );
747
753
return true ;
748
754
}
749
755
You can’t perform that action at this time.
0 commit comments