It's possible to do a rough auto-detect.
General rule of thumb :
ARB_FRAGMENT_PROGRAM = ~1.4
ARB_SHADER_LANGUAGE_100/GLSL = >= 2.0
This does not, however, take into account vendor specific shader extensions.
H. Verbeet wrote:
On 04/02/06, Vitaliy Margolen <[EMAIL PROTECTED]> wrote:
+ default :
+ WARN("Invalid Pixel Shader version %d",wined3d_settings.ps_mode);
+ break;
Default should be NONE.
+ if (!strcmp(buffer,"default"))
+ {
+ TRACE("Allow pixel shaders version 1.4\n");
+ wined3d_settings.ps_mode = PS_14;
+ }
I would drop default and make it "auto-detect" and make it default
instead.
Although that would be nice, I don't think we can autodetect the
supported PS version yet.