Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:Direct3D 11

From ReverseEngineering.wiki
Library
Vendor Microsoft
Platforms Windows
On this wiki Facts · Code · Notes · Topics

Microsoft's Direct3D 11 (d3d11.dll): ID3D11Device (43 slots) creates resources, ID3D11DeviceContext (115 slots) records and issues draws; Draw is slot 13, OMSetRenderTargets 33, Map 14.

Identification

  • Imports D3D11CreateDevice or D3D11CreateDeviceAndSwapChain from d3d11.dll; shaders are DXBC compiled by d3dcompiler_NN.dll or shipped precompiled.
  • ID3D11Device has no inheritance beyond IUnknown (slots 0-42). ID3D11DeviceContext derives from ID3D11DeviceChild (GetDevice 3, GetPrivateData 4, SetPrivateData 5, SetPrivateDataInterface 6), methods start at 7.
  • Overlay and capture tools hook IDXGISwapChain::Present (Library:DXGI) and often DrawIndexed 12, Draw 13, Map 14, OMSetRenderTargets 33, ClearRenderTargetView 50, Flush 111.

See the vtable facts on this page for the 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