C++ indicates my highest Shader Model is 3

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 21:21:49

问题


I'm trying to detect what's the highest Shader Model my Graphics Card has in C++ by using if(caps.VertexShaderVersion < D3DVS_VERSION(i, 0)){return false;} where i is the shader model I want to check, but I can only get it up to 3.

The problem is I've checked my Graphics Card (Gigabyte GeForce GTX 470) and it has DirectX 11 so shouldn't it have Shader Model 5? Or is there something wrong with the way I'm checking the Shader Model?


回答1:


Direct3D 9, which is the API you're using, is not aware of Direct3D 11's existence, therefore, it reports the highest supported shader version supported in D3D9.



来源:https://stackoverflow.com/questions/17976319/c-indicates-my-highest-shader-model-is-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!