Vulkan-ValidationLayers icon indicating copy to clipboard operation
Vulkan-ValidationLayers copied to clipboard

vkUpdateDescriptorSetWithTemplate missing validation on Acceleration structure descriptor information

Open MarkY-LunarG opened this issue 1 year ago • 2 comments

I created a sample in a fork of Sascha Willem's Vulkan samples and modified the RayTracingReflections sample to use Descriptor templates. When I did this, I was not passing in the acceleration structure data correctly, and validation did not throw any error.s. The new sample is called raytracingreflectionsdesctemplates.

To reproduce, download the source, and modify the file examples/raytracingreflectionsdesctemplates/raytracingreflectionsdesctemplates.cpp so that the following line is garbage instead of being set to topLevelAS.handle.

descriptorUpdateData.acceleration = topLevelAS.handle;

This should produce an error that the handle isn't valid. I'm not sure what the VUID should be (sorry).

MarkY-LunarG avatar Feb 07 '24 17:02 MarkY-LunarG