https://github.com/chadlrnsn/imgui-directx-12-kiero-hook
Universal ImGui implementation through DirectX 12 Hook (kiero)
https://github.com/chadlrnsn/imgui-directx-12-kiero-hook
d3d12 directx dx12 hook imgui imgui-kiero kiero kiero-directx12 kiero-dx12
Last synced: 2 months ago
JSON representation
Universal ImGui implementation through DirectX 12 Hook (kiero)
- Host: GitHub
- URL: https://github.com/chadlrnsn/imgui-directx-12-kiero-hook
- Owner: chadlrnsn
- License: apache-2.0
- Created: 2024-08-11T20:52:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-30T21:34:48.000Z (3 months ago)
- Last Synced: 2025-08-30T22:06:01.243Z (3 months ago)
- Topics: d3d12, directx, dx12, hook, imgui, imgui-kiero, kiero, kiero-directx12, kiero-dx12
- Language: C++
- Homepage:
- Size: 1.85 MB
- Stars: 23
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://github.com/chadlrnsn/ImGui-DirectX-12-Kiero-Hook/actions/workflows/cmake-single-platform.yml)
# ImGui DirectX12 Kiero Hook
A DirectX 12 hook implementation using ImGui and Kiero. This project allows you to inject custom ImGui interfaces into DirectX 12 applications.
## Features
- DirectX 12 Hook implementation
- ImGui integration through Kiero
- Resizable window support
- Fullscreen support
- Minimal performance impact
- Doesn't crash when injected instantly (before window is created)
## Requirements
- Windows 10/11
- Visual Studio 2019/2022 or VSCode
- [DirectX SDK](https://www.microsoft.com/en-us/download/details.aspx?id=6812)
- CMake 3.15 or higher
- Git
## Building the Project
### Using VSCode (Recommended)
1. Install the following extensions:
- [CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools)
- [C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
2. Clone the repository with submodules:
```bash
git clone --recurse-submodules https://github.com/chadlrnsn/ImGui-DirectX-12-Kiero-Hook
cd ImGui-DirectX-12-Kiero-Hook
```
3. Open the project in VSCode and select a kit using CMake Tools:
- `Visual Studio Build Tools 2019 Release - amd64`
- `Visual Studio Build Tools 2022 Release - amd64`
- `Clang 16.0.0 x86_64-pc-windows-msvc`
4. Select build variant (Debug/Release) and build using CMake Tools
### Using Command Line
1. Clone the repository as shown above
2. Build using presets:
```bash
# For VS2019 Release
cmake --preset windows-x64-release-2019
cmake --build --preset windows-x64-release-2019
# For VS2019 Debug
cmake --preset windows-x64-debug-2019
cmake --build --preset windows-x64-debug-2019
# For VS2022 Release
cmake --preset windows-x64-release-2022
cmake --build --preset windows-x64-release-2022
# For VS2022 Debug
cmake --preset windows-x64-debug-2022
cmake --build --preset windows-x64-debug-2022
```
The DLL will be in the `bin/{Debug|Release}` directory.
[!NOTE]
Only x64 builds are supported due to DirectX 12 limitations.
## Known Issues
- Debug builds with debug layers enabled might crash
- Minor flickering may occur
- Menu freezes when switching to fullscreen (Alt+Enter) while menu is open
## Implementation Details
This project uses:
- [Kiero](https://github.com/Rebzzel/kiero) for function hooking
- [Dear ImGui](https://github.com/ocornut/imgui) for the user interface
- [MinHook](https://github.com/TsudaKageyu/minhook) for API hooking
## Contributing
Feel free to submit issues and pull requests.