GraphicsDevice.PixelShader Property

Gets or sets the current pixel shader.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public PixelShader PixelShader { get; set; }

Property Value

The current pixel shader or a pixel shader object to set.

Exception typeCondition
ObjectDisposedException PixelShader was called after this GraphicsDevice was disposed.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions