remove some unused structs

This commit is contained in:
Mitchell Hashimoto
2024-11-14 14:25:01 -08:00
parent 72a3d22e69
commit 1792ddfff1
2 changed files with 7 additions and 10 deletions

View File

@ -622,7 +622,7 @@ pub fn init(alloc: Allocator, options: renderer.Options) !Metal {
};
errdefer if (display_link) |v| v.release();
return Metal{
var result: Metal = .{
.alloc = alloc,
.config = options.config,
.surface_mailbox = options.surface_mailbox,
@ -663,6 +663,12 @@ pub fn init(alloc: Allocator, options: renderer.Options) !Metal {
.custom_shader_state = custom_shader_state,
.gpu_state = gpu_state,
};
// Do an initialize screen size setup to ensure our undefined values
// above are initialized.
try result.setScreenSize(result.size);
return result;
}
pub fn deinit(self: *Metal) void {

View File

@ -20,12 +20,3 @@ 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.
explicit: renderer.Padding,
// Balance options
balance: bool = false,
};