pub struct DeviceInfoBuilder { /* private fields */ }Expand description
Builder for DeviceInfo.
Implementations§
Source§impl DeviceInfoBuilder
impl DeviceInfoBuilder
Sourcepub fn debug(self, value: bool) -> Self
pub fn debug(self, value: bool) -> Self
Enables Vulkan validation layers.
This requires a Vulkan SDK installation and will cause validation errors to introduce panics as they happen.
NOTE: Consider turning OFF debug if you discover an unknown issue. Often the validation layers will throw an error before other layers can provide additional context such as the API dump info or other messages. You might find the “actual” issue is detailed in those subsequent details.
§Platform-specific
macOS: Has no effect unless the loaded feature is enabled.
Sourcepub fn physical_device_index(self, value: usize) -> Self
pub fn physical_device_index(self, value: usize) -> Self
Index of the PhysicalDevice from the available devices. See
Instance::physical_devices.
Source§impl DeviceInfoBuilder
impl DeviceInfoBuilder
Sourcepub fn build(self) -> DeviceInfo
pub fn build(self) -> DeviceInfo
Builds a new DeviceInfo.
Trait Implementations§
Source§impl Clone for DeviceInfoBuilder
impl Clone for DeviceInfoBuilder
Source§fn clone(&self) -> DeviceInfoBuilder
fn clone(&self) -> DeviceInfoBuilder
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 moreSource§impl Debug for DeviceInfoBuilder
impl Debug for DeviceInfoBuilder
Source§impl Default for DeviceInfoBuilder
impl Default for DeviceInfoBuilder
Source§impl From<DeviceInfoBuilder> for DeviceInfo
impl From<DeviceInfoBuilder> for DeviceInfo
Source§fn from(info: DeviceInfoBuilder) -> Self
fn from(info: DeviceInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for DeviceInfoBuilder
Auto Trait Implementations§
impl Freeze for DeviceInfoBuilder
impl RefUnwindSafe for DeviceInfoBuilder
impl Send for DeviceInfoBuilder
impl Sync for DeviceInfoBuilder
impl Unpin for DeviceInfoBuilder
impl UnsafeUnpin for DeviceInfoBuilder
impl UnwindSafe for DeviceInfoBuilder
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