[]
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
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)
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)
Binds a single scissor rectangle to the rasterizer stage.
public void SetScissorRectangle(int left, int top, int right, int bottom)
Binds 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)
void 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)
Binds a set of viewports to the rasterizer stage.
public void SetViewports(ViewportF[] viewports, int count = 0)
void ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports)
public void SetViewports(int numViewports, IntPtr viewportsRef)
Performs an explicit conversion from IntPtr to RasterizerStage.
public static explicit operator RasterizerStage(IntPtr nativePointer)
nativePointer
IntPtr