コード例 #1
0
ファイル: Device.cs プロジェクト: maxIsaev/SharpDX
 public GraphicsCommandList CreateCommandList(
     SharpDX.Direct3D12.CommandListType type,
     SharpDX.Direct3D12.CommandAllocator commandAllocatorRef,
     SharpDX.Direct3D12.PipelineState initialStateRef)
 {
     return(CreateCommandList(0, type, commandAllocatorRef, initialStateRef));
 }
コード例 #2
0
ファイル: Device.cs プロジェクト: maxIsaev/SharpDX
        /// <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));
        }