Device capabilities and the shader model

@Kimundi: please verify it works for your setup.