pub struct ImageView<B: Backend> { /* private fields */ }
Expand description
Generic image view resource wrapper.
Implementations§
Source§impl<B> ImageView<B>where
B: Backend,
impl<B> ImageView<B>where
B: Backend,
Sourcepub fn assert_device_owner(&self, device: &Device<B>)
pub fn assert_device_owner(&self, device: &Device<B>)
Assert specified device is owner.
Sourcepub fn instance_id(&self) -> InstanceId
pub fn instance_id(&self) -> InstanceId
Get owned id.
Sourcepub fn assert_instance_owner(&self, instance: &Instance<B>)
pub fn assert_instance_owner(&self, instance: &Instance<B>)
Assert specified instance is owner.
Source§impl<B> ImageView<B>where
B: Backend,
impl<B> ImageView<B>where
B: Backend,
Sourcepub fn create(
device: &Device<B>,
info: ImageViewInfo,
image: Handle<Image<B>>,
) -> Result<Self, ImageViewCreationError>
pub fn create( device: &Device<B>, info: ImageViewInfo, image: Handle<Image<B>>, ) -> Result<Self, ImageViewCreationError>
Create an image view.
Sourcepub unsafe fn raw_mut(&mut self) -> &mut B::ImageView
pub unsafe fn raw_mut(&mut self) -> &mut B::ImageView
Get mutable reference to raw image view resoruce.
Sourcepub fn info(&self) -> &ImageViewInfo
pub fn info(&self) -> &ImageViewInfo
Get image view info.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for ImageView<B>
impl<B> RefUnwindSafe for ImageView<B>where
<B as Backend>::ImageView: RefUnwindSafe,
<B as Backend>::Image: RefUnwindSafe,
<B as Backend>::Memory: RefUnwindSafe,
impl<B> Send for ImageView<B>
impl<B> Sync for ImageView<B>
impl<B> Unpin for ImageView<B>
impl<B> UnwindSafe for ImageView<B>where
<B as Backend>::ImageView: UnwindSafe,
<B as Backend>::Image: RefUnwindSafe,
<B as Backend>::Memory: RefUnwindSafe,
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