Skip to content
Niffoxic

KnightFox

A DirectX 12 / C++20 graphics and shader playground.

Type
Graphics
Role
Solo
Stack
C++20 · DirectX 12 · HLSL · Compute · Lighting
Links
Source on GitHub ↗
KnightFox

Unlimited GPU lights, a full texture-technique stack and compute mip-gen in DX12.

Overview

A real-time graphics playground built from scratch in DirectX 12 and C++20. It started as a game idea and turned into a renderer and shader sandbox - somewhere to try lighting, materials, texture techniques, GPU compute, and post-processing before any of it graduates into my main engine.

What I built

  • DX12 core Swap chain, command lists, fences, RTV/DSV, and descriptor heaps, behind a thin memory wrapper over the pipeline.
  • Assets Runtime model loading with Assimp (node hierarchy intact) and stb_image textures with a caching pool and contiguous SRV slots per submesh.
  • Lighting Unlimited directional, point, and spot lights packed into a GPU structured buffer and rebuilt each frame, with distance culling for local lights.
  • Texture techniques Normal and detail-normal (TBN), parallax height, displacement, ORM packing, AO, Blinn-Phong specular, emissive, and alpha cutout.
  • GPU compute Runtime mip-map generation in a compute shader, cycling each mip between SRV and UAV for a 2x2 box downsample.
  • Post-processing Render-to-texture into a full-screen pass with toggleable effects: exposure, gamma, vignette, chromatic aberration, film grain, mouse-driven radial blur, and more.
  • Tooling ImGui editor UI and snapshot-based map saving.

Hard parts

  • Keeping one sandbox flexible enough to bolt on new experiments without it becoming a full engine.
  • Managing descriptor heaps and per-subresource state transitions by hand, especially for runtime mip generation.

I can build something like this for your project.

Related services: Shaders and optimisation, Renderers and game engine tools.

Contact for a freelance project
Harsh Dubey

Harsh Dubey

Graphics and game programmer. MSc Games Engineering (Distinction), University of Warwick.

About me