Skip to content
/ wgpu Public
forked from gfx-rs/wgpu

Safe and portable GPU abstraction in Rust, implementing WebGPU API.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE.APACHE
MIT
LICENSE.MIT
Notifications You must be signed in to change notification settings

codeflo/wgpu

 
 

Repository files navigation

wgpu "minimal"

This is an unmaintained fork of the WGPU project that aims to reduce the compiled binary size by removing removing some API options, and targeting modern GPUs only.

WGPU itself is an implementation of WebGPU API in Rust, targeting both native and the Web.

This fork not intended for general use. It's barely tested and might only work with a specific project setup. It does, however, reduce the binary size in one program from ~7MB to ~1.5MB.

Changes compared to the official WGPU

  • Only support the most modern graphics backend for each platform:

    • Windows: Vulkan
    • Unix: Vulkan
    • macOS/iOS: Metal
    • WASM: WebGL
  • Only support the WGSL input format for shaders

Adding WGPU minimal to a project

# Cargo.toml

[dependencies]
wgpu = "0.12"

[patch.crates-io]
wgpu = { git = "https://github.com/codeflo/wgpu" }
wgpu-core = { git = "https://github.com/codeflo/wgpu" }
wgpu-hal = { git = "https://github.com/codeflo/wgpu" }
wgpu-types = { git = "https://github.com/codeflo/wgpu" }

About

Safe and portable GPU abstraction in Rust, implementing WebGPU API.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE.APACHE
MIT
LICENSE.MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 90.3%
  • JavaScript 9.6%
  • Other 0.1%