This somewhat awkwardly misses VKD3D_SHADER_DEBUG, though. It also will overwrite a VKD3D_DEBUG variable set on the command line. Which is fine to some degree, but may be confusing for someone who wasn't expecting that, so maybe guarding it with "if (!getenv(...))" wouldn't be a bad idea.
We could do that, yes, I've updated it.