Skip to content

Commit

Permalink
Update RenderContext.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Nov 8, 2022
1 parent 9a1f0f6 commit 3b3f6b6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/reverse/RenderContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ struct RenderContext
struct Device
{
IDXGISwapChain4* pSwapChain;
uint8_t pad8[0x90 - 0x8];
uint8_t pad8[0xB0 - 0x8]; // changed size
};

RenderContext() = delete;
Expand All @@ -15,13 +15,10 @@ struct RenderContext

uint8_t pad0[0xC97F38];
Device devices[0x30]; // Count unknown, it is at least 0x20
uint8_t pad[0xED64C0 - (0xC97F38 + sizeof(devices))];
void* unkED69C0; // Some pointer, might be related to d3d12on7, I have never seen it being anything other than null
uint8_t padED69C8[0x10];
uint8_t pad[0xED68D8 - (0xC97F38 + sizeof(devices))];
ID3D12CommandQueue* pDirectQueue; // ED64D8
};

static_assert(sizeof(RenderContext::Device) == 0x90);
static_assert(sizeof(RenderContext::Device) == 0xB0);
static_assert(offsetof(RenderContext, devices) == 0xC97F38);
static_assert(offsetof(RenderContext, unkED69C0) == 0xED64C0);
static_assert(offsetof(RenderContext, pDirectQueue) == 0xED64D8);
static_assert(offsetof(RenderContext, pDirectQueue) == 0xED68D8);

0 comments on commit 3b3f6b6

Please sign in to comment.