Struct webgpu::ipc_messages::recv::ContextConfiguration
source · pub struct ContextConfiguration {
pub device_id: DeviceId,
pub queue_id: QueueId,
pub format: TextureFormat,
pub is_opaque: bool,
}
Fields§
§device_id: DeviceId
§queue_id: QueueId
§format: TextureFormat
§is_opaque: bool
Implementations§
source§impl ContextConfiguration
impl ContextConfiguration
fn format(&self) -> ImageFormat
Trait Implementations§
source§impl Clone for ContextConfiguration
impl Clone for ContextConfiguration
source§fn clone(&self) -> ContextConfiguration
fn clone(&self) -> ContextConfiguration
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 ContextConfiguration
impl Debug for ContextConfiguration
source§impl<'de> Deserialize<'de> for ContextConfiguration
impl<'de> Deserialize<'de> for ContextConfiguration
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ContextConfiguration
impl Serialize for ContextConfiguration
impl Copy for ContextConfiguration
Auto Trait Implementations§
impl Freeze for ContextConfiguration
impl RefUnwindSafe for ContextConfiguration
impl Send for ContextConfiguration
impl Sync for ContextConfiguration
impl Unpin for ContextConfiguration
impl UnwindSafe for ContextConfiguration
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>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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