pub struct Image<P> where
P: SharedPointerKind, {
pub allocation: Option<Allocation>,
pub info: ImageInfo,
/* private fields */
}Fields
allocation: Option<Allocation>info: ImageInfoImplementations
sourceimpl<P> Image<P> where
P: SharedPointerKind,
impl<P> Image<P> where
P: SharedPointerKind,
pub fn create(
device: &Shared<Device<P>, P>,
info: impl Into<ImageInfo>
) -> Result<Self, DriverError>
pub fn create_view(
this: &Self,
info: ImageViewInfo
) -> Result<ImageView<P>, DriverError>
pub fn from_raw(
device: &Shared<Device<P>, P>,
image: Image,
info: ImageInfo
) -> Self
pub fn view_ref(
this: &Self,
info: ImageViewInfo
) -> Result<ImageView, DriverError>
Trait Implementations
sourceimpl<'a, P> AsRef<Image<P>> for AnyImageBinding<'a, P> where
P: SharedPointerKind,
impl<'a, P> AsRef<Image<P>> for AnyImageBinding<'a, P> where
P: SharedPointerKind,
sourceimpl<P> AsRef<Image<P>> for ImageBinding<P> where
P: SharedPointerKind,
impl<P> AsRef<Image<P>> for ImageBinding<P> where
P: SharedPointerKind,
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for Image<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for Image<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> ImageNode<P>
sourceimpl<P: Debug> Debug for Image<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for Image<P> where
P: SharedPointerKind,
sourceimpl<P> Deref for Image<P> where
P: SharedPointerKind,
impl<P> Deref for Image<P> where
P: SharedPointerKind,
Auto Trait Implementations
impl<P> !RefUnwindSafe for Image<P>
impl<P> !Send for Image<P>
impl<P> !Sync for Image<P>
impl<P> Unpin for Image<P> where
P: Unpin,
impl<P> !UnwindSafe for Image<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more