Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EffectParameterType Enumeration
Collapse the table of content
Expand the table of content

EffectParameterType Enumeration

Defines types that can be used for effect parameters or shader constants.

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

public enum EffectParameterType

 Member nameDescription
Bool Parameter is a Boolean. Any nonzero value passed in will be mapped to 1 (TRUE) before being written into the constant table; otherwise, the value will be set to 0 in the constant table.
Int32 Parameter is an integer. Any floating-point values passed in will be rounded off (to zero decimal places) before being written into the constant table.
SingleParameter is a floating-point number.
StringParameter is a string.
TextureParameter is a texture.
Texture1DParameter is a 1D texture.
Texture2DParameter is a 2D texture.
Texture3DParameter is a 3D texture.
TextureCubeParameter is a cube texture.
VoidParameter is a void pointer.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

© 2015 Microsoft