#gamedev #abstraction-layer #newport #game-engine #engine #game #thread-safe

nightly newport_gpu

Thread safe render abstraction layer for Newport engine

2 unstable releases

0.2.0 Jul 18, 2021
0.0.1 Mar 31, 2021

#11 in #newport

Download history 3/week @ 2024-02-11 27/week @ 2024-02-18 34/week @ 2024-02-25 17/week @ 2024-03-03 19/week @ 2024-03-10 12/week @ 2024-03-17 17/week @ 2024-03-24 71/week @ 2024-03-31 13/week @ 2024-04-07 9/week @ 2024-04-14 11/week @ 2024-04-21 7/week @ 2024-04-28 14/week @ 2024-05-05 12/week @ 2024-05-12 17/week @ 2024-05-19

52 downloads per month
Used in 6 crates (5 directly)

Apache-2.0

19MB
7K SLoC

Contains (Windows DLL, 19MB) bin/dxcompiler.dll

This crate is the HAL for the GPU. Currently Vulkan is the only back end available. The design and architecture was originally concepted after reading http://alextardif.com/RenderingAbstractionLayers.html

Warning

This package is still in a very early state. The API is currently super volatile. I would not recommend using this package if you don't plan on handling the unknown future changes.

Goals

  • Abstraction layer should be as lightweight as possible. As many API layer specfic concepts should be hidden from the user

  • Abstraction layer should be as simple as possible. There will be code complexity that is unavoidable but they should be rare. If the user ends up spending too much time debugging just to get to the meat of their calls then we have failed

  • Abstraction layer should be easy to maintain and add on. The hope is that the above points aid this goal

Needs

  • Ability to create multiple devices to allow multiple GPU work if desired
  • Create, upload, and destroy resources (buffers, textures, shaders, pipelines, etc)
  • Gather, submit, and wait on command work from various passes, in a multicore-compatible way
  • Automatic device memory management

Dependencies

~8MB
~182K SLoC