#[repr(C)]pub struct InstanceCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: InstanceCreateFlags,
pub p_application_info: *const ApplicationInfo<'a>,
pub enabled_layer_count: u32,
pub pp_enabled_layer_names: *const *const i8,
pub enabled_extension_count: u32,
pub pp_enabled_extension_names: *const *const i8,
pub _marker: PhantomData<&'a ()>,
}Expand description
Fields§
§s_type: StructureType§p_next: *const c_void§flags: InstanceCreateFlags§p_application_info: *const ApplicationInfo<'a>§enabled_layer_count: u32§pp_enabled_layer_names: *const *const i8§enabled_extension_count: u32§pp_enabled_extension_names: *const *const i8§_marker: PhantomData<&'a ()>Implementations§
Source§impl<'a> InstanceCreateInfo<'a>
impl<'a> InstanceCreateInfo<'a>
pub fn flags(self, flags: InstanceCreateFlags) -> InstanceCreateInfo<'a>
pub fn application_info( self, application_info: &'a ApplicationInfo<'a>, ) -> InstanceCreateInfo<'a>
pub fn enabled_layer_names( self, enabled_layer_names: &'a [*const i8], ) -> InstanceCreateInfo<'a>
pub fn enabled_extension_names( self, enabled_extension_names: &'a [*const i8], ) -> InstanceCreateInfo<'a>
Sourcepub fn push_next<T>(self, next: &'a mut T) -> InstanceCreateInfo<'a>where
T: ExtendsInstanceCreateInfo + ?Sized,
pub fn push_next<T>(self, next: &'a mut T) -> InstanceCreateInfo<'a>where
T: ExtendsInstanceCreateInfo + ?Sized,
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C, and you call x.push_next(&mut D), then the
chain will look like A -> D -> B -> C.
Trait Implementations§
Source§impl<'a> Clone for InstanceCreateInfo<'a>
impl<'a> Clone for InstanceCreateInfo<'a>
Source§fn clone(&self) -> InstanceCreateInfo<'a>
fn clone(&self) -> InstanceCreateInfo<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InstanceCreateInfo<'a>
impl<'a> Debug for InstanceCreateInfo<'a>
Source§impl Default for InstanceCreateInfo<'_>
impl Default for InstanceCreateInfo<'_>
Source§fn default() -> InstanceCreateInfo<'_>
fn default() -> InstanceCreateInfo<'_>
Returns the “default value” for a type. Read more
Source§impl<'a> TaggedStructure for InstanceCreateInfo<'a>
impl<'a> TaggedStructure for InstanceCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::INSTANCE_CREATE_INFO
impl<'a> Copy for InstanceCreateInfo<'a>
impl Send for InstanceCreateInfo<'_>
impl Sync for InstanceCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for InstanceCreateInfo<'a>
impl<'a> RefUnwindSafe for InstanceCreateInfo<'a>
impl<'a> Unpin for InstanceCreateInfo<'a>
impl<'a> UnwindSafe for InstanceCreateInfo<'a>
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