KhronosGroup / SPIRV-Cross

SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.
Apache License 2.0
1.96k stars 549 forks source link

MSL: Fixes for constexpr sampler use with argument buffers. #2339

Closed billhollings closed 1 week ago

billhollings commented 2 weeks ago

Constexpr samplers are defined as local variables, but were treated as held within an argument buffer.

I experimented with a unit test, but couldn't figure out how to add the ability to define a constexpr sampler into the API in a straightforward manner.