+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "Device10.h"\r
-#include "Enums10_1.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace Direct3D10_1\r
- {\r
- /// <summary>\r
- /// A virtual adapter for performing rendering operations, using Direct3D 10.1.\r
- ///</summary>\r
- /// <unmanaged>ID3D10Device1</unmanaged>\r
- public ref class Device1 : SlimDX::Direct3D10::Device\r
- {\r
- COMOBJECT_CUSTOM(ID3D10Device1, Device1);\r
-\r
- public:\r
- property SlimDX::Direct3D10_1::FeatureLevel FeatureLevel\r
- {\r
- SlimDX::Direct3D10_1::FeatureLevel get();\r
- }\r
-\r
- /// <summary>\r
- /// Constructs a new Device1 object.\r
- /// </summary>\r
- /// <param name="flags">Flags that indicate which device API layers to enable.</param>\r
- /// <param name="hardwareLevel"></param>D\r
- Device1( SlimDX::Direct3D10::DeviceCreationFlags flags, SlimDX::Direct3D10_1::FeatureLevel hardwareLevel );\r
- \r
- /// <summary>\r
- /// Constructs a new Device1 object.\r
- /// </summary>\r
- /// <param name="driverType">The device driver type.</param>\r
- /// <param name="flags">Flags that indicate which device API layers to enable.</param>\r
- Device1( SlimDX::Direct3D10::DriverType driverType, SlimDX::Direct3D10::DeviceCreationFlags flags, SlimDX::Direct3D10_1::FeatureLevel hardwareLevel );\r
- \r
- /// <summary>\r
- /// Constructs a new Device object.\r
- /// </summary>\r
- /// <param name="adapter">The display adapter to associate the device with when creating a hardware device.</param>\r
- /// <param name="driverType">The device driver type.</param>\r
- /// <param name="flags">Flags that indicate which device API layers to enable.</param>\r
- Device1( SlimDX::DXGI::Adapter^ adapter, SlimDX::Direct3D10::DriverType driverType, SlimDX::Direct3D10::DeviceCreationFlags flags, SlimDX::Direct3D10_1::FeatureLevel hardwareLevel );\r
- \r
- /// <summary>\r
- /// Creates a new Direct3D 10.1 device and swap chain.\r
- /// </summary>\r
- /// <param name="adapter">The display adapter to associate the device with when creating a hardware device.</param>\r
- /// <param name="driverType">The device driver type.</param>\r
- /// <param name="flags">Flags that indicate which device API layers to enable.</param>\r
- /// <param name="swapChainDescription">Swap chain properties.</param>\r
- /// <param name="device">The newly-created device.</param>\r
- /// <param name="swapChain">The newly-created swap chain.</param>\r
- /// <returns>A result code.</returns>\r
- static Result CreateWithSwapChain( SlimDX::DXGI::Adapter^ adapter, SlimDX::Direct3D10::DriverType driverType, SlimDX::Direct3D10::DeviceCreationFlags flags, SlimDX::Direct3D10_1::FeatureLevel hardwareLevel, DXGI::SwapChainDescription swapChainDescription, [Out] Device1^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
- };\r
- }\r
-}\r