Struct vulkano::memory::ExternalMemoryHandleType [−][src]
Describes the handle type used for Vulkan external memory apis. This is not just a suggestion. Check out vkExternalMemoryHandleTypeFlagBits in the Vulkan spec.
If you specify an handle type that doesnt make sense (for example, using a dma-buf handle type on Windows) when using this handle, a panic will happen.
Fields
opaque_fd: bool
opaque_win32: bool
opaque_win32_kmt: bool
d3d11_texture: bool
d3d11_texture_kmt: bool
d3d12_heap: bool
d3d12_resource: bool
dma_buf: bool
android_hardware_buffer: bool
host_allocation: bool
host_mapped_foreign_memory: bool
Implementations
impl ExternalMemoryHandleType
[src]
pub fn none() -> ExternalMemoryHandleType
[src]
Builds a ExternalMemoryHandleType
with all values set to false. Useful as a default value.
Example
use vulkano::memory::ExternalMemoryHandleType as ExternalMemoryHandleType; let _handle_type = ExternalMemoryHandleType { opaque_fd: true, .. ExternalMemoryHandleType::none() };
Trait Implementations
impl BitOr<ExternalMemoryHandleType> for ExternalMemoryHandleType
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl Clone for ExternalMemoryHandleType
[src]
fn clone(&self) -> ExternalMemoryHandleType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExternalMemoryHandleType
[src]
impl Debug for ExternalMemoryHandleType
[src]
impl Eq for ExternalMemoryHandleType
[src]
impl Hash for ExternalMemoryHandleType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ExternalMemoryHandleType> for ExternalMemoryHandleType
[src]
fn eq(&self, other: &ExternalMemoryHandleType) -> bool
[src]
fn ne(&self, other: &ExternalMemoryHandleType) -> bool
[src]
impl StructuralEq for ExternalMemoryHandleType
[src]
impl StructuralPartialEq for ExternalMemoryHandleType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExternalMemoryHandleType
impl Send for ExternalMemoryHandleType
impl Sync for ExternalMemoryHandleType
impl Unpin for ExternalMemoryHandleType
impl UnwindSafe for ExternalMemoryHandleType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,