hybrid-rendering icon indicating copy to clipboard operation
hybrid-rendering copied to clipboard

Vulkan validation error on debug build?

Open yhyu13 opened this issue 2 years ago • 2 comments

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

yhyu13 avatar Oct 28 '23 17:10 yhyu13

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.

diharaw avatar Oct 28 '23 17:10 diharaw

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?

yhyu13 avatar Oct 30 '23 02:10 yhyu13