NVAPI Reference Documentation 545
Loading...
Searching...
No Matches
nvapi_lite_d3dext.h
1 /************************************************************************************************************************************\
2|* *|
3|* Copyright © 2012 NVIDIA Corporation. All rights reserved. *|
4|* *|
5|* NOTICE TO USER: *|
6|* *|
7|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
8|* *|
9|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
10|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
11|* Otherwise, you have no rights to use or access this software in any manner. *|
12|* *|
13|* If not covered by the applicable NVIDIA software license agreement: *|
14|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
15|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
16|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
17|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
18|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
19|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
20|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
21|* *|
22|* U.S. Government End Users. *|
23|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
24|* consisting of "commercial computer software" and "commercial computer software documentation" *|
25|* as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government only as a commercial end item. *|
26|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
27|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
28|* *|
29|* Any use of this software in individual and commercial software must include, *|
30|* in the user documentation and internal comments to the code, *|
31|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
32|* *|
33 \************************************************************************************************************************************/
34#pragma once
35#include"nvapi_lite_salstart.h"
36#include"nvapi_lite_common.h"
37#pragma pack(push,8)
38#ifdef __cplusplus
39extern "C" {
40#endif
41#if defined(__cplusplus) && (defined(__d3d10_h__) || defined(__d3d10_1_h__) || defined(__d3d11_h__))
44typedef enum
45{
46 NVAPI_DEVICE_FEATURE_LEVEL_NULL = -1,
47 NVAPI_DEVICE_FEATURE_LEVEL_10_0 = 0,
48 NVAPI_DEVICE_FEATURE_LEVEL_10_0_PLUS = 1,
49 NVAPI_DEVICE_FEATURE_LEVEL_10_1 = 2,
50 NVAPI_DEVICE_FEATURE_LEVEL_11_0 = 3,
51} NVAPI_DEVICE_FEATURE_LEVEL;
52
53#endif //defined(__cplusplus) && (defined(__d3d10_h__) || defined(__d3d10_1_h__) || defined(__d3d11_h__))
54#if defined(__cplusplus) && defined(__d3d11_h__)
55
57//
58// FUNCTION NAME: NvAPI_D3D11_CreateDevice
59//
91NVAPI_INTERFACE NvAPI_D3D11_CreateDevice(IDXGIAdapter* pAdapter,
92 D3D_DRIVER_TYPE DriverType,
93 HMODULE Software,
94 UINT Flags,
95 CONST D3D_FEATURE_LEVEL *pFeatureLevels,
96 UINT FeatureLevels,
97 UINT SDKVersion,
98 ID3D11Device **ppDevice,
99 D3D_FEATURE_LEVEL *pFeatureLevel,
100 ID3D11DeviceContext **ppImmediateContext,
101 NVAPI_DEVICE_FEATURE_LEVEL *pSupportedLevel);
102
103
104#endif //defined(__cplusplus) && defined(__d3d11_h__)
105#if defined(__cplusplus) && defined(__d3d11_h__)
106
108//
109// FUNCTION NAME: NvAPI_D3D11_CreateDeviceAndSwapChain
110//
141NVAPI_INTERFACE NvAPI_D3D11_CreateDeviceAndSwapChain(IDXGIAdapter* pAdapter,
142 D3D_DRIVER_TYPE DriverType,
143 HMODULE Software,
144 UINT Flags,
145 CONST D3D_FEATURE_LEVEL *pFeatureLevels,
146 UINT FeatureLevels,
147 UINT SDKVersion,
148 CONST DXGI_SWAP_CHAIN_DESC *pSwapChainDesc,
149 IDXGISwapChain **ppSwapChain,
150 ID3D11Device **ppDevice,
151 D3D_FEATURE_LEVEL *pFeatureLevel,
152 ID3D11DeviceContext **ppImmediateContext,
153 NVAPI_DEVICE_FEATURE_LEVEL *pSupportedLevel);
154
155
156
157#endif //defined(__cplusplus) && defined(__d3d11_h__)
158#if defined(__cplusplus) && defined(__d3d11_h__)
159
161//
162// FUNCTION NAME: NvAPI_D3D11_SetDepthBoundsTest
163//
180NVAPI_INTERFACE NvAPI_D3D11_SetDepthBoundsTest(IUnknown* pDeviceOrContext,
181 NvU32 bEnable,
182 float fMinDepth,
183 float fMaxDepth);
184
185#endif //defined(__cplusplus) && defined(__d3d11_h__)
186
187#include"nvapi_lite_salend.h"
188#ifdef __cplusplus
189}
190#endif
191#pragma pack(pop)