#import #import void set_layer(NSView* view, void* layer) { // view.wantsLayer = YES; // view.layer = [CAMetalLayer layer]; }