pub struct Image<P> where
P: SharedPointerKind, {
pub allocation: Option<Allocation>,
pub info: ImageInfo,
pub name: Option<String>,
/* private fields */
}Fields
allocation: Option<Allocation>info: ImageInfoname: Option<String>Implementations
sourceimpl<P> Image<P> where
P: SharedPointerKind,
impl<P> Image<P> where
P: SharedPointerKind,
pub fn create(
device: &SharedPointer<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: &SharedPointer<Device<P>, P>,
image: Image,
info: ImageInfo
) -> Self
pub fn view_ref(
this: &Self,
info: ImageViewInfo
) -> Result<ImageView, DriverError>
Trait Implementations
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 for Image<P> where
P: SharedPointerKind,
impl<P> 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> where
P: Send,
impl<P> Sync for Image<P> where
P: Send + Sync,
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more