Sun.Oct 23, 2022

article thumbnail

Write your first GPU Kernel using Metal

Harold Serrano

Hey guys, I want to share how you can write your first GPU Kernel using Metal. So, without further ado, let's do this. Our example will be straightforward but will lay the foundation needed. All our code will do is write data from one buffer onto another. These are the steps we will take: Setup Xcode project for Compute kernels. Initialize our Device, Library and Command Queue.

Writing 52
article thumbnail

When to assert

GameDev Blog

I recently checked in some work to the main branch and in certain corner cases asserts would fire, so this topic is fresh in my mind. Though nobody has pointed direct fingers I can't help but feel like I'm being.

40