Hi there,
I’m following the VkRay tutorials (VkRayTutorials-25259758-v2.zip)… and there seem to be some issues that have carried over to the tutorials found here: NVIDIA Vulkan Ray Tracing Tutorial | NVIDIA Developer
I’m getting the following SPIR-V validation error:
ERROR: [Validation] Code 0 : [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object: VK_NULL_HANDLE (Type = 0) | SPIR-V module not valid: UniformConstant id '73' is missing DescriptorSet decoration.
From Vulkan spec, section 14.5.2:
These variables must have DescriptorSet and Binding decorations specified
%73 = OpVariable %_ptr_UniformConstant_71 UniformConstant
Seems to be around the call to traceNV(). The new tutorials seem to have similar a issue:
[vulkan] ObjectType: 0
Message: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object: VK_NULL_HANDLE (Type = 0) | SPIR-V module not valid: UniformConstant id '359' is missing DescriptorSet decoration.
From Vulkan spec, section 14.5.2:
These variables must have DescriptorSet and Binding decorations specified
%topLevelAS = OpVariable %_ptr_UniformConstant_357 UniformConstant
I’m using Vulkan SDK 1.1.97.0. I understand that this is not a showstopper but it would be great if the validation layer came back with a clean bill of health. Also, I’ve noticed that the tutorial is not requesting VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME
and VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME instance and device extensions. Requesting those definitely reduce a lot of errors for me.
Hopefully these are of some use to resolving the issues. If there’s a GitHub version of the tutorials that I’m missing, a link would be highly appreciated.
Much thanks,
Baktash.