has anyone here done anything with Kotlin and Metal?
🤘 2
d
Daniel Hauschildt
05/14/2019, 2:59 PM
Yes I wrote a tiny demo
Daniel Hauschildt
05/14/2019, 2:59 PM
let me check
Daniel Hauschildt
05/14/2019, 3:00 PM
It was a bit of nerve wracking as the things are named differently
Daniel Hauschildt
05/14/2019, 3:00 PM
Copy code
import platform.Metal.MTLDeviceProtocol as MTLDevice
import platform.Metal.MTLLibraryProtocol as MTLLibrary
import platform.Metal.MTLCommandQueueProtocol as MTLCommandQueue
import platform.Metal.MTLTextureProtocol as MTLTexture
import platform.Metal.MTLBufferProtocol as MTLBuffer
import platform.Metal.MTLFunctionProtocol as MTLFunction
import platform.Metal.MTLResourceCPUCacheModeDefaultCache
import platform.Metal.MTLRenderPipelineStateProtocol as MTLRenderPipelineState
import platform.Metal.MTLCommandBufferProtocol as MTLCommandBuffer
import platform.Metal.*