Why doesn't my overlay show in some DX11 games
I'm developing an overlay by hooking DX11 APIs. Now it shows in some DX11 games but doesn't in some others. Also, it shows in some scenes and doesn't in some others of the same DX11 games.
Does anyone know what the problem it can be? How can I do debugging on it?
I can supply further information if you would 开发者_Go百科like to know more.
Thanks.
Depends where you are hooking your overlay. If you hook Present(), it should show up on the backbuffer. Also be sure your state is saved & restored properly. Direct3D 11 doesn't have native state blocks, so you have to roll your own.
精彩评论