Low cortisol graphics
Find a file
2026-08-18 14:57:55 +01:00
examples Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
src Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
tools Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
zig-out/bin Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
.gitignore Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
build.zig Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
build.zig.zon added stuff and improved stuff | added getRaw(resource) that returns tagged union of backend specific raw resources instead of getRaw(backend)(resource) | much cleaner 2026-08-13 00:37:11 +01:00
imgui.ini Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
README.md Major update | Cleaned up some stuff | Added makeInstance etc for allowing users to pick what type of vk API version and features they want | still f ton stuff to do 2026-08-18 14:57:55 +01:00
zls.json Let there be images 2026-08-12 14:52:27 +01:00

NYXGFX

Low cortisol crossplatform RHI (Rendering Hardware Interface)

Backends

  • Vulkan
  • OpenGL
  • DX12

Features

  • Fire and forget
  • Dead simple + Performance + Flexible
  • Generational Handles
  • Auto managed
  • No hidden control flow
  • No hidden memory allocations
  • No preprocessor, no macros

Architecture

examples/simple/simple.zig

src/gfx.zig
  └─ Selected Backend

src/rhi/root.zig
  └─ Common / Handles / Configs

src/rhi/vulkan/vulkan.zig
  └─ Vulkan Backend / RHI

src/rhi/vulkan/resource.zig
  └─ Adapter / Device / Shader

API

Function Description
makeX(...) Creates an RHI resource and returns its handle
deleteX(handle) Releases the resource and invalidates the handle
releaseX(handle) Releases the resource but keeps the handle valid
getXInfo(handle) Returns backend-independent information about the resource
getRawX(handle) Returns backend-specific raw GPU handle
getRawFrame() Returns backend-specific raw GPU frame resources

Examples

  • zig build run-simple
  • zig build run-imgui
  • zig build run-3D