Skip to content

Instantly share code, notes, and snippets.

@kvark
Created February 3, 2024 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvark/d36aa4ff5e8e38e8c6c2a369231694e4 to your computer and use it in GitHub Desktop.
Save kvark/d36aa4ff5e8e38e8c6c2a369231694e4 to your computer and use it in GitHub Desktop.
Zed on Blade

Zed on Blade

See Zed editor: https://github.com/zed-industries/zed

  • currently MacOS-only, using Metal directly for rendering in GPUI component See Blade engine: https://github.com/kvark/blade
  • specifically the blade-graphics crate providing GPU abstraction

Motivation

I love Zed! It's lightning fast and has great UX. I want it to run as well on all major platforms. I'm currently using Linux most actively. Blade is a good candidate for providing the GPU access: it supports Vulkan, Metal, and GLES/WebGL. Its abstraction is extremel thin, while having one of the nicest GPU APIs. Codebase is small. I think these 2 projects have very similar philosophies, and I'm curious how they could work together.

Artifacts

Main work branch - https://github.com/kvark/zed/tree/blade Mostly trying to stay up to date with upstream.

Progress

  • Platforms
    • X11 (via xcb)
  • Tex System
    • shaping
    • glyph rasterization
  • Shaders
    • basic primitives
    • path rendering
    • sprite rendering
  • CI
    • Nix

Current status: Zed compiles but crashes at startup (unrelated to Blade).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment