OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d11 / Device11.h
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d11/Device11.h b/SlimDXc_Jun2010(VC++2008)/source/direct3d11/Device11.h
deleted file mode 100644 (file)
index 8893439..0000000
+++ /dev/null
@@ -1,279 +0,0 @@
-/*\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 "../ComObject.h"\r
-\r
-#include "../dxgi/Adapter.h"\r
-#include "../dxgi/Enums.h"\r
-#include "../dxgi/SwapChainDxgi.h"\r
-#include "../dxgi/SwapChainDescription.h"\r
-#include "../math/Color4.h"\r
-\r
-#include "Enums11.h"\r
-\r
-using System::Runtime::InteropServices::OutAttribute;\r
-\r
-namespace SlimDX\r
-{\r
-       namespace Direct3D11\r
-       {\r
-               ref class DeviceContext;\r
-               value class CounterCapabilities;\r
-               value class CounterMetadata;\r
-\r
-               /// <summary>\r
-               /// Represents a virtual adapter used to perform rendering and create resources.\r
-               /// </summary>\r
-               /// <unmanaged>ID3D11Device</unmanaged>\r
-               public ref class Device : ComObject\r
-               {\r
-                       COMOBJECT(ID3D11Device, Device);\r
-\r
-               private:\r
-                       void Initialize( DXGI::Adapter^ adapter, DriverType driverType, DeviceCreationFlags flags, const D3D_FEATURE_LEVEL *featureLevels, int count );\r
-\r
-               public:\r
-                       /// <summary>\r
-                       /// The maximum number of multisample quality levels supported.\r
-                       /// </summary>\r
-                       literal int MultisampleCountMaximum = D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT;\r
-\r
-                       /// <summary>\r
-                       /// Gets the flags used to create the device.\r
-                       /// </summary>\r
-                       property DeviceCreationFlags CreationFlags\r
-                       {\r
-                               DeviceCreationFlags get();\r
-                       }\r
-\r
-                       /// <summary>\r
-                       /// Gets the reason why the device was removed.\r
-                       /// </summary>\r
-                       property Result DeviceRemovedReason\r
-                       {\r
-                               Result get();\r
-                       }\r
-\r
-                       /// <summary>\r
-                       /// Gets the feature level of the hardware device.\r
-                       /// </summary>\r
-                       property FeatureLevel FeatureLevel\r
-                       {\r
-                               Direct3D11::FeatureLevel get();\r
-                       }\r
-\r
-                       /// <summary>\r
-                       /// Gets the intrinsic immediate context for the device.\r
-                       /// </summary>\r
-                       property DeviceContext^ ImmediateContext\r
-                       {\r
-                               DeviceContext^ get();\r
-                       }\r
-\r
-                       /// <summary>\r
-                       /// Gets a value indicating whether the current device is using the reference rasterizer.\r
-                       /// </summary>\r
-                       property bool IsReferenceDevice\r
-                       {\r
-                               bool get();\r
-                       }\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class using the highest supported feature level.\r
-                       /// </summary>\r
-                       /// <param name="adapter">The video adapter on which the device should be created.</param>\r
-                       Device( DXGI::Adapter^ adapter );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class using the highest supported feature level.\r
-                       /// </summary>\r
-                       /// <param name="adapter">The video adapter on which the device should be created.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       Device( DXGI::Adapter^ adapter, DeviceCreationFlags flags );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class.\r
-                       /// </summary>\r
-                       /// <param name="adapter">The video adapter on which the device should be created.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       /// <param name="featureLevels">A list of feature levels which determine the order of feature levels to attempt to create.</param>\r
-                       Device( DXGI::Adapter^ adapter, DeviceCreationFlags flags, ... array<Direct3D11::FeatureLevel>^ featureLevels );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class using the highest supported feature level.\r
-                       /// </summary>\r
-                       /// <param name="driverType">The type of device to create.</param>\r
-                       Device( DriverType driverType );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class using the highest supported feature level.\r
-                       /// </summary>\r
-                       /// <param name="driverType">The type of device to create.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       Device( DriverType driverType, DeviceCreationFlags flags );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class.\r
-                       /// </summary>\r
-                       /// <param name="driverType">The type of device to create.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       /// <param name="featureLevels">A list of feature levels which determine the order of feature levels to attempt to create.</param>\r
-                       Device( DriverType driverType, DeviceCreationFlags flags, ... array<Direct3D11::FeatureLevel>^ featureLevels );\r
-\r
-                       /// <summary>\r
-                       /// Gets information about the device's performance counters.\r
-                       /// </summary>\r
-                       /// <returns>Information about the device's performance counters.</returns>\r
-                       CounterCapabilities GetCounterCapabilities();\r
-\r
-                       /// <summary>\r
-                       /// Gets metadata (name, type, measurement units, et cetera) for a specific counter.\r
-                       /// </summary>\r
-                       /// <param name="counterKind">The type of the counter to retrieve information about.</param>\r
-                       /// <returns>Metadata for the specified counter.</returns>\r
-                       CounterMetadata GetCounterMetadata( CounterKind counterKind );\r
-                       \r
-                       /// <summary>\r
-                       /// Gets information about the supported applications of a specified format.\r
-                       /// </summary>\r
-                       /// <param name="format">The format for which to check support.</param>\r
-                       /// <returns>Flags indicating usage contexts in which the specified format is supported.</returns>\r
-                       FormatSupport CheckFormatSupport( DXGI::Format format );\r
-\r
-                       /// <summary>\r
-                       /// Gets information about the supported compute shader applications of a specified format.\r
-                       /// </summary>\r
-                       /// <param name="format">The format for which to check support.</param>\r
-                       /// <returns>Flags indicating usage contexts in which the specified format is supported.</returns>\r
-                       ComputeShaderFormatSupport CheckComputeShaderFormatSupport( DXGI::Format format );\r
-\r
-                       /// <summary>\r
-                       /// Checks for hardware support of the specified device feature.\r
-                       /// </summary>\r
-                       /// <returns><c>true</c> if the specified feature is supported; otherwise, <c>false</c>.</returns>\r
-                       bool CheckFeatureSupport( Feature feature );\r
-\r
-                       /// <summary>\r
-                       /// Checks the level of hardware multithreading supported by this device.\r
-                       /// </summary>\r
-                       /// <param name="supportsConcurrentResources">When the method completes, contains a value indicating whether resources can be created concurrently on multiple threads while drawing.</param>\r
-                       /// <param name="supportCommandLists">When the method completes, contains a value indicating whether command lists are supported by the current driver.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       Result CheckThreadingSupport( [Out] bool% supportsConcurrentResources, [Out] bool% supportCommandLists );\r
-\r
-                       /// <summary>\r
-                       /// Gets the number of quality levels supported during multisampling of resources using a specified format.\r
-                       /// </summary>\r
-                       /// <param name="format">The format to check support for.</param>\r
-                       /// <param name="sampleCount">The multisample count for which to check support.</param>\r
-                       /// <returns>The number of quality levels supported. 0 if an error occured or if the format/sampleCount pair is not supported.</returns>\r
-                       int CheckMultisampleQualityLevels( DXGI::Format format, int sampleCount );\r
-\r
-                       /// <summary>\r
-                       /// Gives the device access to a shared resource created on a different device.\r
-                       /// </summary>\r
-                       /// <typeparam name="T">The type of the resource.</typeparam>\r
-                       /// <param name="handle">A handle to the shared resource.</param>\r
-                       /// <returns>The new reference to the shared resource.</returns>\r
-                       generic<typename T> where T : ComObject\r
-                       T OpenSharedResource(System::IntPtr handle);\r
-\r
-                       /// <summary>\r
-                       /// Switches between the reference rasterizer and a hardware accelerated device.\r
-                       /// </summary>\r
-                       /// <param name="useReferenceRasterizer"><c>true</c> to use the reference rasterizer; <c>false</c> to switch back to a hardware accelerated device.</param>\r
-                       void SwitchToReference(bool useReferenceRasterizer);\r
-\r
-                       /// <summary>\r
-                       /// Gets the highest supported hardware feature level of the primary adapter.\r
-                       /// </summary>\r
-                       /// <returns>The highest supported hardware feature level.</returns>\r
-                       static Direct3D11::FeatureLevel GetSupportedFeatureLevel();\r
-\r
-                       /// <summary>\r
-                       /// Gets the highest supported hardware feature level of the given adapter.\r
-                       /// </summary>\r
-                       /// <param name="adapter">The adapter for which the feature level is to be retrieved.</param>\r
-                       /// <returns>The highest supported hardware feature level.</returns>\r
-                       static Direct3D11::FeatureLevel GetSupportedFeatureLevel( DXGI::Adapter^ adapter );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class along with a new <see cref="SlimDX::DXGI::SwapChain"/> used for rendering.\r
-                       /// </summary>\r
-                       /// <param name="adapter">The video adapter on which the device should be created.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       /// <param name="swapChainDescription">Details used to create the swap chain.</param>\r
-                       /// <param name="device">When the method completes, contains the created device instance.</param>\r
-                       /// <param name="swapChain">When the method completes, contains the created swap chain instance.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       static Result CreateWithSwapChain( DXGI::Adapter^ adapter, DeviceCreationFlags flags, DXGI::SwapChainDescription swapChainDescription, [Out] Device^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
-                       \r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class along with a new <see cref="SlimDX::DXGI::SwapChain"/> used for rendering.\r
-                       /// </summary>\r
-                       /// <param name="adapter">The video adapter on which the device should be created.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       /// <param name="featureLevels">A list of feature levels which determine the order of feature levels to attempt to create.</param>\r
-                       /// <param name="swapChainDescription">Details used to create the swap chain.</param>\r
-                       /// <param name="device">When the method completes, contains the created device instance.</param>\r
-                       /// <param name="swapChain">When the method completes, contains the created swap chain instance.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       static Result CreateWithSwapChain( DXGI::Adapter^ adapter, DeviceCreationFlags flags, array<Direct3D11::FeatureLevel>^ featureLevels, DXGI::SwapChainDescription swapChainDescription, [Out] Device^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
-\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class along with a new <see cref="SlimDX::DXGI::SwapChain"/> used for rendering.\r
-                       /// </summary>\r
-                       /// <param name="driverType">The type of device to create.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       /// <param name="swapChainDescription">Details used to create the swap chain.</param>\r
-                       /// <param name="device">When the method completes, contains the created device instance.</param>\r
-                       /// <param name="swapChain">When the method completes, contains the created swap chain instance.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       static Result CreateWithSwapChain( DriverType driverType, DeviceCreationFlags flags, DXGI::SwapChainDescription swapChainDescription, [Out] Device^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
-                       \r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="Device"/> class along with a new <see cref="SlimDX::DXGI::SwapChain"/> used for rendering.\r
-                       /// </summary>\r
-                       /// <param name="driverType">The type of device to create.</param>\r
-                       /// <param name="flags">A list of runtime layers to enable.</param>\r
-                       /// <param name="featureLevels">A list of feature levels which determine the order of feature levels to attempt to create.</param>\r
-                       /// <param name="swapChainDescription">Details used to create the swap chain.</param>\r
-                       /// <param name="device">When the method completes, contains the created device instance.</param>\r
-                       /// <param name="swapChain">When the method completes, contains the created swap chain instance.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       static Result CreateWithSwapChain( DriverType driverType, DeviceCreationFlags flags, array<Direct3D11::FeatureLevel>^ featureLevels, DXGI::SwapChainDescription swapChainDescription, [Out] Device^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
-\r
-                       /// <summary>\r
-                       /// This overload has been deprecated. Use one of the alternatives that does not take both an adapter and a driver type.\r
-                       /// </summary>\r
-                       [System::Obsolete("This method is confusing because only one of the adapter/driverType parameters is valid during the call. Use one of the overloads that explicitly uses the parameter you wish to provide.")]\r
-                       static Result CreateWithSwapChain( DXGI::Adapter^ adapter, DriverType driverType, DeviceCreationFlags flags, DXGI::SwapChainDescription swapChainDescription, [Out] Device^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
-\r
-                       /// <summary>\r
-                       /// This overload has been deprecated. Use one of the alternatives that does not take both an adapter and a driver type.\r
-                       /// </summary>\r
-                       [System::Obsolete("This method is confusing because only one of the adapter/driverType parameters is valid during the call. Use one of the overloads that explicitly uses the parameter you wish to provide.")]\r
-                       static Result CreateWithSwapChain( DXGI::Adapter^ adapter, DriverType driverType, DeviceCreationFlags flags, array<Direct3D11::FeatureLevel>^ featureLevels, DXGI::SwapChainDescription swapChainDescription, [Out] Device^ %device, [Out] DXGI::SwapChain^ %swapChain );\r
-               };\r
-       }\r
-};
\ No newline at end of file