Skip to content

Instantly share code, notes, and snippets.

View d7samurai's full-sized avatar
💭
innovation through irritation™

d7samurai

💭
innovation through irritation™
View GitHub Profile
@d7samurai
d7samurai / .readme.md
Last active April 17, 2026 01:56
Minimal D3D11 elaborations II
@d7samurai
d7samurai / .readme.md
Last active April 17, 2026 01:54
Minimal D3D11 elaborations I

Minimal D3D11 elaborations I

A spin-off from the mainline Minimal D3D11 series, adding two-lane instanced rendering. As before: An uncluttered Direct3D 11 setup & basic rendering primer / API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion. No modern C++ / OOP / obscuring cruft.

The main difference here is that the hollow cube itself is rendered using instancing (which saves a lot of vertices compared to the original, so geometry data is now small enough to be included in the source without being too much in the way), but also all trigonometry and matrix math is moved to the vertex shader, simplifying the main code (and not needing math.h).

In this case, each instance is mere

@d7samurai
d7samurai / .readme.md
Last active May 2, 2026 08:25
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++ / OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series: