#[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

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Dereferences the value.

The resulting type after dereferencing.

Mutably dereferences the value.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.