Struct rutabaga_gfx::VulkanInfo
source · #[repr(C)]pub struct VulkanInfo {
pub memory_idx: u32,
pub device_id: DeviceId,
}
Expand description
Memory index and physical device id of the associated VkDeviceMemory.
Fields§
§memory_idx: u32
§device_id: DeviceId
Trait Implementations§
source§impl AsBytes for VulkanInfo
impl AsBytes for VulkanInfo
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for VulkanInfo
impl Clone for VulkanInfo
source§fn clone(&self) -> VulkanInfo
fn clone(&self) -> VulkanInfo
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 VulkanInfo
impl Debug for VulkanInfo
source§impl Default for VulkanInfo
impl Default for VulkanInfo
source§fn default() -> VulkanInfo
fn default() -> VulkanInfo
Returns the “default value” for a type. Read more
source§impl FromBytes for VulkanInfo
impl FromBytes for VulkanInfo
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for VulkanInfo
impl FromZeroes for VulkanInfo
source§impl Hash for VulkanInfo
impl Hash for VulkanInfo
source§impl Ord for VulkanInfo
impl Ord for VulkanInfo
source§fn cmp(&self, other: &VulkanInfo) -> Ordering
fn cmp(&self, other: &VulkanInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VulkanInfo
impl PartialEq for VulkanInfo
source§fn eq(&self, other: &VulkanInfo) -> bool
fn eq(&self, other: &VulkanInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VulkanInfo
impl PartialOrd for VulkanInfo
source§fn partial_cmp(&self, other: &VulkanInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &VulkanInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for VulkanInfo
impl Eq for VulkanInfo
impl StructuralPartialEq for VulkanInfo
Auto Trait Implementations§
impl RefUnwindSafe for VulkanInfo
impl Send for VulkanInfo
impl Sync for VulkanInfo
impl Unpin for VulkanInfo
impl UnwindSafe for VulkanInfo
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