#[non_exhaustive]pub struct DxInterop {
pub gpu_id: GpuLuid,
pub device: ID3D11Device,
pub cx: Mutex<ID3D11DeviceContext>,
}Expand description
Direct3D 11 device for storing and sharing overlay texture with other graphics backend.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gpu_id: GpuLuidThis is the GPU adapter used by the surface. Overlay surface texture must be created with this GPU. Otherwise, surface cannot be rendered.
device: ID3D11DeviceInterop Direct3D 11 device.
cx: Mutex<ID3D11DeviceContext>Interop Direct3D 11 device context.
Implementations§
Auto Trait Implementations§
impl !Freeze for DxInterop
impl !RefUnwindSafe for DxInterop
impl Send for DxInterop
impl Sync for DxInterop
impl Unpin for DxInterop
impl UnsafeUnpin for DxInterop
impl UnwindSafe for DxInterop
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