D3d11 Download
Download the complete DirectX SDK, which contains the DirectX Runtime and all DirectX software required to create DirectX compliant applications. These three new functions use D3D11 interfaces that are fully compatible with D3D10 and D3D10.1 runtimes without taking dependencies that are currently in pre-release state. Download d3d11.dll Direct3D 11 Runtime version 6.1.7601.17514 64bit. Download DLL, OCX and VXD files for windows for free. Several thouthands files available.
-->Creates a device that represents the display adapter.
Syntax
Parameters
pAdapter
Type: IDXGIAdapter*
A pointer to the video adapter to use when creating a device. Pass NULL to use the default adapter, which is the first adapter that is enumerated by IDXGIFactory1::EnumAdapters.
DriverType
Type: D3D_DRIVER_TYPE
The D3D_DRIVER_TYPE, which represents the driver type to create.
Software
Type: HMODULE
A handle to a DLL that implements a software rasterizer.If DriverType is D3D_DRIVER_TYPE_SOFTWARE,Software must not be NULL. Get the handle bycalling LoadLibrary,LoadLibraryEx ,or GetModuleHandle.
Flags
Type: UINT
The runtime layers to enable (see D3D11_CREATE_DEVICE_FLAG);values can be bitwise OR'd together.
pFeatureLevels
Type: const D3D_FEATURE_LEVEL*
A pointer to an array of D3D_FEATURE_LEVELs, which determine the order of feature levels to attempt to create.If pFeatureLevels is set to NULL,this function uses the following array of feature levels:
FeatureLevels
Type: UINT
The number of elements in pFeatureLevels.
SDKVersion
Type: UINTGrease soundtrack download zip.
The SDK version; use D3D11_SDK_VERSION.
ppDevice
Type: ID3D11Device**
Returns the address of a pointer to an ID3D11Device object that represents the device created. If this parameter is NULL, no ID3D11Device will be returned.
pFeatureLevel
Type: D3D_FEATURE_LEVEL*
If successful, returns the first D3D_FEATURE_LEVEL from the pFeatureLevels array which succeeded. Supply NULL as an input if you don't need to determine which feature level is supported.
ppImmediateContext
Type: ID3D11DeviceContext**
Returns the address of a pointer to an ID3D11DeviceContext object that represents the device context. If this parameter is NULL, no ID3D11DeviceContext will be returned.
Return Value
Type: HRESULT
This method can return one of the Direct3D 11 Return Codes.
This method returns E_INVALIDARG if you set the pAdapter parameter to a non-NULL value and the DriverType parameter to the D3D_DRIVER_TYPE_HARDWARE value.
This method returns DXGI_ERROR_SDK_COMPONENT_MISSING if you specify D3D11_CREATE_DEVICE_DEBUG in Flags and the incorrect version of the debug layer is installed on your computer. Install the latest Windows SDK to get the correct version.
Remarks
This entry-point is supported by the Direct3D 11 runtime, which is available on Windows 7, Windows Server 2008 R2, and as an update toWindows Vista (KB971644).
To create a Direct3D 11.1 device (ID3D11Device1), which is available on Windows 8, Windows Server 2012, and Windows 7 and Windows Server 2008 R2 with the Platform Update for Windows 7 installed, you first create a ID3D11Device with this function, and then call the QueryInterface method on the ID3D11Device object to obtain the ID3D11Device1 interface.
Install D3d11
To create a Direct3D 11.2 device (ID3D11Device2), which is available on Windows 8.1 and Windows Server 2012 R2, you first create a ID3D11Device with this function, and then call the QueryInterface method on the ID3D11Device object to obtain the ID3D11Device2 interface.
Set ppDevice and ppImmediateContext to NULL to determine which feature level is supported by lookingat pFeatureLevel without creating a device.
For an example, see How To: Create a Device and Immediate Context; to create a device and a swap chain at the same time,use D3D11CreateDeviceAndSwapChain.
If you set the pAdapter parameter to a non-NULL value, you must also set the DriverType parameter to the D3D_DRIVER_TYPE_UNKNOWN value. If you set the pAdapter parameter to a non-NULL value and the DriverType parameter to the D3D_DRIVER_TYPE_HARDWARE value, D3D11CreateDevice returns an HRESULT of E_INVALIDARG.
Differences between Direct3D 10 and Direct3D 11: In Direct3D 10, the presence of pAdapter dictated which adapter to use and the DriverType couldmismatch what the adapter was. In Direct3D 11, if you are trying to create a hardware or a software device, set pAdapter != NULL which constrainsthe other inputs to be:
|
The function signature PFN_D3D11_CREATE_DEVICE is provided as a typedef, so that you can use dynamic linking techniques (GetProcAddress) instead of statically linking.
Windows Phone 8: This API is supported.
Windows Phone 8.1: This API is supported.
D3d11 Download
Requirements
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |
DLL | D3D11.dll |