AGFX 是一个小巧(<10k 行代码)的跨平台 RHI 封装库,基于 D3D12 和 Metal 4,旨在简化独立游戏开发者的现代图形编程。

Stars

82

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

MIT

最近更新

2026-07-28

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它以 MIT 许可提供简洁的 C 兼容接口,支持无绑定优先、光线追踪、网格着色器等现代特性,并包含移植代理和 C++ RAII 封装,便于使用。

适合谁使用

  • 独立游戏开发者
  • 学习现代 RHI 概念的图形程序员
  • 需要轻量级跨平台抽象的 C/C++ 开发者
  • 从 D3D11/OpenGL 迁移到现代 API 的开发者

典型使用场景

  • 构建支持光线追踪和网格着色器的跨平台游戏
  • 在无需 Vulkan 复杂性的前提下原型设计高级 GPU 特性
  • 集成 ImGui 进行调试覆盖层
  • 通过简洁的代码库学习现代 GPU 编程

项目优势

  • 代码量小(<10k 行),C99 兼容,易于绑定其他语言
  • 无绑定优先设计,支持约 2010 年以后的 GPU
  • 暴露现代特性:光线追踪、网格着色器、多间接绘制、资源别名
  • 包含自包含演示、着色器编译器和全面的测试套件

使用前须知

  • 仅支持 Metal 4(macOS 26+ 且需要 Apple Silicon)和 D3D12(Windows)
  • 暂无 Vulkan、PlayStation 5 或 Switch 2 后端计划
  • 某些 GPU 需 D3D12 Agility SDK 才能启用特定功能;稀疏资源未计划支持

README 快速开始

Getting started

项目描述

Small RHI for indie game development

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

ammaarreshi
ammaarreshi GitHub avatar

Generals-Mac-iOS-iPad

This repository ports Command & Conquer Generals: Zero Hour to run natively on Apple Silicon Macs, iPhones, and iPads without emulation, adding touch controls and modern rendering.

C++
1,523
MSNightmare
MSNightmare GitHub avatar

LegacyHive

This repository contains a proof-of-concept for a Windows User Profile Service elevation-of-privilege vulnerability that loads an arbitrary hive into the current user's classes root.

C++
275
kigner
kigner GitHub avatar

audio.cpp-webui

audio.cpp is a high-performance C++ audio inference framework built on ggml that provides a unified local runtime for TTS, ASR, voice cloning, and other audio tasks, with a WebUI, CLI, server, and performance optimizations for CUDA.

C++
245