public virtual int Reset(
            ID3D12CommandAllocator pAllocator,
            ID3D12PipelineState pInitialState
            )
        {
            var fp = GetFunctionPointer(10);

            if (m_ResetFunc == null)
            {
                m_ResetFunc = (ResetFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ResetFunc));
            }

            return(m_ResetFunc(m_ptr, pAllocator != null ? pAllocator.Ptr : IntPtr.Zero, pInitialState != null ? pInitialState.Ptr : IntPtr.Zero));
        }
Exemplo n.º 2
0
        public virtual int CreateCommandList(
            uint nodeMask,
            D3D12_COMMAND_LIST_TYPE type,
            ID3D12CommandAllocator pCommandAllocator,
            ID3D12PipelineState pInitialState,
            ref Guid riid,
            out IntPtr ppCommandList
            )
        {
            var fp = GetFunctionPointer(12);

            if (m_CreateCommandListFunc == null)
            {
                m_CreateCommandListFunc = (CreateCommandListFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateCommandListFunc));
            }

            return(m_CreateCommandListFunc(m_ptr, nodeMask, type, pCommandAllocator != null ? pCommandAllocator.Ptr : IntPtr.Zero, pInitialState != null ? pInitialState.Ptr : IntPtr.Zero, ref riid, out ppCommandList));
        }