Skip to main content

Compat

Struct Compat 

Source
pub struct Compat<T>(/* private fields */);

Implementations§

Source§

impl<T> Compat<T>

Source

pub fn into_inner(self) -> T

Trait Implementations§

Source§

impl<T: Clone> Clone for Compat<T>

Source§

fn clone(&self) -> Compat<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Compat<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Compat<Adapter>> for Adapter

Source§

fn from(value: Compat<Adapter>) -> Self

Converts to this type from the input type.
Source§

impl From<Compat<Device>> for Device

Source§

fn from(value: Compat<Device>) -> Self

Converts to this type from the input type.
Source§

impl From<Compat<Instance>> for Instance

Source§

fn from(value: Compat<Instance>) -> Self

Converts to this type from the input type.
Source§

impl From<Compat<Queue>> for Queue

Source§

fn from(value: Compat<Queue>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<T> for Compat<T>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<&Adapter> for Compat<Adapter>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Adapter) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&BindGroup> for Compat<BindGroup>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &BindGroup) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&BindGroupLayout> for Compat<BindGroupLayout>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &BindGroupLayout) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Buffer> for Compat<Buffer>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Buffer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&CommandBuffer> for Compat<CommandBuffer>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &CommandBuffer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&CommandEncoder> for Compat<CommandEncoder>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &CommandEncoder) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&ComputePipeline> for Compat<ComputePipeline>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &ComputePipeline) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Device> for Compat<Device>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Device) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Instance> for Compat<Instance>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Instance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&PipelineLayout> for Compat<PipelineLayout>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &PipelineLayout) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&QuerySet> for Compat<QuerySet>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &QuerySet) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Queue> for Compat<Queue>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Queue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&RenderBundle> for Compat<RenderBundle>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &RenderBundle) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&RenderPipeline> for Compat<RenderPipeline>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &RenderPipeline) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Sampler> for Compat<Sampler>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Sampler) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&ShaderModule> for Compat<ShaderModule>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &ShaderModule) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Surface<'_>> for Compat<Surface>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Surface<'_>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Texture> for Compat<Texture>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Texture) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&TextureView> for Compat<TextureView>

Source§

type Error = WgpuCompatError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &TextureView) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<T> Freeze for Compat<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Compat<T>
where T: RefUnwindSafe,

§

impl<T> Send for Compat<T>
where T: Send,

§

impl<T> Sync for Compat<T>
where T: Sync,

§

impl<T> Unpin for Compat<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Compat<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Compat<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> CommonTraits for T
where T: AsAny + Any + Debug + WasmNotSendSync,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,