ホーム › Graphics.DXCore › DXCoreAdapterPreference
DXCoreAdapterPreference
列挙型メンバー 3
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| Hardware | 0 | 0x0 | (ソフトウェアアダプターではなく) ハードウェアアダプターを優先することを指定します。 |
| MinimumPower | 1 | 0x1 | 消費電力が最小の GPU (統合グラフィックスプロセッサー (iGPU) など) を優先することを指定します。 |
| HighPerformance | 2 | 0x2 | 最も性能の高い GPU を優先することを指定します。たとえば、利用可能であれば外部グラフィックスプロセッサー (xGPU)、または利用可能であれば個別グラフィックスプロセッサー (dGPU) です。 |
公式ドキュメント
リストの並べ替え条件として使用する DXCore アダプターの優先設定を指定する定数を定義します。DXCoreAdapterPreference の配列を IDXCoreAdapterList::Sort に渡すことで、DXCore アダプターのリストを並べ替えることができます。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum DXCoreAdapterPreference : unsigned int {
Hardware = 0,
MinimumPower = 1,
HighPerformance = 2
} DXCoreAdapterPreference;public enum DXCoreAdapterPreference : uint
{
Hardware = 0,
MinimumPower = 1,
HighPerformance = 2,
}Public Enum DXCoreAdapterPreference As UInteger
Hardware = 0
MinimumPower = 1
HighPerformance = 2
End Enumimport enum
class DXCoreAdapterPreference(enum.IntEnum):
Hardware = 0
MinimumPower = 1
HighPerformance = 2// DXCoreAdapterPreference
pub const Hardware: u32 = 0;
pub const MinimumPower: u32 = 1;
pub const HighPerformance: u32 = 2;// DXCoreAdapterPreference
const (
Hardware uint32 = 0
MinimumPower uint32 = 1
HighPerformance uint32 = 2
)const
Hardware = 0;
MinimumPower = 1;
HighPerformance = 2;// DXCoreAdapterPreference
pub const Hardware: u32 = 0;
pub const MinimumPower: u32 = 1;
pub const HighPerformance: u32 = 2;const
Hardware* = 0
MinimumPower* = 1
HighPerformance* = 2enum DXCoreAdapterPreference : uint {
Hardware = 0,
MinimumPower = 1,
HighPerformance = 2,
}#define global Hardware 0x0
#define global MinimumPower 0x1
#define global HighPerformance 0x2