Share via


TextureOperation Enumeration

Defines per-stage texture-blending operations.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Enumeration TextureOperation
'Usage
Dim instance As TextureOperation
public enum TextureOperation
public enum class TextureOperation
public enum TextureOperation
public enum TextureOperation

Members

  Member name Description
Supported by the .NET Compact Framework Add Adds the components of the second argument to the first argument.  

SRGBA = Arg1 + Arg2

Supported by the .NET Compact Framework AddSigned Adds the components of the arguments with a -0.5 bias, making the effective range of values -0.5 through 0.5.  

SRGBA = Arg1 + Arg2 -0.5

Supported by the .NET Compact Framework AddSigned2X Adds the components of the arguments with a -0.5 bias and shifts the products 1 bit to the left.  

SRGBA = (Arg1 + Arg2 -0.5) << 1

Supported by the .NET Compact Framework AddSmooth Adds the first and second arguments, then subtracts their product from the sum.  

SRGBA = Arg1 + Arg2 - Arg1 * Arg2

Supported by the .NET Compact Framework BlendCurrentAlpha Performs linear blending on the current texture stage, using the alpha taken from the previous texture stage.  

SRGBA = Arg1 * (Alpha) + Arg2 * (1 - Alpha)

Supported by the .NET Compact Framework BlendDiffuseAlpha Performs linear blending on the current texture stage, using the interpolated alpha from each vertex.  

SRGBA = Arg1 * (Alpha) + Arg2 * (1 - Alpha)

Supported by the .NET Compact Framework BlendFactorAlpha Performs linear blending on the current texture stage, using a scalar alpha set with the TextureFactor property for a RenderStateManager

SRGBA = Arg1 * (Alpha) + Arg2 * (1 - Alpha)

Supported by the .NET Compact Framework BlendTextureAlpha Performs linear blending on the current texture stage, using the interpolated alpha from each vertex.  

SRGBA = Arg1 * (Alpha) + Arg2 * (1 - Alpha)

Supported by the .NET Compact Framework BlendTextureAlphaPM Performs linear blending on the current texture stage that uses a premultiplied alpha.  

SRGBA = Arg1 + Arg2 * (1 - Alpha)

Supported by the .NET Compact Framework Disable Disables output from the texture stage and all stages with a higher index. To disable texture mapping, set this flag as the color operation for the first texture stage (stage 0). Alpha operations cannot be disabled when color operations are enabled. Setting the alpha operation to Disable when color blending is enabled causes undefined behavior. 
Supported by the .NET Compact Framework DotProduct3 Modulates the components of each argument as signed components, adds their products, and replicates the sum to all color channels, including alpha. This operation is supported for color and alpha operations.  

SRGBA = (Arg1R * Arg2R + Arg1G * Arg2G + Arg1B * Arg2B)

Supported by the .NET Compact Framework Lerp Performs linear interpolation between the second and third source arguments by a proportion specified in the first source argument.  

SRGBA = (Arg1) * Arg2 + (1 - Arg1) * Arg3.

Supported by the .NET Compact Framework Modulate Multiplies the components of the arguments.  

SRGBA = Arg1 * Arg2

Supported by the .NET Compact Framework Modulate2X Multiplies the components of the arguments, then shifts the products 1 bit to the left (effectively multiplying them by 2) for brightening.  

SRGBA = (Arg1 * Arg2) << 1

Supported by the .NET Compact Framework Modulate4X Multiplies the components of the arguments, then shifts the products 2 bits to the left (effectively multiplying them by 4) for brightening.  

SRGBA = (Arg1 * Arg2) << 2

Supported by the .NET Compact Framework ModulateAlphaAddColor Modulates the color of the second argument using the alpha of the first argument, then adds the result to argument one. This operation is supported only by using the ColorOperation property of a TextureStateManager.  

SRGBA = Arg1RGB + Arg1A * Arg2RGB

Supported by the .NET Compact Framework ModulateColorAddAlpha Modulates the arguments, then adds the alpha of the first argument. This operation is supported only by using the ColorOperation property of a TextureStateManager

SRGBA = Arg1RGB * Arg2RGB + Arg1A

Supported by the .NET Compact Framework ModulateInvAlphaAddColor Similar to ModulateAlphaAddColor, but uses the inverse of the alpha of the first argument. This operation is supported only by using the ColorOperation property of a TextureStateManager

SRGBA = (1 - Arg1A) * Arg2RGB + Arg1RGB

Supported by the .NET Compact Framework ModulateInvColorAddAlpha Similar to ModulateColorAddAlpha, but uses the inverse of the color of the first argument. This operation is supported only by using the ColorOperation property of a TextureStateManager

SRGBA = (1 - Arg1RGB) * Arg2RGB + Arg1A

Supported by the .NET Compact Framework MultiplyAdd Performs a multiply-accumulate operation, in which this field multiplies the last two arguments, adds them to the remaining input/source argument, and places that into the result.  

SRGBA = Arg1 + Arg2 *Arg3

Supported by the .NET Compact Framework PreModulate This flag is set in stage n, the output of which is arg1. If stage n + 1 contains a texture, then the Current value of a TextureArgument is premultiplied by that texture. 
Supported by the .NET Compact Framework SelectArg1 Uses this texture stage's first color or alpha argument, unmodified, as the output. This operation affects the color and alpha arguments used with the ColorOperation and AlphaOperation properties of a TextureStateManager, respectively.  

SRGBA = Arg1

Supported by the .NET Compact Framework SelectArg2 Uses this texture stage's second color or alpha argument, unmodified, as the output. This operation affects the color and alpha arguments used with the ColorOperation and AlphaOperation properties of a TextureStateManager, respectively.  

SRGBA = Arg2

Supported by the .NET Compact Framework Subtract Subtracts the components of the second argument from those of the first argument.  

SRGBA = Arg1 - Arg2

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Direct3D Programming