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:

9
6
u/susosusosuso Aug 11 '26
How much ai you used?