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
source
BlendTypeThe RGBA source blending type.
destination
BlendTypeThe RGBA destination blending type.
BlendStateDescription(BlendType, BlendType, BlendType, BlendType)
Create a new BlendStateDescription.
public BlendStateDescription(BlendType source, BlendType destination, BlendType sourceAlpha, BlendType destinationAlpha)
Parameters
source
BlendTypeThe RGB source blending type.
destination
BlendTypeThe RGB destination blending type.
sourceAlpha
BlendTypeThe alpha source blending type.
destinationAlpha
BlendTypeThe 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
enabled
boolWhether or not blending is enabled.
source
BlendTypeThe RGB source blending type.
destination
BlendTypeThe RGB destination blending type.
blendOperation
BlendOperationThe BlendOperation to perform between the Source and the Destination.
sourceAlpha
BlendTypeThe alpha source blending type.
destinationAlpha
BlendTypeThe alpha destination blending type.
alphaBlendOperation
BlendOperationThe BlendOperation to perform between the SourceAlpha and the DestinationAlpha.
colorWriteMask
ColorWriteMaskThe 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.