EffectParameterType Enumeration
Defines types that can be used for effect parameters or shader constants.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.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. | |
PixelShader | Parameter is a pixel shader. | |
Sampler | Parameter is a sampler. | |
Sampler1D | Parameter is a 1D sampler. | |
Sampler2D | Parameter is a 2D sampler. | |
Sampler3D | Parameter is a 3D sampler. | |
SamplerCube | Parameter is a cube sampler. | |
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. | |
VertexShader | Parameter is a vertex shader. | |
Void | Parameter is a void pointer. |
See Also
Reference
EffectParameter.ParameterType Property
ShaderConstant.ParameterType Property
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista