Struct thindx::d3d9::DeviceCreationParameters
source · [−]#[repr(C)]pub struct DeviceCreationParameters {
pub adapter_ordinal: u32,
pub device_type: DevType,
pub focus_window: HWND,
pub behavior_flags: Create,
}
Expand description
[docs.microsoft.com] D3DDEVICE_CREATION_PARAMETERS
Describes the creation parameters for a device.
See Also
Fields
adapter_ordinal: u32
The ordinal number denoting the display adapter.
D3DADAPTER_DEFAULT
(0) is always the primary display adapter.
This ordinal can be used with various IDirect3D9Ext methods.
NOTE:
- Different IDirect3D9Ext instances can use different ordinals for the same adapters!
- Adapters enter and leave a system when users hot swap monitors, projectors, laptops, etc.!
- Avoid mixing/matching ordinals between D3D instances.
- Avoid storing ordinals long term? (Store e.g. devices and re-query those instead?)
device_type: DevType
The [d3d::DevType] that was requested when calling e.g. create_device.
focus_window: HWND
The window that was passed to create_device.
behavior_flags: Create
The [d3d::Create] flags that were used when calling e.g. create_device.
Trait Implementations
sourceimpl AsMut<D3DDEVICE_CREATION_PARAMETERS> for DeviceCreationParameters
impl AsMut<D3DDEVICE_CREATION_PARAMETERS> for DeviceCreationParameters
sourceimpl AsMut<DeviceCreationParameters> for D3DDEVICE_CREATION_PARAMETERS
impl AsMut<DeviceCreationParameters> for D3DDEVICE_CREATION_PARAMETERS
sourcefn as_mut(&mut self) -> &mut DeviceCreationParameters
fn as_mut(&mut self) -> &mut DeviceCreationParameters
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<D3DDEVICE_CREATION_PARAMETERS> for DeviceCreationParameters
impl AsRef<D3DDEVICE_CREATION_PARAMETERS> for DeviceCreationParameters
sourceimpl AsRef<DeviceCreationParameters> for D3DDEVICE_CREATION_PARAMETERS
impl AsRef<DeviceCreationParameters> for D3DDEVICE_CREATION_PARAMETERS
sourcefn as_ref(&self) -> &DeviceCreationParameters
fn as_ref(&self) -> &DeviceCreationParameters
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for DeviceCreationParameters
impl Clone for DeviceCreationParameters
sourcefn clone(&self) -> DeviceCreationParameters
fn clone(&self) -> DeviceCreationParameters
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
sourceimpl Debug for DeviceCreationParameters
impl Debug for DeviceCreationParameters
sourceimpl Deref for DeviceCreationParameters
impl Deref for DeviceCreationParameters
sourceimpl DerefMut for DeviceCreationParameters
impl DerefMut for DeviceCreationParameters
sourceimpl From<D3DDEVICE_CREATION_PARAMETERS> for DeviceCreationParameters
impl From<D3DDEVICE_CREATION_PARAMETERS> for DeviceCreationParameters
sourceimpl From<DeviceCreationParameters> for D3DDEVICE_CREATION_PARAMETERS
impl From<DeviceCreationParameters> for D3DDEVICE_CREATION_PARAMETERS
sourcefn from(value: DeviceCreationParameters) -> Self
fn from(value: DeviceCreationParameters) -> Self
Converts to this type from the input type.
sourceimpl Zeroable for DeviceCreationParameters
impl Zeroable for DeviceCreationParameters
impl Copy for DeviceCreationParameters
Auto Trait Implementations
impl RefUnwindSafe for DeviceCreationParameters
impl !Send for DeviceCreationParameters
impl !Sync for DeviceCreationParameters
impl Unpin for DeviceCreationParameters
impl UnwindSafe for DeviceCreationParameters
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