Compartir a través de


PixelShader Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Encapsulates the functionality of a pixel shader.

Inheritance Hierarchy

System.Object
  Microsoft.Xna.Framework.Graphics.GraphicsResource
    Microsoft.Xna.Framework.Graphics.PixelShader

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics.Shaders (in Microsoft.Xna.Framework.Graphics.Shaders.dll)

Syntax

'Declaration
Public Class PixelShader _
    Inherits GraphicsResource
public class PixelShader : GraphicsResource

The PixelShader type exposes the following members.

Constructors

  Name Description
Public method PixelShader Creates a PixelShader.

Top

Properties

  Name Description
Public property IsDisposed Gets a value that indicates whether the object is disposed. (Inherited from GraphicsResource.)

Top

Methods

  Name Description
Public method Dispose() Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected method Dispose(Boolean) Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected method Finalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from GraphicsResource.)
Public methodStatic member FromStream Creates a PixelShader from the specified stream.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.