tiny.windowing.PresentationCapacity
Defined in presentation.
API (7)
Actions
Public operations.
Fields and members
Public fields and members.
cocoa_frame_slot_countcocoa_frame_storage_bytesmaximum_backend_frame_storage_bytesretained_frame_byte_countwayland_pending_frame_bytesx11_packed_region_bytes
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;Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |