How to Obtain the dx version in D3D??
Is there anyone know how to Obtain the dx version using D3D?
I guess maybe it will be stored in D3DADAPTER_IDENTIFIER9,but I can't find any
parameter relate with it...
thanks for helping!
Hi, From the SDK it says this....
D3DXCheckVersionVerify that the version of D3DX you compiled with is the version that you are running.BOOL D3DXCheckVersion( UINT D3DSDKVersion, UINT D3DXSDKVersion);ParametersD3DSDKVersion [in] Use D3D_SDK_VERSION. See remarks. D3DXSDKVersion [in] Use D3DX_SDK_VERSION. See remarks. Return ValuesReturns TRUE if the version of D3DX you compiled against is the version you are running with; otherwise, FALSE is returned.RemarksUse this function during the initialization of your application like this:HRESULT CD3DXMyApplication::Initialize(HINSTANCE hInstance, LPCSTR szWindowName, LPCSTR szClassName, UINT uWidth, UINT uHeight){ HRESULT hr; if (!D3DXCheckVersion(D3D_SDK_VERSION, D3DX_SDK_VERSION)) return E_FAIL; ...
Thanks ankhd !
but I didn't describe My question clearly yesterday.Actually,what I want to do is obtain the MAX DX version that the current display adapter will support rather than the DX version had installed in my system...
but I didn't describe My question clearly yesterday.Actually,what I want to do is obtain the MAX DX version that the current display adapter will support rather than the DX version had installed in my system...
Quote:Original post by XVincentX
Do you mean DirectX9 and DirectX10 or DirectX9.a and DirectX9.b?
yes,do you have any idea??
the first thing to do it's to detect if you can use Direct3D10
If yes, then all D3D9 version are ok.
You have just to include DXUT.h and call DXUTDoesAppSupportD3D10() that will return true or false.
About the Direct3D9 version, you should check this values in
D3DAdapterIdentifier9
If yes, then all D3D9 version are ok.
You have just to include DXUT.h and call DXUTDoesAppSupportD3D10() that will return true or false.
About the Direct3D9 version, you should check this values in
D3DAdapterIdentifier9
LARGE_INTEGER DriverVersion; DWORD DriverVersionLowPart; DWORD DriverVersionHighPart;
Quote:Original post by XVincentX
the first thing to do it's to detect if you can use Direct3D10
If yes, then all D3D9 version are ok.
You have just to include DXUT.h and call DXUTDoesAppSupportD3D10() that will return true or false.
About the Direct3D9 version, you should check this values in
D3DAdapterIdentifier9LARGE_INTEGER DriverVersion; DWORD DriverVersionLowPart; DWORD DriverVersionHighPart;
I managed to solve the problem by following your instruction,thanks a lot!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement