Skip to content

Commit

Permalink
[Direct3D12] Add simple overload on GraphicsCommandList to clear the …
Browse files Browse the repository at this point in the history
…whole target (avoiding rect parameter)
  • Loading branch information
mrvux committed Jun 17, 2015
1 parent 2de3dc1 commit fbe37b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/SharpDX.Direct3D12/GraphicsCommandList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ public void ClearDepthStencilView(SharpDX.Direct3D12.CpuDescriptorHandle depthSt
ClearDepthStencilView(depthStencilView, clearFlags, depth, stencil, 0, null);
}

/// <summary>
/// No documentation for Direct3D12
/// </summary>
/// <param name="renderTargetView">No documentation.</param>
/// <param name="colorRGBA">No documentation.</param>
/// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID3D12GraphicsCommandList::ClearRenderTargetView']/*"/>
/// <unmanaged>void ID3D12GraphicsCommandList::ClearRenderTargetView([In] D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,[In] const SHARPDX_COLOR4* ColorRGBA,[In] unsigned int NumRects,[In, Buffer] const RECT* pRects)</unmanaged>
/// <unmanaged-short>ID3D12GraphicsCommandList::ClearRenderTargetView</unmanaged-short>
public void ClearRenderTargetView(CpuDescriptorHandle renderTargetView, Mathematics.Interop.RawColor4 colorRGBA)
{
ClearRenderTargetView(renderTargetView, colorRGBA, 0, null);
}

/// <unmanaged>void ID3D12CommandList::ResourceBarrier([In] unsigned int Count,[In, Buffer] const D3D12_RESOURCE_BARRIER_DESC* pDesc)</unmanaged>
/// <unmanaged-short>ID3D12CommandList::ResourceBarrier</unmanaged-short>
public void ResourceBarrierTransition(Resource resource, ResourceStates stateBefore, ResourceStates stateAfter)
Expand Down

0 comments on commit fbe37b7

Please sign in to comment.