[]
ID3D11DeviceContext
[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")]
public class RasterizerStage : CppObject, IDisposable
Initializes a new instance of the RasterizerStage class.
public RasterizerStage(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Get the array of {{scissor rectangles}} bound to the {{rasterizer stage}}.
public RectL[] GetScissorRectangles()
Get the array of {{scissor rectangles}} bound to the {{rasterizer stage}}.
public void GetScissorRectangles(RectL[] scissorRectangles)
scissorRectangles
RectL[]void ID3D11DeviceContext::RSGetScissorRects([InOut] unsigned int* pNumRects,[Out, Buffer, Optional] RECT* pRects)
public void GetScissorRects(ref int numRectsRef, RectL[] rectsRef)
numRectsRef
intrectsRef
RectL[]void ID3D11DeviceContext::RSGetState([Out] ID3D11RasterizerState** ppRasterizerState)
public RasterizerState GetState()
Get the array of {{viewports}} bound to the {{rasterizer stage}}
public ViewportF[] GetViewports()
Get the array of {{viewports}} bound to the {{rasterizer stage}}
public void GetViewports(ViewportF[] viewports)
viewports
ViewportF[]void ID3D11DeviceContext::RSGetViewports([InOut] unsigned int* pNumViewports,[Out, Buffer, Optional] D3D11_VIEWPORT* pViewports)
public void GetViewports(ref int numViewportsRef, ViewportF[] viewportsRef)
numViewportsRef
intviewportsRef
ViewportF[]Binds a single scissor rectangle to the rasterizer stage.
public void SetScissorRectangle(int left, int top, int right, int bottom)
left
inttop
intright
intbottom
intBinds a set of scissor rectangles to the rasterizer stage.
public void SetScissorRectangles(params RectL[] scissorRectangles)
scissorRectangles
RectL[]void ID3D11DeviceContext::RSSetScissorRects([In] unsigned int NumRects,[In, Buffer, Optional] const void* pRects)
public void SetScissorRects(int numRects, IntPtr rectsRef)
numRects
intrectsRef
System.IntPtrvoid ID3D11DeviceContext::RSSetState([In, Optional] ID3D11RasterizerState* pRasterizerState)
public void SetState(RasterizerState rasterizerStateRef)
rasterizerStateRef
RasterizerStateBinds a single viewport to the rasterizer stage.
public void SetViewport(ViewportF viewport)
viewport
ViewportFBinds a single viewport to the rasterizer stage.
public void SetViewport(float x, float y, float width, float height, float minZ = 0, float maxZ = 1)
x
floaty
floatwidth
floatheight
floatminZ
floatmaxZ
floatBinds a set of viewports to the rasterizer stage.
public void SetViewports(ViewportF[] viewports, int count = 0)
viewports
ViewportF[]count
intvoid ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports)
public void SetViewports(int numViewports, IntPtr viewportsRef)
numViewports
intviewportsRef
System.IntPtrPerforms an explicit conversion from System.IntPtr to RasterizerStage.
public static explicit operator RasterizerStage(IntPtr nativePointer)
nativePointer
System.IntPtr