#include #include #include namespace { const D3DDDI_DEVICECALLBACKS& getOrigVtable(HANDLE /*device*/) { return CompatVtable::s_origVtable; } constexpr void setCompatVtable(D3DDDI_DEVICECALLBACKS& /*vtable*/) { } } namespace D3dDdi { namespace DeviceCallbacks { void hookVtable(const D3DDDI_DEVICECALLBACKS & vtable, UINT version) { CompatVtable::hookCallbackVtable(vtable, version); } } }