pub struct VulkanRequirements { /* private fields */ }Expand description
What vkCreateDevice needs for lactea; the pointers stay valid as long as this value.
Implementations§
Source§impl VulkanRequirements
impl VulkanRequirements
Sourcepub fn device_extensions(&self) -> &[&'static CStr]
pub fn device_extensions(&self) -> &[&'static CStr]
Device extension names to enable (drop the ones already on your list: Vulkan forbids listing one twice).
Sourcepub fn enabled_features(&self) -> *const c_void
pub fn enabled_features(&self) -> *const c_void
const VkPhysicalDeviceFeatures * for VkDeviceCreateInfo::pEnabledFeatures.
Sourcepub fn device_pnext(&self) -> *const c_void
pub fn device_pnext(&self) -> *const c_void
const void * feature-struct chain for VkDeviceCreateInfo::pNext; null when empty. Do not
combine Self::enabled_features with a VkPhysicalDeviceFeatures2 of your own.
Auto Trait Implementations§
impl !Send for VulkanRequirements
impl !Sync for VulkanRequirements
impl Forget for VulkanRequirements
impl Freeze for VulkanRequirementswhere
*const u8 is !null: Freeze,
PhantomData<&'static CStr>: Freeze,
*const c_void: Freeze,
*const PhysicalDeviceFeatures is !null: Freeze,
PhantomData<PhysicalDeviceFeatures>: Freeze,
impl Move for VulkanRequirements
impl RefUnwindSafe for VulkanRequirements
impl Unpin for VulkanRequirements
impl UnsafeUnpin for VulkanRequirementswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<&'static CStr>: UnsafeUnpin,
*const c_void: UnsafeUnpin,
*const PhysicalDeviceFeatures is !null: UnsafeUnpin,
PhantomData<PhysicalDeviceFeatures>: UnsafeUnpin,
impl UnwindSafe for VulkanRequirementswhere
RawVecInner: UnwindSafe,
&'static CStr: UnwindSafe,
*const c_void: UnwindSafe,
BoxRaw<PhysicalDeviceFeatures>: UnwindSafe,
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