Skip to content

v2.1.3 — CSwapChainDx11 create signature + struct (m_pSwapChain +0x170)

Choose a tag to compare

@scros22 scros22 released this 24 Sep 12:08
· 10 commits to main since this release

Small follow-up for CS2 build 14183 (client 2000915), by request from the Discord.

New

  • CSwapChainDx11_CreateSwapChain (rendersystemdx11.dll) — the engine's swap-chain creation: bool (this, IDXGIFactory*, device, flags). It calls IDXGIFactory::CreateSwapChain (factory vtable slot 10) with &this->m_pSwapChain as the out pointer and logs Successfully created dx11 swap chain %s. Verified in IDA.
  • CSwapChainDx11 engine struct — m_pSwapChain at +0x170 (IDXGISwapChain*), with the DXGI vtable slots hook authors need: 8 Present, 9 GetBuffer, 10 SetFullscreenState, 12 GetDesc, 13 ResizeBuffers, 14 ResizeTarget. Ships as engine/cswapchaindx11.h and on the site's Engine tab.

There is no single swap-chain global in this engine (swap chains are per-window objects on the render device), so the create function plus the member offset is the right handle: catch the instance in CreateSwapChain, read +0x170 after it returns.

Database: 586 entries, 585 resolve, 0 ambiguous. Everything else is unchanged from v2.1.2.

cs2-sdk.exe below. Run it as administrator with CS2 open.