PixelShaderEffectIsSupported Method |
Namespace: Microsoft.Graphics.Canvas.Effects
public bool IsSupported( CanvasDevice device )
IsSupported will return false if the device does not support the GPU features needed to use the pixel shader. For instance this can happen if the pixel shader was compiled targetting feature level ps_4_0, while the device only supports feature level ps_4_0_level_9_3 (as is found in many phones).
Apps can use this query to switch between more or less sophisticated versions of a shader, or to disable an effect entirely if the GPU is not powerful enough to process it.