// Check the graphics device used by the game
// for the necessary shader support.
GraphicsDeviceCapabilities caps =
GraphicsDevice.GraphicsDeviceCapabilities;
if (caps.MaxPixelShaderProfile < ShaderProfile.PS_2_0)
{
// This device does not support Shader Model 2.0.
System.Diagnostics.Debug.WriteLine(
"This adapter does not support Shader Model 2.0.");
}