pub struct PhysicalDeviceSelector<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PhysicalDeviceSelector<'a>
impl<'a> PhysicalDeviceSelector<'a>
pub fn new(instance: &'a Instance<'a>) -> PhysicalDeviceSelector<'a>
pub fn surface(self, surface: SurfaceKHR) -> Self
pub fn add_required_extension_feature<T: Into<VulkanPhysicalDeviceFeature2<'a>> + 'a>( self, feature: T, ) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn preferred_device_type(self, device_type: PreferredDeviceType) -> Self
pub fn allow_any_gpu_device_type(self, allow: bool) -> Self
pub fn require_dedicated_transfer_queue(self, require: bool) -> Self
pub fn require_dedicated_compute_queue(self, require: bool) -> Self
pub fn require_separate_transfer_queue(self, require: bool) -> Self
pub fn require_separate_compute_queue(self, require: bool) -> Self
pub fn required_device_memory_size(self, required: DeviceSize) -> Self
pub fn select_first_device_unconditionally(self, select: bool) -> Self
pub fn select(&'a self) -> Result<PhysicalDevice<'a>>
Auto Trait Implementations§
impl<'a> !Freeze for PhysicalDeviceSelector<'a>
impl<'a> !RefUnwindSafe for PhysicalDeviceSelector<'a>
impl<'a> Send for PhysicalDeviceSelector<'a>
impl<'a> !Sync for PhysicalDeviceSelector<'a>
impl<'a> Unpin for PhysicalDeviceSelector<'a>
impl<'a> UnwindSafe for PhysicalDeviceSelector<'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