| 34 | // a tendency to remove each other's hooks. For example, Fraps nukes the Present |
| 35 | // hook of Cinematic Tools. |
| 36 | extern "C" __declspec(dllexport) void __cdecl aliasIsolation_hookableOverlayRender(ID3D11Device * /*device*/, |
| 37 | ID3D11DeviceContext * /*context*/) |
| 38 | { |
| 39 | // We can't compile inline assembly for a 64-bit build target. |
| 40 | #ifndef _WIN64 |
| 41 | __asm {nop; |
| 42 | nop; |
| 43 | nop; |
| 44 | nop; |
| 45 | nop; |
| 46 | nop; |
| 47 | nop; |
| 48 | nop; |
| 49 | nop; |
| 50 | nop; |
| 51 | nop; |
| 52 | nop; |
| 53 | } |
| 54 | #endif |
| 55 | } |
| 56 | |
| 57 | static ID3D11Buffer *createConstantBuffer(unsigned sizeBytes) |
| 58 | { |