Skip to documentation
SLOP

tiny.windowing.PresentationCapacity

Reference tiny.windowing PresentationCapacity

Defined in presentation.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callspresentationCapacity
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/windowing/src/presentation.zig:18

zig
pub const Capacity = struct {    retained_frame_byte_count: usize,    x11_packed_region_bytes: usize,    wayland_pending_frame_bytes: usize,    cocoa_frame_slot_count: usize,    cocoa_frame_storage_bytes: usize,    maximum_backend_frame_storage_bytes: usize,    pub fn derive(limits: Limits) CapacityError!Capacity {        if (limits.retained_frame_byte_count == 0) return error.FrameStorageEmpty;        const cocoa_frame_slot_count = 2;        const cocoa_frame_storage_bytes = std.math.mul(            usize,            limits.retained_frame_byte_count,            cocoa_frame_slot_count,        ) catch return error.CapacityOverflow;        return .{            .retained_frame_byte_count = limits.retained_frame_byte_count,            .x11_packed_region_bytes = limits.retained_frame_byte_count,            .wayland_pending_frame_bytes = limits.retained_frame_byte_count,            .cocoa_frame_slot_count = cocoa_frame_slot_count,            .cocoa_frame_storage_bytes = cocoa_frame_storage_bytes,            .maximum_backend_frame_storage_bytes = cocoa_frame_storage_bytes,        };    }};

Source: lib/windowing/src/root.zig:113

zig
pub const PresentationCapacity = presentation.Capacity;
Called byCallsNo direct callstest sourcelib.windowing.src.presentationtest: presentation capacity derives e...PresentationCapacityderive
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions2
Public names4
Members6
Version26.7.0
Revisiondaab053ee433