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

source

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.

source

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
source

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
source

pub fn dist_vk_1_3() -> Self

Suitable for final release builds against Vulkan 1.3:

  • no validation
  • no logging

Trait Implementations§

source§

impl Default for VkInitCreateInfo

source§

fn default() -> Self

Default options are suitable for a debug build against Vulkan 1.3.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.