Class SafeDxgiAdapter
- Namespace
- PaintDotNet.Dxgi
- Assembly
- PaintDotNet.Core.dll
Safely encapsulates a reference to an IDXGIAdapter COM object.
public sealed class SafeDxgiAdapter : SafeComObject, IDisposable
- Inheritance
-
SafeDxgiAdapter
- Implements
- Inherited Members
Methods
- GetEnumAdapterIndex(DxgiGpuPreference)
Returns the index that can be used to retrieve the adapter when calling IDXGIFactory6::EnumAdapterByGpuPreference().
If thegpuPreferenceparameter equals Unspecified, then this is also the index that can be used to retrieve the adapter when calling IDXGIFactory::EnumAdapters().
This index can also be used as the device ID when initializing ONNX with SessionOptions.AppendExecutionProvider_DML().