SDL_GPUVulkanOptions

Struct SDL_GPUVulkanOptions 

Source
#[repr(C)]
pub struct SDL_GPUVulkanOptions { pub vulkan_api_version: Uint32, pub feature_list: *mut c_void, pub vulkan_10_physical_device_features: *mut c_void, pub device_extension_count: Uint32, pub device_extension_names: *mut *const c_char, pub instance_extension_count: Uint32, pub instance_extension_names: *mut *const c_char, }
Expand description

A structure specifying additional options when using Vulkan.

When no such structure is provided, SDL will use Vulkan API version 1.0 and a minimal set of features. The requested API version influences how the feature_list is processed by SDL. When requesting API version 1.0, the feature_list is ignored. Only the vulkan_10_physical_device_features and the extension lists are used. When requesting API version 1.1, the feature_list is scanned for feature structures introduced in Vulkan 1.1. When requesting Vulkan 1.2 or higher, the feature_list is additionally scanned for compound feature structs such as VkPhysicalDeviceVulkan11Features. The device and instance extension lists, as well as vulkan_10_physical_device_features, are always processed.

§Availability

This struct is available since SDL 3.4.0.

Fields§

§vulkan_api_version: Uint32

The Vulkan API version to request for the instance. Use Vulkan’s VK_MAKE_VERSION or VK_MAKE_API_VERSION.

§feature_list: *mut c_void

Pointer to the first element of a chain of Vulkan feature structs. (Requires API version 1.1 or higher.)

§vulkan_10_physical_device_features: *mut c_void

Pointer to a VkPhysicalDeviceFeatures struct to enable additional Vulkan 1.0 features.

§device_extension_count: Uint32

Number of additional device extensions to require.

§device_extension_names: *mut *const c_char

Pointer to a list of additional device extensions to require.

§instance_extension_count: Uint32

Number of additional instance extensions to require.

§instance_extension_names: *mut *const c_char

Pointer to a list of additional instance extensions to require.

Trait Implementations§

Source§

impl Debug for SDL_GPUVulkanOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SDL_GPUVulkanOptions

Source§

fn default() -> Self

Initialize all fields to zero

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>,

Source§

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>,

Source§

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.