PixelShader Constructor
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates a PixelShader.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics.Shaders (in Microsoft.Xna.Framework.Graphics.Shaders.dll)
Syntax
'Declaration
Public Sub New ( _
graphicsDevice As GraphicsDevice, _
shaderByteCode As Byte() _
)
public PixelShader(
GraphicsDevice graphicsDevice,
byte[] shaderByteCode
)
Parameters
- graphicsDevice
Type: Microsoft.Xna.Framework.Graphics.GraphicsDevice
The graphics device to associate with the shader.
- shaderByteCode
Type: array<System.Byte[]
The byte code that represents the vertex shader.
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.