pub struct Factory { /* private fields */ }
Implementations§
Source§impl Factory
impl Factory
pub fn new(flags: CreateFactoryFlags) -> DxResult<Self>
pub fn enum_adapters(&self) -> DxResult<Vec<Adapter>>
pub fn enum_adapters_by_gpu_preference( &self, preference: GpuPreference, ) -> DxResult<Vec<Adapter>>
pub fn enum_warp_adapter(&self) -> DxResult<Adapter>
pub fn create_swapchain( &self, command_queue: &CommandQueue, window_handle: HWND, desc: &SwapChainDesc, ) -> DxResult<Swapchain>
pub fn make_window_association( &self, hwnd: *mut c_void, flags: MakeWindowAssociationFlags, ) -> DxResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Factory
impl RefUnwindSafe for Factory
impl !Send for Factory
impl !Sync for Factory
impl Unpin for Factory
impl UnwindSafe for Factory
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