public virtual void ClearState( ID3D12PipelineState pPipelineState ) { var fp = GetFunctionPointer(11); if (m_ClearStateFunc == null) { m_ClearStateFunc = (ClearStateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ClearStateFunc)); } m_ClearStateFunc(m_ptr, pPipelineState != null ? pPipelineState.Ptr : IntPtr.Zero); }
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)); }
public virtual int StorePipeline( ref ushort pName, ID3D12PipelineState pPipeline ) { var fp = GetFunctionPointer(8); if (m_StorePipelineFunc == null) { m_StorePipelineFunc = (StorePipelineFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(StorePipelineFunc)); } return(m_StorePipelineFunc(m_ptr, ref pName, pPipeline != null ? pPipeline.Ptr : IntPtr.Zero)); }
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)); }