pub struct InstanceInfoBuilder { /* private fields */ }Expand description
Builder for InstanceInfo.
Implementations§
Source§impl InstanceInfoBuilder
impl InstanceInfoBuilder
Sourcepub fn api_version(self, value: ApiVersion) -> Self
pub fn api_version(self, value: ApiVersion) -> Self
The Vulkan API version to target.
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.
Set VK_GRAPH_SKIP_VALIDATION_PARK=1 to keep logging validation errors without parking the
callback thread for debugger attach.
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 extension_names(self, value: &'static [&'static CStr]) -> Self
pub fn extension_names(self, value: &'static [&'static CStr]) -> Self
Required Vulkan instance extension names to load.
Source§impl InstanceInfoBuilder
impl InstanceInfoBuilder
Sourcepub fn build(self) -> InstanceInfo
pub fn build(self) -> InstanceInfo
Builds a new InstanceInfo.
Trait Implementations§
Source§impl Clone for InstanceInfoBuilder
impl Clone for InstanceInfoBuilder
Source§fn clone(&self) -> InstanceInfoBuilder
fn clone(&self) -> InstanceInfoBuilder
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 InstanceInfoBuilder
impl Debug for InstanceInfoBuilder
Source§impl Default for InstanceInfoBuilder
impl Default for InstanceInfoBuilder
Source§impl From<InstanceInfoBuilder> for InstanceInfo
impl From<InstanceInfoBuilder> for InstanceInfo
Source§fn from(info: InstanceInfoBuilder) -> Self
fn from(info: InstanceInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for InstanceInfoBuilder
Auto Trait Implementations§
impl Freeze for InstanceInfoBuilder
impl RefUnwindSafe for InstanceInfoBuilder
impl Send for InstanceInfoBuilder
impl Sync for InstanceInfoBuilder
impl Unpin for InstanceInfoBuilder
impl UnsafeUnpin for InstanceInfoBuilder
impl UnwindSafe for InstanceInfoBuilder
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