Library:Direct3D 9
Appearance
| Vendor | Microsoft |
|---|---|
| Platforms | Windows |
| On this wiki | Facts · Code · Notes · Topics |
Microsoft's Direct3D 9 API (d3d9.dll): IDirect3D9 and IDirect3DDevice9 COM interfaces; Reset is vtable slot 16, Present 17, EndScene 42, SetRenderState 57.
Identification
- Imports
Direct3DCreate9(andDirect3DCreate9Exfor the Ex interfaces) fromd3d9.dll; the D3DX helper DLL isd3dx9_NN.dll(NN = SDK update number). - IDirect3D9 has 17 methods (slots 0-16, CreateDevice 16); IDirect3DDevice9 has 119 (slots 0-118). IDirect3DDevice9Ex continues the table after slot 118 with the Ex methods.
- Common hooks: Present 17, Reset 16, EndScene 42, BeginScene 41, DrawIndexedPrimitive 82, SetTexture 65, SetRenderState 57, SetVertexShader 92.
Related
Library:DXGI (not used by D3D9), Technique:DLL proxy loading (d3d9.dll proxy). Full slot list: vtable fact on this page.
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