DXCoreAdapterProperty
列挙型メンバー 18
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| InstanceLuid | 0 | 0x0 | InstanceLuid アダプタープロパティを指定します。このプロパティには、アダプターを表すローカルで一意な識別子が格納されます。この値は、そのアダプターの有効期間中は一定に保たれます。アダプターの LUID は、再起動、ドライバーのアップグレード、またはデバイスの無効化/有効化によって変化します。 InstanceLuid アダプタープロパティの型は LUID です。 |
| DriverVersion | 1 | 0x1 | DriverVersion アダプタープロパティを指定します。このプロパティには、WORD 単位で LARGE_INTEGER として表現されたドライバーのバージョンが格納されます。 DriverVersion アダプタープロパティの型は uint64_t で、ブール値を表します。 |
| DriverDescription | 2 | 0x2 | DriverDescription アダプタープロパティを指定します。このプロパティには、ドライバーによって指定された、ドライバーを説明する NULL 終端の CHAR 配列が UTF-8 エンコードで格納されます。 DriverDescription アダプタープロパティの型は char* です。 |
| HardwareID | 3 | 0x3 | HardwareID アダプタープロパティを指定します。このプロパティは PnP ハードウェア ID の各構成要素を表します。ただし、利用可能な場合は代わりに HardwareIDParts を使用してください。 HardwareID アダプタープロパティの型は DXCoreHardwareID です。 |
| KmdModelVersion | 4 | 0x4 | KmdModelVersion アダプタープロパティを指定します。このプロパティはドライバーモデルを表します。 KmdModelVersion アダプタープロパティの型は D3DKMT_DRIVERVERSION です。 |
| ComputePreemptionGranularity | 5 | 0x5 | ComputePreemptionGranularity アダプタープロパティを指定します。このプロパティはコンピューティングのプリエンプション粒度を表します。 ComputePreemptionGranularity アダプタープロパティの型は uint16_t で、D3DKMDT_COMPUTE_PREEMPTION_GRANULARITY の値を表します。 |
| GraphicsPreemptionGranularity | 6 | 0x6 | GraphicsPreemptionGranularity アダプタープロパティを指定します。このプロパティはグラフィックスのプリエンプション粒度を表します。 GraphicsPreemptionGranularity アダプタープロパティの型は uint16_t で、D3DKMDT_GRAPHICS_PREEMPTION_GRANULARITY の値を表します。 |
| DedicatedAdapterMemory | 7 | 0x7 | DedicatedAdapterMemory アダプタープロパティを指定します。このプロパティは、CPU と共有されない専用アダプターメモリのバイト数を表します。 DedicatedVideoMemory アダプタープロパティの型は uint64_t です。 |
| DedicatedSystemMemory | 8 | 0x8 | DedicatedSystemMemory アダプタープロパティを指定します。このプロパティは、CPU と共有されない専用システムメモリのバイト数を表します。このメモリは、起動時に利用可能なシステムメモリから割り当てられます。 DedicatedSystemMemory アダプタープロパティの型は uint64_t です。 |
| SharedSystemMemory | 9 | 0x9 | SharedSystemMemory アダプタープロパティを指定します。このプロパティは、共有システムメモリのバイト数を表します。これは、動作中にアダプターが消費し得るシステムメモリの最大値です。ドライバーがビデオメモリを管理および使用する際に付随的に消費するメモリは、これに追加されます。 SharedSystemMemory アダプタープロパティの型は uint64_t です。 |
| AcgCompatible | 10 | 0xA | AcgCompatible アダプタープロパティを指定します。このプロパティは、アダプターが Arbitrary Code Guard を適用するプロセスと互換性があるかどうかを示します。 AcgCompatible アダプタープロパティの型は bool です。 |
| IsHardware | 11 | 0xB | IsHardware アダプタープロパティを指定します。このプロパティは、これがハードウェアアダプターであるかどうかを判定します。ハードウェアアダプターではないアダプターは、ソフトウェアアダプターです。 IsHardware アダプタープロパティの型は bool です。 |
| IsIntegrated | 12 | 0xC | IsIntegrated アダプタープロパティを指定します。このプロパティは、アダプターが統合グラフィックスプロセッサ (iGPU) として報告されているかどうかを判定します。 IsIntegrated アダプタープロパティの型は bool です。 |
| IsDetachable | 13 | 0xD | IsDetachable アダプタープロパティを指定します。このプロパティは、アダプターが取り外し可能 (デタッチ可能) として報告されているかどうかを判定します。 IsDetachable アダプタープロパティの型は bool です。 Note. このプロパティについて IDXCoreAdapter::GetProperty が |
| HardwareIDParts | 14 | 0xE | HardwareIDParts アダプタープロパティを指定します。このプロパティは PnP ハードウェア ID の各構成要素を表します。 HardwareIDParts アダプタープロパティの型は DXCoreHardwareID です。 |
| PhysicalAdapterCount | 15 | 0xF | このクエリは、論理アダプターの下にグループ化されている物理アダプターの数を出力します。 |
| AdapterEngineCount | 16 | 0x10 | このクエリは、物理アダプターのインデックスを入力として受け取り、その物理アダプター上のエンジンの数を出力します。 |
| AdapterEngineName | 17 | 0x11 | このクエリは、物理アダプターのインデックスとエンジン ID を入力として受け取り、エンジンの種類を出力します。 |
公式ドキュメント
DXCore アダプターのプロパティを指定する定数を定義します。これらの定数のいずれかを IDXCoreAdapter::GetPropertySize メソッドに渡すと、対応するプロパティの値を受け取るために必要なバッファーサイズを取得できます。続いて、同じ定数を IDXCoreAdapter::GetProperty メソッドに渡すと、自分で割り当てたバッファーにそのプロパティの値を取得できます。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum DXCoreAdapterProperty : unsigned int {
InstanceLuid = 0,
DriverVersion = 1,
DriverDescription = 2,
HardwareID = 3,
KmdModelVersion = 4,
ComputePreemptionGranularity = 5,
GraphicsPreemptionGranularity = 6,
DedicatedAdapterMemory = 7,
DedicatedSystemMemory = 8,
SharedSystemMemory = 9,
AcgCompatible = 10,
IsHardware = 11,
IsIntegrated = 12,
IsDetachable = 13,
HardwareIDParts = 14,
PhysicalAdapterCount = 15,
AdapterEngineCount = 16,
AdapterEngineName = 17
} DXCoreAdapterProperty;public enum DXCoreAdapterProperty : uint
{
InstanceLuid = 0,
DriverVersion = 1,
DriverDescription = 2,
HardwareID = 3,
KmdModelVersion = 4,
ComputePreemptionGranularity = 5,
GraphicsPreemptionGranularity = 6,
DedicatedAdapterMemory = 7,
DedicatedSystemMemory = 8,
SharedSystemMemory = 9,
AcgCompatible = 10,
IsHardware = 11,
IsIntegrated = 12,
IsDetachable = 13,
HardwareIDParts = 14,
PhysicalAdapterCount = 15,
AdapterEngineCount = 16,
AdapterEngineName = 17,
}Public Enum DXCoreAdapterProperty As UInteger
InstanceLuid = 0
DriverVersion = 1
DriverDescription = 2
HardwareID = 3
KmdModelVersion = 4
ComputePreemptionGranularity = 5
GraphicsPreemptionGranularity = 6
DedicatedAdapterMemory = 7
DedicatedSystemMemory = 8
SharedSystemMemory = 9
AcgCompatible = 10
IsHardware = 11
IsIntegrated = 12
IsDetachable = 13
HardwareIDParts = 14
PhysicalAdapterCount = 15
AdapterEngineCount = 16
AdapterEngineName = 17
End Enumimport enum
class DXCoreAdapterProperty(enum.IntEnum):
InstanceLuid = 0
DriverVersion = 1
DriverDescription = 2
HardwareID = 3
KmdModelVersion = 4
ComputePreemptionGranularity = 5
GraphicsPreemptionGranularity = 6
DedicatedAdapterMemory = 7
DedicatedSystemMemory = 8
SharedSystemMemory = 9
AcgCompatible = 10
IsHardware = 11
IsIntegrated = 12
IsDetachable = 13
HardwareIDParts = 14
PhysicalAdapterCount = 15
AdapterEngineCount = 16
AdapterEngineName = 17// DXCoreAdapterProperty
pub const InstanceLuid: u32 = 0;
pub const DriverVersion: u32 = 1;
pub const DriverDescription: u32 = 2;
pub const HardwareID: u32 = 3;
pub const KmdModelVersion: u32 = 4;
pub const ComputePreemptionGranularity: u32 = 5;
pub const GraphicsPreemptionGranularity: u32 = 6;
pub const DedicatedAdapterMemory: u32 = 7;
pub const DedicatedSystemMemory: u32 = 8;
pub const SharedSystemMemory: u32 = 9;
pub const AcgCompatible: u32 = 10;
pub const IsHardware: u32 = 11;
pub const IsIntegrated: u32 = 12;
pub const IsDetachable: u32 = 13;
pub const HardwareIDParts: u32 = 14;
pub const PhysicalAdapterCount: u32 = 15;
pub const AdapterEngineCount: u32 = 16;
pub const AdapterEngineName: u32 = 17;// DXCoreAdapterProperty
const (
InstanceLuid uint32 = 0
DriverVersion uint32 = 1
DriverDescription uint32 = 2
HardwareID uint32 = 3
KmdModelVersion uint32 = 4
ComputePreemptionGranularity uint32 = 5
GraphicsPreemptionGranularity uint32 = 6
DedicatedAdapterMemory uint32 = 7
DedicatedSystemMemory uint32 = 8
SharedSystemMemory uint32 = 9
AcgCompatible uint32 = 10
IsHardware uint32 = 11
IsIntegrated uint32 = 12
IsDetachable uint32 = 13
HardwareIDParts uint32 = 14
PhysicalAdapterCount uint32 = 15
AdapterEngineCount uint32 = 16
AdapterEngineName uint32 = 17
)const
InstanceLuid = 0;
DriverVersion = 1;
DriverDescription = 2;
HardwareID = 3;
KmdModelVersion = 4;
ComputePreemptionGranularity = 5;
GraphicsPreemptionGranularity = 6;
DedicatedAdapterMemory = 7;
DedicatedSystemMemory = 8;
SharedSystemMemory = 9;
AcgCompatible = 10;
IsHardware = 11;
IsIntegrated = 12;
IsDetachable = 13;
HardwareIDParts = 14;
PhysicalAdapterCount = 15;
AdapterEngineCount = 16;
AdapterEngineName = 17;// DXCoreAdapterProperty
pub const InstanceLuid: u32 = 0;
pub const DriverVersion: u32 = 1;
pub const DriverDescription: u32 = 2;
pub const HardwareID: u32 = 3;
pub const KmdModelVersion: u32 = 4;
pub const ComputePreemptionGranularity: u32 = 5;
pub const GraphicsPreemptionGranularity: u32 = 6;
pub const DedicatedAdapterMemory: u32 = 7;
pub const DedicatedSystemMemory: u32 = 8;
pub const SharedSystemMemory: u32 = 9;
pub const AcgCompatible: u32 = 10;
pub const IsHardware: u32 = 11;
pub const IsIntegrated: u32 = 12;
pub const IsDetachable: u32 = 13;
pub const HardwareIDParts: u32 = 14;
pub const PhysicalAdapterCount: u32 = 15;
pub const AdapterEngineCount: u32 = 16;
pub const AdapterEngineName: u32 = 17;const
InstanceLuid* = 0
DriverVersion* = 1
DriverDescription* = 2
HardwareID* = 3
KmdModelVersion* = 4
ComputePreemptionGranularity* = 5
GraphicsPreemptionGranularity* = 6
DedicatedAdapterMemory* = 7
DedicatedSystemMemory* = 8
SharedSystemMemory* = 9
AcgCompatible* = 10
IsHardware* = 11
IsIntegrated* = 12
IsDetachable* = 13
HardwareIDParts* = 14
PhysicalAdapterCount* = 15
AdapterEngineCount* = 16
AdapterEngineName* = 17enum DXCoreAdapterProperty : uint {
InstanceLuid = 0,
DriverVersion = 1,
DriverDescription = 2,
HardwareID = 3,
KmdModelVersion = 4,
ComputePreemptionGranularity = 5,
GraphicsPreemptionGranularity = 6,
DedicatedAdapterMemory = 7,
DedicatedSystemMemory = 8,
SharedSystemMemory = 9,
AcgCompatible = 10,
IsHardware = 11,
IsIntegrated = 12,
IsDetachable = 13,
HardwareIDParts = 14,
PhysicalAdapterCount = 15,
AdapterEngineCount = 16,
AdapterEngineName = 17,
}#define global InstanceLuid 0x0
#define global DriverVersion 0x1
#define global DriverDescription 0x2
#define global HardwareID 0x3
#define global KmdModelVersion 0x4
#define global ComputePreemptionGranularity 0x5
#define global GraphicsPreemptionGranularity 0x6
#define global DedicatedAdapterMemory 0x7
#define global DedicatedSystemMemory 0x8
#define global SharedSystemMemory 0x9
#define global AcgCompatible 0xA
#define global IsHardware 0xB
#define global IsIntegrated 0xC
#define global IsDetachable 0xD
#define global HardwareIDParts 0xE
#define global PhysicalAdapterCount 0xF
#define global AdapterEngineCount 0x10
#define global AdapterEngineName 0x11