Click or drag to resize
PixelShaderEffectIsSupported Method
Checks whether the pixel shader used by this effect is compatible with the Direct3D feature level of the specified device.

Namespace:  Microsoft.Graphics.Canvas.Effects
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public bool IsSupported(
	CanvasDevice device
)

Parameters

device
Type: Microsoft.Graphics.CanvasCanvasDevice

Return Value

Type: Boolean
Remarks

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.

See Also