Terminal Phase 2 [Windows]: D3D11 backend for atlas-term + term/win.rs

Abierto
#242 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area: terminal priority: 1 high status: confirmed type: feature

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.rs boundary (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 with SetMaximumFrameLatency(1), ALPHA_MODE_IGNORE when opaque; device-lost recreate; WARP when SM_REMOTESESSION or no hardware adapter.
  • One shader source: term.wgsl → naga HLSL → FXC SM 5.0 in build.rs. Spike: all 10 entry points compile once naga's DX12 sampler-heap lines are replaced by SamplerState atlas_smp : register(s0);; a build test fails if naga changes that output.
  • crates/atlas-desktop/src/term/win.rs replaces term_stub.rs on Windows, same commands as term/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.

Lenguaje dominante
Rust
Estrellas
3
Forks
1
Merge medio
9 h 51 min
PR fusionados (30 d)
310

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codeatlasdev/atlas

Todos los issues de codeatlasdev/atlas

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.