Struct vku::VkInitCreateInfo
source · pub struct VkInitCreateInfo {Show 22 fields
pub app_name: String,
pub engine_name: String,
pub app_version: u32,
pub vk_version: u32,
pub enable_validation: bool,
pub enabled_validation_layers: Vec<String>,
pub enabled_validation_features: Vec<ValidationFeatureEnableEXT>,
pub additional_instance_extensions: Vec<String>,
pub log_level: DebugUtilsMessageSeverityFlagsEXT,
pub log_msg: DebugUtilsMessageTypeFlagsEXT,
pub allow_igpu: bool,
pub physical_device_1_1_features: PhysicalDeviceVulkan11Features,
pub physical_device_1_2_features: PhysicalDeviceVulkan12Features,
pub physical_device_1_3_features: PhysicalDeviceVulkan13Features,
pub additional_device_extensions: Vec<String>,
pub surface_format: Format,
pub depth_format: Format,
pub depth_format_sizeof: usize,
pub request_img_count: u32,
pub present_mode: PresentModeKHR,
pub clear_color_value: ClearColorValue,
pub clear_depth_stencil_value: ClearDepthStencilValue,
}
Expand description
Creation parameters for VkInit.
Windowing extensions are enabled automatically depending on the chosen platform.
Fields§
§app_name: String
§engine_name: String
§app_version: u32
§vk_version: u32
§enable_validation: bool
§enabled_validation_layers: Vec<String>
§enabled_validation_features: Vec<ValidationFeatureEnableEXT>
§additional_instance_extensions: Vec<String>
§log_level: DebugUtilsMessageSeverityFlagsEXT
§log_msg: DebugUtilsMessageTypeFlagsEXT
§allow_igpu: bool
§physical_device_1_1_features: PhysicalDeviceVulkan11Features
§physical_device_1_2_features: PhysicalDeviceVulkan12Features
§physical_device_1_3_features: PhysicalDeviceVulkan13Features
§additional_device_extensions: Vec<String>
§surface_format: Format
§depth_format: Format
§depth_format_sizeof: usize
§request_img_count: u32
§present_mode: PresentModeKHR
§clear_color_value: ClearColorValue
§clear_depth_stencil_value: ClearDepthStencilValue
Implementations§
source§impl VkInitCreateInfo
impl VkInitCreateInfo
sourcepub fn verbose_debug_vk_1_3() -> Self
pub fn verbose_debug_vk_1_3() -> Self
Suitable for debug builds against Vulkan 1.3 with all available information:
- validation enabled
- best practices and synchronization checks enabled
- log level: all
- log messages: all
DynamicRendering, DescriptorIndexing, ShaderDrawParameters, and Synchronization2 are enabled by default.
sourcepub fn debug_vk_1_3() -> Self
pub fn debug_vk_1_3() -> Self
Suitable for debug builds against Vulkan 1.3:
- validation enabled
- best practices and synchronization checks enabled
- log level: >= info
- log messages: validation and performance
sourcepub fn test_release_vk_1_3() -> Self
pub fn test_release_vk_1_3() -> Self
Suitable for test release builds against Vulkan 1.3:
- validation enabled
- synchronization checks enabled
- log level: >= warn
- log messages: validation and performance
sourcepub fn dist_vk_1_3() -> Self
pub fn dist_vk_1_3() -> Self
Suitable for final release builds against Vulkan 1.3:
- no validation
- no logging
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VkInitCreateInfo
impl !Send for VkInitCreateInfo
impl !Sync for VkInitCreateInfo
impl Unpin for VkInitCreateInfo
impl UnwindSafe for VkInitCreateInfo
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