[−][src]Struct web_glitz::image::texture_3d::LevelSubImage
Layered sub-image of a Level.
See Level::sub_image for details.
Methods
impl<'a, F> LevelSubImage<'a, F> where
F: TextureFormat,
[src]
F: TextureFormat,
pub fn level(&self) -> usize
[src]
Returns the index of the mipmap level this LevelSubImage references.
pub fn region(&self) -> Region3D
[src]
Returns the Region3D of the level this LevelSubImage references.
pub fn width(&self) -> u32
[src]
Returns the width of this LevelSubImage.
pub fn height(&self) -> u32
[src]
Returns the height of this LevelSubImage.
pub fn depth(&self) -> u32
[src]
Returns the depth of this LevelSubImage.
pub fn layers(&self) -> LevelSubImageLayers<F>
[src]
Returns a reference to the layers of this LevelSubImage.
See also Level::layers.
pub fn sub_image(&self, region: Region3D) -> LevelSubImage<F>
[src]
Returns a reference to the sub-region of this LevelSubImage's image described by region
.
See also Level::sub_image.
pub fn upload_command<D, T>(
&self,
data: LayeredImageSource<D, T>
) -> LevelUploadCommand<D, T, F> where
T: ClientFormat<F>,
[src]
&self,
data: LayeredImageSource<D, T>
) -> LevelUploadCommand<D, T, F> where
T: ClientFormat<F>,
Returns a command which, when executed, replaces the image data in this LevelSubImage's
image region with the image data provided in data
.
See also Level::upload_command.
Auto Trait Implementations
impl<'a, F> !Send for LevelSubImage<'a, F>
impl<'a, F> Unpin for LevelSubImage<'a, F>
impl<'a, F> !Sync for LevelSubImage<'a, F>
impl<'a, F> !UnwindSafe for LevelSubImage<'a, F>
impl<'a, F> !RefUnwindSafe for LevelSubImage<'a, F>
Blanket Implementations
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static,
[src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,
[src]
Rc: RenderingContext + Clone + 'static,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,