KhronosGroup / SPIRV-Reflect

SPIRV-Reflect is a lightweight library that provides a C/C++ reflection API for SPIR-V shader bytecode in Vulkan applications.
Apache License 2.0
672 stars 147 forks source link

Fix SpvReflectEntryPoint::output_vertices being stomped by other execution modes #256

Closed handsomematt closed 5 months ago

handsomematt commented 5 months ago

These execution modes set and stomp output_vertices with invalid data since they have no extra operands.

[4]  OpExecutionMode %2 OutputVertices 128
[5]  OpExecutionMode %2 Invocations 1
[6]  OpExecutionMode %2 InputPoints

With this SPIRV generated by DXC InputPoints would stomp the OutputVertices value to a non-existent value

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.