#TIL that you can trigger frame captures on #metal
programmatically, without needing to run your program through #Xcode
Here's a frame capture of my Metal-cpp #HelloTriangle, taken from within itself!
#TIL that you can trigger frame captures on #metal
programmatically, without needing to run your program through #Xcode
Here's a frame capture of my Metal-cpp #HelloTriangle, taken from within itself!
🤘🏻🔻
#Metal
+ #glfw with #cpp code only.
Had to avoid #objc because my custom build system can't deal with that yet (and I didn't feel like changing that).
What a pain to get it to compile.
BUT
It's using the exact same shader as my #Vulkan
#HelloTriangle thanks to #Slang ❤️
AND
```
$ wc -l src/main.cpp src/shaders/hello_triangle.slang
134 src/main.cpp
40 src/shaders/hello_triangle.slang
164 total
```
@avimanyuroy Okay, best response to this definitely goes to @tojiro who put together a nice, tidy, straightforward, and helpfully commented Hello Triangle demo:
https://github.com/toji/hello-triangle-webgpu/blob/main/index.html
Ready for you to enjoy in the new Chrome Beta here:
https://toji.github.io/hello-triangle-webgpu/