KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.34k stars 648 forks source link

Resolve a validation layer performance warning in lighting_subpass. #881

Closed asuessenbach closed 9 months ago

asuessenbach commented 10 months ago

Description

When running Performance sample subpasses, you get this validation layer performance warning: Validation Performance Warning: [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object 0: handle = 0xed17b30000000147, name = deferred/lighting.vert [variant 7903914A063B4F1D] [entrypoint main], type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0x609a13b | vkCreateGraphicsPipelines(): pCreateInfos[0].pVertexInputState Vertex attribute at location 0 not consumed by vertex shader. Explicitly resetting the vertex input state resolves it.

Build tested on Win10 with VS2022. Run tested on Win10 with NVidia GPU.

General Checklist:

Please ensure the following points are checked:

Sample Checklist

If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist: