Class D3D10Device1
The device interface represents a virtual adapter for Direct3D 10.1; it is used to perform rendering and create Direct3D resources.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D10
Assembly: JeremyAnsel.DirectX.D3D10.dll
Syntax
[SecurityCritical]
public class D3D10Device1 : DXComObject, IDisposable
Constructors
| Edit this page View SourceD3D10Device1(nint)
Initializes a new instance of the D3D10Device1 class.
Declaration
public D3D10Device1(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D10Device1Guid
The interface GUID.
Declaration
public static readonly Guid D3D10Device1Guid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceCreationOptions
Gets the options used during the call to create the device.
Declaration
public D3D10CreateDeviceOptions CreationOptions { get; }
Property Value
| Type | Description |
|---|---|
| D3D10CreateDeviceOptions |
FeatureLevel
Gets the feature level of the hardware device.
Declaration
public D3D10FeatureLevel FeatureLevel { get; }
Property Value
| Type | Description |
|---|---|
| D3D10FeatureLevel |
Methods
| Edit this page View SourceCreateDevice(nint, D3D10DriverType, D3D10CreateDeviceOptions, D3D10FeatureLevel)
Create a Direct3D 10.1 device that represents the display adapter.
Declaration
public static D3D10Device1 CreateDevice(nint adapter, D3D10DriverType driverType, D3D10CreateDeviceOptions options, D3D10FeatureLevel featureLevel)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | adapter | Pointer to the display adapter when creating a hardware device; otherwise set this parameter to NULL. |
| D3D10DriverType | driverType | The device-driver type. |
| D3D10CreateDeviceOptions | options | Device creation options. |
| D3D10FeatureLevel | featureLevel | The version of hardware that is available for acceleration. |
Returns
| Type | Description |
|---|---|
| D3D10Device1 |
GetDeviceRemovedReason()
Gets the reason why the device was removed.
Declaration
public uint GetDeviceRemovedReason()
Returns
| Type | Description |
|---|---|
| uint |
OpenSharedResource(nint, in Guid)
Give a device access to a shared resource created on a different Direct3d device.
Declaration
public nint OpenSharedResource(nint resourceHandle, in Guid returnedInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resourceHandle | A resource handle. |
| Guid | returnedInterface | The globally unique identifier (GUID) for the resource interface. |
Returns
| Type | Description |
|---|---|
| nint | The resource we are gaining access to. |