[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DATE75S1NAXDDZTDFPYPQ3":3,"skill-same:01M7DATE75S1NAXDDZTDFPYPQ3":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7DATE75S1NAXDDZTDFPYPQ3","graphics-api",null,"alicewe1\u002Falice_skill","alicewe1","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F102134151?v=4","01M7D9STCM8HAESM958JP0989K","Alice_we","01M7D9STDR22MTD9FTTWPAZNV8",64,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002F_modules\u002Fgraphics-api\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: graphics-api-hooking\ndescription: Guide for graphics API interception, overlay rendering, and render-pipeline analysis across DirectX, OpenGL, and Vulkan. Use this skill when working with Present or SwapBuffers hooks, DXGI swap chains, shader or draw-call interception, screenshot-sensitive overlays, or graphics debugging in game security research.\nx-alice-class: game\n---# Graphics API Hooking & Rendering\n\n## Overview\n\nThis skill covers graphics API resources from the awesome-game-security collection, including DirectX, OpenGL, and Vulkan hooking techniques, overlay rendering, and graphics debugging.\n\nCapture paths, hook points, synchronization, latency, and observable artifacts\nvary by API, driver, compositor, application, and tool version. Verify the\nactive path and use [`research-rigor`](..\u002Fresearch-rigor\u002FSKILL.md) before\nattributing a capture or overlay signal.\n\n## README Coverage\n\n- `DirectX > Guide`\n- `DirectX > Hook`\n- `DirectX > Tools`\n- `DirectX > Emulation`\n- `DirectX > Compatibility`\n- `DirectX > Overlay`\n- `OpenGL > Guide`\n- `OpenGL > Source`\n- `OpenGL > Hook`\n- `Vulkan > Guide`\n- `Vulkan > API`\n- `Vulkan > Hook`\n- `Cheat > Overlay`\n- `Cheat > Render\u002FDraw`\n- `Cheat > Anti Screenshot`\n- `Anti Cheat > Screenshot`\n- `Anti Cheat > Detection:Overlay`\n\n## DirectX\n\n### DirectX 9\n```cpp\n\u002F\u002F Key functions to hook\nIDirect3DDevice9::EndScene\nIDirect3DDevice9::Reset\nIDirect3DDevice9::Present\n```\n\n### DirectX 11\n```cpp\n\u002F\u002F Key functions to hook\nIDXGISwapChain::Present\nID3D11DeviceContext::DrawIndexed\nID3D11DeviceContext::Draw\n```\n\n### DirectX 12\n```cpp\n\u002F\u002F Key functions to hook\nIDXGISwapChain::Present\nID3D12CommandQueue::ExecuteCommandLists\n```\n\n### VTable Hooking\n```cpp\n\u002F\u002F DX11 Example\ntypedef HRESULT(__stdcall* Present)(IDXGISwapChain*, UINT, UINT);\nPresent oPresent;\n\nHRESULT __stdcall hkPresent(IDXGISwapChain* swapChain, UINT syncInterval, UINT flags) {\n    \u002F\u002F Render overlay here\n    return oPresent(swapChain, syncInterval, flags);\n}\n\n\u002F\u002F Hook via vtable\nvoid* swapChainVtable = *(void**)swapChain;\noPresent = (Present)swapChainVtable[8];  \u002F\u002F Present is index 8\n```\n\n## OpenGL\n\n### Key Functions\n```cpp\nwglSwapBuffers\nglDrawElements\nglDrawArrays\nglBegin\u002FglEnd (legacy)\n```\n\n### Hook Example\n```cpp\ntypedef BOOL(WINAPI* wglSwapBuffers_t)(HDC);\nwglSwapBuffers_t owglSwapBuffers;\n\nBOOL WINAPI hkwglSwapBuffers(HDC hdc) {\n    \u002F\u002F Render overlay\n    return owglSwapBuffers(hdc);\n}\n```\n\n## Vulkan\n\n### Key Functions\n```cpp\nvkQueuePresentKHR\nvkCreateSwapchainKHR\nvkCmdDraw\nvkCmdDrawIndexed\n```\n\n### Instance\u002FDevice Layers\n- Use validation layers for debugging\n- Custom layers for interception\n- Layer manifest configuration\n\n## Universal Hook Libraries\n\n### Kiero\n- Cross-API hook library\n- Supports DX9\u002F10\u002F11\u002F12, OpenGL, Vulkan\n- Automatic method detection\n\n### Universal ImGui Hook\n- Pre-built ImGui integration\n- Multiple API support\n- Easy deployment\n\n## ImGui Integration\n\n### Setup (DX11)\n```cpp\n\u002F\u002F In Present hook\nImGui_ImplDX11_Init(device, context);\nImGui_ImplWin32_Init(hwnd);\n\n\u002F\u002F Render\nImGui_ImplDX11_NewFrame();\nImGui_ImplWin32_NewFrame();\nImGui::NewFrame();\n\n\u002F\u002F Your rendering code\nImGui::Begin(\"Overlay\");\n\u002F\u002F ...\nImGui::End();\n\nImGui::Render();\nImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());\n```\n\n### Window Procedure Hook\n```cpp\n\u002F\u002F Required for ImGui input\nLRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {\n    if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam))\n        return true;\n    return CallWindowProc(oWndProc, hWnd, msg, wParam, lParam);\n}\n```\n\n## Overlay Techniques\n\n### External Overlay\n```\n1. Create transparent window\n2. Set WS_EX_LAYERED | WS_EX_TRANSPARENT\n3. Use SetLayeredWindowAttributes\n4. Render with GDI+\u002FD2D\n5. Position over game window\n```\n\n### DWM Overlay\n```\n- Hook Desktop Window Manager\n- Render in DWM composition\n- Higher privilege requirements\n- Better anti-detection\n```\n\n### Steam Overlay Hijack\n```\n- Hook Steam's overlay functions\n- Use existing overlay infrastructure\n- Requires Steam running\n```\n\n### NVIDIA Overlay Hijack\n```\n- Hook GeForce Experience overlay\n- Native-looking overlay\n- May require specific drivers\n```\n\n## Shader Manipulation\n\n### Wallhack Implementation\n```hlsl\n\u002F\u002F Disable depth testing\nOMSetDepthStencilState(depthDisabledState, 0);\n\n\u002F\u002F Or in pixel shader\nfloat4 PSMain(VS_OUTPUT input) : SV_Target {\n    \u002F\u002F Always pass depth test\n    return float4(1, 0, 0, 0.5);  \u002F\u002F Red transparent\n}\n```\n\n### Chams (Character Highlighting)\n```hlsl\n\u002F\u002F Replace model shader\nfloat4 PSChams(VS_OUTPUT input) : SV_Target {\n    if (isEnemy) {\n        return float4(1, 0, 0, 1);  \u002F\u002F Red\n    }\n    return float4(0, 1, 0, 1);      \u002F\u002F Green\n}\n```\n\n## Rendering Concepts\n\n### World-to-Screen\n```cpp\nD3DXVECTOR3 WorldToScreen(D3DXVECTOR3 pos, D3DXMATRIX viewProjection) {\n    D3DXVECTOR4 clipCoords;\n    D3DXVec3Transform(&clipCoords, &pos, &viewProjection);\n    \n    if (clipCoords.w \u003C 0.1f) return invalid;\n    \n    D3DXVECTOR3 NDC;\n    NDC.x = clipCoords.x \u002F clipCoords.w;\n    NDC.y = clipCoords.y \u002F clipCoords.w;\n    \n    D3DXVECTOR3 screen;\n    screen.x = (viewport.Width \u002F 2) * (NDC.x + 1);\n    screen.y = (viewport.Height \u002F 2) * (1 - NDC.y);\n    \n    return screen;\n}\n```\n\n### View Matrix Extraction\n```\n- From device constants\n- Pattern scanning\n- Engine-specific locations\n- Reverse engineered addresses\n```\n\n## Debugging Tools\n\n### PIX for Windows\n- Frame capture and analysis\n- GPU profiling\n- Shader debugging\n\n### RenderDoc\n- Open-source frame debugger\n- Multi-API support\n- Resource inspection\n\n### NVIDIA Nsight\n- Performance analysis\n- Shader debugging\n- Frame profiling\n\n## Anti-Screenshot Techniques\n\n### How Anti-Cheat Captures Screenshots\n```\n- BitBlt from game window DC: captures visible content including overlays\n- DXGI Desktop Duplication API: captures composited desktop output\n- IDXGISwapChain::Present interception: grab backbuffer before present\n- PrintWindow: capture specific window contents\n- DirectX\u002FVulkan frame readback: copy render target to CPU-readable buffer\n- Scheduled captures: random intervals to catch intermittent overlays\n```\n\n### Overlay Evasion Against Screenshot\n```\n- Disable overlay rendering during screenshot frame:\n  - Detect screenshot by hooking BitBlt\u002FPrintWindow in AC module\n  - Suppress ImGui rendering for captured frame\n- DWM composition tricks:\n  - Render to a separate window that DWM excludes from capture\n  - Use WDA_EXCLUDEFROMCAPTURE (SetWindowDisplayAffinity) on overlay window\n- Hardware overlay planes:\n  - Use IDXGIOutput::FindClosestMatchingMode + hardware overlay\n  - Content on hardware overlay plane may not appear in software capture\n- External rendering:\n  - Render on secondary display or capture card output\n  - OBS virtual camera trick: render to virtual camera feed\n```\n\n### Cheat-Side Anti-Screenshot (README > Anti Screenshot)\n```\n- Projects that detect and evade AC screenshot capture\n- Techniques: hook Present to suppress overlay on screenshot frames\n- DWM-based overlays that survive PrintWindow but not BitBlt\n- Kernel-level: suppress screenshot by blocking DC access\n```\n\n## OBS Capture Pipeline and AI Visual Cheat Surface\n\n### OBS Frame Capture Modes\n```\nOBS is one possible frame source for AI visual systems. Capture implementation\nvaries by OBS, Windows, graphics API, and source settings, so identify the\nactive path before inferring artifacts:\n\nGame Capture:\n- On supported Windows paths, commonly injects an OBS graphics-capture hook into\n  the game and intercepts API-specific presentation\u002Fcapture points\n- Commonly transfers frames through shared graphics resources rather than\n  requiring a full CPU readback for every frame\n- Often offers low-latency pre-composition capture, but performance and quality\n  depend on API, synchronization, settings, and version\n- The hook module and resource-sharing behavior may be observable, but they are\n  also legitimate OBS activity and are not attribution by themselves\n\nWindow Capture:\n- May use Windows Graphics Capture, BitBlt, or another version\u002Fsettings-specific\n  backend without injecting a game-capture hook\n- Captures a window\u002Fcomposited path; occlusion, cursor, HDR, and latency behavior\n  depend on the selected backend\n- Attribute the actual API and owning process rather than assuming Desktop\n  Duplication\n\nDisplay Capture:\n- Captures a monitor\u002Foutput through a platform-specific backend such as Desktop\n  Duplication or Windows Graphics Capture\n- Composition coverage and latency vary; protected content and hardware overlays\n  can create exceptions\n- No per-process interaction\n\nOBS Virtual Camera:\n- Outputs captured frames as a virtual camera device\n- Can feed AI model running in separate process or machine\n- May be discoverable through virtual-camera device registration and media\n  pipeline activity, depending on platform and OBS version\n```\n\n### Frame Pipeline for AI Aimbot\n```\nCapture path (latency-critical):\n  Game render → Present hook copies backbuffer\n  → Shared GPU texture (ID3D11Texture2D, GPU-side)\n  → GPU→CPU readback (staging texture + Map\u002FUnmap)\n  → CPU-side frame buffer (system memory)\n  → Crop to ROI (Region of Interest, e.g., 640x640 around crosshair)\n  → AI inference input (CUDA\u002FTensorRT\u002FDirectML)\n\nOBS plugin form factor:\n  AI model implemented as OBS video filter plugin\n  → Receives frames through obs_source_frame callback\n  → Runs inference in-process\n  → Outputs mouse commands to hardware device\n  → Appears as \"OBS running a filter\" to the system\n\nDual-machine pipeline:\n  Game PC OBS → NDI (Network Device Interface) or capture card\n  → Cheat PC receives video stream\n  → AI inference on cheat PC GPU\n  → Mouse commands sent via network to KMBox on game PC\n  Added latency depends on capture hardware, buffering, transport, encoding,\n  network, synchronization, and receiver configuration\n\nPerformance measurement:\n  Measure capture, synchronization, transfer\u002Freadback, preprocessing, inference,\n  postprocessing, transport, and input stages separately on the deployed setup.\n  Report percentile end-to-end latency and dropped\u002Fstale frames; fixed latency\n  budgets do not transfer across hardware and configurations.\n```\n\n### Detection-Relevant Graphics Signals\n```\n- obs-graphics-hook64.dll in game process module list\n- IDXGISwapChain::Present hook or detour in game process\n- Repeated readback\u002Fcopy behavior involving staging resources, shared textures,\n  or API-specific capture objects; efficient pipelines may reuse resources\n- GPU-to-CPU memory copy bandwidth anomaly (Map\u002FUnmap calls\n  or equivalent synchronization\u002Freadback patterns)\n- DXGI shared handle creation from game process to external process\n- NDI SDK DLLs loaded (Processing.NDI.Lib.*.dll)\n- Virtual camera driver (obs-virtualcam) registered\n\nThese are collection signals, not proof of a visual cheat. Correlate them with\nplugin provenance, process behavior, trusted gameplay telemetry, and the\nlegitimate streaming\u002Faccessibility context.\n```\n\n## Anti-Detection Considerations\n\n### Present Hook Detection\n```\n- VTable integrity checks\n- Code section verification\n- Call stack analysis\n- Module list scanning for known capture DLLs\n```\n\n### Evasion Techniques\n```\n- Trampoline hooks\n- Hardware breakpoints\n- Timing obfuscation\n```\n\n## Performance Optimization\n\n### Best Practices\n```\n1. Minimize state changes\n2. Batch draw calls\n3. Use instancing\n4. Cache resources\n5. Profile regularly\n```\n\n### Common Issues\n```\n- Flickering: Double buffer sync\n- Artifacts: Clear state properly\n- Performance: Reduce overdraw\n```\n\n## Resource Organization\n\nThe README contains:\n- DirectX 9\u002F11\u002F12 hook implementations\n- OpenGL hook libraries\n- Vulkan interception tools\n- ImGui integration examples\n- Overlay frameworks\n- Shader modification tools\n\n---\n\n## Data Source\n\n**Important**: This skill provides conceptual guidance and overview information. For detailed information use the following sources:\n\n### 1. Project Overview & Resource Index\n\nFetch the main README for the full curated list of repositories, tools, and descriptions:\n\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002FREADME.md\n```\n\nThe main README contains thousands of curated links organized by category. When users ask for specific tools, projects, or implementations, retrieve and reference the appropriate sections from this source.\n\n### 2. Repository Code Details (Archive)\n\nFor detailed repository information (file structure, source code, implementation details), the project maintains a local archive. If a repository has been archived, **always prefer fetching from the archive** over cloning or browsing GitHub directly.\n\n**Archive URL format:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Farchive\u002F{owner}\u002F{repo}.txt\n```\n\n**Examples:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Farchive\u002Fufrisk\u002Fpcileech.txt\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Farchive\u002F000-aki-000\u002FGameDebugMenu.txt\n```\n\n**How to use:**\n1. Identify the GitHub repository the user is asking about (owner and repo name from the URL).\n2. Construct the archive URL: replace `{owner}` with the GitHub username\u002Forg and `{repo}` with the repository name (no `.git` suffix).\n3. Fetch the archive file — it contains a full code snapshot with file trees and source code generated by `code2prompt`.\n4. If the fetch returns a 404, the repository has not been archived yet; fall back to the README or direct GitHub browsing.\n\n### 3. Repository Descriptions\n\nFor a concise English summary of what a repository does, the project maintains auto-generated description files.\n\n**Description URL format:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Fdescription\u002F{owner}\u002F{repo}\u002Fdescription_en.txt\n```\n\n**Examples:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Fdescription\u002F00christian00\u002FUnityDecompiled\u002Fdescription_en.txt\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Fdescription\u002Fufrisk\u002Fpcileech\u002Fdescription_en.txt\n```\n\n**How to use:**\n1. Identify the GitHub repository the user is asking about (owner and repo name from the URL).\n2. Construct the description URL: replace `{owner}` with the GitHub username\u002Forg and `{repo}` with the repository name.\n3. Fetch the description file — it contains a short, human-readable summary of the repository's purpose and contents.\n4. If the fetch returns a 404, the description has not been generated yet; fall back to the README entry or the archive.\n\n**Priority order when answering questions about a specific repository:**\n1. Description (quick summary) — fetch first for concise context\n2. Archive (full code snapshot) — fetch when deeper implementation details are needed\n3. README entry — fallback when neither description nor archive is available\n\n---\n\n## Compiled wiki\n\nPrefer the compiled domain overview at `wiki\u002Foverviews\u002Fgraphics-api.md` (see `wiki\u002Findex.md` and `wiki\u002FAGENTS.md`) before re-deriving synthesis from raw README\u002Farchive material.\n","## Overview\n\nThis skill covers graphics API resources from the awesome-game-security collection, including DirectX, OpenGL, and Vulkan hooking techniques, overlay rendering, and graphics debugging.\n\nCapture paths, hook points, synchronization, latency, and observable artifacts\nvary by API, driver, compositor, application, and tool version. Verify the\nactive path and use [`research-rigor`](..\u002Fresearch-rigor\u002FSKILL.md) before\nattributing a capture or overlay signal.\n\n## README Coverage\n\n- `DirectX > Guide`\n- `DirectX > Hook`\n- `DirectX > Tools`\n- `DirectX > Emulation`\n- `DirectX > Compatibility`\n- `DirectX > Overlay`\n- `OpenGL > Guide`\n- `OpenGL > Source`\n- `OpenGL > Hook`\n- `Vulkan > Guide`\n- `Vulkan > API`\n- `Vulkan > Hook`\n- `Cheat > Overlay`\n- `Cheat > Render\u002FDraw`\n- `Cheat > Anti Screenshot`\n- `Anti Cheat > Screenshot`\n- `Anti Cheat > Detection:Overlay`\n\n## DirectX\n\n### DirectX 9\n```cpp\n\u002F\u002F Key functions to hook\nIDirect3DDevice9::EndScene\nIDirect3DDevice9::Reset\nIDirect3DDevice9::Present\n```\n\n### DirectX 11\n```cpp\n\u002F\u002F Key functions to hook\nIDXGISwapChain::Present\nID3D11DeviceContext::DrawIndexed\nID3D11DeviceContext::Draw\n```\n\n### DirectX 12\n```cpp\n\u002F\u002F Key functions to hook\nIDXGISwapChain::Present\nID3D12CommandQueue::ExecuteCommandLists\n```\n\n### VTable Hooking\n```cpp\n\u002F\u002F DX11 Example\ntypedef HRESULT(__stdcall* Present)(IDXGISwapChain*, UINT, UINT);\nPresent oPresent;\n\nHRESULT __stdcall hkPresent(IDXGISwapChain* swapChain, UINT syncInterval, UINT flags) {\n    \u002F\u002F Render overlay here\n    return oPresent(swapChain, syncInterval, flags);\n}\n\n\u002F\u002F Hook via vtable\nvoid* swapChainVtable = *(void**)swapChain;\noPresent = (Present)swapChainVtable[8];  \u002F\u002F Present is index 8\n```\n\n## OpenGL\n\n### Key Functions\n```cpp\nwglSwapBuffers\nglDrawElements\nglDrawArrays\nglBegin\u002FglEnd (legacy)\n```\n\n### Hook Example\n```cpp\ntypedef BOOL(WINAPI* wglSwapBuffers_t)(HDC);\nwglSwapBuffers_t owglSwapBuffers;\n\nBOOL WINAPI hkwglSwapBuffers(HDC hdc) {\n    \u002F\u002F Render overlay\n    return owglSwapBuffers(hdc);\n}\n```\n\n## Vulkan\n\n### Key Functions\n```cpp\nvkQueuePresentKHR\nvkCreateSwapchainKHR\nvkCmdDraw\nvkCmdDrawIndexed\n```\n\n### Instance\u002FDevice Layers\n- Use validation layers for debugging\n- Custom layers for interception\n- Layer manifest configuration\n\n## Universal Hook Libraries\n\n### Kiero\n- Cross-API hook library\n- Supports DX9\u002F10\u002F11\u002F12, OpenGL, Vulkan\n- Automatic method detection\n\n### Universal ImGui Hook\n- Pre-built ImGui integration\n- Multiple API support\n- Easy deployment\n\n## ImGui Integration\n\n### Setup (DX11)\n```cpp\n\u002F\u002F In Present hook\nImGui_ImplDX11_Init(device, context);\nImGui_ImplWin32_Init(hwnd);\n\n\u002F\u002F Render\nImGui_ImplDX11_NewFrame();\nImGui_ImplWin32_NewFrame();\nImGui::NewFrame();\n\n\u002F\u002F Your rendering code\nImGui::Begin(\"Overlay\");\n\u002F\u002F ...\nImGui::End();\n\nImGui::Render();\nImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());\n```\n\n### Window Procedure Hook\n```cpp\n\u002F\u002F Required for ImGui input\nLRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {\n    if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam))\n        return true;\n    return CallWindowProc(oWndProc, hWnd, msg, wParam, lParam);\n}\n```\n\n## Overlay Techniques\n\n### External Overlay\n```\n1. Create transparent window\n2. Set WS_EX_LAYERED | WS_EX_TRANSPARENT\n3. Use SetLayeredWindowAttributes\n4. Render with GDI+\u002FD2D\n5. Position over game window\n```\n\n### DWM Overlay\n```\n- Hook Desktop Window Manager\n- Render in DWM composition\n- Higher privilege requirements\n- Better anti-detection\n```\n\n### Steam Overlay Hijack\n```\n- Hook Steam's overlay functions\n- Use existing overlay infrastructure\n- Requires Steam running\n```\n\n### NVIDIA Overlay Hijack\n```\n- Hook GeForce Experience overlay\n- Native-looking overlay\n- May require specific drivers\n```\n\n## Shader Manipulation\n\n### Wallhack Implementation\n```hlsl\n\u002F\u002F Disable depth testing\nOMSetDepthStencilState(depthDisabledState, 0);\n\n\u002F\u002F Or in pixel shader\nfloat4 PSMain(VS_OUTPUT input) : SV_Target {\n    \u002F\u002F Always pass depth test\n    return float4(1, 0, 0, 0.5);  \u002F\u002F Red transparent\n}\n```\n\n### Chams (Character Highlighting)\n```hlsl\n\u002F\u002F Replace model shader\nfloat4 PSChams(VS_OUTPUT input) : SV_Target {\n    if (isEnemy) {\n        return float4(1, 0, 0, 1);  \u002F\u002F Red\n    }\n    return float4(0, 1, 0, 1);      \u002F\u002F Green\n}\n```\n\n## Rendering Concepts\n\n### World-to-Screen\n```cpp\nD3DXVECTOR3 WorldToScreen(D3DXVECTOR3 pos, D3DXMATRIX viewProjection) {\n    D3DXVECTOR4 clipCoords;\n    D3DXVec3Transform(&clipCoords, &pos, &viewProjection);\n    \n    if (clipCoords.w \u003C 0.1f) return invalid;\n    \n    D3DXVECTOR3 NDC;\n    NDC.x = clipCoords.x \u002F clipCoords.w;\n    NDC.y = clipCoords.y \u002F clipCoords.w;\n    \n    D3DXVECTOR3 screen;\n    screen.x = (viewport.Width \u002F 2) * (NDC.x + 1);\n    screen.y = (viewport.Height \u002F 2) * (1 - NDC.y);\n    \n    return screen;\n}\n```\n\n### View Matrix Extraction\n```\n- From device constants\n- Pattern scanning\n- Engine-specific locations\n- Reverse engineered addresses\n```\n\n## Debugging Tools\n\n### PIX for Windows\n- Frame capture and analysis\n- GPU profiling\n- Shader debugging\n\n### RenderDoc\n- Open-source frame debugger\n- Multi-API support\n- Resource inspection\n\n### NVIDIA Nsight\n- Performance analysis\n- Shader debugging\n- Frame profiling\n\n## Anti-Screenshot Techniques\n\n### How Anti-Cheat Captures Screenshots\n```\n- BitBlt from game window DC: captures visible content including overlays\n- DXGI Desktop Duplication API: captures composited desktop output\n- IDXGISwapChain::Present interception: grab backbuffer before present\n- PrintWindow: capture specific window contents\n- DirectX\u002FVulkan frame readback: copy render target to CPU-readable buffer\n- Scheduled captures: random intervals to catch intermittent overlays\n```\n\n### Overlay Evasion Against Screenshot\n```\n- Disable overlay rendering during screenshot frame:\n  - Detect screenshot by hooking BitBlt\u002FPrintWindow in AC module\n  - Suppress ImGui rendering for captured frame\n- DWM composition tricks:\n  - Render to a separate window that DWM excludes from capture\n  - Use WDA_EXCLUDEFROMCAPTURE (SetWindowDisplayAffinity) on overlay window\n- Hardware overlay planes:\n  - Use IDXGIOutput::FindClosestMatchingMode + hardware overlay\n  - Content on hardware overlay plane may not appear in software capture\n- External rendering:\n  - Render on secondary display or capture card output\n  - OBS virtual camera trick: render to virtual camera feed\n```\n\n### Cheat-Side Anti-Screenshot (README > Anti Screenshot)\n```\n- Projects that detect and evade AC screenshot capture\n- Techniques: hook Present to suppress overlay on screenshot frames\n- DWM-based overlays that survive PrintWindow but not BitBlt\n- Kernel-level: suppress screenshot by blocking DC access\n```\n\n## OBS Capture Pipeline and AI Visual Cheat Surface\n\n### OBS Frame Capture Modes\n```\nOBS is one possible frame source for AI visual systems. Capture implementation\nvaries by OBS, Windows, graphics API, and source settings, so identify the\nactive path before inferring artifacts:\n\nGame Capture:\n- On supported Windows paths, commonly injects an OBS graphics-capture hook into\n  the game and intercepts API-specific presentation\u002Fcapture points\n- Commonly transfers frames through shared graphics resources rather than\n  requiring a full CPU readback for every frame\n- Often offers low-latency pre-composition capture, but performance and quality\n  depend on API, synchronization, settings, and version\n- The hook module and resource-sharing behavior may be observable, but they are\n  also legitimate OBS activity and are not attribution by themselves\n\nWindow Capture:\n- May use Windows Graphics Capture, BitBlt, or another version\u002Fsettings-specific\n  backend without injecting a game-capture hook\n- Captures a window\u002Fcomposited path; occlusion, cursor, HDR, and latency behavior\n  depend on the selected backend\n- Attribute the actual API and owning process rather than assuming Desktop\n  Duplication\n\nDisplay Capture:\n- Captures a monitor\u002Foutput through a platform-specific backend such as Desktop\n  Duplication or Windows Graphics Capture\n- Composition coverage and latency vary; protected content and hardware overlays\n  can create exceptions\n- No per-process interaction\n\nOBS Virtual Camera:\n- Outputs captured frames as a virtual camera device\n- Can feed AI model running in separate process or machine\n- May be discoverable through virtual-camera device registration and media\n  pipeline activity, depending on platform and OBS version\n```\n\n### Frame Pipeline for AI Aimbot\n```\nCapture path (latency-critical):\n  Game render → Present hook copies backbuffer\n  → Shared GPU texture (ID3D11Texture2D, GPU-side)\n  → GPU→CPU readback (staging texture + Map\u002FUnmap)\n  → CPU-side frame buffer (system memory)\n  → Crop to ROI (Region of Interest, e.g., 640x640 around crosshair)\n  → AI inference input (CUDA\u002FTensorRT\u002FDirectML)\n\nOBS plugin form factor:\n  AI model implemented as OBS video filter plugin\n  → Receives frames through obs_source_frame callback\n  → Runs inference in-process\n  → Outputs mouse commands to hardware device\n  → Appears as \"OBS running a filter\" to the system\n\nDual-machine pipeline:\n  Game PC OBS → NDI (Network Device Interface) or capture card\n  → Cheat PC receives video stream\n  → AI inference on cheat PC GPU\n  → Mouse commands sent via network to KMBox on game PC\n  Added latency depends on capture hardware, buffering, transport, encoding,\n  network, synchronization, and receiver configuration\n\nPerformance measurement:\n  Measure capture, synchronization, transfer\u002Freadback, preprocessing, inference,\n  postprocessing, transport, and input stages separately on the deployed setup.\n  Report percentile end-to-end latency and dropped\u002Fstale frames; fixed latency\n  budgets do not transfer across hardware and configurations.\n```\n\n### Detection-Relevant Graphics Signals\n```\n- obs-graphics-hook64.dll in game process module list\n- IDXGISwapChain::Present hook or detour in game process\n- Repeated readback\u002Fcopy behavior involving staging resources, shared textures,\n  or API-specific capture objects; efficient pipelines may reuse resources\n- GPU-to-CPU memory copy bandwidth anomaly (Map\u002FUnmap calls\n  or equivalent synchronization\u002Freadback patterns)\n- DXGI shared handle creation from game process to external process\n- NDI SDK DLLs loaded (Processing.NDI.Lib.*.dll)\n- Virtual camera driver (obs-virtualcam) registered\n\nThese are collection signals, not proof of a visual cheat. Correlate them with\nplugin provenance, process behavior, trusted gameplay telemetry, and the\nlegitimate streaming\u002Faccessibility context.\n```\n\n## Anti-Detection Considerations\n\n### Present Hook Detection\n```\n- VTable integrity checks\n- Code section verification\n- Call stack analysis\n- Module list scanning for known capture DLLs\n```\n\n### Evasion Techniques\n```\n- Trampoline hooks\n- Hardware breakpoints\n- Timing obfuscation\n```\n\n## Performance Optimization\n\n### Best Practices\n```\n1. Minimize state changes\n2. Batch draw calls\n3. Use instancing\n4. Cache resources\n5. Profile regularly\n```\n\n### Common Issues\n```\n- Flickering: Double buffer sync\n- Artifacts: Clear state properly\n- Performance: Reduce overdraw\n```\n\n## Resource Organization\n\nThe README contains:\n- DirectX 9\u002F11\u002F12 hook implementations\n- OpenGL hook libraries\n- Vulkan interception tools\n- ImGui integration examples\n- Overlay frameworks\n- Shader modification tools\n\n---\n\n## Data Source\n\n**Important**: This skill provides conceptual guidance and overview information. For detailed information use the following sources:\n\n### 1. Project Overview & Resource Index\n\nFetch the main README for the full curated list of repositories, tools, and descriptions:\n\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002FREADME.md\n```\n\nThe main README contains thousands of curated links organized by category. When users ask for specific tools, projects, or implementations, retrieve and reference the appropriate sections from this source.\n\n### 2. Repository Code Details (Archive)\n\nFor detailed repository information (file structure, source code, implementation details), the project maintains a local archive. If a repository has been archived, **always prefer fetching from the archive** over cloning or browsing GitHub directly.\n\n**Archive URL format:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Farchive\u002F{owner}\u002F{repo}.txt\n```\n\n**Examples:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Farchive\u002Fufrisk\u002Fpcileech.txt\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Farchive\u002F000-aki-000\u002FGameDebugMenu.txt\n```\n\n**How to use:**\n1. Identify the GitHub repository the user is asking about (owner and repo name from the URL).\n2. Construct the archive URL: replace `{owner}` with the GitHub username\u002Forg and `{repo}` with the repository name (no `.git` suffix).\n3. Fetch the archive file — it contains a full code snapshot with file trees and source code generated by `code2prompt`.\n4. If the fetch returns a 404, the repository has not been archived yet; fall back to the README or direct GitHub browsing.\n\n### 3. Repository Descriptions\n\nFor a concise English summary of what a repository does, the project maintains auto-generated description files.\n\n**Description URL format:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Fdescription\u002F{owner}\u002F{repo}\u002Fdescription_en.txt\n```\n\n**Examples:**\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Fdescription\u002F00christian00\u002FUnityDecompiled\u002Fdescription_en.txt\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fgmh5225\u002Fawesome-game-security\u002Frefs\u002Fheads\u002Fmain\u002Fdescription\u002Fufrisk\u002Fpcileech\u002Fdescription_en.txt\n```\n\n**How to use:**\n1. Identify the GitHub repository the user is asking about (owner and repo name from the URL).\n2. Construct the description URL: replace `{owner}` with the GitHub username\u002Forg and `{repo}` with the repository name.\n3. Fetch the description file — it contains a short, human-readable summary of the repository's purpose and contents.\n4. If the fetch returns a 404, the description has not been generated yet; fall back to the README entry or the archive.\n\n**Priority order when answering questions about a specific repository:**\n1. Description (quick summary) — fetch first for concise context\n2. Archive (full code snapshot) — fetch when deeper implementation details are needed\n3. README entry — fallback when neither description nor archive is available\n\n---\n\n## Compiled wiki\n\nPrefer the compiled domain overview at `wiki\u002Foverviews\u002Fgraphics-api.md` (see `wiki\u002Findex.md` and `wiki\u002FAGENTS.md`) before re-deriving synthesis from raw README\u002Farchive material.\n",{},"main","19a54ac988e9929160334271f5c1924ddd9b227e","_modules\u002Fgraphics-api",19,"https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill","https:\u002F\u002Fgithub.com\u002Falicewe1","写一些自己用得上的工具，能自动化就绝不手动 · 自动化 \u002F 工程效率 \u002F Agent 技能生态 · 保持好奇，持续构建","2026-09-30 00:41:20",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add alicewe1\u002Falice_skill --skill graphics-api",{"tool":37,"command":38},"bunx","bunx skills add alicewe1\u002Falice_skill --skill graphics-api",{"tool":40,"command":41},"pnpm","pnpm dlx skills add alicewe1\u002Falice_skill --skill graphics-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002F_modules\u002Fgraphics-api\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7DBMD9P6R27SWQCW5HYVWG0","alice","Alice 六类技能总路由。用户输入 Alice 或要求查看 Alice 技能菜单时，严格输出固定菜单；输入攻\u002F防模式、六类入口或直接描述任务时，按类别→领域→模块渐进路由。","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002Faliceskill\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7DBM8X5M7YXPYBVFMWF8HRC","alice-reverse","逆向分析渐进路由（二进制 \u002F 移动端 \u002F 协议 \u002F 取证 \u002F 保护机制 \u002F 运行时观测）。触发词：二进制\u002F移动端\u002F反编译\u002FFrida\u002FIDA\u002FGhidra\u002FPE\u002FELF\u002FAPK\u002F协议\u002F取证；先选领域索引，再按任务匹配度与评分选模块，禁止一次读取全部领域。","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002Falice-reverse\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7DBM630E2YKQP29194TT7HC","alice-pentest","web安全渐进路由（Web \u002F API \u002F 资产发现 \u002F 漏洞验证 \u002F 云与网络安全）。触发词：Web\u002FAPI\u002F资产发现\u002F端口\u002F漏洞验证\u002F云与网络安全；先选领域索引，再按任务匹配度与评分选模块，禁止一次读取全部领域。","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002Falice-pentest\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7DBM20M2VDYV5D3MYDGBTQX","alice-game","游戏攻防渐进路由（游戏客户端 \u002F 内存 \u002F 图形 \u002F 反作弊 \u002F 安全研究）。触发词：游戏客户端\u002F内存\u002F图形\u002F偏移\u002F反作弊\u002F模拟器\u002F覆盖层；先选领域索引，再按任务匹配度与评分选模块，禁止一次读取全部领域。","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002Falice-game\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7DBKXVEKB8931MZG23VACFN","alice-crack","卡密授权渐进路由（卡密 \u002F 激活 \u002F 授权验证 \u002F 许可证管理 \u002F 本地授权分析）。触发词：卡密\u002F激活\u002F授权验证\u002Flicense\u002F机器码\u002F试用状态；先选领域索引，再按任务匹配度与评分选模块，禁止一次读取全部领域。","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002Falice-crack\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7DBKTMT90MGV2WP8K73TMQD","alice-assist","技能指令渐进路由（技能路由 \u002F 评分 \u002F 吸收 \u002F 迁移 \u002F 自动化 \u002F 文档与平台集成）。触发词：技能创建\u002F吸收\u002F评分\u002F迁移\u002F自动化\u002F文档\u002F平台指令；先选领域索引，再按任务匹配度与评分选模块，禁止一次读取全部领域。","https:\u002F\u002Fgithub.com\u002Falicewe1\u002Falice_skill\u002Fblob\u002Fmain\u002Falice-assist\u002FSKILL.md",[],[]]