forked from NasiRawon/AlternateConversationCamera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphics.h
More file actions
33 lines (29 loc) · 702 Bytes
/
Copy pathGraphics.h
File metadata and controls
33 lines (29 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <d3d11.h>
namespace Tralala
{
// actually it's part of bigger struct
// address = g_swapChainAddr
struct Render
{
//bunch of window information
//refresh rate, vsync, borderless, etc
//device -10
//context -08
HWND clientHandle; // 00
UINT64 unk08; // 08
UINT clientWidth; // 10
UINT clientHeight; // 14
IDXGISwapChain* swapChain; // 18
UINT64 unk20[2]; // 20
ID3D11RenderTargetView* targetView; // 30
ID3D11ShaderResourceView* shaderResourceView; // 38
// more ..... i don't care
};
STATIC_ASSERT(offsetof(Render, swapChain) == 0x18);
}
namespace Graphics
{
void GetAddresses();
bool InstallHook();
}