nvpro-samples / vk_raytracing_tutorial_KHR

Ray tracing examples and tutorials using VK_KHR_ray_tracing
Apache License 2.0
1.36k stars 143 forks source link

Ask for a help! #9

Closed HsiangYangChu closed 4 years ago

HsiangYangChu commented 4 years ago

I got a result like that:

[gfxrecon] ERROR - CmdBuildAccelerationStructureKHR encoding is not supported
ERROR: VUID-vkCmdBuildAccelerationStructureKHR-commandBuffer-parameter
 --> Validation Error: [ VUID-vkCmdBuildAccelerationStructureKHR-commandBuffer-parameter ] Object 0: handle = 0x1f733928b50, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x1922f32 | Invalid VkCommandBuffer Object 0x1f746a5be90. The Vulkan spec states: commandBuffer must be a valid VkCommandBuffer handle (https://vulkan.lunarg.com/doc/view/1.2.148.0/windows/1.2-extensions/vkspec.html#VUID-vkCmdBuildAccelerationStructureKHR-commandBuffer-parameter)
 Object[0] - Type Instance, Value 000001F733928B50, Name "(null)"
ERROR: VUID-VkAccelerationStructureBuildGeometryInfoKHR-dstAccelerationStructure-parameter
 --> Validation Error: [ VUID-VkAccelerationStructureBuildGeometryInfoKHR-dstAccelerationStructure-parameter ] Object 0: handle = 0x1f733928b50, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x45e8716f | Invalid VkAccelerationStructureKHR Object 0x1f744948b90. The Vulkan spec states: dstAccelerationStructure must be a valid VkAccelerationStructureKHR handle (https://vulkan.lunarg.com/doc/view/1.2.148.0/windows/1.2-extensions/vkspec.html#VUID-VkAccelerationStructureBuildGeometryInfoKHR-dstAccelerationStructure-parameter)
 Object[0] - Type Instance, Value 000001F733928B50, Name "(null)"

and what I have known is that the bug exists in the 228 lines of the "raytraceKHR_vk.hpp"! Could you provide some assistance to me? Best regards!

mklefrancois commented 4 years ago

I cannot tell why the commandBuffer is not a valid VkCommandBuffer handle, something else somewhere must have corrupted the memory. This code is from the shared_sources, used by many other samples. All other samples should also failed.

Make sure the other Git repository are updated: shared_sources, shared_external Update the driver: https://developer.nvidia.com/vulkan-driver Fully recompile

HsiangYangChu commented 4 years ago

Thank you! I will have a try.:)

Sent from my iPhone

On Aug 19, 2020, at 11:10 PM, Martin-Karl Lefrançois notifications@github.com wrote:

 I cannot tell why the commandBuffer is not a valid VkCommandBuffer handle, something else somewhere must have corrupted the memory. This code is from the shared_sources, used by many other samples. All other samples should also failed.

Make sure the other Git repository are updated: shared_sources, shared_external Update the driver: https://developer.nvidia.com/vulkan-driver Fully recompile

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.