Struct comfy_wgpu::MipmapGenerator
source · pub struct MipmapGenerator {
pub format: TextureFormat,
pub blit_pipeline: RenderPipeline,
pub blit_layout: BindGroupLayout,
}Fields§
§format: TextureFormat§blit_pipeline: RenderPipeline§blit_layout: BindGroupLayoutImplementations§
source§impl MipmapGenerator
impl MipmapGenerator
pub fn new(device: &Device, format: TextureFormat) -> Self
pub fn generate_mipmaps( &self, encoder: &mut CommandEncoder, device: &Device, texture: &Texture, mip_count: u32 )
Auto Trait Implementations§
impl !RefUnwindSafe for MipmapGenerator
impl Send for MipmapGenerator
impl Sync for MipmapGenerator
impl Unpin for MipmapGenerator
impl !UnwindSafe for MipmapGenerator
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