HydraHook
Direct3D and Core Audio hooking library for Windows
Loading...
Searching...
No Matches
Direct3D10.h
Go to the documentation of this file.
1/*
2MIT License
3
4Copyright (c) 2018-2026 Benjamin Höglinger-Stelzer
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
25
26#pragma once
27
28#include <dxgi.h>
29// ReSharper disable CppUnusedIncludeDirective
30#include <d3d10_1.h>
31// ReSharper restore CppUnusedIncludeDirective
32#include <d3d10.h>
33#include "Direct3DBase.h"
34
36{
37 enum D3D10DeviceVTbl : short
38 {
39 // IUnknown
41 AddRef = 1,
43
44 // ID3D10Device
51 Draw = 9,
112 Flush = 70,
140 };
141
143 {
144 ID3D10Device* pDevice;
145 IDXGISwapChain* pSwapChain;
146
147 public:
148 Direct3D10();
149 ~Direct3D10();
150 static const int VTableElements = 98;
151
152 std::vector<size_t> vtable() const override;
153 };
154}
IDXGISwapChain vtable indices for D3D10/11/12 hooking.
Abstract base for Direct3D version-specific hook implementations.
std::vector< size_t > vtable() const override
Returns vtable indices for hookable methods (Present, Reset, etc.).
static const int VTableElements
Definition Direct3D10.h:150
Abstract base for Direct3D hook implementations.
@ CreateGemoetryShaderWithStreamOutput
Definition Direct3D10.h:123