Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.02;
Скачать: CL | DM;

Вниз

Можно ли используя средства DirectX получить информацию о видео?   Найти похожие ветки 

 
DX_Beginner   (2003-07-18 03:30) [0]

Т.е. название видеоадаптера, видео чип, частоты видео процессора и памяти, поддержка пискельных/вершинных шейдеров и пр.?


 
Думкин ©   (2003-07-18 06:20) [1]

MSDN:

How can I determine what chipset and/or driver is being used?

The GetDeviceIdentifier() method, introduced in version 6.0, returns a structure containing information about the chipset and driver, both as a unique GUID for the device/driver pair, vendor IDs, and descriptive strings that can be presented to a user.


 
DX_Beginner   (2003-07-18 20:29) [2]

Спасибо, но вот сам GetDeviceIdentifier в MSDN"е не описан!!!


 
Думкин ©   (2003-07-21 08:34) [3]

Смотрим DirectX SDK

Например, такую функцию:

IDirect3D8::GetAdapterIdentifier

Describes the physical display adapters present in the system when the IDirect3D8 interface was instantiated.

HRESULT GetAdapterIdentifier(
UINT Adapter,
DWORD Flags,
D3DADAPTER_IDENTIFIER8* pIdentifier
);


D3DADAPTER_IDENTIFIER8
Contains information identifying the adapter.

typedef struct _D3DADAPTER_IDENTIFIER8 {
char Driver[MAX_DEVICE_IDENTIFIER_STRING];
char Description[MAX_DEVICE_IDENTIFIER_STRING];

#ifdef _WIN32
LARGE_INTEGER DriverVersion; /* Defined for 32-bit components */
#else
DWORD DriverVersionLowPart; /* Defined for 16-bit driver components */
DWORD DriverVersionHighPart;
#endif

DWORD VendorId;
DWORD DeviceId;
DWORD SubSysId;
DWORD Revision;

GUID DeviceIdentifier;

DWORD WHQLLevel;
} D3DADAPTER_IDENTIFIER8;

И далее...




 
Думкин ©   (2003-07-22 06:28) [4]

Еще это:

IDirect3D8::GetDeviceCaps
Retrieves device-specific information about a device.

HRESULT GetDeviceCaps(
UINT Adapter,
D3DDEVTYPE DeviceType,
D3DCAPS8* pCaps
);

Последняя структура - весьма велика. Про нее читай в DirectX SDK.



Страницы: 1 вся ветка

Текущий архив: 2003.10.02;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.015 c
9-3697
Bones
2003-03-30 03:40
2003.10.02
Прочитаешь - узнаешь


14-4059
Alex222
2003-09-15 18:34
2003.10.02
WinAPI


14-4112
iNew
2003-09-13 17:13
2003.10.02
Замыльте кто-нибудь или дайте ссылку.


9-3696
Марсель
2003-03-29 15:44
2003.10.02
Сайт


3-3750
ЮРИЙ_К
2003-09-12 09:47
2003.10.02
Присвоить значения полям базы в цикле.