Example #1
0
 public unsafe void ClearView(ID3D11View view, System.Drawing.Color color, ReadOnlySpan <RawRect> rects)
 {
     fixed(RawRect *pRects = rects)
     {
         ClearView(view, new Color4(color), (IntPtr)pRects, rects.Length);
     }
 }
Example #2
0
 public unsafe void ClearView(ID3D11View view, Color4 color, ReadOnlySpan <RawRect> rects)
 {
     fixed(RawRect *pRects = rects)
     {
         ClearView(view, color, (IntPtr)pRects, rects.Length);
     }
 }
 public void ClearView(ID3D11View view, Color4 color, Span <RawRect> rects)
 {
     fixed(RawRect *pRects = rects)
     {
         ClearView(view, color, pRects, rects.Length);
     }
 }
 public unsafe void DiscardView1(ID3D11View view, ReadOnlySpan <Rect> rects)
 {
     fixed(Rect *pRects = rects)
     {
         DiscardView1(view, (IntPtr)pRects, rects.Length);
     }
 }
 /// <summary>
 /// Discards the specified elements in a resource view from the device context.
 /// </summary>
 /// <param name="view">
 /// An instance of <see cref="ID3D11View"/> for the resource view to discard.
 /// The resource that underlies the view must have been created with usage <see cref="Usage.Default"/> or <see cref="Usage.Dynamic"/>, otherwise the runtime drops the call to DiscardView1;
 /// if the debug layer is enabled, the runtime returns an error message.
 /// </param>
 /// <param name="rects">An array of <see cref="RawRect"/> structures for the rectangles in the resource view to discard.</param>
 public void DiscardView1(ID3D11View view, RawRect[] rects)
 {
     unsafe
     {
         DiscardView1(view, (IntPtr)Unsafe.AsPointer(ref rects[0]), rects.Length);
     }
 }
 /// <summary>
 /// Discards the specified elements in a resource view from the device context.
 /// </summary>
 /// <param name="view">
 /// An instance of <see cref="ID3D11View"/> for the resource view to discard.
 /// The resource that underlies the view must have been created with usage <see cref="ResourceUsage.Default"/> or <see cref="ResourceUsage.Dynamic"/>, otherwise the runtime drops the call to DiscardView1;
 /// if the debug layer is enabled, the runtime returns an error message.
 /// </param>
 /// <param name="rects">An array of <see cref="RawRect"/> structures for the rectangles in the resource view to discard.</param>
 public void DiscardView1(ID3D11View view, RawRect[] rects)
 {
     fixed(RawRect *pRects = rects)
     {
         DiscardView1(view, (IntPtr)pRects, rects.Length);
     }
 }
 public void ClearView(ID3D11View view, System.Drawing.Color color, Span <RawRect> rects)
 {
     fixed(RawRect *pRects = rects)
     {
         ClearView(view, new Color4(color), pRects, rects.Length);
     }
 }
Example #8
0
 public void ClearView(ID3D11View view, Color4 color)
 {
     ClearView(view, color);
 }
Example #9
0
 /// <summary>
 /// Discards the specified elements in a resource view from the device context.
 /// </summary>
 /// <param name="view">
 /// An instance of <see cref="ID3D11View"/> for the resource view to discard.
 /// The resource that underlies the view must have been created with usage <see cref="ResourceUsage.Default"/> or <see cref="ResourceUsage.Dynamic"/>, otherwise the runtime drops the call to DiscardView1;
 /// if the debug layer is enabled, the runtime returns an error message.
 /// </param>
 public void DiscardView1(ID3D11View view)
 {
     DiscardView1(view, IntPtr.Zero, 0);
 }
Example #10
0
 public void ClearView(ID3D11View view, System.Drawing.Color color)
 {
     ClearView(view, new Color4(color));
 }
 public unsafe void ClearView(ID3D11View view, Color4 color, Rect[] rects)
 {
     ClearView(view, color, (IntPtr)Unsafe.AsPointer(ref rects[0]), rects.Length);
 }
 public unsafe void ClearView(ID3D11View view, System.Drawing.Color color, RawRect[] rects)
 {
     ClearView(view, new Color4(color), (IntPtr)Unsafe.AsPointer(ref rects[0]), rects.Length);
 }
Example #13
0
 public void DiscardView1(ID3D11View view, RawRectangle[] rects)
 {
     DiscardView1(view, rects, rects.Length);
 }
Example #14
0
 public void ClearView(ID3D11View view, RawColor4 color, RawRectangle[] rects)
 {
     ClearView(view, color, rects, rects.Length);
 }
 public void DiscardView1(ID3D11View view, InteropRect[] rects)
 {
     DiscardView1(view, rects, rects.Length);
 }
 public void ClearView(ID3D11View view, Color4 color, InteropRect[] rects)
 {
     ClearView(view, color, rects, rects.Length);
 }