[C#]
public bool CheckShaderSupport()
{
Version v1_1 = new Version(1,1); // check version is at least shader 1.1
// retrieve the device caps
Caps caps = Manager.GetDeviceCaps(0, DeviceType.Hardware);
// check the supported shader version
if ((caps.VertexShaderVersion >= v1_1) && (caps.PixelShaderVersion >= v1_1))
{
return true;
}
return false;
}