Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

TextureOperation Enumeration

Defines per-stage texture-blending operations.

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

public enum TextureOperation
public enum TextureOperation
public enum TextureOperation
 Member nameDescription
Supported by the .NET Compact FrameworkAddAdds the components of the second argument to the first argument.  

SRGBA = Arg1 + Arg2

Supported by the .NET Compact FrameworkAddSignedAdds 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 FrameworkAddSigned2XAdds 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 FrameworkAddSmoothAdds the first and second arguments, then subtracts their product from the sum.  

SRGBA = Arg1 + Arg2 - Arg1 * Arg2

Supported by the .NET Compact FrameworkBlendCurrentAlphaPerforms 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 FrameworkBlendDiffuseAlphaPerforms 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 FrameworkBlendFactorAlphaPerforms 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 FrameworkBlendTextureAlphaPerforms 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 FrameworkBlendTextureAlphaPMPerforms linear blending on the current texture stage that uses a premultiplied alpha.  

SRGBA = Arg1 + Arg2 * (1 - Alpha)

Supported by the .NET Compact FrameworkDisableDisables 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 FrameworkDotProduct3Modulates 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 FrameworkLerpPerforms 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 FrameworkModulateMultiplies the components of the arguments.  

SRGBA = Arg1 * Arg2

Supported by the .NET Compact FrameworkModulate2XMultiplies 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 FrameworkModulate4XMultiplies 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 FrameworkModulateAlphaAddColorModulates 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 FrameworkModulateColorAddAlphaModulates 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 FrameworkModulateInvAlphaAddColorSimilar 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 FrameworkModulateInvColorAddAlphaSimilar 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 FrameworkMultiplyAddPerforms 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 FrameworkPreModulateThis 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 FrameworkSelectArg1Uses 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 FrameworkSelectArg2Uses 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 FrameworkSubtractSubtracts the components of the second argument from those of the first argument.  

SRGBA = Arg1 - Arg2

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.