pub type PhysicalDeviceFeatures2KHR<'a> = PhysicalDeviceFeatures2<'a>;
Aliased Type§
struct PhysicalDeviceFeatures2KHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub features: PhysicalDeviceFeatures,
pub _marker: PhantomData<&'a ()>,
}
Fields§
§s_type: StructureType
§p_next: *mut c_void
§features: PhysicalDeviceFeatures
§_marker: PhantomData<&'a ()>
Implementations
source§impl<'a> PhysicalDeviceFeatures2<'a>
impl<'a> PhysicalDeviceFeatures2<'a>
pub fn features(self, features: PhysicalDeviceFeatures) -> Self
sourcepub fn push_next<T: ExtendsPhysicalDeviceFeatures2 + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsPhysicalDeviceFeatures2 + ?Sized>( self, next: &'a mut T, ) -> Self
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 PhysicalDeviceFeatures2<'a>
impl<'a> Clone for PhysicalDeviceFeatures2<'a>
source§fn clone(&self) -> PhysicalDeviceFeatures2<'a>
fn clone(&self) -> PhysicalDeviceFeatures2<'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 more