コード例 #1
0
 /// <summary>
 /// Initialize new instance of <see cref="RenderPassRenderTargetDescription"/> struct.
 /// </summary>
 /// <param name="cpuDescriptor">The CPU <see cref="CpuDescriptorHandle"/> handle corresponding to the render target view(s) (RTVs).</param>
 /// <param name="beginningAccess">The access to the RTV(s) requested at the transition into a render pass.</param>
 /// <param name="endingAccess">The access to the RTV(s) requested at the transition out of a render pass.</param>
 public RenderPassRenderTargetDescription(
     CpuDescriptorHandle cpuDescriptor,
     RenderPassBeginningAccess beginningAccess,
     RenderPassEndingAccess endingAccess)
 {
     CpuDescriptor   = cpuDescriptor;
     BeginningAccess = beginningAccess;
     EndingAccess    = endingAccess;
 }
コード例 #2
0
 public void ClearDepthStencilView(CpuDescriptorHandle depthStencilView, ClearFlags clearFlags, float depth, byte stencil, params RawRectangle[] rectangles)
 {
     if (rectangles.Length == 0)
     {
         ClearDepthStencilView(depthStencilView, clearFlags, depth, stencil, 0, null);
     }
     else
     {
         ClearDepthStencilView(depthStencilView, clearFlags, depth, stencil, rectangles.Length, rectangles);
     }
 }
コード例 #3
0
 public void ClearRenderTargetView(CpuDescriptorHandle renderTargetView, Color4 colorRGBA, params RawRectangle[] rectangles)
 {
     if (rectangles.Length == 0)
     {
         ClearRenderTargetView(renderTargetView, colorRGBA, 0, null);
     }
     else
     {
         ClearRenderTargetView(renderTargetView, colorRGBA, rectangles.Length, rectangles);
     }
 }
コード例 #4
0
 public void ClearRenderTargetView(CpuDescriptorHandle renderTargetView, in System.Drawing.Color color)
コード例 #5
0
 public void ClearRenderTargetView(CpuDescriptorHandle renderTargetView, in Color4 colorRGBA, params Rect[] rectangles)