#[non_exhaustive]pub struct DeviceOptions {
pub compute_queue: bool,
}Expand description
(G5d) what Adapter::create_device_with sets up beyond DeviceDesc; DEFAULT is what create_device does. Fields may come in later versions: start from DEFAULT
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compute_queue: boola queue of its own for compute and copies (Device::compute_queue): Vulkan, where the device has a family without graphics. Then every buffer and every texture that is no render target is shared by both queues’ families (concurrently), which some GPUs may pay for; off by default, and jfgui_GPU_COMPUTE=0 turns it off
Implementations§
Source§impl DeviceOptions
impl DeviceOptions
pub const DEFAULT: DeviceOptions
Sourcepub const fn with_compute_queue(self) -> DeviceOptions
pub const fn with_compute_queue(self) -> DeviceOptions
these options with a compute queue asked for
Trait Implementations§
Source§impl Clone for DeviceOptions
impl Clone for DeviceOptions
impl Copy for DeviceOptions
Source§impl Debug for DeviceOptions
impl Debug for DeviceOptions
Source§impl Default for DeviceOptions
impl Default for DeviceOptions
Source§fn default() -> DeviceOptions
fn default() -> DeviceOptions
Returns the “default value” for a type. Read more
impl Eq for DeviceOptions
Source§impl PartialEq for DeviceOptions
impl PartialEq for DeviceOptions
impl StructuralPartialEq for DeviceOptions
Auto Trait Implementations§
impl Forget for DeviceOptions
impl Freeze for DeviceOptions
impl Move for DeviceOptions
impl RefUnwindSafe for DeviceOptions
impl Send for DeviceOptions
impl Sync for DeviceOptions
impl Unpin for DeviceOptions
impl UnsafeUnpin for DeviceOptions
impl UnwindSafe for DeviceOptions
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