![]() ![]() Here is what GPU-Z returns for the same card, for example: However, both these values return shader model 3 even for cards that support higher models. Use the minimum number of each for "the" shader model versionĬonst int iVertexShaderModel = D3DSHADER_VERSION_MAJOR(oCaps.VertexShaderVersion) Ĭonst int iPixelShaderModel = D3DSHADER_VERSION_MAJOR(oCaps.PixelShaderVersion) Pixel and vertex shader model versions. HRESULT hrDCaps = poD3D9->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &oCaps) One is the highest shader model supported by the installed graphics card, and I am currently detecting this using Direct3D 9.0c's device capabilities and checking the VertexShaderVersion and PixelShaderVersion fields of the D3DCAPS9 structure. ![]() I am writing a small utility that reports system capabilities.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |