We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240cfa1 commit f22c4c0Copy full SHA for f22c4c0
src/nbl/video/IGPUCommandBuffer.cpp
@@ -1995,7 +1995,7 @@ bool IGPUCommandBuffer::traceRaysIndirect(const asset::SBufferBinding<const IGPU
1995
return false;
1996
1997
https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysIndirect2KHR-indirectDeviceAddress-03633
1998
- if (sizeof(hlsl::TraceRaysIndirectCommand_t) + indirectBinding.offset > indirectBinding.buffer->getSize())
+ if (indirectBinding.offset + sizeof(hlsl::TraceRaysIndirectCommand_t) > indirectBinding.buffer->getSize())
1999
{
2000
NBL_LOG_ERROR("buffer size - offset must be at least the size of TraceRaysIndirectCommand_t!");
2001
0 commit comments