Library:Direct3D 12
Appearance
| Vendor | Microsoft |
|---|---|
| Platforms | Windows |
| On this wiki | Facts · Code · Notes · Topics |
Microsoft's Direct3D 12 (d3d12.dll): explicit command lists and queues; ID3D12CommandQueue::ExecuteCommandLists is slot 10, the swap chain still comes from DXGI.
Identification
- Imports
D3D12CreateDevice(alsoD3D12GetDebugInterface,D3D12SerializeRootSignature) fromd3d12.dll. Presentation uses DXGI (Library:DXGI) with a flip-model swap chain created against the command queue, so IDXGISwapChain::Present is again the frame boundary. - ID3D12Object-derived interfaces have GetPrivateData 3, SetPrivateData 4, SetPrivateDataInterface 5, SetName 6; ID3D12Device methods start at 7. ID3D12CommandQueue ExecuteCommandLists 10, Signal 14. ID3D12GraphicsCommandList: Close 9, Reset 10, DrawInstanced 12, DrawIndexedInstanced 13, ResourceBarrier 26.
- To hook a 12 game the command queue pointer is needed (the swap chain does not expose it): hooks on ExecuteCommandLists or CreateCommandQueue are used. Unverified for specific tools.
See the vtable facts for complete slot lists.
Related
General background on COM calls, IIDs and the IUnknown slots: Technique:Reading COM and WinRT code.
Code & repositories
- https://github.com/mirror/mingw-w64 @
93f3505a758fe70e56678f00e753af3bc4f640bb· license: BSD-2-Clause (read from COPYING; GitHub's detector did not classify it)
MinGW-w64 headers: COM interface definitions and IIDs for DXGI and Direct3D 9/11/12 (vtable order source).
Tested on: source read, not run: read headers · checked 2026-10-18; last activity 2024-09-25