pub struct Image {
pub id: ImageId,
pub collection_id: BufferCollectionId,
pub vmo: Vmo,
pub parameters: ImageParameters,
pub format_constraints: ImageFormatConstraints,
pub buffer_settings: BufferMemorySettings,
/* private fields */
}
Expand description
Represents an allocated image buffer that can be assigned to a display layer.
Fields§
§id: ImageId
The ID of the image provided to the display driver.
collection_id: BufferCollectionId
The ID of the sysmem buffer collection that backs this image.
vmo: Vmo
The VMO that contains the shared image buffer.
parameters: ImageParameters
The parameters that the image was initialized with.
format_constraints: ImageFormatConstraints
The image format constraints that resulted from the sysmem buffer negotiation. Contains the effective image parameters.
buffer_settings: BufferMemorySettings
The effective buffer memory settings that resulted from the sysmem buffer negotiation.
Implementations§
Source§impl Image
impl Image
Sourcepub async fn create(
coordinator: Coordinator,
image_id: ImageId,
params: &ImageParameters,
) -> Result<Image>
pub async fn create( coordinator: Coordinator, image_id: ImageId, params: &ImageParameters, ) -> Result<Image>
Construct a new sysmem-buffer-backed image and register it with the display driver
using image_id
. If successful, the image can be assigned to a primary layer in a
display configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl !RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl !UnwindSafe for Image
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more