Trait vulkano::memory::Content [−][src]
pub unsafe trait Content {
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut Self>;
fn is_size_suitable(size: DeviceSize) -> bool;
fn indiv_size() -> DeviceSize;
}
Expand description
Trait for types of data that can be mapped.
Required methods
Builds a pointer to this type from a raw pointer.
fn is_size_suitable(size: DeviceSize) -> bool
fn is_size_suitable(size: DeviceSize) -> bool
Returns true if the size is suitable to store a type like this.
fn indiv_size() -> DeviceSize
fn indiv_size() -> DeviceSize
Returns the size of an individual element.