[−][src]Struct wgpu_mipmap::RenderMipmapGenerator
Generates mipmaps for textures with output attachment usage.
Implementations
impl RenderMipmapGenerator
[src]
pub fn required_usage() -> TextureUsage
[src]
Returns the texture usage RenderMipmapGenerator
requires for mipmap generation.
pub fn new_with_format_hints(
device: &Device,
format_hints: &[TextureFormat]
) -> Self
[src]
device: &Device,
format_hints: &[TextureFormat]
) -> Self
Creates a new RenderMipmapGenerator
. Once created, it can be used repeatedly to
generate mipmaps for any texture with format specified in format_hints
.
Trait Implementations
impl Debug for RenderMipmapGenerator
[src]
impl MipmapGenerator for RenderMipmapGenerator
[src]
fn generate(
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
[src]
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
Auto Trait Implementations
impl !RefUnwindSafe for RenderMipmapGenerator
impl Send for RenderMipmapGenerator
impl Sync for RenderMipmapGenerator
impl Unpin for RenderMipmapGenerator
impl !UnwindSafe for RenderMipmapGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,