Struct D3D11RenderTargetBlendDesc
Describes the blend state for a render target.
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11RenderTargetBlendDesc : IEquatable<D3D11RenderTargetBlendDesc>
Constructors
|
Edit this page
View Source
D3D11RenderTargetBlendDesc(bool, D3D11BlendValue, D3D11BlendValue, D3D11BlendOperation, D3D11BlendValue, D3D11BlendValue, D3D11BlendOperation, D3D11ColorWriteEnables)
Declaration
public D3D11RenderTargetBlendDesc(bool isBlendEnabled, D3D11BlendValue sourceBlend, D3D11BlendValue destinationBlend, D3D11BlendOperation blendOperation, D3D11BlendValue sourceBlendAlpha, D3D11BlendValue destinationBlendAlpha, D3D11BlendOperation blendOperationAlpha, D3D11ColorWriteEnables renderTargetWriteMask)
Parameters
Properties
|
Edit this page
View Source
BlendOperation
Gets or sets a value indicating how to combine the SrcBlend and DestBlend operations.
Declaration
public D3D11BlendOperation BlendOperation { get; set; }
Property Value
|
Edit this page
View Source
BlendOperationAlpha
Gets or sets a value indicating how to combine the SrcBlendAlpha and DestBlendAlpha operations.
Declaration
public D3D11BlendOperation BlendOperationAlpha { get; set; }
Property Value
|
Edit this page
View Source
DestinationBlend
Gets or sets the operation to perform on the current RGB value in the render target.
Declaration
public D3D11BlendValue DestinationBlend { get; set; }
Property Value
|
Edit this page
View Source
DestinationBlendAlpha
Gets or sets the operation to perform on the current alpha value in the render target. Blend options that end in _COLOR are not allowed.
Declaration
public D3D11BlendValue DestinationBlendAlpha { get; set; }
Property Value
|
Edit this page
View Source
IsBlendEnabled
Gets or sets a value indicating whether blending is enabled.
Declaration
public bool IsBlendEnabled { get; set; }
Property Value
|
Edit this page
View Source
RenderTargetWriteMask
Gets or sets a write mask.
Declaration
public D3D11ColorWriteEnables RenderTargetWriteMask { get; set; }
Property Value
|
Edit this page
View Source
SourceBlend
Gets or sets the operation to perform on the RGB value that the pixel shader outputs.
Declaration
public D3D11BlendValue SourceBlend { get; set; }
Property Value
|
Edit this page
View Source
SourceBlendAlpha
Gets or sets the operation to perform on the alpha value that the pixel shader outputs. Blend options that end in _COLOR are not allowed.
Declaration
public D3D11BlendValue SourceBlendAlpha { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D3D11RenderTargetBlendDesc)
Declaration
public readonly bool Equals(D3D11RenderTargetBlendDesc other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static D3D11RenderTargetBlendDesc NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D3D11RenderTargetBlendDesc>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11RenderTargetBlendDesc> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in D3D11RenderTargetBlendDesc)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11RenderTargetBlendDesc obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D3D11RenderTargetBlendDesc>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11RenderTargetBlendDesc> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D3D11RenderTargetBlendDesc, D3D11RenderTargetBlendDesc)
Declaration
public static bool operator ==(D3D11RenderTargetBlendDesc left, D3D11RenderTargetBlendDesc right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D3D11RenderTargetBlendDesc, D3D11RenderTargetBlendDesc)
Declaration
public static bool operator !=(D3D11RenderTargetBlendDesc left, D3D11RenderTargetBlendDesc right)
Parameters
Returns
Implements