コード例 #1
0
        /// <summary>
        /// Gets the pointer to the adapter monitor
        /// </summary>
        /// <param name="adapterOrdinal">The ordinal of the adapter</param>
        /// <returns>A pointer to the adaptor monitor</returns>
        private IntPtr GetAdapterMonitor(uint adapterOrdinal)
        {
            IntPtr pMonitor = m_d3dEx != null?m_d3dEx.GetAdapterMonitor(adapterOrdinal) : m_d3d.GetAdapterMonitor(adapterOrdinal);

            return(pMonitor);
        }
コード例 #2
0
ファイル: Vmr9Allocator.cs プロジェクト: rox00/WPF
        /// <summary>
        /// Gets the pointer to the adapter monitor
        /// </summary>
        /// <param name="adapterOrdinal">The ordinal of the adapter</param>
        /// <returns>A pointer to the adaptor monitor</returns>
        private IntPtr GetAdapterMonitor(uint adapterOrdinal)
        {
            IntPtr pMonitor = IsVistaOrBetter ? m_d3dEx.GetAdapterMonitor(adapterOrdinal) : m_d3d.GetAdapterMonitor(adapterOrdinal);

            return(pMonitor);
        }
コード例 #3
0
 /// <summary>
 /// Gets the pointer to the adapter monitor
 /// </summary>
 /// <param name="adapterOrdinal">The ordinal of the adapter</param>
 /// <returns>A pointer to the adaptor monitor</returns>
 private IntPtr GetAdapterMonitor(uint adapterOrdinal) =>
 _d3dEx.GetAdapterMonitor(adapterOrdinal);