Function Surface.fromMetalLayer

Create a new Surface from a Metal layer.

static Surface fromMetalLayer (
  Instance instance,
  void* layer,
  string label = null
);