Trait MewTexture

Source
pub trait MewTexture {
    // Required methods
    fn new(buffer: Texture) -> Self;
    fn binding_type() -> BindingType;
    fn buffer_desc(
        inner_size: (u32, u32, u32),
        format: TextureFormat,
    ) -> TextureDescriptor<'static>;
    fn as_binding<'a>(&'a self) -> BindingResource<'a>;
    fn as_colour_attachment<'a>(
        &'a self,
        clear: Option<Color>,
        depth_slice: Option<u32>,
    ) -> RenderPassColorAttachment<'a>;
    fn as_depth_attachment<'a>(&'a self) -> RenderPassDepthStencilAttachment<'a>;
    fn memory_estimate(&self) -> u64;
    fn texel_layout(&self) -> TexelCopyBufferLayout;
}

Required Methods§

Source

fn new(buffer: Texture) -> Self

Source

fn binding_type() -> BindingType

Source

fn buffer_desc( inner_size: (u32, u32, u32), format: TextureFormat, ) -> TextureDescriptor<'static>

Source

fn as_binding<'a>(&'a self) -> BindingResource<'a>

Source

fn as_colour_attachment<'a>( &'a self, clear: Option<Color>, depth_slice: Option<u32>, ) -> RenderPassColorAttachment<'a>

Source

fn as_depth_attachment<'a>(&'a self) -> RenderPassDepthStencilAttachment<'a>

Source

fn memory_estimate(&self) -> u64

Source

fn texel_layout(&self) -> TexelCopyBufferLayout

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§