Class D3D10Device1
The device interface represents a virtual adapter for Direct3D 10.1; it is used to perform rendering and create Direct3D resources.
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D10
Assembly: JeremyAnsel.DirectX.D3D10.dll
Syntax
public sealed class D3D10Device1 : IDisposable, ID3D10Releasable
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 |
Handle
Gets an handle representing the D3D10 object interface.
Declaration
public object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Methods
| Edit this page View SourceCreateDevice(object, D3D10DriverType, D3D10CreateDeviceOptions, D3D10FeatureLevel)
Create a Direct3D 10.1 device that represents the display adapter.
Declaration
public static D3D10Device1 CreateDevice(object adapter, D3D10DriverType driverType, D3D10CreateDeviceOptions options, D3D10FeatureLevel featureLevel)
Parameters
Type | Name | Description |
---|---|---|
object | 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 |
Dispose()
Immediately releases the unmanaged resources used by the D3D10 object.
Declaration
public void Dispose()
GetDeviceRemovedReason()
Gets the reason why the device was removed.
Declaration
public uint GetDeviceRemovedReason()
Returns
Type | Description |
---|---|
uint |
OpenSharedResource(nint, Guid)
Give a device access to a shared resource created on a different Direct3d device.
Declaration
public object OpenSharedResource(nint resourceHandle, 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 |
---|---|
object | The resource we are gaining access to. |
Release()
Releases the managed reference to the COM the interface.
Declaration
public void Release()
ToBoolean()
Gets a boolean indicating if the handle is not null.
Declaration
public bool ToBoolean()
Returns
Type | Description |
---|---|
bool | A boolean |
Operators
| Edit this page View Sourceimplicit operator bool(D3D10Device1)
Gets a boolean indicating if the handle is not null.
Declaration
public static implicit operator bool(D3D10Device1 value)
Parameters
Type | Name | Description |
---|---|---|
D3D10Device1 | value | A D3D10 device. |
Returns
Type | Description |
---|---|
bool | A boolean |