pub struct UpdateSharedHandle {
pub handle: Option<NonZeroU32>,
}Expand description
Update overlay surface
Fields§
§handle: Option<NonZeroU32>DirectX KMT shared handle to the overlay surface texture.
§Note
- The texture is either a 32-bit BGRA(integer) or 32-bit RGBA(integer) or 64-bit RGBA(integer, float) format texture.
- The texture must be created with
D3D11_RESOURCE_MISC_SHAREDflag. - If the texture is created with
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEXflag, thekeyof theIDXGIKeyedMutexmust be0.
If None is given, the overlay surface will be removed.
Trait Implementations§
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§fn clone(&self) -> UpdateSharedHandle
fn clone(&self) -> UpdateSharedHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn from(value: UpdateSharedHandle) -> Self
fn from(value: UpdateSharedHandle) -> Self
Converts to this type from the input type.
Source§fn eq(&self, other: &UpdateSharedHandle) -> bool
fn eq(&self, other: &UpdateSharedHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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