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

Small validation warning about DrawParameters

Open lmichaudel opened this issue 6 months ago • 1 comments

When you run the attachment around the "draw one triangle part" (Haven't tried to pinpoint it exactly, but I can do it if needed) you will be prompted this :

vkCreateShaderModule(): SPIR-V Capability DrawParameters was declared, but one of the following requirements is required (VkPhysicalDeviceVulkan11Features::shaderDrawParameters OR VK_KHR_shader_draw_parameters).

The Vulkan spec states: If pCode is a pointer to SPIR-V code, and pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://docs.vulkan.org/spec/latest/chapters/shaders.html#VUID-VkShaderModuleCreateInfo-pCode-08740)

The shader uses SV_VertexID but vk::KHRShaderDrawParametersExtensionName is not appearing in the requiredExtensions vector.

lmichaudel avatar Jul 19 '25 21:07 lmichaudel

This is related to the baseline requirements when using Slang. We'll fix that.

SaschaWillems avatar Aug 10 '25 15:08 SaschaWillems