[][src]Struct starstruck::allocator::Memory

pub struct Memory<B: Backend> { /* fields omitted */ }

Methods

impl<B: Backend> Memory<B>[src]

pub fn new(range: Range<u32>, chunk_id: u64, memory: Arc<B::Memory>) -> Self[src]

pub unsafe fn bind_buffer_memory<D: Device<B>>(
    &mut self,
    device: &Arc<D>,
    buffer: &mut B::Buffer
) -> Result<(), Error>
[src]

pub unsafe fn acquire_mapping_writer<D: Device<B>, T: Copy>(
    &mut self,
    device: &Arc<D>,
    range: Range<u64>
) -> Result<Writer<B, T>, Error>
[src]

pub unsafe fn bind_image_memory<D: Device<B>>(
    &mut self,
    device: &Arc<D>,
    offset: u64,
    image: &mut B::Image
) -> Result<(), Error>
[src]

pub fn is_freed(&self) -> bool[src]

pub fn is_allocated(&self) -> bool[src]

pub fn chunk_id(&self) -> u64[src]

pub fn memory_range(&self) -> Range<u32>[src]

Trait Implementations

impl<B: Backend> Drop for Memory<B>[src]

impl<B: Debug + Backend> Debug for Memory<B> where
    B::Memory: Debug
[src]

Auto Trait Implementations

impl<B> Send for Memory<B> where
    <B as Backend>::Memory: Send + Sync

impl<B> Sync for Memory<B> where
    <B as Backend>::Memory: Send + Sync

Blanket Implementations

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

impl<T> From for 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> Borrow for T where
    T: ?Sized
[src]

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

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Supports for T[src]

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.