Exemple #1
0
 public GraphicsCommandList CreateCommandList(
     SharpDX.Direct3D12.CommandListType type,
     SharpDX.Direct3D12.CommandAllocator commandAllocatorRef,
     SharpDX.Direct3D12.PipelineState initialStateRef)
 {
     return(CreateCommandList(0, type, commandAllocatorRef, initialStateRef));
 }
Exemple #2
0
        /// <summary>
        /// No documentation for Direct3D12
        /// </summary>
        /// <param name="nodeMask">No documentation.</param>
        /// <param name="type">No documentation.</param>
        /// <param name="commandAllocatorRef">No documentation.</param>
        /// <param name="initialStateRef">No documentation.</param>
        /// <param name="riid">No documentation.</param>
        /// <returns>No documentation.</returns>
        /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID3D12Device::CreateCommandList']/*"/>
        /// <unmanaged>HRESULT ID3D12Device::CreateCommandList([In] unsigned int nodeMask,[In] D3D12_COMMAND_LIST_TYPE type,[In] ID3D12CommandAllocator* pCommandAllocator,[In, Optional] ID3D12PipelineState* pInitialState,[In] const GUID&amp; riid,[Out] void** ppCommandList)</unmanaged>
        /// <unmanaged-short>ID3D12Device::CreateCommandList</unmanaged-short>
        public GraphicsCommandList CreateCommandList(int nodeMask,
                                                     SharpDX.Direct3D12.CommandListType type,
                                                     SharpDX.Direct3D12.CommandAllocator commandAllocatorRef,
                                                     SharpDX.Direct3D12.PipelineState initialStateRef)
        {
            var nativePointer = CreateCommandList(nodeMask, type, commandAllocatorRef, initialStateRef, Utilities.GetGuidFromType(typeof(GraphicsCommandList)));

            return(new GraphicsCommandList(nativePointer));
        }
Exemple #3
0
 /// <summary>
 /// No documentation for Direct3D12
 /// </summary>
 /// <param name="type">No documentation.</param>
 /// <param name="riid">No documentation.</param>
 /// <returns>No documentation.</returns>
 /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID3D12Device::CreateCommandAllocator']/*"/>
 /// <unmanaged>HRESULT ID3D12Device::CreateCommandAllocator([In] D3D12_COMMAND_LIST_TYPE type,[In] const GUID&amp; riid,[Out] ID3D12CommandAllocator** ppCommandAllocator)</unmanaged>
 /// <unmanaged-short>ID3D12Device::CreateCommandAllocator</unmanaged-short>
 public SharpDX.Direct3D12.CommandAllocator CreateCommandAllocator(SharpDX.Direct3D12.CommandListType type)
 {
     return(CreateCommandAllocator(type, Utilities.GetGuidFromType(typeof(CommandAllocator))));
 }
Exemple #4
0
        /// <summary>
        /// <p>Creates a new graphics command list object.</p>
        /// </summary>
        /// <param name="nodeMask">
        /// For single GPU operation, set this to zero.
        /// If there are multiple GPU nodes, set a bit to identify the node (the device's physical adapter) for which to create the command list.
        /// Each bit in the mask corresponds to a single node. Only 1 bit must be set.
        /// </param>
        /// <param name="type">A <see cref="SharpDX.Direct3D12.CommandListType"/> value that specifies the type of command list to create.</param>
        /// <param name="flags">A <see cref="CommandListFlags"/> flags.</param>
        /// <returns>A new instance of <see cref="GraphicsCommandList1"/>.</returns>
        public GraphicsCommandList1 CreateCommandList1(int nodeMask, SharpDX.Direct3D12.CommandListType type, SharpDX.Direct3D12.CommandListFlags flags)
        {
            var nativePointer = CreateCommandList1(nodeMask, type, flags, Utilities.GetGuidFromType(typeof(GraphicsCommandList1)));

            return(new GraphicsCommandList1(nativePointer));
        }
Exemple #5
0
 /// <summary>
 /// <p>Creates a new graphics command list object.</p>
 /// </summary>
 /// <param name="type">A <see cref="SharpDX.Direct3D12.CommandListType"/> value that specifies the type of command list to create.</param>
 /// <param name="flags">A <see cref="CommandListFlags"/> flags.</param>
 /// <returns>A new instance of <see cref="GraphicsCommandList1"/>.</returns>
 public GraphicsCommandList1 CreateCommandList1(SharpDX.Direct3D12.CommandListType type, SharpDX.Direct3D12.CommandListFlags flags)
 {
     return(CreateCommandList1(0, type, flags));
 }