diharaw / hybrid-rendering

A Vulkan sample that demonstrates a Rasterization and Ray Tracing Hybrid Rendering Pipeline.
MIT License
821 stars 47 forks source link

Vulkan validation error on debug build? #17

Open yhyu13 opened 1 year ago

yhyu13 commented 1 year ago

Hi,

I am having the following error on when launching the released app

[ 01:19:12 | ERROR   ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdBuildAccelerationStructuresKHR-pInfos-03710 ] Object 0: handle = 0x2651808f510, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x63ff8904 | vkCmdBuildAccelerationStructuresKHR:For each element of pInfos, its scratchData.deviceAddress member must be a multiple of VkPhysicalDeviceAccelerationStructurePropertiesKHR::minAccelerationStructureScratchOffsetAlignment. The Vulkan spec states: For each element of pInfos, its scratchData.deviceAddress member must be a multiple of VkPhysicalDeviceAccelerationStructurePropertiesKHR::minAccelerationStructureScratchOffsetAlignment (https://vulkan.lunarg.com/doc/view/1.3.216.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdBuildAccelerationStructuresKHR-pInfos-03710) , FILE : vk.cpp , LINE : 156

Vulkan sdk version 1.3.216.0 Win10 AMD 6900xt

diharaw commented 1 year ago

Hi, the sample doesn't run on AMD GPUs as I didn't have access to one back when I developed it. There might be more validation errors now because of newer Vulkan SDKs.

Unfortunately I do not have time to work on this sample any longer. Feel free to send me a PR if you manage to fix the issue.

yhyu13 commented 1 year ago

Sure thing, will try

What was the Vulkan SDK version at the time your were developing this program, if you still have that in mind?