{
 "id": "gpu-work-graphs",
 "title": "GPU Work Graphs (Self-Scheduling Shader Nodes)",
 "aliases": [
  "Work Graphs",
  "D3D12 Work Graphs"
 ],
 "domain": "performance",
 "subdomain": "gpu-driven",
 "stage": "performance",
 "realtime": "realtime",
 "platforms": [
  "desktop-gpu"
 ],
 "year_introduced": 2024,
 "inputs": [
  "mesh",
  "visibility-mask",
  "gbuffer"
 ],
 "outputs": [
  "gbuffer",
  "hdr-image",
  "mesh"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "Allows GPU shader nodes to dynamically spawn and feed downstream compute or mesh-shader work directly on the GPU without CPU round-trips or worst-case preallocated intermediate buffers.",
 "how_it_works": "Traditional GPU-driven pipelines rely on `ExecuteIndirect` chains that require fixed-size intermediate scratch buffers and barrier sync points between passes. Direct3D 12 Work Graphs (and Vulkan equivalents) model the pipeline as a directed graph of producer and consumer shader nodes (`broadcasting`, `coalescing`, `thread`). Any shader thread can emit structured records directly into downstream node queues managed by the GPU hardware scheduler—eliminating empty dispatches, shrinking memory footprints, and enabling dynamic material classification, procedural geometry expansion, and sparse traversal.",
 "when_to_use": "Use in next-gen DX12 / Vulkan engines for complex multi-material deferred classification (visibility buffer shading), procedural meshlet expansion, or adaptive ray/BVH scheduling where workload sizes vary wildly per frame.",
 "cost": {
  "class": "cheap",
  "notes": "Reduces CPU submission overhead, GPU idle bubbles, and worst-case intermediate VRAM allocation."
 },
 "failure_modes": [
  "Requires Shader Model 6.8+ and modern drivers (D3D12 Agility SDK / VK_AMDX_shader_enqueue)",
  "Graph recursion and dynamic record fan-out are harder to profile and debug than linear passes",
  "Not yet exposed in WebGL2 or baseline WebGPU"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "url:https://microsoft.github.io/DirectX-Specs/d3d/WorkGraphs.html",
   "type": "spec",
   "title": "Direct3D 12 Work Graphs Functional Specification",
   "authors": [
    "Microsoft DirectX Engineering"
   ],
   "year": 2024,
   "venue": "DirectX Specs",
   "url": "https://microsoft.github.io/DirectX-Specs/d3d/WorkGraphs.html",
   "ids": {
    "url": "https://microsoft.github.io/DirectX-Specs/d3d/WorkGraphs.html"
   },
   "license": null,
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "https://microsoft.github.io/DirectX-Specs/d3d/WorkGraphs.html",
     "checked_at": "2026-12-02T02:40:24.869Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "https://microsoft.github.io/DirectX-Specs/d3d/WorkGraphs.html",
     "checked_at": "2026-12-02T02:40:24.869Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-12-02T02:40:24.869Z",
   "title_sim": 1,
   "__bib": "engineering2024direct3d"
  }
 ],
 "presets": [],
 "related": [
  "gpu-driven-rendering",
  "visibility-buffer",
  "meshlets"
 ],
 "extends": [
  "gpu-driven-rendering",
  "meshlets"
 ],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (frontier expansion, authority-verified)",
  "sources_verified_at": "2026-12-02T02:40:24.869Z"
 },
 "solves": [],
 "authority": "Engineering, 2024",
 "url": "https://texelatlas.vercel.app/t/gpu-work-graphs/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}