Expression did not evaluate to a constant
bool GraphicsManager::renderWorldShader() {
ZoneScopedN("render");
if (QueueMan.isQueueEmpty(kQueueVisibleWorldObject))
return false;
if (!RenderMan.isAmbientSet()) {
return false;
}
Hi i'm using the last release of Visual Studio 2022 Community Edition, i'm using C++ (17) and VcPkg to add Tracy to my project but when add ZoneScopedN the compiler said
C2131 expression did not evaluate to a constant
Someone could help please ?
I guess your compiler is broken then. Is VS2022CE a recent version? Try updating if not.
It's the edit and continue crap most likely.
Note that this can be fixed as done here https://github.com/wolfpld/tracy/blob/073df4ed42149443ccab40b44fdf12e09057c2f4/public/tracy/Tracy.hpp#L16
@GabrielSiliceum Can you extract the changes to their own PR as the symbol resolution one may take a while to complete ?
I think this can be closed since https://github.com/wolfpld/tracy/pull/1022 has been merged