Class Device
[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
DeviceThe device.
Device(Device, CreationProperties)
Initializes a new instance of the Device class.
public Device(Device device, CreationProperties creationProperties)
Parameters
device
DeviceThe device.
creationProperties
CreationPropertiesThe creation properties.
Device(Factory1, Device)
Initializes a new instance of the Device class.
public Device(Factory1 factory, Device device)
Parameters
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
Methods
ClearResources(int)
Clears all of the rendering resources used by Direct2D.
public void ClearResources(int millisecondsSinceUse)
Parameters
millisecondsSinceUse
intDiscards 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