pub struct PhysicalDeviceSelector { /* private fields */ }
Implementations§
Source§impl PhysicalDeviceSelector
impl PhysicalDeviceSelector
pub fn new(instance: Arc<Instance>) -> PhysicalDeviceSelector
pub fn surface(self, surface: SurfaceKHR) -> Self
pub fn add_required_extension_feature<T: Into<VulkanPhysicalDeviceFeature2<'static>> + 'static>( self, feature: T, ) -> Self
pub fn add_required_features(self, features: PhysicalDeviceFeatures) -> 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 required_formats( self, required: impl IntoIterator<Item = Format>, ) -> Self
pub fn select_first_device_unconditionally(self, select: bool) -> Self
pub fn select(self) -> Result<PhysicalDevice>
Auto Trait Implementations§
impl !Freeze for PhysicalDeviceSelector
impl !RefUnwindSafe for PhysicalDeviceSelector
impl Send for PhysicalDeviceSelector
impl !Sync for PhysicalDeviceSelector
impl Unpin for PhysicalDeviceSelector
impl UnwindSafe for PhysicalDeviceSelector
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