renderer/metal: initialize layer in init, handle iOS layer

This commit is contained in:
Mitchell Hashimoto
2024-01-18 18:50:22 -08:00
parent 95f729a5fc
commit 344c2db097
3 changed files with 78 additions and 55 deletions

View File

@@ -18,6 +18,9 @@ padding: Padding,
/// once the thread has started and should not be used outside of the thread.
surface_mailbox: apprt.surface.Mailbox,
/// The apprt surface.
rt_surface: *apprt.Surface,
pub const Padding = struct {
// Explicit padding options, in pixels. The surface thread is
// expected to convert points to pixels for a given DPI.