I found that slInit always displayed this warning:
Seems like some DX/VK APIs were invoked before slInit()!!! This may result in incorrect behaviour.
when called by my initialization function. But I didn't call any DX/VK APIs before.
After some debugging, I found that sl::interposer::getInterface was actually called by slInit it self:
ConfigureLogOverrides
ConfigureLogOverridesFromInterposerConfig, sl::interposer::getInterface be called here
I found that slInit always displayed this warning:
when called by my initialization function. But I didn't call any DX/VK APIs before.
After some debugging, I found that sl::interposer::getInterface was actually called by slInit it self: