WGPU-Beef

July 19, 2023 ยท View on GitHub

wgpu-beef is a Beef wrapper library for WGPU (more specifically wgpu-native).
You can find an example here.

Notes

  • The core bindings are automatically generated from latest release.
  • Functions are kept as they are but if the function is a method for a struct object handle then a method for that struct is generated too.
  • All structs have a default empty constructor (allowing for .() {} syntax) and a constructor with all fields.
  • There are a few helper functions ported from wgpu-rs (see Helper.bf). Pull requests for these helper functions are welcome.
  • There is a glfw compatiblity subproject which adds Wgpu.CreateSurfaceFromGlfw(Wgpu.Instance, GlfwWindow*) function. (Currently only works on Windows and Linux using X11)
  • There is an ImGui rendering backend subproject which adds ImGuiImplWgpu static class to the ImGui namespace.