makeMetal

fun makeMetal(width: Int, height: Int, texturePtr: NativePointer): BackendTexture

Creates a Graphite backend texture that wraps a Metal texture.

Return

a backend texture wrapping the supplied Metal texture.

Parameters

width

width of the texture in pixels.

height

height of the texture in pixels.

texturePtr

native pointer to the Metal texture to wrap.