Struct erupt_bootstrap::instance::InstanceBuilder
source · [−]pub struct InstanceBuilder<'a> { /* private fields */ }Expand description
Allows to easily create an erupt::InstanceLoader and friends.
Implementations
Create a new instance builder with a custom
erupt::InstanceLoaderBuilder and opinionated defaults.
Application version to advertise.
Application version to advertise.
Engine name to advertise.
Engine version to advertise.
Engine version to advertise.
Instance API version to be used as minimum requirement.
Instance API version to be used as minimum requirement.
Instance API version to request. If it is not supported, fall back to the highest supported version.
Instance API version to request. If it is not supported, fall back to the highest supported version.
Try to enable this layer, ignore if it’s not supported
Enable this layer, fail if it’s not supported.
Try to enable this extension, ignore if it is not supported.
Enable this extension, fail if it’s not supported.
pub fn require_surface_extensions(
self,
window_handle: &impl HasRawWindowHandle
) -> Option<Self>
pub fn require_surface_extensions(
self,
window_handle: &impl HasRawWindowHandle
) -> Option<Self>
Adds an requirement on all Vulkan extensions neceessary to create a
surface on window_handle. You can also manually add these extensions.
Returns None if the corresponding Vulkan surface extensions couldn’t
be found. This is only supported on feature surface.
Add Khronos validation layers.
Try to create a debug messenger with the config provided by
debug_messenger.
Filter for the severity of debug messages.
Filter for the type of debug messages.
pub fn enable_validation_feature(
self,
validation_feature: ValidationFeatureEnableEXT
) -> Self
pub fn enable_validation_feature(
self,
validation_feature: ValidationFeatureEnableEXT
) -> Self
Enable an additional feature in the validation layers.
pub fn disable_validation_feature(
self,
validation_feature: ValidationFeatureDisableEXT
) -> Self
pub fn disable_validation_feature(
self,
validation_feature: ValidationFeatureDisableEXT
) -> Self
Disable an feature in the validation layers.
Allocation callback to use for internal Vulkan calls in the builder.
pub unsafe fn build<T>(
self,
entry: &'a CustomEntryLoader<T>
) -> Result<(InstanceLoader, Option<DebugUtilsMessengerEXT>, InstanceMetadata), InstanceCreationError>
pub unsafe fn build<T>(
self,
entry: &'a CustomEntryLoader<T>
) -> Result<(InstanceLoader, Option<DebugUtilsMessengerEXT>, InstanceMetadata), InstanceCreationError>
Returns the erupt::InstanceLoader, an debug messenger if it was
requested and successfully created, and InstanceMetadata about what
is actually enabled in the instance.