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
685 stars 148 forks source link

Add AccessedVariable struct and logic #238

Closed spencer-lunarg closed 10 months ago

spencer-lunarg commented 11 months ago

for both https://github.com/KhronosGroup/SPIRV-Reflect/pull/224/ and https://github.com/KhronosGroup/SPIRV-Reflect/pull/226 there is a need to get the underlying mapping between an access (ex OpLoad) and the OpVariable it touched

Currently we just tracked the uint32_t in order to sett the accessed boolean

This creates the ground work the for SpvReflectPrvAccessedVariable to store this logic