[][src]Trait vulkano::memory::Content

pub unsafe trait Content {
    pub fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut Self>;
pub fn is_size_suitable(_: usize) -> bool;
pub fn indiv_size() -> usize; }

Trait for types of data that can be mapped.

Required methods

pub fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut Self>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(_: usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

Loading content...

Implementations on Foreign Types

impl<T> Content for [T][src]

Loading content...

Implementors

impl<T> Content for T[src]

Loading content...