Terminal Phase 2 [Windows]: D3D11 backend for atlas-term + term/win.rs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start with discussion #237 and the completed HWND spike, then read render/gpu.rs and render/mod.rs to see which of the 67 + 54 wgpu call sites the proposed backend trait has to cover. Read term/mac.rs alongside term_stub.rs so the Windows term/win.rs matches the existing command surface, and check build.rs for where term.wgsl would be run through naga and FXC. Done means pwsh renders interactively on Windows, render/tests.rs passes on both backends, and bun run check including rust-windows is green.
由索引模型根据 Issue 内容生成。
描述
Part of the native GPU terminal roadmap. Design and evidence: discussion #237. Depends on the HWND spike.
Decision (from #237)
Native D3D11 on Windows; wgpu stays on macOS (Metal) and Linux (Vulkan). Measured: wgpu DX12 costs +65 MB and ~2.5× device time vs raw D3D11/D3D12, unchanged with lower limits. D3D11 also runs in VMs and on WARP (RDP).
Change
- Extract a narrow GPU backend trait at the
render/gpu.rs/render/mod.rsboundary (wgpu today: 67 + 54 uses; VT, fonts, graphics: none). Grid, atlas, instance building stay shared. - D3D11 backend: instanced quads, atlas texture, images; DXGI adapter by
MINIMUM_POWER(iGPU); flip-model swapchain, frame-latency waitable object withSetMaximumFrameLatency(1),ALPHA_MODE_IGNOREwhen opaque; device-lost recreate; WARP whenSM_REMOTESESSIONor no hardware adapter. - One shader source:
term.wgsl→ naga HLSL → FXC SM 5.0 inbuild.rs. Spike: all 10 entry points compile once naga's DX12 sampler-heap lines are replaced bySamplerState atlas_smp : register(s0);; a build test fails if naga changes that output. crates/atlas-desktop/src/term/win.rsreplacesterm_stub.rson Windows, same commands asterm/mac.rs.
Done when
pwsh opens and renders with keys, mouse, selection, copy; pixel comparison against macOS on the same frames; render/tests.rs passes on both backends; bun run check green incl. rust-windows.
- 主要语言
- Rust
- 星标
- 3
- 派生
- 1
- 平均合并
- 9 小时 51 分钟
- 30 天内合并 PR
- 310
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codeatlasdev/atlas 的其他 Issue
-
type: bug
难度 2/5 1-3 小时 新手友好度 75/100
codeatlasdev/atlas#597 ·
维护者通常 1 天内回复
-
area: ci os: linux type: bug
难度 2/5 1-3 小时 新手友好度 78/100
codeatlasdev/atlas#496 ·
维护者通常 1 天内回复
-
area: ci type: bug
难度 3/5 1-2 天 新手友好度 68/100
codeatlasdev/atlas#596 ·
维护者通常 1 天内回复
-
os: linux type: bug
难度 3/5 1-2 天 新手友好度 68/100
codeatlasdev/atlas#591 ·
维护者通常 1 天内回复
-
area: ci os: windows type: bug
难度 3/5 1-2 天 新手友好度 56/100
codeatlasdev/atlas#550 · 1 条评论 ·
维护者通常 1 天内回复
查看 codeatlasdev/atlas 的全部 Issue
相似的 Issue
-
marketing
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
kinqsradio/orbyn-engineering#729 ·
-
Plans page scenario races Shift+Tab against the plan list being drawn again in Firefox and WebKit未关闭bug
难度 2/5 1-3 小时 新手友好度 83/100
nledford/Ladderback#1091 ·
维护者通常 1 天内回复
-
bug fix packaging ui user-sprint
难度 2/5 1-3 小时 新手友好度 78/100
Vondor/KassenSturz#1197 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复