[][src]Struct ohm::factory::ImagePlan

pub struct ImagePlan {
    pub kind: Kind,
    pub mip_levels: Level,
    pub format: Format,
    pub tiling: Tiling,
    pub usage: Usage,
    pub view_caps: ViewCapabilities,
    pub hint: Hint,
    pub required_flags: Properties,
    pub preferred_flags: Properties,
}

Fields

kind: Kindmip_levels: Levelformat: Formattiling: Tilingusage: Usageview_caps: ViewCapabilitieshint: Hintrequired_flags: Propertiespreferred_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_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]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for ImagePlan

impl Sync for ImagePlan

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Supports for T[src]