Slim Graphics is my toy graphics engine I’ve been using to experiment with different graphical techniques and learn more about DirectX 12 as well as other graphical features such as Mesh Shaders as well as optimisation techniques.

I have not designed the API to be perfectly optimal, nor have I set out to create the perfect graphics abstraction. Instead I have focussed on trying to make an API that is simple for me to expand upon and add new features easily, without getting bogged down in having to handle resource transitions at the perfect moments etc.

Over time, I will be writing individual posts about the various features I’ve implemented or things that I have found interesting.

Source code can be found here: https://github.com/comeradealexi/SlimGraphics – See the ReadMe on github for up to date information on features and setup process.

As of writing this post, here are some of the main features:

  • 3D Model and texture loading via Assimp
  • Mesh shader support
    • Amplification shader support
    • GPU meshlet culling (cone and frustum)
  • CPU frustum culling
  • Basic post-processing and visualisations
  • Built-in magnification tool
  • JSON driven shader compiling via C# tool
  • Model visualisations
  • vertex & prim order
  • wave intrinsics
  • pixel order
  • meshlet & amplification
  • Model cache optimisation (meshoptimizer and DirectXMesh)
  • Model simplification (via meshoptimizer)
  • Pipeline feedback (Via API and UAV Readback)
Slim Graphics screenshot: a scanned human head model lit from above, surrounded by the model viewer and memory statistics panels
Slim Graphics screenshot: a textured stone statue holding a staff, with the built-in magnification tool zoomed in on the left
Slim Graphics screenshot: the Stanford bunny with dark, finely varied per-primitive shading from a model visualisation mode
Slim Graphics screenshot: a large white triangle with red pixels along its edges from a pixel visualisation mode
Slim Graphics screenshot: the Stanford bunny shaded in greyscale patches by a meshlet visualisation, next to the engine's debug panels
Slim Graphics screenshot: a material test ball rendered with a blue wireframe overlay showing its triangles
Slim Graphics screenshot: a full-screen triangle split into red, blue and green regions by a wave or pixel order visualisation
Slim Graphics screenshot: a grey alpha-tested fern plant model on a white background with the debug panels open

Latest Slim Graphics Posts