[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.OutputMergerStage

Class OutputMergerStage

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

ID3D11DeviceContext

[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")]
public class OutputMergerStage : CppObject, IDisposable
Inheritance
object
OutputMergerStage
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

OutputMergerStage(IntPtr)

Initializes a new instance of the OutputMergerStage class.

public OutputMergerStage(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Fields

SimultaneousRenderTargetCount

Constant SimultaneousRenderTargetCount.

public const int SimultaneousRenderTargetCount = 8

Field Value

int

Properties

BlendFactor

Gets or sets the blend factor.

public ColorF BlendFactor { get; set; }

Property Value

ColorF

The blend factor.

BlendSampleMask

Gets or sets the blend sample mask.

public int BlendSampleMask { get; set; }

Property Value

int

The blend sample mask.

BlendState

Gets or sets the state of the blend.

public BlendState BlendState { get; set; }

Property Value

BlendState

The state of the blend.

DepthStencilReference

Gets or sets the depth stencil reference.

public int DepthStencilReference { get; set; }

Property Value

int

The depth stencil reference.

DepthStencilState

Gets or sets the state of the depth stencil.

public DepthStencilState DepthStencilState { get; set; }

Property Value

DepthStencilState

The state of the depth stencil.

Methods

GetBlendState(out ColorF, out int)

Get the {{blend state}} of the output-merger stage.

public BlendState GetBlendState(out ColorF blendFactor, out int sampleMaskRef)

Parameters

blendFactor ColorF
sampleMaskRef int

Returns

BlendState

GetBlendState(out BlendState, out ColorF, out int)

void ID3D11DeviceContext::OMGetBlendState([Out, Optional] ID3D11BlendState** ppBlendState,[Out, Optional] SHARPDX_COLOR4* BlendFactor,[Out, Optional] unsigned int* pSampleMask)

public void GetBlendState(out BlendState blendStateOut, out ColorF blendFactor, out int sampleMaskRef)

Parameters

blendStateOut BlendState
blendFactor ColorF
sampleMaskRef int

GetDepthStencilState(out DepthStencilState, out int)

void ID3D11DeviceContext::OMGetDepthStencilState([Out, Optional] ID3D11DepthStencilState** ppDepthStencilState,[Out, Optional] unsigned int* pStencilRef)

public void GetDepthStencilState(out DepthStencilState depthStencilStateOut, out int stencilRefRef)

Parameters

depthStencilStateOut DepthStencilState
stencilRefRef int

GetDepthStencilState(out int)

Gets the {{depth-stencil}} state of the output-merger stage.

public DepthStencilState GetDepthStencilState(out int stencilRefRef)

Parameters

stencilRefRef int

Returns

DepthStencilState

GetRenderTargets()

Get references to the render targets that are available to the {{output-merger stage}}.

public DepthStencilView GetRenderTargets()

Returns

DepthStencilView

GetRenderTargets(int, out DepthStencilView)

Get references to the render targets and the depth-stencil buffer that are available to the {{output-merger stage}}.

public RenderTargetView[] GetRenderTargets(int numViews, out DepthStencilView depthStencilViewRef)

Parameters

numViews int
depthStencilViewRef DepthStencilView

Returns

RenderTargetView[]

GetRenderTargets(int, RenderTargetView[])

void ID3D11DeviceContext::OMGetRenderTargets([In] unsigned int NumViews,[Out, Buffer, Optional] ID3D11RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D11DepthStencilView** ppDepthStencilView)

public DepthStencilView GetRenderTargets(int numViews, RenderTargetView[] renderTargetViewsOut)

Parameters

numViews int
renderTargetViewsOut RenderTargetView[]

Returns

DepthStencilView

GetRenderTargets(int)

Get references to the render targets that are available to the {{output-merger stage}}.

public RenderTargetView[] GetRenderTargets(int numViews)

Parameters

numViews int

Returns

RenderTargetView[]

GetRenderTargetsAndUnorderedAccessViews(int, RenderTargetView[], int, int, UnorderedAccessView[])

void ID3D11DeviceContext::OMGetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[Out, Buffer, Optional] ID3D11RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D11DepthStencilView** ppDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[Out, Buffer, Optional] ID3D11UnorderedAccessView** ppUnorderedAccessViews)

public DepthStencilView GetRenderTargetsAndUnorderedAccessViews(int numRTVs, RenderTargetView[] renderTargetViewsOut, int uAVStartSlot, int numUAVs, UnorderedAccessView[] unorderedAccessViewsOut)

Parameters

numRTVs int
renderTargetViewsOut RenderTargetView[]
uAVStartSlot int
numUAVs int
unorderedAccessViewsOut UnorderedAccessView[]

Returns

DepthStencilView

GetUnorderedAccessViews(int, int)

Gets an array of views for an unordered resource.

public UnorderedAccessView[] GetUnorderedAccessViews(int startSlot, int count)

Parameters

startSlot int
count int

Returns

UnorderedAccessView[]

ResetTargets()

Unbinds all depth-stencil buffer and render targets from the output-merger stage.

public void ResetTargets()

SetBlendState(BlendState, ColorF?, int)

void ID3D11DeviceContext::OMSetBlendState([In, Optional] ID3D11BlendState* pBlendState,[In, Optional] const SHARPDX_COLOR4* BlendFactor,[In] unsigned int SampleMask)

public void SetBlendState(BlendState blendStateRef, ColorF? blendFactor = null, int sampleMask = -1)

Parameters

blendStateRef BlendState
blendFactor ColorF?
sampleMask int

SetBlendState(BlendState, ColorF?, uint)

Set the blend state of the output-merger stage.

[CLSCompliant(false)]
public void SetBlendState(BlendState blendStateRef, ColorF? blendFactor, uint sampleMask)

Parameters

blendStateRef BlendState
blendFactor ColorF?
sampleMask uint

SetDepthStencilState(DepthStencilState, int)

void ID3D11DeviceContext::OMSetDepthStencilState([In, Optional] ID3D11DepthStencilState* pDepthStencilState,[In] unsigned int StencilRef)

public void SetDepthStencilState(DepthStencilState depthStencilStateRef, int stencilRef = 0)

Parameters

depthStencilStateRef DepthStencilState
stencilRef int

SetRenderTargets(DepthStencilView, RenderTargetView)

Binds a depth stencil view and a render target view to the output-merger stage keeping existing unordered access views bindings.

public void SetRenderTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView)

Parameters

depthStencilView DepthStencilView
renderTargetView RenderTargetView

SetRenderTargets(DepthStencilView, params RenderTargetView[])

Binds a depth stencil view and a render target view to the output-merger stage keeping existing unordered access views bindings.

public void SetRenderTargets(DepthStencilView depthStencilView, params RenderTargetView[] renderTargetViews)

Parameters

depthStencilView DepthStencilView
renderTargetViews RenderTargetView[]

SetRenderTargets(RenderTargetView)

Binds a render target view to the output-merger stage keeping existing unordered access views bindings.

public void SetRenderTargets(RenderTargetView renderTargetView)

Parameters

renderTargetView RenderTargetView

SetRenderTargets(int, IntPtr, DepthStencilView)

void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView)

public void SetRenderTargets(int numViews, IntPtr renderTargetViewsOut, DepthStencilView depthStencilViewRef)

Parameters

numViews int
renderTargetViewsOut System.IntPtr
depthStencilViewRef DepthStencilView

SetRenderTargetsAndUnorderedAccessViews(int, IntPtr, DepthStencilView, int, int, IntPtr, IntPtr)

void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const void** ppUnorderedAccessViews,[In, Buffer, Optional] const void* pUAVInitialCounts)

public void SetRenderTargetsAndUnorderedAccessViews(int numRTVs, IntPtr renderTargetViewsOut, DepthStencilView depthStencilViewRef, int uAVStartSlot, int numUAVs, IntPtr unorderedAccessViewsOut, IntPtr uAVInitialCountsRef)

Parameters

numRTVs int
renderTargetViewsOut System.IntPtr
depthStencilViewRef DepthStencilView
uAVStartSlot int
numUAVs int
unorderedAccessViewsOut System.IntPtr
uAVInitialCountsRef System.IntPtr

SetTargets(ComArray<RenderTargetView>)

Binds a set of render targets to the output-merger stage and clear the depth stencil view.

public void SetTargets(ComArray<RenderTargetView> renderTargetViews)

Parameters

renderTargetViews ComArray<RenderTargetView>

SetTargets(DepthStencilView, ComArray<RenderTargetView>)

Binds a depth-stencil buffer and a set of render targets to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, ComArray<RenderTargetView> renderTargetViews)

Parameters

depthStencilView DepthStencilView
renderTargetViews ComArray<RenderTargetView>

SetTargets(DepthStencilView, RenderTargetView, int, UnorderedAccessView[], int[])

Binds a depth-stencil buffer, a set of unordered access views, and a single render target to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths)

Parameters

depthStencilView DepthStencilView
renderTargetView RenderTargetView
startSlot int
unorderedAccessViews UnorderedAccessView[]
initialLengths int[]

SetTargets(DepthStencilView, RenderTargetView, int, UnorderedAccessView[])

Binds a depth-stencil buffer, a set of unordered access views, and a single render target to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews)

Parameters

depthStencilView DepthStencilView
renderTargetView RenderTargetView
startSlot int
unorderedAccessViews UnorderedAccessView[]

SetTargets(DepthStencilView, RenderTargetView)

Binds a depth-stencil buffer and a single render target to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView)

Parameters

depthStencilView DepthStencilView
renderTargetView RenderTargetView

SetTargets(DepthStencilView, params RenderTargetView[])

Binds a depth-stencil buffer and a set of render targets to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, params RenderTargetView[] renderTargetViews)

Parameters

depthStencilView DepthStencilView
renderTargetViews RenderTargetView[]

SetTargets(DepthStencilView, int, RenderTargetView[])

Binds a depth-stencil buffer and a set of render targets to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, int renderTargetCount, RenderTargetView[] renderTargetViews)

Parameters

depthStencilView DepthStencilView
renderTargetCount int
renderTargetViews RenderTargetView[]

SetTargets(DepthStencilView, int, UnorderedAccessView[], params RenderTargetView[])

Binds a depth-stencil buffer, a set of unordered access views, and a set of render targets to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, int startSlot, UnorderedAccessView[] unorderedAccessViews, params RenderTargetView[] renderTargetViews)

Parameters

depthStencilView DepthStencilView
startSlot int
unorderedAccessViews UnorderedAccessView[]
renderTargetViews RenderTargetView[]

SetTargets(DepthStencilView, int, UnorderedAccessView[], int[], params RenderTargetView[])

Binds a depth-stencil buffer, a set of unordered access views, and a set of render targets to the output-merger stage.

public void SetTargets(DepthStencilView depthStencilView, int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths, params RenderTargetView[] renderTargetViews)

Parameters

depthStencilView DepthStencilView
startSlot int
unorderedAccessViews UnorderedAccessView[]
initialLengths int[]
renderTargetViews RenderTargetView[]

SetTargets(RenderTargetView, int, UnorderedAccessView[], int[])

Binds a set of unordered access views and a single render target to the output-merger stage.

public void SetTargets(RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths)

Parameters

renderTargetView RenderTargetView
startSlot int
unorderedAccessViews UnorderedAccessView[]
initialLengths int[]

SetTargets(RenderTargetView, int, UnorderedAccessView[])

Binds a set of unordered access views and a single render target to the output-merger stage.

public void SetTargets(RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews)

Parameters

renderTargetView RenderTargetView
startSlot int
unorderedAccessViews UnorderedAccessView[]

SetTargets(RenderTargetView)

Binds a single render target to the output-merger stage.

public void SetTargets(RenderTargetView renderTargetView)

Parameters

renderTargetView RenderTargetView

SetTargets(params RenderTargetView[])

Bind one or more render targets atomically and the depth-stencil buffer to the output-merger stage.

public void SetTargets(params RenderTargetView[] renderTargetViews)

Parameters

renderTargetViews RenderTargetView[]

SetTargets(int, UnorderedAccessView[], params RenderTargetView[])

Binds a set of unordered access views and a set of render targets to the output-merger stage.

public void SetTargets(int startSlot, UnorderedAccessView[] unorderedAccessViews, params RenderTargetView[] renderTargetViews)

Parameters

startSlot int
unorderedAccessViews UnorderedAccessView[]
renderTargetViews RenderTargetView[]

SetTargets(int, UnorderedAccessView[], int[], params RenderTargetView[])

Binds a set of unordered access views and a set of render targets to the output-merger stage.

public void SetTargets(int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths, params RenderTargetView[] renderTargetViews)

Parameters

startSlot int
unorderedAccessViews UnorderedAccessView[]
initialLengths int[]
renderTargetViews RenderTargetView[]

SetUnorderedAccessView(int, UnorderedAccessView, int)

Sets an array of views for an unordered resource keeping existing render targets bindings.

public void SetUnorderedAccessView(int startSlot, UnorderedAccessView unorderedAccessView, int uavInitialCount)

Parameters

startSlot int
unorderedAccessView UnorderedAccessView
uavInitialCount int

SetUnorderedAccessView(int, UnorderedAccessView)

Sets an array of views for an unordered resource keeping existing render targets bindings.

public void SetUnorderedAccessView(int startSlot, UnorderedAccessView unorderedAccessView)

Parameters

startSlot int
unorderedAccessView UnorderedAccessView

SetUnorderedAccessViews(int, UnorderedAccessView[], int[])

Sets an array of views for an unordered resource keeping existing render targets bindings.

public void SetUnorderedAccessViews(int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] uavInitialCounts)

Parameters

startSlot int
unorderedAccessViews UnorderedAccessView[]
uavInitialCounts int[]

SetUnorderedAccessViews(int, params UnorderedAccessView[])

Sets an array of views for an unordered resource keeping existing render targets bindings.

public void SetUnorderedAccessViews(int startSlot, params UnorderedAccessView[] unorderedAccessViews)

Parameters

startSlot int
unorderedAccessViews UnorderedAccessView[]

Operators

explicit operator OutputMergerStage(IntPtr)

Performs an explicit conversion from System.IntPtr to OutputMergerStage.

public static explicit operator OutputMergerStage(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

OutputMergerStage