ebiten/internal/graphicsdriver/metal
Hajime Hoshi edc2f8b961 internal/graphicsdriver/metal: Delay to get a texture for nextDrawable
See https://developer.apple.com/documentation/quartzcore/cametallayer

> To avoid stalls in your app, request a new drawable only when you
> need it, and release any references to it as quickly as possible
> after you’re done with it.

Updates #1196
2021-07-08 01:56:14 +09:00
..
ca internal/graphicsdriver/metal: Set framebufferOnly true 2021-07-07 00:38:55 +09:00
mtl internal/graphicsdriver/metal: Reuse MTLBuffer objects 2021-07-06 21:48:54 +09:00
ns Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
graphics.go internal/graphicsdriver/metal: Delay to get a texture for nextDrawable 2021-07-08 01:56:14 +09:00
README.md Update import paths in the documents 2020-10-04 05:07:08 +09:00
shader.go internal/graphicsdriver/metal: Bug fix: Crashed with METAL_DEVICE_WRAPPER_TYPE=1 2021-07-06 14:06:06 +09:00
view_ios.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
view_macos.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
view.go Revert "internal/graphicsdriver/metal: Do not retain MTLCommandBuffer for MTLBuffer" 2021-07-08 00:27:33 +09:00

These packages are copied from Dmitri Shuralyov's mtl packages and edited with Dmitri's permission:

  • github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ca (copied from dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ca)
  • github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/mtl (copied from dmitri.shuralyov.com/gpu/mtl)
  • github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ns (copied from dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ns)