pub struct VulkanOptions {
pub map_unified_device_memory: bool,
}Expand description
Backend options a host may set when opening a device. The defaults are what
VulkanAccelerator::new and VulkanAccelerator::with_device use.
Fields§
§map_unified_device_memory: boolOn a device with a single memory heap — an integrated GPU, Apple silicon, a software
ICD — there is no second memory for the Device domain to be local to, so its
allocations take a host-visible device-local type and write_buffer/read_buffer are a
mapped copy rather than a staged copy through a transient buffer and a GPU transfer
(ADR 0012). false keeps the discrete-GPU plan (a non-host-visible type, staged
transfers) on such devices too; the staging path’s tests use it.
Trait Implementations§
Source§impl Clone for VulkanOptions
impl Clone for VulkanOptions
Source§fn clone(&self) -> VulkanOptions
fn clone(&self) -> VulkanOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VulkanOptions
Source§impl Debug for VulkanOptions
impl Debug for VulkanOptions
Source§impl Default for VulkanOptions
impl Default for VulkanOptions
impl Eq for VulkanOptions
Source§impl PartialEq for VulkanOptions
impl PartialEq for VulkanOptions
Source§fn eq(&self, other: &VulkanOptions) -> bool
fn eq(&self, other: &VulkanOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VulkanOptions
Auto Trait Implementations§
impl Freeze for VulkanOptions
impl RefUnwindSafe for VulkanOptions
impl Send for VulkanOptions
impl Sync for VulkanOptions
impl Unpin for VulkanOptions
impl UnsafeUnpin for VulkanOptions
impl UnwindSafe for VulkanOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more