Win32 API 日本語リファレンス
ホームGraphics.DXCore › DXCoreAdapterProperty

DXCoreAdapterProperty

列挙型
基底型u4

メンバー 18

名前10進16進説明
InstanceLuid00x0

InstanceLuid アダプタープロパティを指定します。このプロパティには、アダプターを表すローカルで一意な識別子が格納されます。この値は、そのアダプターの有効期間中は一定に保たれます。アダプターの LUID は、再起動、ドライバーのアップグレード、またはデバイスの無効化/有効化によって変化します。

InstanceLuid アダプタープロパティの型は LUID です。

DriverVersion10x1

DriverVersion アダプタープロパティを指定します。このプロパティには、WORD 単位で LARGE_INTEGER として表現されたドライバーのバージョンが格納されます。

DriverVersion アダプタープロパティの型は uint64_t で、ブール値を表します。

DriverDescription20x2

DriverDescription アダプタープロパティを指定します。このプロパティには、ドライバーによって指定された、ドライバーを説明する NULL 終端の CHAR 配列が UTF-8 エンコードで格納されます。

DriverDescription アダプタープロパティの型は char* です。

HardwareID30x3

HardwareID アダプタープロパティを指定します。このプロパティは PnP ハードウェア ID の各構成要素を表します。ただし、利用可能な場合は代わりに HardwareIDParts を使用してください。

HardwareID アダプタープロパティの型は DXCoreHardwareID です。

KmdModelVersion40x4

KmdModelVersion アダプタープロパティを指定します。このプロパティはドライバーモデルを表します。

KmdModelVersion アダプタープロパティの型は D3DKMT_DRIVERVERSION です。

ComputePreemptionGranularity50x5

ComputePreemptionGranularity アダプタープロパティを指定します。このプロパティはコンピューティングのプリエンプション粒度を表します。

ComputePreemptionGranularity アダプタープロパティの型は uint16_t で、D3DKMDT_COMPUTE_PREEMPTION_GRANULARITY の値を表します。

GraphicsPreemptionGranularity60x6

GraphicsPreemptionGranularity アダプタープロパティを指定します。このプロパティはグラフィックスのプリエンプション粒度を表します。

GraphicsPreemptionGranularity アダプタープロパティの型は uint16_t で、D3DKMDT_GRAPHICS_PREEMPTION_GRANULARITY の値を表します。

DedicatedAdapterMemory70x7

DedicatedAdapterMemory アダプタープロパティを指定します。このプロパティは、CPU と共有されない専用アダプターメモリのバイト数を表します。

DedicatedVideoMemory アダプタープロパティの型は uint64_t です。

DedicatedSystemMemory80x8

DedicatedSystemMemory アダプタープロパティを指定します。このプロパティは、CPU と共有されない専用システムメモリのバイト数を表します。このメモリは、起動時に利用可能なシステムメモリから割り当てられます。

DedicatedSystemMemory アダプタープロパティの型は uint64_t です。

SharedSystemMemory90x9

SharedSystemMemory アダプタープロパティを指定します。このプロパティは、共有システムメモリのバイト数を表します。これは、動作中にアダプターが消費し得るシステムメモリの最大値です。ドライバーがビデオメモリを管理および使用する際に付随的に消費するメモリは、これに追加されます。

SharedSystemMemory アダプタープロパティの型は uint64_t です。

AcgCompatible100xA

AcgCompatible アダプタープロパティを指定します。このプロパティは、アダプターが Arbitrary Code Guard を適用するプロセスと互換性があるかどうかを示します。

AcgCompatible アダプタープロパティの型は bool です。

IsHardware110xB

IsHardware アダプタープロパティを指定します。このプロパティは、これがハードウェアアダプターであるかどうかを判定します。ハードウェアアダプターではないアダプターは、ソフトウェアアダプターです。

IsHardware アダプタープロパティの型は bool です。

IsIntegrated120xC

IsIntegrated アダプタープロパティを指定します。このプロパティは、アダプターが統合グラフィックスプロセッサ (iGPU) として報告されているかどうかを判定します。

IsIntegrated アダプタープロパティの型は bool です。

IsDetachable130xD

IsDetachable アダプタープロパティを指定します。このプロパティは、アダプターが取り外し可能 (デタッチ可能) として報告されているかどうかを判定します。

IsDetachable アダプタープロパティの型は bool です。

Note. このプロパティについて IDXCoreAdapter::GetPropertyfalse を示す場合でも、誤動作やドライバーの更新などにより、そのアダプターが取り外されたものとして報告される可能性はあります。

HardwareIDParts140xE

HardwareIDParts アダプタープロパティを指定します。このプロパティは PnP ハードウェア ID の各構成要素を表します。

HardwareIDParts アダプタープロパティの型は DXCoreHardwareID です。

PhysicalAdapterCount150xFこのクエリは、論理アダプターの下にグループ化されている物理アダプターの数を出力します。
AdapterEngineCount160x10このクエリは、物理アダプターのインデックスを入力として受け取り、その物理アダプター上のエンジンの数を出力します。
AdapterEngineName170x11このクエリは、物理アダプターのインデックスとエンジン ID を入力として受け取り、エンジンの種類を出力します。

公式ドキュメント

DXCore アダプターのプロパティを指定する定数を定義します。これらの定数のいずれかを IDXCoreAdapter::GetPropertySize メソッドに渡すと、対応するプロパティの値を受け取るために必要なバッファーサイズを取得できます。続いて、同じ定数を IDXCoreAdapter::GetProperty メソッドに渡すと、自分で割り当てたバッファーにそのプロパティの値を取得できます。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
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 Enum
import 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* = 17
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,
}
#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