~/talk

Explain me Metal like I'm 5

Talkat iOS Conf SG 2020 · on Thursday, 2020-01-30· [web-animation]
slides:none on file

Argues Metal is approachable and shows a working compute pipeline state that implements an image brightness filter: Swift code converts CGImage to textures, creates an MTLDevice and command queue, fills a command buffer via a compute encoder, sets input/output textures and a float intensity, and dispatchThreads one thread per pixel. Shader is a Metal kernel that reads a pixel, multiplies by a factor, writes to output. Advice covers layout, reuse of pipeline state, and async completion handlers.

AI-written summary · about

  1. 0:00Start
  2. 3:43Nintendo Entertainment System
  3. 13:49Command types
  4. 14:59Key ingredient is pipeline state
  5. 18:51GPGPU
  6. 20:34Prerequisites
  7. 21:47Cache state in init using library injection
  8. 22:22Introduce encoding API
  9. 24:55Write your GPU kernels
  10. 26:15Threads and threadgroups
  11. 26:31Implement the kernel
  12. 27:12Use your GPU kernel
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.