Instance Method

texture(with:width:height:)

Required.

Declaration

func texture(with pixelFormat: MTLPixelFormat, width: Int, height: Int) -> MTLTexture?