pub struct DescriptorSet {
pub version: WindowsVersion,
pub features: &'static [FeatureDescriptor],
pub configurations: &'static [ConfigurationSubset],
}
Expand description
MS OS 2.0 descriptor set
Fields§
§version: WindowsVersion
Minimum Windows version for which descriptor set applies
features: &'static [FeatureDescriptor]
Features that apply to the whole device regardless of its configuration
configurations: &'static [ConfigurationSubset]
Configuration subsets
Implementations§
Source§impl DescriptorSet
impl DescriptorSet
Sourcepub const fn descriptor<const N: usize>(&self) -> [u8; N]
pub const fn descriptor<const N: usize>(&self) -> [u8; N]
Get descriptor array in compile time
Array length must be passed as generic parameter because rust does not allow
using self
to retrive this value automatically. Use Self::size
method
to get the correct value for the descriptor array length.
Auto Trait Implementations§
impl Freeze for DescriptorSet
impl RefUnwindSafe for DescriptorSet
impl Send for DescriptorSet
impl Sync for DescriptorSet
impl Unpin for DescriptorSet
impl UnwindSafe for DescriptorSet
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