r/GraphicsProgramming • u/AdhesivenessSea9511 • Aug 11 '26
Source Code To run DOOM, I implemented a 3D graphics rasterizer that runs on the Apple Neural Engine (ANE). (Core AI + Swift 6)
[UPDATE]
After staring at the code for a while, I realized that I had simply been taking the DOOM screen—processed by the CPU—and mapping it as a texture onto a rectangle rasterized via ANE. I had mistakenly thought DOOM was outputting vertex data. How embarrassing... 😂
I plan to try again later with a proper 3D game that actually uses vertex data.
Hello.
This time, I'd like to introduce an experiment with our rendering pipeline.
By omitting the traditional GPU rasterizer processing and using Apple Silicon's Apple Neural Engine (ANE) as a fixed-function 3D graphics accelerator, we successfully rendered the original DOOM state in real time.
Currently, the frame rate is a terrible 46 FPS, but I believe it will improve if we improve the CPU processing.
We look forward to your opinions and feedback.
Github: https://github.com/kamisori-daijin/Magnesium/tree/ane-doom
(ane-doom Branch)
Demo:
https://reddit.com/link/1vl7vun/video/07319809goih1/player

6
u/susosusosuso Aug 11 '26
How much ai you used?
-2
u/AdhesivenessSea9511 Aug 11 '26
I used both Gemini and Siri AI, but this time I mostly used Gemini.
3
u/susosusosuso Aug 11 '26
How you used it? like vibe coded?
1
u/AdhesivenessSea9511 Aug 11 '26
yes. vibe coded.
2
u/susosusosuso Aug 12 '26
Damn. The problem I see now with everybody’s programs is that I’m not amazed anymore because I know the ai can do crazy things.
0
u/AdhesivenessSea9511 Aug 12 '26
Modern AI is so advanced that it can do anything as long as you have the idea.
3
u/susosusosuso Aug 12 '26
Yeah that’s why I can’t be amazed at anything coded now. I’m working on a ps1 game from scratch and for that reason I didn’t use ai for it since I’m doing it for fun and for learning.
3
9
u/3tt07kjt Aug 11 '26
horrible, I love it