#[repr(transparent)]pub struct GpuTexture {
pub wgpu: Texture,
}Fields§
§wgpu: TextureImplementations§
Source§impl GpuTexture
impl GpuTexture
pub fn view(&self) -> GpuTextureView
Trait Implementations§
Source§impl Clone for GpuTexture
impl Clone for GpuTexture
Source§fn clone(&self) -> GpuTexture
fn clone(&self) -> GpuTexture
Returns a duplicate 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 GpuTexture
impl Debug for GpuTexture
Source§impl<'de> Deserialize<'de> for GpuTexture
Available on crate feature serde only.
impl<'de> Deserialize<'de> for GpuTexture
Available on crate feature
serde only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<GpuTexture, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<GpuTexture, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Idx> From<&ImageBaseOf<RgbaOf<u8>, Idx>> for GpuTexturewhere
Idx: Integer,
impl<Idx> From<&ImageBaseOf<RgbaOf<u8>, Idx>> for GpuTexturewhere
Idx: Integer,
Source§fn from(value: &ImageBaseOf<RgbaOf<u8>, Idx>) -> GpuTexture
fn from(value: &ImageBaseOf<RgbaOf<u8>, Idx>) -> GpuTexture
Converts to this type from the input type.
Source§impl From<GpuTexture> for Texture
impl From<GpuTexture> for Texture
Source§fn from(value: GpuTexture) -> Texture
fn from(value: GpuTexture) -> Texture
Converts to this type from the input type.
Source§impl<C, Idx> From<ImageBaseOf<C, Idx>> for GpuTexture
impl<C, Idx> From<ImageBaseOf<C, Idx>> for GpuTexture
Source§fn from(value: ImageBaseOf<C, Idx>) -> GpuTexture
fn from(value: ImageBaseOf<C, Idx>) -> GpuTexture
Converts to this type from the input type.
Source§impl From<Texture> for GpuTexture
impl From<Texture> for GpuTexture
Source§fn from(wgpu: Texture) -> GpuTexture
fn from(wgpu: Texture) -> GpuTexture
Converts to this type from the input type.
Source§impl Handle for GpuTexture
impl Handle for GpuTexture
fn clone_handle(&self) -> Self
Source§impl LoadExtension for GpuTexture
impl LoadExtension for GpuTexture
fn load_custom_extensions() -> impl Iterator<Item = &'static str>
fn load_from_reader_with_custom_extension<R>( reader: R, extension: &str, ) -> Result<GpuTexture, EncodeError>
Auto Trait Implementations§
impl Freeze for GpuTexture
impl !RefUnwindSafe for GpuTexture
impl Send for GpuTexture
impl Sync for GpuTexture
impl Unpin for GpuTexture
impl UnsafeUnpin for GpuTexture
impl !UnwindSafe for GpuTexture
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<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
fn cast_range_into(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
fn from_json_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_json_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_json(json: &str) -> Result<Self, EncodeError>
Source§impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
fn from_ron_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_ron_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_ron(ron: &str) -> Result<Self, EncodeError>
Source§impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
fn from_tmp_bin_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_tmp_bin_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
Source§impl<T> FromUrl for Twhere
T: LoadExtension,
impl<T> FromUrl for Twhere
T: LoadExtension,
Source§fn from_url(url: &str) -> Result<Self, EncodeError>where
Self: Sized,
fn from_url(url: &str) -> Result<Self, EncodeError>where
Self: Sized,
Loads an instance from a standard Data URL (RFC 2397) string. Read more
Source§fn from_bin_url(url: &[u8]) -> Result<Self, EncodeError>where
Self: Sized,
fn from_bin_url(url: &[u8]) -> Result<Self, EncodeError>where
Self: Sized,
Loads an instance from a binary URL (custom
bin_data: scheme). Read moreSource§fn from_bin_url_or_bytes(
bytes: &[u8],
extension: &str,
) -> Result<Self, EncodeError>where
Self: Sized,
fn from_bin_url_or_bytes(
bytes: &[u8],
extension: &str,
) -> Result<Self, EncodeError>where
Self: Sized,
Loads an instance from a binary URL (custom
bin_data: scheme), falling back to raw bytes if parsing fails. Read moreSource§impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
fn from_xml_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_xml_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_xml(xml: &str) -> Result<Self, EncodeError>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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