pub struct Resource3DInfo {
pub width: u32,
pub height: u32,
pub drm_fourcc: u32,
pub strides: [u32; 4],
pub offsets: [u32; 4],
pub modifier: u64,
pub guest_cpu_mappable: bool,
}
Expand description
Metadata associated with a swapchain, video or camera image.
Fields§
§width: u32
§height: u32
§drm_fourcc: u32
§strides: [u32; 4]
§offsets: [u32; 4]
§modifier: u64
§guest_cpu_mappable: bool
Whether the buffer can be accessed by the guest CPU.
Trait Implementations§
Source§impl Clone for Resource3DInfo
impl Clone for Resource3DInfo
Source§fn clone(&self) -> Resource3DInfo
fn clone(&self) -> Resource3DInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Resource3DInfo
impl Debug for Resource3DInfo
Source§impl Default for Resource3DInfo
impl Default for Resource3DInfo
Source§fn default() -> Resource3DInfo
fn default() -> Resource3DInfo
Returns the “default value” for a type. Read more
impl Copy for Resource3DInfo
Auto Trait Implementations§
impl Freeze for Resource3DInfo
impl RefUnwindSafe for Resource3DInfo
impl Send for Resource3DInfo
impl Sync for Resource3DInfo
impl Unpin for Resource3DInfo
impl UnwindSafe for Resource3DInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)