[−][src]Struct starstruck::allocator::Memory
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]
&mut self,
device: &Arc<D>,
buffer: &mut B::Buffer
) -> Result<(), Error>
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]
&mut self,
device: &Arc<D>,
range: Range<u64>
) -> Result<Writer<B, T>, Error>
pub unsafe fn bind_image_memory<D: Device<B>>(
&mut self,
device: &Arc<D>,
offset: u64,
image: &mut B::Image
) -> Result<(), Error>
[src]
&mut self,
device: &Arc<D>,
offset: u64,
image: &mut B::Image
) -> Result<(), Error>
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]
B::Memory: Debug,
Auto Trait Implementations
impl<B> Send for Memory<B> where
<B as Backend>::Memory: Send + Sync,
<B as Backend>::Memory: Send + Sync,
impl<B> Sync for Memory<B> where
<B as Backend>::Memory: Send + Sync,
<B as Backend>::Memory: Send + Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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> 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, 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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>,
T: Parameter<Self>,
Sets value
as a parameter of self
.