Vulkan-ValidationLayers
Vulkan-ValidationLayers copied to clipboard
vkUpdateDescriptorSetWithTemplate missing validation on Acceleration structure descriptor information
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).