|
HydraHook
Direct3D and Core Audio hooking library for Windows
|
Direct3D 11 hook callbacks and helpers. More...
Go to the source code of this file.
Classes | |
| struct | PHYDRAHOOK_D3D11_EVENT_CALLBACKS |
| Direct3D 11 event callback collection. More... | |
Typedefs | |
| typedef VOID | EVT_HYDRAHOOK_D3D11_PRE_PRESENT(IDXGISwapChain *pSwapChain, UINT SyncInterval, UINT Flags, PHYDRAHOOK_EVT_PRE_EXTENSION Extension) |
| Pre-Present callback; receives extension with engine handle. | |
| typedef EVT_HYDRAHOOK_D3D11_PRE_PRESENT * | PFN_HYDRAHOOK_D3D11_PRE_PRESENT |
| typedef VOID | EVT_HYDRAHOOK_D3D11_POST_PRESENT(IDXGISwapChain *pSwapChain, UINT SyncInterval, UINT Flags, PHYDRAHOOK_EVT_POST_EXTENSION Extension) |
| Post-Present callback; receives extension with engine handle. | |
| typedef EVT_HYDRAHOOK_D3D11_POST_PRESENT * | PFN_HYDRAHOOK_D3D11_POST_PRESENT |
| typedef VOID | EVT_HYDRAHOOK_D3D11_PRE_RESIZE_TARGET(IDXGISwapChain *pSwapChain, const DXGI_MODE_DESC *pNewTargetParameters, PHYDRAHOOK_EVT_PRE_EXTENSION Extension) |
| Pre-ResizeTarget callback. | |
| typedef EVT_HYDRAHOOK_D3D11_PRE_RESIZE_TARGET * | PFN_HYDRAHOOK_D3D11_PRE_RESIZE_TARGET |
| typedef VOID | EVT_HYDRAHOOK_D3D11_POST_RESIZE_TARGET(IDXGISwapChain *pSwapChain, const DXGI_MODE_DESC *pNewTargetParameters, PHYDRAHOOK_EVT_POST_EXTENSION Extension) |
| Post-ResizeTarget callback. | |
| typedef EVT_HYDRAHOOK_D3D11_POST_RESIZE_TARGET * | PFN_HYDRAHOOK_D3D11_POST_RESIZE_TARGET |
| typedef VOID | EVT_HYDRAHOOK_D3D11_PRE_RESIZE_BUFFERS(IDXGISwapChain *pSwapChain, UINT BufferCount, UINT Width, UINT Height, DXGI_FORMAT NewFormat, UINT SwapChainFlags, PHYDRAHOOK_EVT_PRE_EXTENSION Extension) |
| Pre-ResizeBuffers callback. | |
| typedef EVT_HYDRAHOOK_D3D11_PRE_RESIZE_BUFFERS * | PFN_HYDRAHOOK_D3D11_PRE_RESIZE_BUFFERS |
| typedef VOID | EVT_HYDRAHOOK_D3D11_POST_RESIZE_BUFFERS(IDXGISwapChain *pSwapChain, UINT BufferCount, UINT Width, UINT Height, DXGI_FORMAT NewFormat, UINT SwapChainFlags, PHYDRAHOOK_EVT_POST_EXTENSION Extension) |
| Post-ResizeBuffers callback. | |
| typedef EVT_HYDRAHOOK_D3D11_POST_RESIZE_BUFFERS * | PFN_HYDRAHOOK_D3D11_POST_RESIZE_BUFFERS |
Functions | |
| HRESULT | D3D11_DEVICE_FROM_SWAPCHAIN (IDXGISwapChain *pSwapChain, ID3D11Device **ppDevice) |
| Retrieves ID3D11Device from IDXGISwapChain. | |
| HRESULT | D3D11_DEVICE_IMMEDIATE_CONTEXT_FROM_SWAPCHAIN (IDXGISwapChain *pSwapChain, ID3D11Device **ppDevice, ID3D11DeviceContext **ppContext) |
| Retrieves ID3D11Device and ID3D11DeviceContext from swap chain. | |
| HRESULT | D3D11_BACKBUFFER_FROM_SWAPCHAIN (IDXGISwapChain *pSwapChain, ID3D11Texture2D **ppBackBuffer, UINT uBuffer=0) |
| Retrieves back buffer texture from swap chain. | |
| VOID | HYDRAHOOK_D3D11_EVENT_CALLBACKS_INIT (_Out_ PHYDRAHOOK_D3D11_EVENT_CALLBACKS Callbacks) |
| Initializes Direct3D 11 callback collection (zeros all pointers). | |
Direct3D 11 hook callbacks and helpers.
Defines event callbacks for Present, ResizeTarget, and ResizeBuffers with HYDRAHOOK_EVT_PRE_EXTENSION / HYDRAHOOK_EVT_POST_EXTENSION for engine access.
D3D10, D3D11, and D3D12 share unified DXGI swap-chain hooks (Present/Present1, ResizeTarget, ResizeBuffers/ResizeBuffers1) that dispatch per call to the callback table matching the swap chain's enabled device runtime.
Definition in file HydraHookDirect3D11.h.
| typedef VOID EVT_HYDRAHOOK_D3D11_POST_PRESENT(IDXGISwapChain *pSwapChain, UINT SyncInterval, UINT Flags, PHYDRAHOOK_EVT_POST_EXTENSION Extension) |
Post-Present callback; receives extension with engine handle.
Definition at line 66 of file HydraHookDirect3D11.h.
| typedef VOID EVT_HYDRAHOOK_D3D11_POST_RESIZE_BUFFERS(IDXGISwapChain *pSwapChain, UINT BufferCount, UINT Width, UINT Height, DXGI_FORMAT NewFormat, UINT SwapChainFlags, PHYDRAHOOK_EVT_POST_EXTENSION Extension) |
Post-ResizeBuffers callback.
Definition at line 119 of file HydraHookDirect3D11.h.
| typedef VOID EVT_HYDRAHOOK_D3D11_POST_RESIZE_TARGET(IDXGISwapChain *pSwapChain, const DXGI_MODE_DESC *pNewTargetParameters, PHYDRAHOOK_EVT_POST_EXTENSION Extension) |
Post-ResizeTarget callback.
Definition at line 91 of file HydraHookDirect3D11.h.
| typedef VOID EVT_HYDRAHOOK_D3D11_PRE_PRESENT(IDXGISwapChain *pSwapChain, UINT SyncInterval, UINT Flags, PHYDRAHOOK_EVT_PRE_EXTENSION Extension) |
Pre-Present callback; receives extension with engine handle.
Definition at line 53 of file HydraHookDirect3D11.h.
| typedef VOID EVT_HYDRAHOOK_D3D11_PRE_RESIZE_BUFFERS(IDXGISwapChain *pSwapChain, UINT BufferCount, UINT Width, UINT Height, DXGI_FORMAT NewFormat, UINT SwapChainFlags, PHYDRAHOOK_EVT_PRE_EXTENSION Extension) |
Pre-ResizeBuffers callback.
Definition at line 103 of file HydraHookDirect3D11.h.
| typedef VOID EVT_HYDRAHOOK_D3D11_PRE_RESIZE_TARGET(IDXGISwapChain *pSwapChain, const DXGI_MODE_DESC *pNewTargetParameters, PHYDRAHOOK_EVT_PRE_EXTENSION Extension) |
Pre-ResizeTarget callback.
Definition at line 79 of file HydraHookDirect3D11.h.
Definition at line 73 of file HydraHookDirect3D11.h.
Definition at line 129 of file HydraHookDirect3D11.h.
Definition at line 97 of file HydraHookDirect3D11.h.
Definition at line 60 of file HydraHookDirect3D11.h.
Definition at line 113 of file HydraHookDirect3D11.h.
Definition at line 85 of file HydraHookDirect3D11.h.
|
inline |
Retrieves back buffer texture from swap chain.
| [in] | pSwapChain | Valid swap chain. |
| [out] | ppBackBuffer | Receives ID3D11Texture2D pointer. |
| [in] | uBuffer | Buffer index (default 0). |
Definition at line 179 of file HydraHookDirect3D11.h.
References D3D11_BACKBUFFER_FROM_SWAPCHAIN().
Referenced by D3D11_BACKBUFFER_FROM_SWAPCHAIN().
|
inline |
Retrieves ID3D11Device from IDXGISwapChain.
| [in] | pSwapChain | Valid swap chain. |
| [out] | ppDevice | Receives device pointer. |
Definition at line 139 of file HydraHookDirect3D11.h.
References D3D11_DEVICE_FROM_SWAPCHAIN().
Referenced by D3D11_DEVICE_FROM_SWAPCHAIN().
|
inline |
Retrieves ID3D11Device and ID3D11DeviceContext from swap chain.
| [in] | pSwapChain | Valid swap chain. |
| [out] | ppDevice | Receives device pointer. |
| [out] | ppContext | Receives immediate context pointer. |
Definition at line 156 of file HydraHookDirect3D11.h.
References D3D11_DEVICE_IMMEDIATE_CONTEXT_FROM_SWAPCHAIN().
Referenced by D3D11_DEVICE_IMMEDIATE_CONTEXT_FROM_SWAPCHAIN().
|
inline |
Initializes Direct3D 11 callback collection (zeros all pointers).
| [out] | Callbacks | Callback structure to initialize. |
Definition at line 208 of file HydraHookDirect3D11.h.
References HYDRAHOOK_D3D11_EVENT_CALLBACKS_INIT().
Referenced by HYDRAHOOK_D3D11_EVENT_CALLBACKS_INIT().