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)

Syntax

public enum EffectParameterType

Members

  Member name Description
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.
Single Parameter is a floating-point number.
String Parameter is a string.
Texture Parameter is a texture.
Texture1D Parameter is a 1D texture.
Texture2D Parameter is a 2D texture.
Texture3D Parameter is a 3D texture.
TextureCube Parameter is a cube texture.
Void Parameter is a void pointer.

See Also

Reference

Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP