Closed spencer-lunarg closed 1 year ago
VS is complaining about shadowing in a few places:
spirv_reflect.c(3507,19): error C2220: the following warning is treated as an error [D:\a\SPIRV-Reflect\SPIRV-Reflect\build\spirv-reflect-pp.vcxproj]
spirv_reflect.c(3507,19): warning C4456: declaration of 'i' hides previous local declaration [D:\a\SPIRV-Reflect\SPIRV-Reflect\build\spirv-reflect-pp.vcxproj]
spirv_reflect.c(3445,15): message : see declaration of 'i' [D:\a\SPIRV-Reflect\SPIRV-Reflect\build\spirv-reflect-pp.vcxproj]
spirv_reflect.c(3507,19): error C2220: the following warning is treated as an error [D:\a\SPIRV-Reflect\SPIRV-Reflect\build\spirv-reflect.vcxproj]
spirv_reflect.c(3507,19): warning C4456: declaration of 'i' hides previous local declaration [D:\a\SPIRV-Reflect\SPIRV-Reflect\build\spirv-reflect.vcxproj]
spirv_reflect.c(3445,15): message : see declaration of 'i' [D:\a\SPIRV-Reflect\SPIRV-Reflect\build\spirv-reflect.vcxproj]
A Push Constant block like
should return an offset of
4
instead of0
Unlike descriptors, the Push Constant
Block
has a concept of a base offset since