Войти
ПрограммированиеФорумОбщее

Win7 .NET Code APIs

#0
8:36, 23 мая 2009

http://windowsteamblog.com/blogs/developers/archive/2009/05/18/wi… ode-apis.aspx

PS. Support for Direct3D 11.0 and DXGI 1.0/1.1 APIs - блджад, как это понимать? Реинкарнация MDX??

#1
23:35, 24 мая 2009

\WindowsAPICodePack0.85\WindowsAPICodePack\WindowsAPICodePack\DirectX\Readme.txt

"This release of Windows API Code Pack contains managed wrappers for DXGI 1.0/1.1 and Direct3D 11.0
APIs.
These managed wrappers are provided as a “technical preview” of what’s coming in the next releases
of the Windows API Code Pack for DirectX technologies... "


в  \WindowsAPICodePack0.85\WindowsAPICodePack\WindowsAPICodePack\DirectX\DireсtX - лежит VC++ проджект


В семплах лежит вот такая прога

// Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using Microsoft.WindowsAPICodePack.DirectX.Direct3DCommon;
using Microsoft.WindowsAPICodePack.DirectX.DXGI;

namespace DXGITest
{
    class Program
    {
        static void Main(string[] args)
        {
            DisplayAdaptersInfo(new DXGIFactory());
        }

        /// <summary>
        /// Display adapter information; using the given DXGI factory
        /// </summary>
        /// <param name="factory">An initialized DXGI factory object</param>
        private static void DisplayAdaptersInfo(DXGIFactory factory)
        {
            foreach (Adapter a in factory.AdaptersCache)
            {
                AdapterDescription desc = a.Description;
                Console.WriteLine("{0}", a.Description.Description);
                Console.WriteLine("Dedicated System Memory: {0} Bytes", a.Description.DedicatedSystemMemory);
                Console.WriteLine("Dedicated Video Memory: {0} Bytes", a.Description.DedicatedVideoMemory);
                Console.WriteLine("Device Id: {0:X}", a.Description.DeviceId);
                Console.WriteLine("Revision: {0:X}", a.Description.Revision);
                Console.WriteLine("Sub Sys Id: {0:X}", a.Description.SubSysId);
                Console.WriteLine("Vendor Id: {0:X}", a.Description.VendorId);

                int verH, verL;
                bool isSupported = a.CheckDeviceSupport(DeviceType.Direct3D_11_0, out verH, out verL);
                Console.WriteLine("D3D 11.1 Device {0} Supported. User Mode Driver Version: {1:X}:{2:X}", isSupported ? "is" : "not", verH, verL);
                isSupported = a.CheckDeviceSupport(DeviceType.Direct3D_10_1, out verH, out verL);
                Console.WriteLine("D3D 10.1 Device {0} Supported. User Mode Driver Version: {1:X}:{2:X}", isSupported ? "is" : "not", verH, verL);
                isSupported = a.CheckDeviceSupport(DeviceType.Direct3D_10_0, out verH, out verL);
                Console.WriteLine("D3D 10.0 Device {0} Supported. User Mode Driver Version: {1:X}:{2:X}", isSupported ? "is" : "not", verH, verL);
                
                int i = 0;
                foreach (Output o in a.OutputsCache)
                {
                    Console.WriteLine("\tMonitor ({0}): {1}{2}", (i++), o.Description.DeviceName, o.Description.Monitor.IsPrimaryMonitor ? " (Primary Monitor)" : "");
                }
            }
        }

    }
}

По ДХ больше ничего... попробовать не могу, Win7 не установлен

#2
3:46, 25 мая 2009

Подписалсо.

#3
7:40, 25 мая 2009

Надеюсь после этого XNA закроют :3

ПрограммированиеФорумОбщее

Тема в архиве.