Skip to content

Small validation warning about DrawParameters #102

@lmichaudel

Description

@lmichaudel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions