[−][src]Struct ohm::factory::ImagePlan
Fields
kind: Kind
mip_levels: Level
format: Format
tiling: Tiling
usage: Usage
view_caps: ViewCapabilities
hint: Hint
required_flags: Properties
preferred_flags: Properties
Methods
impl ImagePlan
[src]
pub fn coherent(&mut self) -> &mut ImagePlan
[src]
Create COHERENT
image, if supported by the driver.
pub fn cached(&mut self) -> &mut ImagePlan
[src]
Create CPU_CACHED
image, if supported by the driver.
pub fn device_local(&mut self) -> &mut ImagePlan
[src]
Create DEVICE_LOCAL
image, if supported by the driver.
pub fn cpu_visible(&mut self) -> &mut ImagePlan
[src]
Require a image to be CPU_VISIBLE
.
pub fn permanent(&mut self) -> &mut ImagePlan
[src]
Hint the allocator that the image will live for a long time.
By default, allocator assumes the image is a short-lived object.
pub fn create<B: Backend>(&self, factory: &mut Factory<B>) -> Fallible<Image<B>>
[src]
Trait Implementations
impl Copy for ImagePlan
[src]
impl PartialEq<ImagePlan> for ImagePlan
[src]
impl Clone for ImagePlan
[src]
fn clone(&self) -> ImagePlan
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for ImagePlan
[src]
impl Debug for ImagePlan
[src]
impl Hash for ImagePlan
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,