Description
Vertex attributes can still be optimized away when using -fspv-preserve-interface
Steps to Reproduce
A function unrelated to the stage input was refactored from
fn(uint offset) to fn(ByteAddressBuffer buffer, uint offset). Calling this function causes attributes to be optimized away.
It's better demonstrated by this snippet: https://godbolt.org/z/fW5K7rYsx
Description
Vertex attributes can still be optimized away when using
-fspv-preserve-interfaceSteps to Reproduce
A function unrelated to the stage input was refactored from
fn(uint offset)tofn(ByteAddressBuffer buffer, uint offset). Calling this function causes attributes to be optimized away.It's better demonstrated by this snippet: https://godbolt.org/z/fW5K7rYsx