Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

indirect-display

БесплатноБез исполняемых скриптовНе проверен

Windows Indirect Display Driver (IDD) framework. UMDF v2-based driver model for adding virtual monitors that the Desktop Window Manager treats as real…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Indirect Display Driver - Quick Reference

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: indirect-display. Authoritative source: learn.microsoft.com/en-us/windows-hardware/drivers/display/indirect-display-driver-model-overview. Canonical sample: general/IddSampleDriver in microsoft/Windows-driver-samples.

What IDD is (and isn't)

IDD is a UMDF v2 driver that registers itself as a display adapter via IddCx. The OS treats the IDD's monitors like real displays for layout, DPI, multi-mon, cursor, etc. The driver receives swap-chains (a stream of GPU surfaces) for each connected monitor and is responsible for consuming the frames somehow.

Goal IDD fits?
Show desktop on a USB display, virtual monitor, or remote network endpoint YES
Render a virtual screen and stream it over LAN/Wi-Fi/Rivermax NIC YES
Add a "headless" extra monitor for window placement YES
Drive a real PCIe GPU's display outputs NO — that needs WDDM
Replace the primary display of an existing GPU NO — additive only

IDD architecture in one diagram

                Apps (DWM composes the desktop into per-monitor swapchains)
                                           |
   ────────────────────────────── Kernel mode (DXGK / GPU schedulers) ──────────
                                           |   (handled by IddCx + WDDM emulation)
   ────────────────────────────── User mode  (WUDFHost.exe) ────────────────────
                                           |
                            +----------------------------+
                            | Your IDD UMDF DLL          |
                            |  - EvtIddCxAdapterInitFinished
                            |  - EvtIddCxParseMonitorDescription
                            |  - EvtIddCxMonitorGetDefaultModes
                            |  - EvtIddCxMonitorQueryTargetModes
                            |  - EvtIddCxMonitorAssignSwapChain
                            |  - <swap-chain processing thread>
                            |       AcquireBuffer / FinishedProcessing
                            |       -> encode (NVENC) -> send (TCP/UDP/Rivermax)
                            +----------------------------+

Lifecycle / callback flow (simplified)

  1. DriverEntry → IddCxDriverInitialize registers IDD
  2. EvtDeviceAdd → create the WDF device, then IddCxDeviceInitialize
  3. EvtIddCxAdapterInitFinished — adapter is up; you can now plug monitors with IddCxMonitorCreate + IddCxMonitorArrival
  4. EvtIddCxParseMonitorDescription / MonitorGetDefaultModes / MonitorQueryTargetModes — declare what the virtual monitor supports (resolution, refresh rate, color)
  5. EvtIddCxMonitorAssignSwapChain — DWM is ready to push frames; start your processing thread
  6. Processing thread: loop IddCxSwapChainAcquireBuffer → consume → IddCxSwapChainFinishedProcessingFrame → IddCxSwapChainReleaseAndAcquireBuffer
  7. EvtIddCxMonitorUnassignSwapChain — stop your thread cleanly
  8. Plug-out: IddCxMonitorDeparture → IddCxMonitorReleaseAndDestroy

Monitor descriptor — minimum viable EDID

Provide a synthetic EDID via EvtIddCxParseMonitorDescription. The IDD sample ships an EDID blob; for production, generate one with valid manufacturer ID, product code, supported timings (CEA blocks for HDR/HDMI traits), and checksum.

NTSTATUS MyEvtParseMonitorDescription(
    const IDARG_IN_PARSEMONITORDESCRIPTION* in,
    IDARG_OUT_PARSEMONITORDESCRIPTION*      out)
{
    if (in->MonitorDescription.DataSize != EDID_SIZE) return STATUS_INVALID_PARAMETER;
    // Extract preferred timing from EDID block
    out->MonitorModeBufferOutputCount = 1;
    if (in->pMonitorModes != NULL) {
        in->pMonitorModes[0] = MakeMode(1920, 1080, 60);   // helper builds IDDCX_MONITOR_MODE
    }
    return STATUS_SUCCESS;
}

Swap-chain processing loop (the hot path)

// Started from EvtIddCxMonitorAssignSwapChain
DWORD WINAPI SwapChainProcessor(LPVOID lp) {
    auto* ctx = static_cast<MonitorContext*>(lp);
    auto& dx  = ctx->DxResources;             // your D3D11/D3D12 device + context

    for (;;) {
        IDARG_OUT_RELEASEANDACQUIREBUFFER buf{};
        HRESULT hr = IddCxSwapChainReleaseAndAcquireBuffer(ctx->SwapChain, &buf);
        if (hr == E_PENDING) {
            // Wait on `ctx->NewFrameEvent` with timeout, then continue
            WaitForSingleObject(ctx->NewFrameEvent, 16);   // ~60 fps poll
            continue;
        }
        if (FAILED(hr)) break;                  // shutting down

        // buf.MetaData.PresentationTime, .Buffer (ID3D11Texture2D / DXGI handle)
        // 1. Get the staging texture (or use a shared NT handle)
        // 2. Encode with NVENC / quick-sync / etc.
        // 3. Send the encoded packet over the chosen transport (TCP / UDP / Rivermax)
        ConsumeFrame(ctx, buf);

        IDARG_IN_FINISHEDPROCESSINGFRAME fin{};
        IddCxSwapChainFinished
Полный SKILL.md на GitHub

Установить indirect-display в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Write
Edit

FAQ

Что делает скилл indirect-display?

Windows Indirect Display Driver (IDD) framework. UMDF v2-based driver model for adding virtual monitors that the Desktop Window Manager treats as real displays, then capturing the rendered frames in user mode and routing them somewhere else (network, file, encoder) instead of a physical panel. Covers IddCx callbacks, monitor descriptors (EDID/MCCS), swap-chain processing, cursor handling, hot-plug, hardware cursor, multi-monitor, HDR, and integration with NVENC / Rivermax / RDMA NICs for low-latency network streaming. USE WHEN: user mentions "IDD", "Indirect Display", "IddCx", "IddSampleDriver", "virtual monitor", "virtual display driver", "IDDCX_SWAPCHAIN", "AcquireBuffer", "FinishedProcessingFrame", "EDID for virtual display", "stream desktop", "network display" DO NOT USE FOR: WDDM display miniport drivers (real GPU), DXGK kernel work, Miracast (different framework), Remote Desktop / RDP (different stack)

Как установить скилл indirect-display?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл indirect-display запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить indirect-display с