Table of Contents

Method GetEnumAdapterIndex

Namespace
PaintDotNet.Dxgi
Assembly
PaintDotNet.Core.dll

GetEnumAdapterIndex(DxgiGpuPreference)

Returns the index that can be used to retrieve the adapter when calling IDXGIFactory6::EnumAdapterByGpuPreference().

If the gpuPreference parameter 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().

public int GetEnumAdapterIndex(DxgiGpuPreference gpuPreference = DxgiGpuPreference.Unspecified)

Parameters

gpuPreference DxgiGpuPreference

Returns

int