Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit d11f6bc

Browse files
authored
Merge pull request #856 from mrvux/direct3d12_newmethods
Overloads for SetDescriptorHeaps and SetVertexBuffers
2 parents 581726d + b462d9a commit d11f6bc

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Source/SharpDX.Direct3D12/GraphicsCommandList.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,22 @@ public unsafe void ResourceBarrier(params SharpDX.Direct3D12.ResourceBarrier[] b
149149
ResourceBarrier(barriers.Length, new IntPtr(pBarriers));
150150
}
151151

152+
/// <summary>
153+
/// <p> Changes the currently bound descriptor heaps that are associated with a command list. </p>
154+
/// </summary>
155+
/// <param name="descriptorHeaps"><dd> <p> A reference to an array of <strong><see cref="SharpDX.Direct3D12.DescriptorHeap"/></strong> objects for the heaps to set on the command list. </p> </dd></param>
156+
/// <remarks>
157+
/// <p><strong>SetDescriptorHeaps</strong> can be called on a bundle, but the bundle descriptor heaps must match the calling command list descriptor heap. For more information on bundle restrictions, refer to Creating and Recording Command Lists and Bundles.</p>
158+
/// </remarks>
159+
/// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID3D12GraphicsCommandList::SetDescriptorHeaps']/*"/>
160+
/// <msdn-id>Dn903908</msdn-id>
161+
/// <unmanaged>void ID3D12GraphicsCommandList::SetDescriptorHeaps([In] unsigned int NumDescriptorHeaps,[In, Buffer] const ID3D12DescriptorHeap** ppDescriptorHeaps)</unmanaged>
162+
/// <unmanaged-short>ID3D12GraphicsCommandList::SetDescriptorHeaps</unmanaged-short>
163+
public void SetDescriptorHeaps(params SharpDX.Direct3D12.DescriptorHeap[] descriptorHeaps)
164+
{
165+
SetDescriptorHeaps(descriptorHeaps.Length, descriptorHeaps);
166+
}
167+
152168
/// <summary>
153169
/// <p> Sets CPU descriptor handles for the render targets and depth stencil. </p>
154170
/// </summary>
@@ -223,6 +239,22 @@ public void SetVertexBuffers(int startSlot, SharpDX.Direct3D12.VertexBufferView[
223239
}
224240
}
225241

242+
/// <summary>
243+
/// <p>Sets a CPU descriptor handle for the vertex buffers.</p>
244+
/// </summary>
245+
/// <param name="startSlot"><dd> <p> Index into the device's zero-based array to begin setting vertex buffers. </p> </dd></param>
246+
/// <param name="vertexBufferViews"><dd> <p> Specifies the vertex buffer views in an array of <strong><see cref="SharpDX.Direct3D12.VertexBufferView"/></strong> structures. </p> </dd></param>
247+
/// <param name="numBuffers"><dd> <p> The number of views in the <em>pViews</em> array. </p> </dd></param>
248+
/// <msdn-id>dn986883</msdn-id>
249+
/// <unmanaged>void ID3D12GraphicsCommandList::IASetVertexBuffers([In] unsigned int StartSlot,[In] unsigned int NumViews,[In] const void* pViews)</unmanaged>
250+
/// <unmanaged-short>ID3D12GraphicsCommandList::IASetVertexBuffers</unmanaged-short>
251+
public void SetVertexBuffers(int startSlot, params SharpDX.Direct3D12.VertexBufferView[] vertexBufferViews)
252+
{
253+
SetVertexBuffers(startSlot, vertexBufferViews, vertexBufferViews.Length);
254+
}
255+
256+
257+
226258
/// <summary>
227259
/// <p>Sets a CPU descriptor handle for the vertex buffers.</p>
228260
/// </summary>

0 commit comments

Comments
 (0)