platform.macos.coreanimation

Metal-backed Core Animation layers and drawable management.

2 structs · 12 functions · Public API

Structs

CAMetalLayer

struct
@objc_object(.runtime_name = "CAMetalLayer", .handle = "handle")
CAMetalLayer : struct {
    handle : core.ObjCId = null
}

CAMetalDrawable

struct
@objc_object(.kind = "protocol_object", .handle = "handle")
CAMetalDrawable : struct {
    handle : core.ObjCId = null
}

Functions

deinit

func
deinit : func(self : ^CAMetalLayer)

device

func
device : func(self : ^CAMetalLayer) -> metal.MTLDevice

set_device

func
set_device : func(self : ^CAMetalLayer, device : ^metal.MTLDevice)

pixel_format

func
pixel_format : func(self : ^CAMetalLayer) -> metal.MTLPixelFormat

set_pixel_format

func
set_pixel_format : func(self : ^CAMetalLayer, format : metal.MTLPixelFormat)

next_drawable

func
next_drawable : func(self : ^CAMetalLayer) -> CAMetalDrawable

as_drawable

func
as_drawable : func(self : ^CAMetalDrawable) -> metal.MTLDrawable

texture

func
texture : func(self : ^CAMetalDrawable) -> metal.MTLTexture