Table of Contents

Class Device

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("47dd575d-ac05-4cdd-8049-9b02cd16f44c")]
public class Device : Resource
Inheritance
Device
Derived
Inherited Members

Constructors

Device(Device)

Initializes a new instance of the Device class.

public Device(Device device)

Parameters

device Device

The device.

Device(Device, CreationProperties)

Initializes a new instance of the Device class.

public Device(Device device, CreationProperties creationProperties)

Parameters

device Device

The device.

creationProperties CreationProperties

The creation properties.

Device(Factory1, Device)

Initializes a new instance of the Device class.

public Device(Factory1 factory, Device device)

Parameters

factory Factory1

The Factory1 object used when creating the Device.

device Device

The SharpDX.DXGI.Device object used when creating the Device.

Remarks

Each call to CreateDevice returns a unique Device object.The SharpDX.DXGI.Device object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device.

Device(nint)

public Device(nint nativePtr)

Parameters

nativePtr nint

Properties

MaximumTextureMemory

Sets the maximum amount of texture memory Direct2D accumulates before it purges the image caches and cached texture allocations.

public long MaximumTextureMemory { get; set; }

Property Value

long

Methods

ClearResources(int)

Clears all of the rendering resources used by Direct2D.

public void ClearResources(int millisecondsSinceUse)

Parameters

millisecondsSinceUse int

Discards only resources that haven't been used for greater than the specified time in milliseconds. The default is 0 milliseconds.

Operators

explicit operator Device(nint)

public static explicit operator Device(nint nativePtr)

Parameters

nativePtr nint

Returns

Device