Struct mltg::d3d12::Direct3D12
source · [−]pub struct Direct3D12 { /* private fields */ }
Implementations
sourceimpl Direct3D12
impl Direct3D12
Trait Implementations
sourceimpl Backend for Direct3D12
impl Backend for Direct3D12
type RenderTarget = RenderTarget
fn device_context(&self) -> &ID2D1DeviceContext
fn d2d1_factory(&self) -> &ID2D1Factory1
fn back_buffers(
&self,
swap_chain: &IDXGISwapChain1
) -> Result<Vec<Self::RenderTarget>>
unsafe fn render_target<T>(&self, target: &T) -> Result<Self::RenderTarget>
fn begin_draw(&self, target: &Self::RenderTarget)
fn end_draw(&self, target: &Self::RenderTarget)
sourceimpl Clone for Direct3D12
impl Clone for Direct3D12
sourcefn clone(&self) -> Direct3D12
fn clone(&self) -> Direct3D12
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Send for Direct3D12
impl Sync for Direct3D12
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more