All hail the mighty triangle!

Wanted to try dynamic rendering, and all the nice extensions that have come out since the last time I wrote a #Vulkan  renderer from scratch (2020).
That was also my very first renderer, and I had a very thin grasp on graphics, so it’ll be nice to compare how it feels now.

I’m running it over #MoltenVK atm and the plan is to add a #Metal  backend with metal-cpp.
Good to have #Slang now so I can share shader code without a macro horror show.

@niko OFC #Apple just wants spechal treatment for no good reason.

I mean, #MoltenVK can be more performant that raw #Metal and that's just a JIT dynarec for #Vulkan...

Got my first commit in #MoltenVK. The power of open source. https://github.com/KhronosGroup/MoltenVK/pull/2185 fixing a compilation issue, nothing difficult.
Fix compilation issue due to new project version by jeroenbakker-atmind · Pull Request #2185 · KhronosGroup/MoltenVK

MoltenVK has updated to a new version, but the build scripts still mentioned the previous version, which failed during build. MVKInstance.mm:774:2: error: static assertion failed due to requ...

GitHub
A Christmas miracle!!! I finally found the line of code in my #renderengine that was causing memory leaks on my Mac.
It's some weird #vulkan synchronization thingy that somehow doesn't run cleanly on #metal via #moltenVK.
Anyway, it's all running smoothly now!
MoltenVK 1.2.3 Released For Continuing To Enhance Vulkan Atop iOS/macOS

MoltenVK v1.2.2 Released For Improving Vulkan API Support On macOS/iOS

MoltenVK Updated For Vulkan 1.2 Support On Apple macOS/iOS

TIL even though #Vulkan is not officially supported on #macOS, the Vulcan Tutorial gives instructions how to set up #MoltenVK so you can follow along and develop for macOS anyway.

https://vulkan-tutorial.com/Development_environment#page_MacOS

Development environment - Vulkan Tutorial

A tutorial that teaches you everything it takes to render 3D graphics with the Vulkan API. It covers everything from Windows/Linux setup to rendering and debugging.

horray, #Xenko now also on #macOS thanks to #dotnet and #MoltenVK

#gamedev #indiedev