Struct webgpu::PresentationData
source · pub struct PresentationData {
pub(crate) device_id: DeviceId,
pub(crate) queue_id: QueueId,
pub data: Vec<u8>,
pub size: Size2D<i32>,
pub(crate) unassigned_buffer_ids: ArrayVec<BufferId, PRESENTATION_BUFFER_COUNT>,
pub(crate) available_buffer_ids: ArrayVec<BufferId, PRESENTATION_BUFFER_COUNT>,
pub(crate) queued_buffer_ids: ArrayVec<BufferId, PRESENTATION_BUFFER_COUNT>,
pub(crate) buffer_stride: u32,
pub(crate) image_key: ImageKey,
pub(crate) image_desc: ImageDescriptor,
pub(crate) image_data: ImageData,
}
Fields§
§device_id: DeviceId
§queue_id: QueueId
§data: Vec<u8>
§size: Size2D<i32>
§unassigned_buffer_ids: ArrayVec<BufferId, PRESENTATION_BUFFER_COUNT>
§available_buffer_ids: ArrayVec<BufferId, PRESENTATION_BUFFER_COUNT>
§queued_buffer_ids: ArrayVec<BufferId, PRESENTATION_BUFFER_COUNT>
§buffer_stride: u32
§image_key: ImageKey
§image_desc: ImageDescriptor
§image_data: ImageData
Auto Trait Implementations§
impl !RefUnwindSafe for PresentationData
impl Send for PresentationData
impl Sync for PresentationData
impl Unpin for PresentationData
impl !UnwindSafe for PresentationData
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more