[−][src]Struct ohm::factory::BufferPlan
Buffer plan
Fields
size: u64
usage: Usage
hint: Hint
required_flags: Properties
preferred_flags: Properties
Methods
impl BufferPlan
[src]
pub fn coherent(&mut self) -> &mut BufferPlan
[src]
Create COHERENT
buffer, if supported by the driver.
pub fn cached(&mut self) -> &mut BufferPlan
[src]
Create CPU_CACHED
buffer, if supported by the driver.
pub fn device_local(&mut self) -> &mut BufferPlan
[src]
Create DEVICE_LOCAL
buffer, if supported by the driver.
pub fn cpu_visible(&mut self) -> &mut BufferPlan
[src]
Require a buffer to be CPU_VISIBLE
.
pub fn permanent(&mut self) -> &mut BufferPlan
[src]
Hint the allocator that the buffer will live for a long time.
By default, allocator assumes the buffer is a short-lived object.
pub fn create<B: Backend>(
&self,
factory: &mut Factory<B>
) -> Fallible<Buffer<B>>
[src]
&self,
factory: &mut Factory<B>
) -> Fallible<Buffer<B>>
Build the buffer, allocating the memory and binding it to the buffer.
Trait Implementations
impl Copy for BufferPlan
[src]
impl PartialEq<BufferPlan> for BufferPlan
[src]
fn eq(&self, other: &BufferPlan) -> bool
[src]
fn ne(&self, other: &BufferPlan) -> bool
[src]
impl Clone for BufferPlan
[src]
fn clone(&self) -> BufferPlan
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for BufferPlan
[src]
impl Debug for BufferPlan
[src]
impl Hash for BufferPlan
[src]
Auto Trait Implementations
impl Send for BufferPlan
impl Sync for BufferPlan
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,