diff options
Diffstat (limited to 'tools/gfx/vulkan/vk-command-encoder.cpp')
| -rw-r--r-- | tools/gfx/vulkan/vk-command-encoder.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/gfx/vulkan/vk-command-encoder.cpp b/tools/gfx/vulkan/vk-command-encoder.cpp index 568b49179..7f3110ea5 100644 --- a/tools/gfx/vulkan/vk-command-encoder.cpp +++ b/tools/gfx/vulkan/vk-command-encoder.cpp @@ -1480,11 +1480,10 @@ Result RayTracingCommandEncoder::dispatchRays( hitSBT.stride = alignedHandleSize; hitSBT.size = shaderTableImpl->m_hitTableSize; - // TODO: Are callable shaders needed? VkStridedDeviceAddressRegionKHR callableSBT; - callableSBT.deviceAddress = 0; - callableSBT.stride = 0; - callableSBT.size = 0; + callableSBT.deviceAddress = hitSBT.deviceAddress + hitSBT.size; + callableSBT.stride = alignedHandleSize; + callableSBT.size = shaderTableImpl->m_callableTableSize; vkApi.vkCmdTraceRaysKHR( vkCommandBuffer, |
