Struct BlendStateDescription
- Namespace
- Pie
- Assembly
- Pie.dll
Describes how a BlendState should behave.
public struct BlendStateDescription
- Inherited Members
Constructors
BlendStateDescription(BlendType, BlendType)
Create a new BlendStateDescription.
public BlendStateDescription(BlendType source, BlendType destination)
Parameters
sourceBlendTypeThe RGBA source blending type.
destinationBlendTypeThe RGBA destination blending type.
BlendStateDescription(BlendType, BlendType, BlendType, BlendType)
Create a new BlendStateDescription.
public BlendStateDescription(BlendType source, BlendType destination, BlendType sourceAlpha, BlendType destinationAlpha)
Parameters
sourceBlendTypeThe RGB source blending type.
destinationBlendTypeThe RGB destination blending type.
sourceAlphaBlendTypeThe alpha source blending type.
destinationAlphaBlendTypeThe alpha destination blending type.
BlendStateDescription(bool, BlendType, BlendType, BlendOperation, BlendType, BlendType, BlendOperation, ColorWriteMask)
Create a new BlendStateDescription.
public BlendStateDescription(bool enabled, BlendType source, BlendType destination, BlendOperation blendOperation, BlendType sourceAlpha, BlendType destinationAlpha, BlendOperation alphaBlendOperation, ColorWriteMask colorWriteMask)
Parameters
enabledboolWhether or not blending is enabled.
sourceBlendTypeThe RGB source blending type.
destinationBlendTypeThe RGB destination blending type.
blendOperationBlendOperationThe BlendOperation to perform between the Source and the Destination.
sourceAlphaBlendTypeThe alpha source blending type.
destinationAlphaBlendTypeThe alpha destination blending type.
alphaBlendOperationBlendOperationThe BlendOperation to perform between the SourceAlpha and the DestinationAlpha.
colorWriteMaskColorWriteMaskThe write mask to use.
Fields
Additive
Use additive blending.
public static readonly BlendStateDescription Additive
Field Value
- BlendStateDescription
- Describes how a should behave.
AlphaBlend
Use alpha blending.
public static readonly BlendStateDescription AlphaBlend
Field Value
- BlendStateDescription
- Describes how a should behave.
AlphaBlendOperation
The BlendOperation to perform between the SourceAlpha and the DestinationAlpha.
public BlendOperation AlphaBlendOperation
Field Value
- BlendOperation
- Describes how a should behave.
BlendOperation
The BlendOperation to perform between the Source and the Destination.
public BlendOperation BlendOperation
Field Value
- BlendOperation
- Describes how a should behave.
ColorWriteMask
The write mask to use.
public ColorWriteMask ColorWriteMask
Field Value
- ColorWriteMask
- Describes how a should behave.
Destination
The RGB destination blending type.
public BlendType Destination
Field Value
- BlendType
- Describes how a should behave.
DestinationAlpha
The alpha destination blending type.
public BlendType DestinationAlpha
Field Value
- BlendType
- Describes how a should behave.
Disabled
Disable blending.
public static readonly BlendStateDescription Disabled
Field Value
- BlendStateDescription
- Describes how a should behave.
Enabled
Whether or not blending is enabled.
public bool Enabled
Field Value
- bool
- Describes how a should behave.
NonPremultiplied
Use non-premultiplied alpha.
public static readonly BlendStateDescription NonPremultiplied
Field Value
- BlendStateDescription
- Describes how a should behave.
Opaque
Use opaque blending.
public static readonly BlendStateDescription Opaque
Field Value
- BlendStateDescription
- Describes how a should behave.
Source
The RGB source blending type.
public BlendType Source
Field Value
- BlendType
- Describes how a should behave.
SourceAlpha
The alpha source blending type.
public BlendType SourceAlpha
Field Value
- BlendType
- Describes how a should behave.