Initial re-upload of spice2x-24-08-24
This commit is contained in:
67
external/nvapi/License.txt
vendored
Normal file
67
external/nvapi/License.txt
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
SOFTWARE DEVELOPER KITS, SAMPLES AND TOOLS LICENSE AGREEMENT
|
||||
|
||||
This Software Developer Kits, Samples and Tools License Agreement ("Agreement”) is a legal agreement between you and NVIDIA Corporation (“NVIDIA”) and governs the use of the following NVIDIA deliverables to the extent provided to you under this Agreement: API’s, sample source code, header files, binary software and/or documentation (collectively, "Licensed Software"). This Agreement can be accepted only by an adult of legal age of majority in the country in which the Licensed Software is used. If you are under the legal age of majority, you must ask your parent or legal guardian to consent to this Agreement. If you are entering this Agreement on behalf of a company or other legal entity, you represent that you have legal authority and “you” will mean the entity you represent. If you don’t have such authority, or if you don’t accept all the terms and conditions of this Agreement, then NVIDIA is unwilling to license the Licensed Software to you, and you may not download, install, copy or use it. By using the Licensed Software, you affirm that you have reached the legal age of majority, you accept the terms of this Agreement, and you take legal and financial responsibility for the actions of your permitted users.
|
||||
|
||||
You agree that use of the Licensed Materials only for purposes that are permitted by (a) this Agreement, and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdiction.
|
||||
|
||||
1. LICENSE.
|
||||
|
||||
1.1 License Grant. Subject to the terms of this Agreement, NVIDIA hereby grants you a nonexclusive, non-transferable, worldwide, revocable, limited, royalty-free, fully paid-up license to during the term of this Agreement:
|
||||
(i) install, use and reproduce the software delivered by NVIDIA, make modifications and create derivative works of sample source code software delivered by NVIDIA and use documentation delivered by NVIDIA, provided that the software is executed only in supported NVIDIA GPU hardware products (as specified in the accompanying documentation, such as release notes) that you separately obtain from NVIDIA or its affiliates, all to develop, test and service your products (each, a “Customer Product”) that are interoperable with supported NVIDIA GPU hardware products; and
|
||||
(ii) sub-license and distribute in binary format the API library software and header files as delivered by NVIDIA and sample source code as delivered by NVIDIA or as modified by you, all as incorporated into a Customer Product for use by your recipients only in the supported NVIDIA GPU hardware products separately obtained, provided that: (a) all such distributions by you or your distribution channels are consistent with the terms of this Agreement; and (b) you must enter into enforceable agreements with your recipients that binds them to terms that are consistent with the terms set forth in this Agreement for their use of the software binaries, including (without limitation) terms relating to the license grant and license restrictions, confidentiality and protection of NVIDIA’s intellectual property rights in and to the software you distributed. You are liable for the distribution and the use of distributed software if you failed to comply or enforce the distribution requirements of this Agreement. You agree to notify NVIDIA in writing of any known or suspected use or distribution of the Licensed Software that are not in compliance with the terms of this Agreement.
|
||||
|
||||
1.2 Enterprise and Contractor Usage. Under this Agreement you may allow (i) your Enterprise employees, and (ii) individuals who work primarily for your Enterprise on a contractor basis and from your secure network (each a "Contractor") to access and use the Licensed Software pursuant to the terms in Section 1 solely to perform work on your behalf, provided further that with respect to Contractors: (i) you obtain a written agreement from the Contractor which contains terms and obligations with respect to access to or use of Licensed Software no less protective of NVIDIA than those set forth in this Agreement, and (ii) such Contractor’s access and use expressly excludes any sublicensing or distribution rights for the Licensed Software. You are responsible for the compliance with the terms and conditions of this Agreement by your Enterprise and Contractors. Any act or omission that if committed by you would constitute a breach of this Agreement shall be deemed to constitute a breach of this Agreement if committed by your Enterprise or Contractors. “Enterprise” means you or any company or legal entity for which you accepted the terms of this Agreement, and their subsidiaries of which your company or legal entity owns more than fifty percent (50%) of the issued and outstanding equity.
|
||||
|
||||
1.3 No Support. NVIDIA is under no obligation to provide support for the Licensed Software or to provide any error corrections or updates to the Licensed Software under this Agreement.
|
||||
|
||||
2. LIMITATIONS.
|
||||
|
||||
2.1 License Restrictions. Except as expressly authorized in this Agreement, you agree that you will not (nor allow third parties to): (i) copy and use software that was licensed to you for use in one or more devices in other unlicensed devices (provided that copies solely for backup purposes are allowed); (ii) reverse engineer, decompile, disassemble (except to the extent applicable laws specifically requires that such activities be permitted) or attempt to derive the source code, underlying ideas, algorithm or structure of software provided to you in object code form; (iii) sell, transfer, assign, distribute, rent, loan, lease, sublicense or otherwise make available the Licensed Software or its functionality to third parties (a) as an application services provider or service bureau, (b) by operating hosted/virtual system environments, (c) by hosting, time sharing or providing any other type of services, or (d) otherwise by means of the internet; (iv) modify, translate or otherwise create any modifications or derivative works of any of the Licensed Software; (v) remove, alter, cover or obscure any proprietary notice that appears on or with the Licensed Software or any copies thereof; (vi) use the Licensed Software, or allow its use, transfer, transmission or export in violation of any export control laws or regulations administered by the United States government; (vii) distribute, permit access to, or sublicense the Licensed Software as a stand-alone product; (viii) bypass, disable, circumvent or remove any form of copy protection, encryption, security or digital rights management or authentication mechanism used by NVIDIA in connection with the Licensed Software, or use the Licensed Software together with any authorization code, serial number, or other copy protection device not supplied by NVIDIA directly or through an authorized reseller; (ix) use the Licensed Software for the purpose of developing competing products or technologies or assisting a third party in such activities; (x) disclose the results of any benchmarking or other competitive analysis relating to the Licensed Software without the prior written permission from NVIDIA; (xi) distribute any modification you make to software under or by reference to the same name as used by NVIDIA; (xii) use the Licensed Software in any manner that would cause the Licensed Software to become subject to an Open Source License. Nothing in this Agreement shall be construed to give you a right to use, or otherwise obtain access to, any source code from which the software or any portion thereof is compiled or interpreted. “Open Source License” includes, without limitation, a software license that requires as a condition of use, modification, and/or distribution of such software that the software be (x) disclosed or distributed in source code form; (y) be licensed for the purpose of making derivative works; or (z) be redistributable at no charge.
|
||||
|
||||
2.2 Third Party License Obligations. You acknowledge and agree that the Licensed Software may include or incorporate third party technology (collectively “Third Party Components”), which is provided for use in or with the software and not otherwise used separately. If the Licensed Software includes or incorporates Third Party Components, then the third-party pass-through terms and conditions (“Third Party Terms”) for the particular Third Party Component will be bundled with the software or otherwise made available online as indicated by NVIDIA and will be incorporated by reference into this Agreement. In the event of any conflict between the terms in this Agreement and the Third Party Terms, the Third Party Terms shall govern. Copyright to Third Party Components are held by the copyright holders indicated in the copyright notices indicated in the Third Party Terms.
|
||||
|
||||
Audio/Video Encoders and Decoders. You acknowledge and agree that it is your sole responsibility to obtain any additional third party licenses required to make, have made, use, have used, sell, import, and offer for sale your products or services that include or incorporate any Third Party Components and content relating to audio and/or video encoders and decoders from, including but not limited to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A., MPEG-LA, and Coding Technologies as NVIDIA does not grant to you under this Agreement any necessary patent rights with respect to audio and/or video encoders and decoders.
|
||||
|
||||
2.3 Limited Rights. Your rights in the Licensed Software are limited to those expressly granted in Section 1 and no other licenses are granted whether by implication, estoppel or otherwise. NVIDIA reserves all other rights, title and interest in and to the Licensed Software not expressly granted to you under this Agreement.
|
||||
|
||||
3. CONFIDENTIALITY. Each party will not use the other party’s Confidential Information, except as necessary for the performance of this Agreement, and will not disclose such Confidential Information to any third party, except to NVIDIA personnel, you, your Enterprise and your Enterprise Contractors that have a need to know such Confidential Information for the performance of this Agreement, provided that each such personnel, employee and Contractor is subject to a written agreement that includes confidentiality obligations consistent with those set forth herein. Each party will use all reasonable efforts to maintain the confidentiality of all of the other party’s Confidential Information in its possession or control, but in no event less than the efforts that it ordinarily uses with respect to its own Confidential Information of similar nature and importance. The foregoing obligations will not restrict either party from disclosing the other party’s Confidential Information or the terms and conditions of this Agreement as required under applicable securities regulations or pursuant to the order or requirement of a court, administrative agency, or other governmental body, provided that the party required to make such a disclosure (i) gives reasonable notice to the other party to enable it to contest such order or requirement prior to its disclosure (whether through protective orders or otherwise), (ii) uses reasonable effort to obtain confidential treatment or similar protection to the fullest extent possible to avoid public disclosure, and (iii) discloses only the minimum amount of information necessary to comply with such requirements.
|
||||
|
||||
“Confidential Information” means the Licensed Software (unless made publicly available by NVIDIA without confidentiality obligations), and any NVIDIA business, marketing, pricing, research and development, know-how, technical, scientific, financial status, proposed new products or other information disclosed by NVIDIA to you which, at the time of disclosure, is designated in writing as confidential or proprietary (or like written designation), or orally identified as confidential or proprietary or is otherwise reasonably identifiable by parties exercising reasonable business judgment as confidential. Confidential Information does not and will not include information that: (i) is or becomes generally known to the public through no fault of or breach of this Agreement by the receiving party; (ii) is rightfully known by the receiving party at the time of disclosure without an obligation of confidentiality; (iii) is independently developed by the receiving party without use of the disclosing party’s Confidential Information; or (iv) is rightfully obtained by the receiving party from a third party without restriction on use or disclosure.
|
||||
|
||||
4. OWNERSHIP AND FEEDBACK.
|
||||
|
||||
4.1 Ownership of Licensed Software. The Licensed Software, and the respective intellectual property rights therein, is and will remain the sole and exclusive property of NVIDIA and its licensors, whether the Licensed Software is separate from or combined with any other products or materials. You shall not knowingly engage in any act or omission that would impair NVIDIA’s and/or its licensors’ intellectual property rights in the Licensed Software or any other materials, information, processes or subject matter proprietary to NVIDIA. NVIDIA’s licensors are intended third party beneficiaries with the right to enforce provisions of this Agreement with respect to their Confidential Information and/or intellectual property rights.
|
||||
|
||||
4.2 Modifications. You hold all rights, title and interest in and to the modifications to and derivative works of the NVIDIA sample source code software that you create as permitted hereunder, subject to NVIDIA’s underlying intellectual property rights in and to the NVIDIA software; provided, however that you grant NVIDIA and its affiliates an irrevocable, perpetual, nonexclusive, worldwide, royalty-free paid-up license to make, have made, use, have used, reproduce, sell, license, distribute, sublicense, transfer and otherwise commercialize modifications and derivative works including (without limitation) with the Licensed Software or other NVIDIA products, technologies or materials.
|
||||
|
||||
4.3 Feedback. You have no obligation to provide Feedback to NVIDIA. However, NVIDIA and its affiliates may use and include any Feedback that you provide to improve the Licensed Software or other NVIDIA products, technologies or materials. Accordingly, if you provide Feedback, you agree that NVIDIA and its affiliates may at their option, and may permit its licensees, to make, have made, use, have used, reproduce, sell, license, distribute, sublicense, transfer and otherwise commercialize the Feedback in the Licensed Software or in other products, technologies or materials without the payment of any royalties or fees to you. All Feedback becomes the sole property of NVIDIA and may be used in any manner NVIDIA sees fit, and you hereby assign to NVIDIA all of your right, title and interest in and to any Feedback. NVIDIA has no obligation to respond to Feedback or to incorporate Feedback into the Licensed Software. “Feedback” means any and all suggestions, feature requests, comments or other feedback relating to the Licensed Software, including possible enhancements or modifications thereto.
|
||||
|
||||
5. NO WARRANTIES. THE LICENSED SOFTWARE IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL FAULTS,” AND NVIDIA EXPRESSLY DISCLAIMS ALL WARRANTIES OF ANY KIND OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF OPERABILITY, CONDITION, VALUE, ACCURACY OF DATA, OR QUALITY, AS WELL AS ANY WARRANTIES OF MERCHANTABILITY, SYSTEM INTEGRATION, WORKMANSHIP, SUITABILITY, NON-INGRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, OR THE ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO WARRANTY IS MADE BY NVIDIA ON THE BASIS OF TRADE USAGE, COURSE OF DEALING OR COURSE OF TRADE. NVIDIA DOES NOT WARRANT THAT THE LICENSED SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION THEREOF WILL BE UNINTERRUPTED OR ERRORFREE, OR THAT ALL ERRORS WILL BE CORRECTED. YOU ACKNOWLEDGE THAT NVIDIA’S OBLIGATIONS UNDER THIS AGREEMENT ARE FOR THE BENEFIT OF YOU ONLY. Nothing in this warranty section affects any statutory rights of consumers or other customers to the extent that they cannot be waived or limited by contract.
|
||||
|
||||
6. LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW NVIDIA SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES (SUCH AS, WITHOUT LIMITATION, LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL), OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE OF THE LICENSED SOFTWARE, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS AGREEMENT EXCEED THE GREATER OF THE NET AMOUNT NVIDIA RECEIVED FOR YOUR USE OF THE LICENSED SOFTWARE ONE HUNDRED U.S. DOLLARS (US $100). THE NATURE OF THE LIABILITY, THE NUMBER OF CLAIMS OR SUITS OR THE NUMBER OF PARTIES WITHIN YOUR ENTERPRISE THAT ACCEPTED THE TERMS OF THIS AGREEMENT SHALL NOT ENLARGE OR EXTEND THIS LIMIT. THE FOREGOING LIMITATIONS SHALL APPLY REGARDLESS OF WHETHER NVIDIA OR ITS LICENSORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND REGARDLESS OF WHETHER ANY REMEDY FAILS ITS ESSENTIAL PURPOSE.
|
||||
|
||||
7. TERM AND TERMINATION. This Agreement and your licenses hereunder shall become effective upon the Effective Date and shall remain in effect unless and until terminated as follows: (i) automatically if you breach any of the terms of this Agreement; or (ii) by either party upon written notice if the other party becomes the subject of a voluntary or involuntary petition in bankruptcy or any proceeding relating to insolvency, receivership, liquidation or composition for the benefit of creditors, if that petition or proceeding is not dismissed with prejudice within sixty (60) days after filing, or if a party ceases to do business; (iii) by you, upon ceasing to use the Licensed Software provided under this Agreement; or (iv) by NVIDIA upon written notice if you commence or participate in any legal proceeding against NVIDIA, with respect to the Licensed Software that is the subject of the proceeding during the pendency of such legal proceeding. Termination of this Agreement shall not release the parties from any liability which, at the time of termination, has already accrued or which thereafter may accrue with respect to any act or omission before termination, or from any obligation which is expressly stated in this Agreement to survive termination. Notwithstanding the foregoing, the party terminating this Agreement shall incur no additional liability merely by virtue of such termination. Termination of this Agreement regardless of cause or nature shall be without prejudice to any other rights or remedies of the parties and shall be without liability for any loss or damage occasioned thereby. Upon any expiration or termination of this Agreement (i) you must promptly discontinue use of the Licensed Software, and (ii) you must promptly destroy or return to NVIDIA all copies of the Licensed Software and all portions thereof in your possession or control, and each party will promptly destroy or return to the other all of the other party’s Confidential Information within its possession or control, provided that your prior distributions in accordance with this Agreement are not affected by the expiration or termination of this Agreement. Upon written request, you will certify in writing that you have complied with your obligations under this section. Sections 2 through 8 will survive the expiration or termination of this Agreement for any reason.
|
||||
|
||||
8. MISCELLANEOUS.
|
||||
|
||||
8.1 NVIDIA Entities. NVIDIA Corporation and its subsidiaries, including, but not limited to, NVIDIA Singapore Pte Ltd., have agreed to their respective rights and obligations regarding the distribution of the Licensed Software and the performance of obligations related to the Licensed Software. Ordering and delivery shall be with the NVIDIA entity with distribution rights for the geographic region in which the Licensed Software will be used, as communicated by NVIDIA to you.
|
||||
|
||||
8.2 Audit. During the term of this Agreement and for a period of three (3) years thereafter, you will maintain complete and accurate books and records regarding use of the Licensed Software and your performance and administration of this Agreement. During such period and upon written notice to you, NVIDIA or its authorized third party auditors subject to confidentiality obligations will have the right to inspect and audit your Enterprise books and records for the purpose of confirming your compliance with the terms of this Agreement. Any such inspection and audit will be conducted during regular business hours, in a manner that minimizes interference with your normal business activities, and no more frequent than annually unless non-compliance was previously found. If such an inspection and audit reveals an underpayment of any amounts payable to NVIDIA, then you will promptly remit the full amount of such underpayment to NVIDIA, including interest that will accrue (without the requirement of a notice) at the lower of 1.5% per month or the highest rate permissible by law. If the underpaid amount exceeds five percent (5%) of the amounts payable to NVIDIA for the period audited and/or such an inspection and audit reveals a material non-conformance with the terms of this Agreement, then you will also pay NVIDIA’s reasonable costs of conducting the inspection and audit. Further, you agree that the party delivering the Licensed Software to you may collect and disclose to NVIDIA (subject to confidentiality obligations) information for NVIDIA to verify your compliance with the terms of this Agreement including (without limitation) information regarding your usage of the Licensed Software.
|
||||
|
||||
8.3 Trademarks. You are granted no rights to use any of NVIDIA's trademarks under this Agreement. NVIDIA's trademarks include company names, product or service names, marks, logos, designs and trade dress. You may not remove, alter, or add to any of NVIDIA's trademarks that appear in or as part of the Licensed Software.
|
||||
|
||||
8.4 Indemnity. You agree to defend, indemnify and hold harmless NVIDIA and its affiliates, and their respective employees, contractors, agents, officers and directors, from and against any and all claims, damages, obligations, losses, liabilities, costs or debt, fines, restitutions and expenses (including but not limited to attorney’s fees and costs incident to establishing the right of indemnification) arising out of or related to you and your Enterprise, and their respective employees, contractors, agents, officers and directors: (i) use of a Licensed Software with any system or application where the use or failure of such system or application can reasonably be expected to threaten or result in personal injury, death, or catastrophic loss including, for example, use in connection with any nuclear, avionics, navigation, military, medical, life support or other life critical application; (ii) violation of any third party right, including without limitation any right of privacy or intellectual property rights; (iii) failure to comply with any applicable export and import laws, rules or regulations; or (iv) negligence or willful misconduct.
|
||||
|
||||
8.5 Injunctive Relief. The parties agree that a breach of any of the promises or agreements contained in this Agreement may result in irreparable and continuing injury for which monetary damages would not be an adequate remedy and therefore the parties are entitled to seek injunctive relief as well as such other and further relief as may be appropriate.
|
||||
|
||||
8.6 Waiver. The failure by either party to enforce its rights under this Agreement at any time for any period will not constitute a waiver of future enforcement of that right or any other right. Any waiver will be effective only if in writing and signed by duly authorized representatives of each party.
|
||||
|
||||
8.7 Severability. If for any reason a court of competent jurisdiction finds any provision of this Agreement invalid or unenforceable, that provision of this Agreement will be enforced to the maximum extent permissible so as to effect the intent of the parties, and the other provisions of this Agreement will remain in full force and effect.
|
||||
|
||||
8.8 U.S. Government Legend. You agree and certify that you will comply with all laws, regulations, rules, and other requirements applicable to transaction(s) with any government(s) occurring pursuant to this Agreement and all related matters. The Licensed Software has been developed entirely at private expense and is “commercial items” consisting of “commercial software” and “commercial software documentation” provided with RESTRICTED RIGHTS. Use, duplication or disclosure by the U.S. Government or a U.S. Government subcontractor is subject to the restrictions set forth in this Agreement under which Licensed Software was obtained pursuant to DFARS 227.7202-3(a) or as set forth in subparagraphs (c)(1) and (2) of the Commercial Computer Software - Restricted Rights clause at FAR 52.227-19, as applicable. Contractor/manufacturer is NVIDIA, 2701 San Tomas Expressway, Santa Clara, CA 95050.
|
||||
|
||||
8.9 Force Majeure. Neither party will be responsible for any failure or delay in its performance under this Agreement to the extent due to causes beyond its reasonable control, including, but not limited to, acts of God, fire, flood, war, earthquake, environmental conditions, governmental action, acts of civil or military authority, riots, wars, sabotage, strikes, compliance with laws or regulations, strikes, lockouts or other serious labor disputes, or shortage of or inability to obtain material or equipment for so long as such event of force majeure continues in effect.
|
||||
|
||||
8.10 Export Control. You acknowledge that the Licensed Software, technology and related documentation described under this Agreement are subject to the U.S. Export Administration Regulations (EAR) and economic sanctions regulations administered by the U.S. Department of Treasury’s Office of Foreign Assets Control (OFAC). You agree to comply with the EAR and OFAC regulations and all applicable international and national export and import laws. You agree not to export or re-export the Licensed Software, technology and related documentation to any destination requiring an export license or other approval under the EAR or OFAC regulations otherwise without first obtaining such export license or approval and NVIDIA’s permission. You will not, without prior governmental authorization, export or re-export NVIDIA Licensed Software, technology and related documentation, directly or indirectly, (i) to any end-user whom you know or have reason to know will utilize them in the design, development or production of nuclear, chemical or biological weapons, or rocket systems, space launch vehicles, and sounding rockets, or unmanned air vehicle systems; (ii) to any end-user who has been prohibited from participating in U.S. export transactions by any federal agency of the U.S. government; or (iii) to any countries that are subject to U.S. export restrictions (currently including, but not necessarily limited to, Cuba, Iran, North Korea, Sudan, and Syria and the Region of Crimea).
|
||||
|
||||
8.11 General. This Agreement constitutes the entire agreement of the parties with respect to the subject matter hereto and supersede all prior negotiations, conversations, or discussions between the parties relating to the subject matter hereto, oral or written, and all past dealing or industry custom. Any notice delivered by NVIDIA to you under this Agreement will be delivered via mail, email or fax. Any additional and/or conflicting terms and conditions on purchase order(s) or any other documents issued by you are null, void, and invalid. This Agreement and the rights and obligations hereunder may not be assigned by you, in whole or in part, including by merger, consolidation, dissolution, operation of law, or any other manner, without written consent of NVIDIA, and any purported assignment in violation of this provision shall be void and of no effect. Each party acknowledges and agrees that the other is an independent contractor in the performance of this Agreement, and each is solely responsible for all of its employees, agents, contractors, and labor costs and expenses arising in connection therewith. This Agreement will be governed by and construed under the laws of the State of Delaware and the United States without regard to the conflicts of law provisions thereof and without regard to the United Nations Convention on Contracts for the International Sale of Goods. The parties consent to the personal jurisdiction of the federal and state courts located in Santa Clara County, California. If one or more provisions of this Agreement are held to be unenforceable under applicable law, such provision shall be excluded from this Agreement and the balance of this Agreement shall be interpreted as if such provision were so excluded and shall be enforceable in accordance with its terms. Any amendment or waiver under this Agreement must be in writing and signed by representatives of both parties.
|
||||
1198
external/nvapi/NvApiDriverSettings.h
vendored
Normal file
1198
external/nvapi/NvApiDriverSettings.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
22606
external/nvapi/nvapi.h
vendored
Normal file
22606
external/nvapi/nvapi.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
652
external/nvapi/nvapi_lite_common.h
vendored
Normal file
652
external/nvapi/nvapi_lite_common.h
vendored
Normal file
@@ -0,0 +1,652 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ® 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
#pragma once
|
||||
#include"nvapi_lite_salstart.h"
|
||||
#pragma pack(push,8)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#if (defined(WIN32) || defined(_WIN32)) && defined(_MSC_VER) && (_MSC_VER > 1399) && !defined(NVAPI_INTERNAL) && !defined(NVAPI_DEPRECATED_OLD)
|
||||
#ifndef __nvapi_deprecated_function
|
||||
#define __nvapi_deprecated_function(message) __declspec(deprecated(message))
|
||||
#endif
|
||||
#ifndef __nvapi_deprecated_datatype
|
||||
#define __nvapi_deprecated_datatype(FirstRelease) __declspec(deprecated("Do not use this data type - it is deprecated in release " #FirstRelease "."))
|
||||
#endif
|
||||
#else
|
||||
#ifndef __nvapi_deprecated_function
|
||||
#define __nvapi_deprecated_function(message)
|
||||
#endif
|
||||
#ifndef __nvapi_deprecated_datatype
|
||||
#define __nvapi_deprecated_datatype(FirstRelease)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* 64-bit types for compilers that support them, plus some obsolete variants */
|
||||
#if defined(__GNUC__) || defined(__arm) || defined(__IAR_SYSTEMS_ICC__) || defined(__ghs__) || defined(_WIN64)
|
||||
typedef unsigned long long NvU64; /* 0 to 18446744073709551615 */
|
||||
typedef long long NvS64; /* -9223372036854775808 to 9223372036854775807 */
|
||||
#else
|
||||
typedef unsigned __int64 NvU64; /* 0 to 18446744073709551615 */
|
||||
typedef __int64 NvS64; /* -9223372036854775808 to 9223372036854775807 */
|
||||
#endif
|
||||
|
||||
// mac os 32-bit still needs this
|
||||
#if (defined(macintosh) || defined(__APPLE__)) && !defined(__LP64__)
|
||||
typedef signed long NvS32; /* -2147483648 to 2147483647 */
|
||||
#else
|
||||
typedef signed int NvS32; /* -2147483648 to 2147483647 */
|
||||
#endif
|
||||
|
||||
#ifndef __unix
|
||||
// mac os 32-bit still needs this
|
||||
#if ( (defined(macintosh) && defined(__LP64__) && (__NVAPI_RESERVED0__)) || \
|
||||
(!defined(macintosh) && defined(__NVAPI_RESERVED0__)) )
|
||||
typedef unsigned int NvU32; /* 0 to 4294967295 */
|
||||
#else
|
||||
typedef unsigned long NvU32; /* 0 to 4294967295 */
|
||||
#endif
|
||||
#else
|
||||
typedef unsigned int NvU32; /* 0 to 4294967295 */
|
||||
#endif
|
||||
|
||||
typedef unsigned long temp_NvU32; /* 0 to 4294967295 */
|
||||
typedef signed short NvS16;
|
||||
typedef unsigned short NvU16;
|
||||
typedef unsigned char NvU8;
|
||||
typedef signed char NvS8;
|
||||
typedef float NvF32;
|
||||
typedef double NvF64;
|
||||
|
||||
/*!
|
||||
* Macro to convert NvU32 to NvF32.
|
||||
*/
|
||||
#define NvU32TONvF32(_pData) *(NvF32 *)(_pData)
|
||||
/*!
|
||||
* Macro to convert NvF32 to NvU32.
|
||||
*/
|
||||
#define NvF32TONvU32(_pData) *(NvU32 *)(_pData)
|
||||
|
||||
/* Boolean type */
|
||||
typedef NvU8 NvBool;
|
||||
#define NV_TRUE ((NvBool)(0 == 0))
|
||||
#define NV_FALSE ((NvBool)(0 != 0))
|
||||
|
||||
typedef struct _NV_RECT
|
||||
{
|
||||
NvU32 left;
|
||||
NvU32 top;
|
||||
NvU32 right;
|
||||
NvU32 bottom;
|
||||
} NV_RECT;
|
||||
|
||||
|
||||
#define NV_DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
|
||||
|
||||
//! \addtogroup nvapihandles
|
||||
//! NVAPI Handles - These handles are retrieved from various calls and passed in to others in NvAPI
|
||||
//! These are meant to be opaque types. Do not assume they correspond to indices, HDCs,
|
||||
//! display indexes or anything else.
|
||||
//!
|
||||
//! Most handles remain valid until a display re-configuration (display mode set) or GPU
|
||||
//! reconfiguration (going into or out of SLI modes) occurs. If NVAPI_HANDLE_INVALIDATED
|
||||
//! is received by an app, it should discard all handles, and re-enumerate them.
|
||||
//! @{
|
||||
NV_DECLARE_HANDLE(NvLogicalGpuHandle); //!< One or more physical GPUs acting in concert (SLI)
|
||||
NV_DECLARE_HANDLE(NvPhysicalGpuHandle); //!< A single physical GPU
|
||||
NV_DECLARE_HANDLE(NvDisplayHandle); //!< Display Device driven by NVIDIA GPU(s) (an attached display)
|
||||
NV_DECLARE_HANDLE(NvMonitorHandle); //!< Monitor handle
|
||||
NV_DECLARE_HANDLE(NvUnAttachedDisplayHandle); //!< Unattached Display Device driven by NVIDIA GPU(s)
|
||||
NV_DECLARE_HANDLE(NvVisualComputingDeviceHandle); //!< A handle to a Visual Computing Device
|
||||
NV_DECLARE_HANDLE(NvEventHandle); //!< A handle to an event registration instance
|
||||
|
||||
|
||||
NV_DECLARE_HANDLE(NvHICHandle); //!< A handle to a Host Interface Card
|
||||
NV_DECLARE_HANDLE(NvGSyncDeviceHandle); //!< A handle to a Sync device
|
||||
NV_DECLARE_HANDLE(NvVioHandle); //!< A handle to an SDI device
|
||||
NV_DECLARE_HANDLE(NvTransitionHandle); //!< A handle to address a single transition request
|
||||
NV_DECLARE_HANDLE(NvAudioHandle); //!< NVIDIA HD Audio Device
|
||||
NV_DECLARE_HANDLE(Nv3DVPContextHandle); //!< A handle for a 3D Vision Pro (3DVP) context
|
||||
NV_DECLARE_HANDLE(Nv3DVPTransceiverHandle); //!< A handle for a 3DVP RF transceiver
|
||||
NV_DECLARE_HANDLE(Nv3DVPGlassesHandle); //!< A handle for a pair of 3DVP RF shutter glasses
|
||||
NV_DECLARE_HANDLE(NvPcfClientHandle); //!< A handle for NVPCF clients
|
||||
|
||||
typedef void* StereoHandle; //!< A stereo handle, that corresponds to the device interface
|
||||
|
||||
NV_DECLARE_HANDLE(NvSourceHandle); //!< Unique source handle on the system
|
||||
NV_DECLARE_HANDLE(NvTargetHandle); //!< Unique target handle on the system
|
||||
NV_DECLARE_HANDLE(NVDX_SwapChainHandle); //!< DirectX SwapChain objects
|
||||
static const NVDX_SwapChainHandle NVDX_SWAPCHAIN_NONE = 0;
|
||||
NV_DECLARE_HANDLE(NvPresentBarrierClientHandle); //!< PresentBarrier client object
|
||||
//! @}
|
||||
|
||||
//! \ingroup nvapihandles
|
||||
//! @{
|
||||
#define NVAPI_DEFAULT_HANDLE 0
|
||||
#define NV_BIT(x) (1 << (x))
|
||||
//! @}
|
||||
|
||||
|
||||
|
||||
//! \addtogroup nvapitypes
|
||||
//! @{
|
||||
#define NVAPI_GENERIC_STRING_MAX 4096
|
||||
#define NVAPI_LONG_STRING_MAX 256
|
||||
#define NVAPI_SHORT_STRING_MAX 64
|
||||
|
||||
typedef struct
|
||||
{
|
||||
NvS32 sX;
|
||||
NvS32 sY;
|
||||
NvS32 sWidth;
|
||||
NvS32 sHeight;
|
||||
} NvSBox;
|
||||
|
||||
#ifndef NvGUID_Defined
|
||||
#define NvGUID_Defined
|
||||
|
||||
typedef struct
|
||||
{
|
||||
NvU32 data1;
|
||||
NvU16 data2;
|
||||
NvU16 data3;
|
||||
NvU8 data4[8];
|
||||
} NvGUID, NvLUID;
|
||||
|
||||
|
||||
#endif //#ifndef NvGUID_Defined
|
||||
#define NVAPI_MAX_PHYSICAL_GPUS 64
|
||||
|
||||
|
||||
#define NVAPI_MAX_PHYSICAL_BRIDGES 100
|
||||
#define NVAPI_PHYSICAL_GPUS 32
|
||||
#define NVAPI_MAX_LOGICAL_GPUS 64
|
||||
#define NVAPI_MAX_AVAILABLE_GPU_TOPOLOGIES 256
|
||||
#define NVAPI_MAX_AVAILABLE_SLI_GROUPS 256
|
||||
#define NVAPI_MAX_GPU_TOPOLOGIES NVAPI_MAX_PHYSICAL_GPUS
|
||||
#define NVAPI_MAX_GPU_PER_TOPOLOGY 8
|
||||
#define NVAPI_MAX_DISPLAY_HEADS 2
|
||||
#define NVAPI_ADVANCED_DISPLAY_HEADS 4
|
||||
#define NVAPI_MAX_DISPLAYS NVAPI_PHYSICAL_GPUS * NVAPI_ADVANCED_DISPLAY_HEADS
|
||||
#define NVAPI_MAX_ACPI_IDS 16
|
||||
#define NVAPI_MAX_VIEW_MODES 8
|
||||
|
||||
|
||||
#define NVAPI_SYSTEM_MAX_HWBCS 128
|
||||
#define NVAPI_SYSTEM_HWBC_INVALID_ID 0xffffffff
|
||||
|
||||
#define NVAPI_SYSTEM_MAX_DISPLAYS NVAPI_MAX_PHYSICAL_GPUS * NV_MAX_HEADS
|
||||
#define NV_MAX_HEADS 4 //!< Maximum heads, each with NVAPI_DESKTOP_RES resolution
|
||||
#define NVAPI_MAX_HEADS_PER_GPU 32
|
||||
#define NV_MAX_VID_STREAMS 4 //!< Maximum number of input video streams, each with a #NVAPI_VIDEO_SRC_INFO
|
||||
#define NV_MAX_VID_STREAMS_EX 20 //!< Increasing MAX no. of input video streams, each with a #NVAPI_VIDEO_SRC_INFO
|
||||
#define NV_MAX_VID_PROFILES 4 //!< Maximum number of output video profiles supported
|
||||
|
||||
#define NVAPI_MAX_AUDIO_DEVICES 16
|
||||
|
||||
|
||||
typedef char NvAPI_String[NVAPI_GENERIC_STRING_MAX];
|
||||
typedef char NvAPI_LongString[NVAPI_LONG_STRING_MAX];
|
||||
typedef char NvAPI_ShortString[NVAPI_SHORT_STRING_MAX];
|
||||
typedef NvU16 NvAPI_UnicodeShortString[NVAPI_SHORT_STRING_MAX];
|
||||
//! @}
|
||||
|
||||
|
||||
// =========================================================================================
|
||||
//! NvAPI Version Definition \n
|
||||
//! Maintain per structure specific version define using the MAKE_NVAPI_VERSION macro. \n
|
||||
//! Usage: #define NV_GENLOCK_STATUS_VER MAKE_NVAPI_VERSION(NV_GENLOCK_STATUS, 1)
|
||||
//! \ingroup nvapitypes
|
||||
// =========================================================================================
|
||||
#define MAKE_NVAPI_VERSION(typeName,ver) (NvU32)(sizeof(typeName) | ((ver)<<16))
|
||||
|
||||
//! \ingroup nvapitypes
|
||||
#define GET_NVAPI_VERSION(ver) (NvU32)((ver)>>16)
|
||||
|
||||
//! \ingroup nvapitypes
|
||||
#define GET_NVAPI_SIZE(ver) (NvU32)((ver) & 0xffff)
|
||||
|
||||
|
||||
// ====================================================
|
||||
//! NvAPI Status Values
|
||||
//! All NvAPI functions return one of these codes.
|
||||
//! \ingroup nvapistatus
|
||||
// ====================================================
|
||||
|
||||
|
||||
typedef enum _NvAPI_Status
|
||||
{
|
||||
NVAPI_OK = 0, //!< Success. Request is completed.
|
||||
NVAPI_ERROR = -1, //!< Generic error
|
||||
NVAPI_LIBRARY_NOT_FOUND = -2, //!< NVAPI support library cannot be loaded.
|
||||
NVAPI_NO_IMPLEMENTATION = -3, //!< not implemented in current driver installation
|
||||
NVAPI_API_NOT_INITIALIZED = -4, //!< NvAPI_Initialize has not been called (successfully)
|
||||
NVAPI_INVALID_ARGUMENT = -5, //!< The argument/parameter value is not valid or NULL.
|
||||
NVAPI_NVIDIA_DEVICE_NOT_FOUND = -6, //!< No NVIDIA display driver, or NVIDIA GPU driving a display, was found.
|
||||
NVAPI_END_ENUMERATION = -7, //!< No more items to enumerate
|
||||
NVAPI_INVALID_HANDLE = -8, //!< Invalid handle
|
||||
NVAPI_INCOMPATIBLE_STRUCT_VERSION = -9, //!< An argument's structure version is not supported
|
||||
NVAPI_HANDLE_INVALIDATED = -10, //!< The handle is no longer valid (likely due to GPU or display re-configuration)
|
||||
NVAPI_OPENGL_CONTEXT_NOT_CURRENT = -11, //!< No NVIDIA OpenGL context is current (but needs to be)
|
||||
NVAPI_INVALID_POINTER = -14, //!< An invalid pointer, usually NULL, was passed as a parameter
|
||||
NVAPI_NO_GL_EXPERT = -12, //!< OpenGL Expert is not supported by the current drivers
|
||||
NVAPI_INSTRUMENTATION_DISABLED = -13, //!< OpenGL Expert is supported, but driver instrumentation is currently disabled
|
||||
NVAPI_NO_GL_NSIGHT = -15, //!< OpenGL does not support Nsight
|
||||
|
||||
NVAPI_EXPECTED_LOGICAL_GPU_HANDLE = -100, //!< Expected a logical GPU handle for one or more parameters
|
||||
NVAPI_EXPECTED_PHYSICAL_GPU_HANDLE = -101, //!< Expected a physical GPU handle for one or more parameters
|
||||
NVAPI_EXPECTED_DISPLAY_HANDLE = -102, //!< Expected an NV display handle for one or more parameters
|
||||
NVAPI_INVALID_COMBINATION = -103, //!< The combination of parameters is not valid.
|
||||
NVAPI_NOT_SUPPORTED = -104, //!< Requested feature is not supported in the selected GPU
|
||||
NVAPI_PORTID_NOT_FOUND = -105, //!< No port ID was found for the I2C transaction
|
||||
NVAPI_EXPECTED_UNATTACHED_DISPLAY_HANDLE = -106, //!< Expected an unattached display handle as one of the input parameters.
|
||||
NVAPI_INVALID_PERF_LEVEL = -107, //!< Invalid perf level
|
||||
NVAPI_DEVICE_BUSY = -108, //!< Device is busy; request not fulfilled
|
||||
NVAPI_NV_PERSIST_FILE_NOT_FOUND = -109, //!< NV persist file is not found
|
||||
NVAPI_PERSIST_DATA_NOT_FOUND = -110, //!< NV persist data is not found
|
||||
NVAPI_EXPECTED_TV_DISPLAY = -111, //!< Expected a TV output display
|
||||
NVAPI_EXPECTED_TV_DISPLAY_ON_DCONNECTOR = -112, //!< Expected a TV output on the D Connector - HDTV_EIAJ4120.
|
||||
NVAPI_NO_ACTIVE_SLI_TOPOLOGY = -113, //!< SLI is not active on this device.
|
||||
NVAPI_SLI_RENDERING_MODE_NOTALLOWED = -114, //!< Setup of SLI rendering mode is not possible right now.
|
||||
NVAPI_EXPECTED_DIGITAL_FLAT_PANEL = -115, //!< Expected a digital flat panel.
|
||||
NVAPI_ARGUMENT_EXCEED_MAX_SIZE = -116, //!< Argument exceeds the expected size.
|
||||
NVAPI_DEVICE_SWITCHING_NOT_ALLOWED = -117, //!< Inhibit is ON due to one of the flags in NV_GPU_DISPLAY_CHANGE_INHIBIT or SLI active.
|
||||
NVAPI_TESTING_CLOCKS_NOT_SUPPORTED = -118, //!< Testing of clocks is not supported.
|
||||
NVAPI_UNKNOWN_UNDERSCAN_CONFIG = -119, //!< The specified underscan config is from an unknown source (e.g. INF)
|
||||
NVAPI_TIMEOUT_RECONFIGURING_GPU_TOPO = -120, //!< Timeout while reconfiguring GPUs
|
||||
NVAPI_DATA_NOT_FOUND = -121, //!< Requested data was not found
|
||||
NVAPI_EXPECTED_ANALOG_DISPLAY = -122, //!< Expected an analog display
|
||||
NVAPI_NO_VIDLINK = -123, //!< No SLI video bridge is present
|
||||
NVAPI_REQUIRES_REBOOT = -124, //!< NVAPI requires a reboot for the settings to take effect
|
||||
NVAPI_INVALID_HYBRID_MODE = -125, //!< The function is not supported with the current Hybrid mode.
|
||||
NVAPI_MIXED_TARGET_TYPES = -126, //!< The target types are not all the same
|
||||
NVAPI_SYSWOW64_NOT_SUPPORTED = -127, //!< The function is not supported from 32-bit on a 64-bit system.
|
||||
NVAPI_IMPLICIT_SET_GPU_TOPOLOGY_CHANGE_NOT_ALLOWED = -128, //!< There is no implicit GPU topology active. Use NVAPI_SetHybridMode to change topology.
|
||||
NVAPI_REQUEST_USER_TO_CLOSE_NON_MIGRATABLE_APPS = -129, //!< Prompt the user to close all non-migratable applications.
|
||||
NVAPI_OUT_OF_MEMORY = -130, //!< Could not allocate sufficient memory to complete the call.
|
||||
NVAPI_WAS_STILL_DRAWING = -131, //!< The previous operation that is transferring information to or from this surface is incomplete.
|
||||
NVAPI_FILE_NOT_FOUND = -132, //!< The file was not found.
|
||||
NVAPI_TOO_MANY_UNIQUE_STATE_OBJECTS = -133, //!< There are too many unique instances of a particular type of state object.
|
||||
NVAPI_INVALID_CALL = -134, //!< The method call is invalid. For example, a method's parameter may not be a valid pointer.
|
||||
NVAPI_D3D10_1_LIBRARY_NOT_FOUND = -135, //!< d3d10_1.dll cannot be loaded.
|
||||
NVAPI_FUNCTION_NOT_FOUND = -136, //!< Couldn't find the function in the loaded DLL.
|
||||
NVAPI_INVALID_USER_PRIVILEGE = -137, //!< The application will require Administrator privileges to access this API.
|
||||
//!< The application can be elevated to a higher permission level by selecting "Run as Administrator".
|
||||
NVAPI_EXPECTED_NON_PRIMARY_DISPLAY_HANDLE = -138, //!< The handle corresponds to GDIPrimary.
|
||||
NVAPI_EXPECTED_COMPUTE_GPU_HANDLE = -139, //!< Setting Physx GPU requires that the GPU is compute-capable.
|
||||
NVAPI_STEREO_NOT_INITIALIZED = -140, //!< The Stereo part of NVAPI failed to initialize completely. Check if the stereo driver is installed.
|
||||
NVAPI_STEREO_REGISTRY_ACCESS_FAILED = -141, //!< Access to stereo-related registry keys or values has failed.
|
||||
NVAPI_STEREO_REGISTRY_PROFILE_TYPE_NOT_SUPPORTED = -142, //!< The given registry profile type is not supported.
|
||||
NVAPI_STEREO_REGISTRY_VALUE_NOT_SUPPORTED = -143, //!< The given registry value is not supported.
|
||||
NVAPI_STEREO_NOT_ENABLED = -144, //!< Stereo is not enabled and the function needed it to execute completely.
|
||||
NVAPI_STEREO_NOT_TURNED_ON = -145, //!< Stereo is not turned on and the function needed it to execute completely.
|
||||
NVAPI_STEREO_INVALID_DEVICE_INTERFACE = -146, //!< Invalid device interface.
|
||||
NVAPI_STEREO_PARAMETER_OUT_OF_RANGE = -147, //!< Separation percentage or JPEG image capture quality is out of [0-100] range.
|
||||
NVAPI_STEREO_FRUSTUM_ADJUST_MODE_NOT_SUPPORTED = -148, //!< The given frustum adjust mode is not supported.
|
||||
NVAPI_TOPO_NOT_POSSIBLE = -149, //!< The mosaic topology is not possible given the current state of the hardware.
|
||||
NVAPI_MODE_CHANGE_FAILED = -150, //!< An attempt to do a display resolution mode change has failed.
|
||||
NVAPI_D3D11_LIBRARY_NOT_FOUND = -151, //!< d3d11.dll/d3d11_beta.dll cannot be loaded.
|
||||
NVAPI_INVALID_ADDRESS = -152, //!< Address is outside of valid range.
|
||||
NVAPI_STRING_TOO_SMALL = -153, //!< The pre-allocated string is too small to hold the result.
|
||||
NVAPI_MATCHING_DEVICE_NOT_FOUND = -154, //!< The input does not match any of the available devices.
|
||||
NVAPI_DRIVER_RUNNING = -155, //!< Driver is running.
|
||||
NVAPI_DRIVER_NOTRUNNING = -156, //!< Driver is not running.
|
||||
NVAPI_ERROR_DRIVER_RELOAD_REQUIRED = -157, //!< A driver reload is required to apply these settings.
|
||||
NVAPI_SET_NOT_ALLOWED = -158, //!< Intended setting is not allowed.
|
||||
NVAPI_ADVANCED_DISPLAY_TOPOLOGY_REQUIRED = -159, //!< Information can't be returned due to "advanced display topology".
|
||||
NVAPI_SETTING_NOT_FOUND = -160, //!< Setting is not found.
|
||||
NVAPI_SETTING_SIZE_TOO_LARGE = -161, //!< Setting size is too large.
|
||||
NVAPI_TOO_MANY_SETTINGS_IN_PROFILE = -162, //!< There are too many settings for a profile.
|
||||
NVAPI_PROFILE_NOT_FOUND = -163, //!< Profile is not found.
|
||||
NVAPI_PROFILE_NAME_IN_USE = -164, //!< Profile name is duplicated.
|
||||
NVAPI_PROFILE_NAME_EMPTY = -165, //!< Profile name is empty.
|
||||
NVAPI_EXECUTABLE_NOT_FOUND = -166, //!< Application not found in the Profile.
|
||||
NVAPI_EXECUTABLE_ALREADY_IN_USE = -167, //!< Application already exists in the other profile.
|
||||
NVAPI_DATATYPE_MISMATCH = -168, //!< Data Type mismatch
|
||||
NVAPI_PROFILE_REMOVED = -169, //!< The profile passed as parameter has been removed and is no longer valid.
|
||||
NVAPI_UNREGISTERED_RESOURCE = -170, //!< An unregistered resource was passed as a parameter.
|
||||
NVAPI_ID_OUT_OF_RANGE = -171, //!< The DisplayId corresponds to a display which is not within the normal outputId range.
|
||||
NVAPI_DISPLAYCONFIG_VALIDATION_FAILED = -172, //!< Display topology is not valid so the driver cannot do a mode set on this configuration.
|
||||
NVAPI_DPMST_CHANGED = -173, //!< Display Port Multi-Stream topology has been changed.
|
||||
NVAPI_INSUFFICIENT_BUFFER = -174, //!< Input buffer is insufficient to hold the contents.
|
||||
NVAPI_ACCESS_DENIED = -175, //!< No access to the caller.
|
||||
NVAPI_MOSAIC_NOT_ACTIVE = -176, //!< The requested action cannot be performed without Mosaic being enabled.
|
||||
NVAPI_SHARE_RESOURCE_RELOCATED = -177, //!< The surface is relocated away from video memory.
|
||||
NVAPI_REQUEST_USER_TO_DISABLE_DWM = -178, //!< The user should disable DWM before calling NvAPI.
|
||||
NVAPI_D3D_DEVICE_LOST = -179, //!< D3D device status is D3DERR_DEVICELOST or D3DERR_DEVICENOTRESET - the user has to reset the device.
|
||||
NVAPI_INVALID_CONFIGURATION = -180, //!< The requested action cannot be performed in the current state.
|
||||
NVAPI_STEREO_HANDSHAKE_NOT_DONE = -181, //!< Call failed as stereo handshake not completed.
|
||||
NVAPI_EXECUTABLE_PATH_IS_AMBIGUOUS = -182, //!< The path provided was too short to determine the correct NVDRS_APPLICATION
|
||||
NVAPI_DEFAULT_STEREO_PROFILE_IS_NOT_DEFINED = -183, //!< Default stereo profile is not currently defined
|
||||
NVAPI_DEFAULT_STEREO_PROFILE_DOES_NOT_EXIST = -184, //!< Default stereo profile does not exist
|
||||
NVAPI_CLUSTER_ALREADY_EXISTS = -185, //!< A cluster is already defined with the given configuration.
|
||||
NVAPI_DPMST_DISPLAY_ID_EXPECTED = -186, //!< The input display id is not that of a multi stream enabled connector or a display device in a multi stream topology
|
||||
NVAPI_INVALID_DISPLAY_ID = -187, //!< The input display id is not valid or the monitor associated to it does not support the current operation
|
||||
NVAPI_STREAM_IS_OUT_OF_SYNC = -188, //!< While playing secure audio stream, stream goes out of sync
|
||||
NVAPI_INCOMPATIBLE_AUDIO_DRIVER = -189, //!< Older audio driver version than required
|
||||
NVAPI_VALUE_ALREADY_SET = -190, //!< Value already set, setting again not allowed.
|
||||
NVAPI_TIMEOUT = -191, //!< Requested operation timed out
|
||||
NVAPI_GPU_WORKSTATION_FEATURE_INCOMPLETE = -192, //!< The requested workstation feature set has incomplete driver internal allocation resources
|
||||
NVAPI_STEREO_INIT_ACTIVATION_NOT_DONE = -193, //!< Call failed because InitActivation was not called.
|
||||
NVAPI_SYNC_NOT_ACTIVE = -194, //!< The requested action cannot be performed without Sync being enabled.
|
||||
NVAPI_SYNC_MASTER_NOT_FOUND = -195, //!< The requested action cannot be performed without Sync Master being enabled.
|
||||
NVAPI_INVALID_SYNC_TOPOLOGY = -196, //!< Invalid displays passed in the NV_GSYNC_DISPLAY pointer.
|
||||
NVAPI_ECID_SIGN_ALGO_UNSUPPORTED = -197, //!< The specified signing algorithm is not supported. Either an incorrect value was entered or the current installed driver/hardware does not support the input value.
|
||||
NVAPI_ECID_KEY_VERIFICATION_FAILED = -198, //!< The encrypted public key verification has failed.
|
||||
NVAPI_FIRMWARE_OUT_OF_DATE = -199, //!< The device's firmware is out of date.
|
||||
NVAPI_FIRMWARE_REVISION_NOT_SUPPORTED = -200, //!< The device's firmware is not supported.
|
||||
NVAPI_LICENSE_CALLER_AUTHENTICATION_FAILED = -201, //!< The caller is not authorized to modify the License.
|
||||
NVAPI_D3D_DEVICE_NOT_REGISTERED = -202, //!< The user tried to use a deferred context without registering the device first
|
||||
NVAPI_RESOURCE_NOT_ACQUIRED = -203, //!< Head or SourceId was not reserved for the VR Display before doing the Modeset or the dedicated display.
|
||||
NVAPI_TIMING_NOT_SUPPORTED = -204, //!< Provided timing is not supported.
|
||||
NVAPI_HDCP_ENCRYPTION_FAILED = -205, //!< HDCP Encryption Failed for the device. Would be applicable when the device is HDCP Capable.
|
||||
NVAPI_PCLK_LIMITATION_FAILED = -206, //!< Provided mode is over sink device pclk limitation.
|
||||
NVAPI_NO_CONNECTOR_FOUND = -207, //!< No connector on GPU found.
|
||||
NVAPI_HDCP_DISABLED = -208, //!< When a non-HDCP capable HMD is connected, we would inform user by this code.
|
||||
NVAPI_API_IN_USE = -209, //!< Atleast an API is still being called
|
||||
NVAPI_NVIDIA_DISPLAY_NOT_FOUND = -210, //!< No display found on Nvidia GPU(s).
|
||||
NVAPI_PRIV_SEC_VIOLATION = -211, //!< Priv security violation, improper access to a secured register.
|
||||
NVAPI_INCORRECT_VENDOR = -212, //!< NVAPI cannot be called by this vendor
|
||||
NVAPI_DISPLAY_IN_USE = -213, //!< DirectMode Display is already in use
|
||||
NVAPI_UNSUPPORTED_CONFIG_NON_HDCP_HMD = -214, //!< The Config is having Non-NVidia GPU with Non-HDCP HMD connected
|
||||
NVAPI_MAX_DISPLAY_LIMIT_REACHED = -215, //!< GPU's Max Display Limit has Reached
|
||||
NVAPI_INVALID_DIRECT_MODE_DISPLAY = -216, //!< DirectMode not Enabled on the Display
|
||||
NVAPI_GPU_IN_DEBUG_MODE = -217, //!< GPU is in debug mode, OC is NOT allowed.
|
||||
NVAPI_D3D_CONTEXT_NOT_FOUND = -218, //!< No NvAPI context was found for this D3D object
|
||||
NVAPI_STEREO_VERSION_MISMATCH = -219, //!< there is version mismatch between stereo driver and dx driver
|
||||
NVAPI_GPU_NOT_POWERED = -220, //!< GPU is not powered and so the request cannot be completed.
|
||||
NVAPI_ERROR_DRIVER_RELOAD_IN_PROGRESS = -221, //!< The display driver update in progress.
|
||||
NVAPI_WAIT_FOR_HW_RESOURCE = -222, //!< Wait for HW resources allocation
|
||||
NVAPI_REQUIRE_FURTHER_HDCP_ACTION = -223, //!< operation requires further HDCP action
|
||||
NVAPI_DISPLAY_MUX_TRANSITION_FAILED = -224, //!< Dynamic Mux transition failure
|
||||
NVAPI_INVALID_DSC_VERSION = -225, //!< Invalid DSC version
|
||||
NVAPI_INVALID_DSC_SLICECOUNT = -226, //!< Invalid DSC slice count
|
||||
NVAPI_INVALID_DSC_OUTPUT_BPP = -227, //!< Invalid DSC output BPP
|
||||
NVAPI_FAILED_TO_LOAD_FROM_DRIVER_STORE = -228, //!< There was an error while loading nvapi.dll from the driver store.
|
||||
NVAPI_NO_VULKAN = -229, //!< OpenGL does not export Vulkan fake extensions
|
||||
NVAPI_REQUEST_PENDING = -230, //!< A request for NvTOPPs telemetry CData has already been made and is pending a response.
|
||||
NVAPI_RESOURCE_IN_USE = -231, //!< Operation cannot be performed because the resource is in use.
|
||||
NVAPI_INVALID_IMAGE = -232, //!< Device kernel image is invalid
|
||||
NVAPI_INVALID_PTX = -233, //!< PTX JIT compilation failed
|
||||
NVAPI_NVLINK_UNCORRECTABLE = -234, //!< Uncorrectable NVLink error was detected during the execution
|
||||
NVAPI_JIT_COMPILER_NOT_FOUND = -235, //!< PTX JIT compiler library was not found.
|
||||
NVAPI_INVALID_SOURCE = -236, //!< Device kernel source is invalid.
|
||||
NVAPI_ILLEGAL_INSTRUCTION = -237, //!< While executing a kernel, the device encountered an illegal instruction.
|
||||
NVAPI_INVALID_PC = -238, //!< While executing a kernel, the device program counter wrapped its address space
|
||||
NVAPI_LAUNCH_FAILED = -239, //!< An exception occurred on the device while executing a kernel
|
||||
NVAPI_NOT_PERMITTED = -240, //!< Attempted operation is not permitted.
|
||||
NVAPI_CALLBACK_ALREADY_REGISTERED = -241, //!< The callback function has already been registered.
|
||||
NVAPI_CALLBACK_NOT_FOUND = -242, //!< The callback function is not found or not registered.
|
||||
} NvAPI_Status;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_SYS_GetDriverAndBranchVersion
|
||||
//
|
||||
//! DESCRIPTION: This API returns display driver version and driver-branch string.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \param [out] pDriverVersion Contains the driver version after successful return.
|
||||
//! \param [out] szBuildBranchString Contains the driver-branch string after successful return.
|
||||
//!
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT: either pDriverVersion is NULL or enum index too big
|
||||
//! \retval ::NVAPI_OK - completed request
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED - NVAPI not initialized
|
||||
//! \retval ::NVAPI_ERROR - miscellaneous error occurred
|
||||
//!
|
||||
//! \ingroup driverapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_SYS_GetDriverAndBranchVersion(NvU32* pDriverVersion, NvAPI_ShortString szBuildBranchString);
|
||||
//! \ingroup driverapi
|
||||
//! Used in NvAPI_GPU_GetMemoryInfo().
|
||||
typedef struct
|
||||
{
|
||||
NvU32 version; //!< Version info
|
||||
NvU32 dedicatedVideoMemory; //!< Size(in kb) of the physical framebuffer.
|
||||
NvU32 availableDedicatedVideoMemory; //!< Size(in kb) of the available physical framebuffer for allocating video memory surfaces.
|
||||
NvU32 systemVideoMemory; //!< Size(in kb) of system memory the driver allocates at load time.
|
||||
NvU32 sharedSystemMemory; //!< Size(in kb) of shared system memory that driver is allowed to commit for surfaces across all allocations.
|
||||
|
||||
} NV_DISPLAY_DRIVER_MEMORY_INFO_V1;
|
||||
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Used in NvAPI_GPU_GetMemoryInfo().
|
||||
typedef struct
|
||||
{
|
||||
NvU32 version; //!< Version info
|
||||
NvU32 dedicatedVideoMemory; //!< Size(in kb) of the physical framebuffer.
|
||||
NvU32 availableDedicatedVideoMemory; //!< Size(in kb) of the available physical framebuffer for allocating video memory surfaces.
|
||||
NvU32 systemVideoMemory; //!< Size(in kb) of system memory the driver allocates at load time.
|
||||
NvU32 sharedSystemMemory; //!< Size(in kb) of shared system memory that driver is allowed to commit for surfaces across all allocations.
|
||||
NvU32 curAvailableDedicatedVideoMemory; //!< Size(in kb) of the current available physical framebuffer for allocating video memory surfaces.
|
||||
|
||||
} NV_DISPLAY_DRIVER_MEMORY_INFO_V2;
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Used in NvAPI_GPU_GetMemoryInfo().
|
||||
typedef struct
|
||||
{
|
||||
NvU32 version; //!< Version info
|
||||
NvU32 dedicatedVideoMemory; //!< Size(in kb) of the physical framebuffer.
|
||||
NvU32 availableDedicatedVideoMemory; //!< Size(in kb) of the available physical framebuffer for allocating video memory surfaces.
|
||||
NvU32 systemVideoMemory; //!< Size(in kb) of system memory the driver allocates at load time.
|
||||
NvU32 sharedSystemMemory; //!< Size(in kb) of shared system memory that driver is allowed to commit for surfaces across all allocations.
|
||||
NvU32 curAvailableDedicatedVideoMemory; //!< Size(in kb) of the current available physical framebuffer for allocating video memory surfaces.
|
||||
NvU32 dedicatedVideoMemoryEvictionsSize; //!< Size(in kb) of the total size of memory released as a result of the evictions.
|
||||
NvU32 dedicatedVideoMemoryEvictionCount; //!< Indicates the number of eviction events that caused an allocation to be removed from dedicated video memory to free GPU
|
||||
//!< video memory to make room for other allocations.
|
||||
} NV_DISPLAY_DRIVER_MEMORY_INFO_V3;
|
||||
|
||||
//! \ingroup driverapi
|
||||
typedef NV_DISPLAY_DRIVER_MEMORY_INFO_V3 NV_DISPLAY_DRIVER_MEMORY_INFO;
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Macro for constructing the version field of NV_DISPLAY_DRIVER_MEMORY_INFO_V1
|
||||
#define NV_DISPLAY_DRIVER_MEMORY_INFO_VER_1 MAKE_NVAPI_VERSION(NV_DISPLAY_DRIVER_MEMORY_INFO_V1,1)
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Macro for constructing the version field of NV_DISPLAY_DRIVER_MEMORY_INFO_V2
|
||||
#define NV_DISPLAY_DRIVER_MEMORY_INFO_VER_2 MAKE_NVAPI_VERSION(NV_DISPLAY_DRIVER_MEMORY_INFO_V2,2)
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Macro for constructing the version field of NV_DISPLAY_DRIVER_MEMORY_INFO_V3
|
||||
#define NV_DISPLAY_DRIVER_MEMORY_INFO_VER_3 MAKE_NVAPI_VERSION(NV_DISPLAY_DRIVER_MEMORY_INFO_V3,3)
|
||||
|
||||
//! \ingroup driverapi
|
||||
#define NV_DISPLAY_DRIVER_MEMORY_INFO_VER NV_DISPLAY_DRIVER_MEMORY_INFO_VER_3
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_GPU_GetMemoryInfo
|
||||
//
|
||||
//! DESCRIPTION: This function retrieves the available driver memory footprint for the specified GPU.
|
||||
//! If the GPU is in TCC Mode, only dedicatedVideoMemory will be returned in pMemoryInfo (NV_DISPLAY_DRIVER_MEMORY_INFO).
|
||||
//!
|
||||
//! \deprecated Do not use this function - it is deprecated in release 520. Instead, use NvAPI_GPU_GetMemoryInfoEx.
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! TCC_SUPPORTED
|
||||
//!
|
||||
//! \since Release: 177
|
||||
//!
|
||||
//! \param [in] hPhysicalGpu Handle of the physical GPU for which the memory information is to be extracted.
|
||||
//! \param [out] pMemoryInfo The memory footprint available in the driver. See NV_DISPLAY_DRIVER_MEMORY_INFO.
|
||||
//!
|
||||
//! \retval NVAPI_INVALID_ARGUMENT pMemoryInfo is NULL.
|
||||
//! \retval NVAPI_OK Call successful.
|
||||
//! \retval NVAPI_NVIDIA_DEVICE_NOT_FOUND No NVIDIA GPU driving a display was found.
|
||||
//! \retval NVAPI_INCOMPATIBLE_STRUCT_VERSION NV_DISPLAY_DRIVER_MEMORY_INFO structure version mismatch.
|
||||
//!
|
||||
//! \ingroup driverapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
__nvapi_deprecated_function("Do not use this function - it is deprecated in release 520. Instead, use NvAPI_GPU_GetMemoryInfoEx.")
|
||||
NVAPI_INTERFACE NvAPI_GPU_GetMemoryInfo(NvPhysicalGpuHandle hPhysicalGpu, NV_DISPLAY_DRIVER_MEMORY_INFO *pMemoryInfo);
|
||||
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Used in NvAPI_GPU_GetMemoryInfoEx().
|
||||
typedef struct
|
||||
{
|
||||
NvU32 version; //!< Structure version
|
||||
NvU64 dedicatedVideoMemory; //!< Size(in bytes) of the physical framebuffer.
|
||||
NvU64 availableDedicatedVideoMemory; //!< Size(in bytes) of the available physical framebuffer for allocating video memory surfaces.
|
||||
NvU64 systemVideoMemory; //!< Size(in bytes) of system memory the driver allocates at load time.
|
||||
NvU64 sharedSystemMemory; //!< Size(in bytes) of shared system memory that driver is allowed to commit for surfaces across all allocations.
|
||||
NvU64 curAvailableDedicatedVideoMemory; //!< Size(in bytes) of the current available physical framebuffer for allocating video memory surfaces.
|
||||
NvU64 dedicatedVideoMemoryEvictionsSize; //!< Size(in bytes) of the total size of memory released as a result of the evictions.
|
||||
NvU64 dedicatedVideoMemoryEvictionCount; //!< Indicates the number of eviction events that caused an allocation to be removed from dedicated video memory to free GPU
|
||||
//!< video memory to make room for other allocations.
|
||||
NvU64 dedicatedVideoMemoryPromotionsSize; //!< Size(in bytes) of the total size of memory allocated as a result of the promotions.
|
||||
NvU64 dedicatedVideoMemoryPromotionCount; //!< Indicates the number of promotion events that caused an allocation to be promoted to dedicated video memory
|
||||
} NV_GPU_MEMORY_INFO_EX_V1;
|
||||
|
||||
//! \ingroup driverapi
|
||||
typedef NV_GPU_MEMORY_INFO_EX_V1 NV_GPU_MEMORY_INFO_EX;
|
||||
|
||||
//! \ingroup driverapi
|
||||
//! Macro for constructing the version field of NV_GPU_MEMORY_INFO_EX_V1
|
||||
#define NV_GPU_MEMORY_INFO_EX_VER_1 MAKE_NVAPI_VERSION(NV_GPU_MEMORY_INFO_EX_V1,1)
|
||||
|
||||
//! \ingroup driverapi
|
||||
#define NV_GPU_MEMORY_INFO_EX_VER NV_GPU_MEMORY_INFO_EX_VER_1
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_GPU_GetMemoryInfoEx
|
||||
//
|
||||
//! DESCRIPTION: This function retrieves the available driver memory footprint for the specified GPU.
|
||||
//! If the GPU is in TCC Mode, only dedicatedVideoMemory will be returned in pMemoryInfo (NV_GPU_MEMORY_INFO_EX).
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 10 and higher
|
||||
//!
|
||||
//!
|
||||
//! TCC_SUPPORTED
|
||||
//!
|
||||
//! \since Release: 520
|
||||
//!
|
||||
//! \param [in] hPhysicalGpu Handle of the physical GPU for which the memory information is to be extracted.
|
||||
//! \param [out] pMemoryInfo The memory footprint available in the driver. See NV_GPU_MEMORY_INFO_EX.
|
||||
//!
|
||||
//! \retval NVAPI_INVALID_ARGUMENT pMemoryInfo is NULL.
|
||||
//! \retval NVAPI_OK Call successful.
|
||||
//! \retval NVAPI_NVIDIA_DEVICE_NOT_FOUND No NVIDIA GPU driving a display was found.
|
||||
//! \retval NVAPI_INCOMPATIBLE_STRUCT_VERSION NV_GPU_MEMORY_INFO_EX structure version mismatch.
|
||||
//!
|
||||
//! \ingroup driverapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_GPU_GetMemoryInfoEx(NvPhysicalGpuHandle hPhysicalGpu, NV_GPU_MEMORY_INFO_EX *pMemoryInfo);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_EnumPhysicalGPUs
|
||||
//
|
||||
//! This function returns an array of physical GPU handles.
|
||||
//! Each handle represents a physical GPU present in the system.
|
||||
//! That GPU may be part of an SLI configuration, or may not be visible to the OS directly.
|
||||
//!
|
||||
//! At least one GPU must be present in the system and running an NVIDIA display driver.
|
||||
//!
|
||||
//! The array nvGPUHandle will be filled with physical GPU handle values. The returned
|
||||
//! gpuCount determines how many entries in the array are valid.
|
||||
//!
|
||||
//! \note In drivers older than 105.00, all physical GPU handles get invalidated on a
|
||||
//! modeset. So the calling applications need to renum the handles after every modeset.\n
|
||||
//! With drivers 105.00 and up, all physical GPU handles are constant.
|
||||
//! Physical GPU handles are constant as long as the GPUs are not physically moved and
|
||||
//! the SBIOS VGA order is unchanged.
|
||||
//!
|
||||
//! For GPU handles in TCC MODE please use NvAPI_EnumTCCPhysicalGPUs()
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \par Introduced in
|
||||
//! \since Release: 80
|
||||
//!
|
||||
//! \retval NVAPI_INVALID_ARGUMENT nvGPUHandle or pGpuCount is NULL
|
||||
//! \retval NVAPI_OK One or more handles were returned
|
||||
//! \retval NVAPI_NVIDIA_DEVICE_NOT_FOUND No NVIDIA GPU driving a display was found
|
||||
//! \ingroup gpu
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_EnumPhysicalGPUs(NvPhysicalGpuHandle nvGPUHandle[NVAPI_MAX_PHYSICAL_GPUS], NvU32 *pGpuCount);
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__) || defined(__d3d12_h__)
|
||||
|
||||
NV_DECLARE_HANDLE(NVDX_ObjectHandle); // DX Objects
|
||||
static const NVDX_ObjectHandle NVDX_OBJECT_NONE = 0;
|
||||
|
||||
#endif //if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__) || defined(__d3d12_h__)
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__) || defined(__d3d12_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D_GetObjectHandleForResource
|
||||
//
|
||||
//! DESCRIPTION: This API gets a handle to a resource.
|
||||
//!
|
||||
//! \param [in] pDev The ID3D11Device, ID3D10Device or IDirect3DDevice9 or ID3D11DeviceContext to use
|
||||
//! \param [in] pResource The ID3D11Resource, ID3D10Resource or IDirect3DResource9 from which
|
||||
//! we want the NvAPI handle
|
||||
//! \param [out] pHandle A handle to the resource
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 185
|
||||
//!
|
||||
//! \return ::NVAPI_OK if the handle was populated.
|
||||
//!
|
||||
//! \ingroup dx
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_D3D_GetObjectHandleForResource(
|
||||
IUnknown *pDevice,
|
||||
IUnknown *pResource,
|
||||
NVDX_ObjectHandle *pHandle);
|
||||
|
||||
|
||||
#endif //if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__) || defined(__d3d12_h__)
|
||||
|
||||
#include"nvapi_lite_salend.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#pragma pack(pop)
|
||||
191
external/nvapi/nvapi_lite_d3dext.h
vendored
Normal file
191
external/nvapi/nvapi_lite_d3dext.h
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ® 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
#pragma once
|
||||
#include"nvapi_lite_salstart.h"
|
||||
#include"nvapi_lite_common.h"
|
||||
#pragma pack(push,8)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#if defined(__cplusplus) && (defined(__d3d10_h__) || defined(__d3d10_1_h__) || defined(__d3d11_h__))
|
||||
//! \ingroup dx
|
||||
//! D3D_FEATURE_LEVEL supported - used in NvAPI_D3D11_CreateDevice() and NvAPI_D3D11_CreateDeviceAndSwapChain()
|
||||
typedef enum
|
||||
{
|
||||
NVAPI_DEVICE_FEATURE_LEVEL_NULL = -1,
|
||||
NVAPI_DEVICE_FEATURE_LEVEL_10_0 = 0,
|
||||
NVAPI_DEVICE_FEATURE_LEVEL_10_0_PLUS = 1,
|
||||
NVAPI_DEVICE_FEATURE_LEVEL_10_1 = 2,
|
||||
NVAPI_DEVICE_FEATURE_LEVEL_11_0 = 3,
|
||||
} NVAPI_DEVICE_FEATURE_LEVEL;
|
||||
|
||||
#endif //defined(__cplusplus) && (defined(__d3d10_h__) || defined(__d3d10_1_h__) || defined(__d3d11_h__))
|
||||
#if defined(__cplusplus) && defined(__d3d11_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D11_CreateDevice
|
||||
//
|
||||
//! DESCRIPTION: This function tries to create a DirectX 11 device. If the call fails (if we are running
|
||||
//! on pre-DirectX 11 hardware), depending on the type of hardware it will try to create a DirectX 10.1 OR DirectX 10.0+
|
||||
//! OR DirectX 10.0 device. The function call is the same as D3D11CreateDevice(), but with an extra
|
||||
//! argument (D3D_FEATURE_LEVEL supported by the device) that the function fills in. This argument
|
||||
//! can contain -1 (NVAPI_DEVICE_FEATURE_LEVEL_NULL), if the requested featureLevel is less than DirecX 10.0.
|
||||
//!
|
||||
//! NOTE: When NvAPI_D3D11_CreateDevice is called with 10+ feature level we have an issue on few set of
|
||||
//! tesla hardware (G80/G84/G86/G92/G94/G96) which does not support all feature level 10+ functionality
|
||||
//! e.g. calling driver with mismatch between RenderTarget and Depth Buffer. App developers should
|
||||
//! take into consideration such limitation when using NVAPI on such tesla hardwares.
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 185
|
||||
//!
|
||||
//! \param [in] pAdapter
|
||||
//! \param [in] DriverType
|
||||
//! \param [in] Software
|
||||
//! \param [in] Flags
|
||||
//! \param [in] *pFeatureLevels
|
||||
//! \param [in] FeatureLevels
|
||||
//! \param [in] SDKVersion
|
||||
//! \param [in] **ppDevice
|
||||
//! \param [in] *pFeatureLevel
|
||||
//! \param [in] **ppImmediateContext
|
||||
//! \param [in] *pSupportedLevel D3D_FEATURE_LEVEL supported
|
||||
//!
|
||||
//! \return NVAPI_OK if the createDevice call succeeded.
|
||||
//!
|
||||
//! \ingroup dx
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_D3D11_CreateDevice(IDXGIAdapter* pAdapter,
|
||||
D3D_DRIVER_TYPE DriverType,
|
||||
HMODULE Software,
|
||||
UINT Flags,
|
||||
CONST D3D_FEATURE_LEVEL *pFeatureLevels,
|
||||
UINT FeatureLevels,
|
||||
UINT SDKVersion,
|
||||
ID3D11Device **ppDevice,
|
||||
D3D_FEATURE_LEVEL *pFeatureLevel,
|
||||
ID3D11DeviceContext **ppImmediateContext,
|
||||
NVAPI_DEVICE_FEATURE_LEVEL *pSupportedLevel);
|
||||
|
||||
|
||||
#endif //defined(__cplusplus) && defined(__d3d11_h__)
|
||||
#if defined(__cplusplus) && defined(__d3d11_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D11_CreateDeviceAndSwapChain
|
||||
//
|
||||
//! DESCRIPTION: This function tries to create a DirectX 11 device and swap chain. If the call fails (if we are
|
||||
//! running on pre=DirectX 11 hardware), depending on the type of hardware it will try to create a DirectX 10.1 OR
|
||||
//! DirectX 10.0+ OR DirectX 10.0 device. The function call is the same as D3D11CreateDeviceAndSwapChain,
|
||||
//! but with an extra argument (D3D_FEATURE_LEVEL supported by the device) that the function fills
|
||||
//! in. This argument can contain -1 (NVAPI_DEVICE_FEATURE_LEVEL_NULL), if the requested featureLevel
|
||||
//! is less than DirectX 10.0.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 185
|
||||
//!
|
||||
//! \param [in] pAdapter
|
||||
//! \param [in] DriverType
|
||||
//! \param [in] Software
|
||||
//! \param [in] Flags
|
||||
//! \param [in] *pFeatureLevels
|
||||
//! \param [in] FeatureLevels
|
||||
//! \param [in] SDKVersion
|
||||
//! \param [in] *pSwapChainDesc
|
||||
//! \param [in] **ppSwapChain
|
||||
//! \param [in] **ppDevice
|
||||
//! \param [in] *pFeatureLevel
|
||||
//! \param [in] **ppImmediateContext
|
||||
//! \param [in] *pSupportedLevel D3D_FEATURE_LEVEL supported
|
||||
//!
|
||||
//!return NVAPI_OK if the createDevice with swap chain call succeeded.
|
||||
//!
|
||||
//! \ingroup dx
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_D3D11_CreateDeviceAndSwapChain(IDXGIAdapter* pAdapter,
|
||||
D3D_DRIVER_TYPE DriverType,
|
||||
HMODULE Software,
|
||||
UINT Flags,
|
||||
CONST D3D_FEATURE_LEVEL *pFeatureLevels,
|
||||
UINT FeatureLevels,
|
||||
UINT SDKVersion,
|
||||
CONST DXGI_SWAP_CHAIN_DESC *pSwapChainDesc,
|
||||
IDXGISwapChain **ppSwapChain,
|
||||
ID3D11Device **ppDevice,
|
||||
D3D_FEATURE_LEVEL *pFeatureLevel,
|
||||
ID3D11DeviceContext **ppImmediateContext,
|
||||
NVAPI_DEVICE_FEATURE_LEVEL *pSupportedLevel);
|
||||
|
||||
|
||||
|
||||
#endif //defined(__cplusplus) && defined(__d3d11_h__)
|
||||
#if defined(__cplusplus) && defined(__d3d11_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D11_SetDepthBoundsTest
|
||||
//
|
||||
//! DESCRIPTION: This function enables/disables the depth bounds test
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \param [in] pDeviceOrContext The device or device context to set depth bounds test
|
||||
//! \param [in] bEnable Enable(non-zero)/disable(zero) the depth bounds test
|
||||
//! \param [in] fMinDepth The minimum depth for depth bounds test
|
||||
//! \param [in] fMaxDepth The maximum depth for depth bounds test
|
||||
//! The valid values for fMinDepth and fMaxDepth
|
||||
//! are such that 0 <= fMinDepth <= fMaxDepth <= 1
|
||||
//!
|
||||
//! \return ::NVAPI_OK if the depth bounds test was correcly enabled or disabled
|
||||
//!
|
||||
//! \ingroup dx
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_D3D11_SetDepthBoundsTest(IUnknown* pDeviceOrContext,
|
||||
NvU32 bEnable,
|
||||
float fMinDepth,
|
||||
float fMaxDepth);
|
||||
|
||||
#endif //defined(__cplusplus) && defined(__d3d11_h__)
|
||||
|
||||
#include"nvapi_lite_salend.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#pragma pack(pop)
|
||||
816
external/nvapi/nvapi_lite_salend.h
vendored
Normal file
816
external/nvapi/nvapi_lite_salend.h
vendored
Normal file
@@ -0,0 +1,816 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ® 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
#ifndef __NVAPI_EMPTY_SAL
|
||||
#ifdef __nvapi_undef__ecount
|
||||
#undef __ecount
|
||||
#undef __nvapi_undef__ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__bcount
|
||||
#undef __bcount
|
||||
#undef __nvapi_undef__bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in
|
||||
#undef __in
|
||||
#undef __nvapi_undef__in
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_ecount
|
||||
#undef __in_ecount
|
||||
#undef __nvapi_undef__in_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_bcount
|
||||
#undef __in_bcount
|
||||
#undef __nvapi_undef__in_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_z
|
||||
#undef __in_z
|
||||
#undef __nvapi_undef__in_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_ecount_z
|
||||
#undef __in_ecount_z
|
||||
#undef __nvapi_undef__in_ecount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_bcount_z
|
||||
#undef __in_bcount_z
|
||||
#undef __nvapi_undef__in_bcount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_nz
|
||||
#undef __in_nz
|
||||
#undef __nvapi_undef__in_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_ecount_nz
|
||||
#undef __in_ecount_nz
|
||||
#undef __nvapi_undef__in_ecount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_bcount_nz
|
||||
#undef __in_bcount_nz
|
||||
#undef __nvapi_undef__in_bcount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out
|
||||
#undef __out
|
||||
#undef __nvapi_undef__out
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount
|
||||
#undef __out_ecount
|
||||
#undef __nvapi_undef__out_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount
|
||||
#undef __out_bcount
|
||||
#undef __nvapi_undef__out_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_part
|
||||
#undef __out_ecount_part
|
||||
#undef __nvapi_undef__out_ecount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_part
|
||||
#undef __out_bcount_part
|
||||
#undef __nvapi_undef__out_bcount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_full
|
||||
#undef __out_ecount_full
|
||||
#undef __nvapi_undef__out_ecount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_full
|
||||
#undef __out_bcount_full
|
||||
#undef __nvapi_undef__out_bcount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_z
|
||||
#undef __out_z
|
||||
#undef __nvapi_undef__out_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_z_opt
|
||||
#undef __out_z_opt
|
||||
#undef __nvapi_undef__out_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_z
|
||||
#undef __out_ecount_z
|
||||
#undef __nvapi_undef__out_ecount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_z
|
||||
#undef __out_bcount_z
|
||||
#undef __nvapi_undef__out_bcount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_part_z
|
||||
#undef __out_ecount_part_z
|
||||
#undef __nvapi_undef__out_ecount_part_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_part_z
|
||||
#undef __out_bcount_part_z
|
||||
#undef __nvapi_undef__out_bcount_part_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_full_z
|
||||
#undef __out_ecount_full_z
|
||||
#undef __nvapi_undef__out_ecount_full_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_full_z
|
||||
#undef __out_bcount_full_z
|
||||
#undef __nvapi_undef__out_bcount_full_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_nz
|
||||
#undef __out_nz
|
||||
#undef __nvapi_undef__out_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_nz_opt
|
||||
#undef __out_nz_opt
|
||||
#undef __nvapi_undef__out_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_nz
|
||||
#undef __out_ecount_nz
|
||||
#undef __nvapi_undef__out_ecount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_nz
|
||||
#undef __out_bcount_nz
|
||||
#undef __nvapi_undef__out_bcount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout
|
||||
#undef __inout
|
||||
#undef __nvapi_undef__inout
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount
|
||||
#undef __inout_ecount
|
||||
#undef __nvapi_undef__inout_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount
|
||||
#undef __inout_bcount
|
||||
#undef __nvapi_undef__inout_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_part
|
||||
#undef __inout_ecount_part
|
||||
#undef __nvapi_undef__inout_ecount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_part
|
||||
#undef __inout_bcount_part
|
||||
#undef __nvapi_undef__inout_bcount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_full
|
||||
#undef __inout_ecount_full
|
||||
#undef __nvapi_undef__inout_ecount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_full
|
||||
#undef __inout_bcount_full
|
||||
#undef __nvapi_undef__inout_bcount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_z
|
||||
#undef __inout_z
|
||||
#undef __nvapi_undef__inout_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_z
|
||||
#undef __inout_ecount_z
|
||||
#undef __nvapi_undef__inout_ecount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_z
|
||||
#undef __inout_bcount_z
|
||||
#undef __nvapi_undef__inout_bcount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_nz
|
||||
#undef __inout_nz
|
||||
#undef __nvapi_undef__inout_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_nz
|
||||
#undef __inout_ecount_nz
|
||||
#undef __nvapi_undef__inout_ecount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_nz
|
||||
#undef __inout_bcount_nz
|
||||
#undef __nvapi_undef__inout_bcount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__ecount_opt
|
||||
#undef __ecount_opt
|
||||
#undef __nvapi_undef__ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__bcount_opt
|
||||
#undef __bcount_opt
|
||||
#undef __nvapi_undef__bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_opt
|
||||
#undef __in_opt
|
||||
#undef __nvapi_undef__in_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_ecount_opt
|
||||
#undef __in_ecount_opt
|
||||
#undef __nvapi_undef__in_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_bcount_opt
|
||||
#undef __in_bcount_opt
|
||||
#undef __nvapi_undef__in_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_z_opt
|
||||
#undef __in_z_opt
|
||||
#undef __nvapi_undef__in_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_ecount_z_opt
|
||||
#undef __in_ecount_z_opt
|
||||
#undef __nvapi_undef__in_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_bcount_z_opt
|
||||
#undef __in_bcount_z_opt
|
||||
#undef __nvapi_undef__in_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_nz_opt
|
||||
#undef __in_nz_opt
|
||||
#undef __nvapi_undef__in_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_ecount_nz_opt
|
||||
#undef __in_ecount_nz_opt
|
||||
#undef __nvapi_undef__in_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__in_bcount_nz_opt
|
||||
#undef __in_bcount_nz_opt
|
||||
#undef __nvapi_undef__in_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_opt
|
||||
#undef __out_opt
|
||||
#undef __nvapi_undef__out_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_opt
|
||||
#undef __out_ecount_opt
|
||||
#undef __nvapi_undef__out_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_opt
|
||||
#undef __out_bcount_opt
|
||||
#undef __nvapi_undef__out_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_part_opt
|
||||
#undef __out_ecount_part_opt
|
||||
#undef __nvapi_undef__out_ecount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_part_opt
|
||||
#undef __out_bcount_part_opt
|
||||
#undef __nvapi_undef__out_bcount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_full_opt
|
||||
#undef __out_ecount_full_opt
|
||||
#undef __nvapi_undef__out_ecount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_full_opt
|
||||
#undef __out_bcount_full_opt
|
||||
#undef __nvapi_undef__out_bcount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_z_opt
|
||||
#undef __out_ecount_z_opt
|
||||
#undef __nvapi_undef__out_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_z_opt
|
||||
#undef __out_bcount_z_opt
|
||||
#undef __nvapi_undef__out_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_part_z_opt
|
||||
#undef __out_ecount_part_z_opt
|
||||
#undef __nvapi_undef__out_ecount_part_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_part_z_opt
|
||||
#undef __out_bcount_part_z_opt
|
||||
#undef __nvapi_undef__out_bcount_part_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_full_z_opt
|
||||
#undef __out_ecount_full_z_opt
|
||||
#undef __nvapi_undef__out_ecount_full_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_full_z_opt
|
||||
#undef __out_bcount_full_z_opt
|
||||
#undef __nvapi_undef__out_bcount_full_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_ecount_nz_opt
|
||||
#undef __out_ecount_nz_opt
|
||||
#undef __nvapi_undef__out_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__out_bcount_nz_opt
|
||||
#undef __out_bcount_nz_opt
|
||||
#undef __nvapi_undef__out_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_opt
|
||||
#undef __inout_opt
|
||||
#undef __nvapi_undef__inout_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_opt
|
||||
#undef __inout_ecount_opt
|
||||
#undef __nvapi_undef__inout_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_opt
|
||||
#undef __inout_bcount_opt
|
||||
#undef __nvapi_undef__inout_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_part_opt
|
||||
#undef __inout_ecount_part_opt
|
||||
#undef __nvapi_undef__inout_ecount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_part_opt
|
||||
#undef __inout_bcount_part_opt
|
||||
#undef __nvapi_undef__inout_bcount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_full_opt
|
||||
#undef __inout_ecount_full_opt
|
||||
#undef __nvapi_undef__inout_ecount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_full_opt
|
||||
#undef __inout_bcount_full_opt
|
||||
#undef __nvapi_undef__inout_bcount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_z_opt
|
||||
#undef __inout_z_opt
|
||||
#undef __nvapi_undef__inout_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_z_opt
|
||||
#undef __inout_ecount_z_opt
|
||||
#undef __nvapi_undef__inout_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_z_opt
|
||||
#undef __inout_ecount_z_opt
|
||||
#undef __nvapi_undef__inout_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_z_opt
|
||||
#undef __inout_bcount_z_opt
|
||||
#undef __nvapi_undef__inout_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_nz_opt
|
||||
#undef __inout_nz_opt
|
||||
#undef __nvapi_undef__inout_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_ecount_nz_opt
|
||||
#undef __inout_ecount_nz_opt
|
||||
#undef __nvapi_undef__inout_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__inout_bcount_nz_opt
|
||||
#undef __inout_bcount_nz_opt
|
||||
#undef __nvapi_undef__inout_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_ecount
|
||||
#undef __deref_ecount
|
||||
#undef __nvapi_undef__deref_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_bcount
|
||||
#undef __deref_bcount
|
||||
#undef __nvapi_undef__deref_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out
|
||||
#undef __deref_out
|
||||
#undef __nvapi_undef__deref_out
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount
|
||||
#undef __deref_out_ecount
|
||||
#undef __nvapi_undef__deref_out_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount
|
||||
#undef __deref_out_bcount
|
||||
#undef __nvapi_undef__deref_out_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_part
|
||||
#undef __deref_out_ecount_part
|
||||
#undef __nvapi_undef__deref_out_ecount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_part
|
||||
#undef __deref_out_bcount_part
|
||||
#undef __nvapi_undef__deref_out_bcount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_full
|
||||
#undef __deref_out_ecount_full
|
||||
#undef __nvapi_undef__deref_out_ecount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_full
|
||||
#undef __deref_out_bcount_full
|
||||
#undef __nvapi_undef__deref_out_bcount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_z
|
||||
#undef __deref_out_z
|
||||
#undef __nvapi_undef__deref_out_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_z
|
||||
#undef __deref_out_ecount_z
|
||||
#undef __nvapi_undef__deref_out_ecount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_z
|
||||
#undef __deref_out_bcount_z
|
||||
#undef __nvapi_undef__deref_out_bcount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_nz
|
||||
#undef __deref_out_nz
|
||||
#undef __nvapi_undef__deref_out_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_nz
|
||||
#undef __deref_out_ecount_nz
|
||||
#undef __nvapi_undef__deref_out_ecount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_nz
|
||||
#undef __deref_out_bcount_nz
|
||||
#undef __nvapi_undef__deref_out_bcount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout
|
||||
#undef __deref_inout
|
||||
#undef __nvapi_undef__deref_inout
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_z
|
||||
#undef __deref_inout_z
|
||||
#undef __nvapi_undef__deref_inout_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount
|
||||
#undef __deref_inout_ecount
|
||||
#undef __nvapi_undef__deref_inout_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount
|
||||
#undef __deref_inout_bcount
|
||||
#undef __nvapi_undef__deref_inout_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_part
|
||||
#undef __deref_inout_ecount_part
|
||||
#undef __nvapi_undef__deref_inout_ecount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_part
|
||||
#undef __deref_inout_bcount_part
|
||||
#undef __nvapi_undef__deref_inout_bcount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_full
|
||||
#undef __deref_inout_ecount_full
|
||||
#undef __nvapi_undef__deref_inout_ecount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_full
|
||||
#undef __deref_inout_bcount_full
|
||||
#undef __nvapi_undef__deref_inout_bcount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_z
|
||||
#undef __deref_inout_z
|
||||
#undef __nvapi_undef__deref_inout_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_z
|
||||
#undef __deref_inout_ecount_z
|
||||
#undef __nvapi_undef__deref_inout_ecount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_z
|
||||
#undef __deref_inout_bcount_z
|
||||
#undef __nvapi_undef__deref_inout_bcount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_nz
|
||||
#undef __deref_inout_nz
|
||||
#undef __nvapi_undef__deref_inout_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_nz
|
||||
#undef __deref_inout_ecount_nz
|
||||
#undef __nvapi_undef__deref_inout_ecount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_nz
|
||||
#undef __deref_inout_bcount_nz
|
||||
#undef __nvapi_undef__deref_inout_bcount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_ecount_opt
|
||||
#undef __deref_ecount_opt
|
||||
#undef __nvapi_undef__deref_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_bcount_opt
|
||||
#undef __deref_bcount_opt
|
||||
#undef __nvapi_undef__deref_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_opt
|
||||
#undef __deref_out_opt
|
||||
#undef __nvapi_undef__deref_out_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_opt
|
||||
#undef __deref_out_ecount_opt
|
||||
#undef __nvapi_undef__deref_out_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_opt
|
||||
#undef __deref_out_bcount_opt
|
||||
#undef __nvapi_undef__deref_out_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_part_opt
|
||||
#undef __deref_out_ecount_part_opt
|
||||
#undef __nvapi_undef__deref_out_ecount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_part_opt
|
||||
#undef __deref_out_bcount_part_opt
|
||||
#undef __nvapi_undef__deref_out_bcount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_full_opt
|
||||
#undef __deref_out_ecount_full_opt
|
||||
#undef __nvapi_undef__deref_out_ecount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_full_opt
|
||||
#undef __deref_out_bcount_full_opt
|
||||
#undef __nvapi_undef__deref_out_bcount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_z_opt
|
||||
#undef __deref_out_z_opt
|
||||
#undef __nvapi_undef__deref_out_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_z_opt
|
||||
#undef __deref_out_ecount_z_opt
|
||||
#undef __nvapi_undef__deref_out_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_z_opt
|
||||
#undef __deref_out_bcount_z_opt
|
||||
#undef __nvapi_undef__deref_out_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_nz_opt
|
||||
#undef __deref_out_nz_opt
|
||||
#undef __nvapi_undef__deref_out_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_ecount_nz_opt
|
||||
#undef __deref_out_ecount_nz_opt
|
||||
#undef __nvapi_undef__deref_out_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_out_bcount_nz_opt
|
||||
#undef __deref_out_bcount_nz_opt
|
||||
#undef __nvapi_undef__deref_out_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_opt
|
||||
#undef __deref_inout_opt
|
||||
#undef __nvapi_undef__deref_inout_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_opt
|
||||
#undef __deref_inout_ecount_opt
|
||||
#undef __nvapi_undef__deref_inout_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_opt
|
||||
#undef __deref_inout_bcount_opt
|
||||
#undef __nvapi_undef__deref_inout_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_part_opt
|
||||
#undef __deref_inout_ecount_part_opt
|
||||
#undef __nvapi_undef__deref_inout_ecount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_part_opt
|
||||
#undef __deref_inout_bcount_part_opt
|
||||
#undef __nvapi_undef__deref_inout_bcount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_full_opt
|
||||
#undef __deref_inout_ecount_full_opt
|
||||
#undef __nvapi_undef__deref_inout_ecount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_full_opt
|
||||
#undef __deref_inout_bcount_full_opt
|
||||
#undef __nvapi_undef__deref_inout_bcount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_z_opt
|
||||
#undef __deref_inout_z_opt
|
||||
#undef __nvapi_undef__deref_inout_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_z_opt
|
||||
#undef __deref_inout_ecount_z_opt
|
||||
#undef __nvapi_undef__deref_inout_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_z_opt
|
||||
#undef __deref_inout_bcount_z_opt
|
||||
#undef __nvapi_undef__deref_inout_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_nz_opt
|
||||
#undef __deref_inout_nz_opt
|
||||
#undef __nvapi_undef__deref_inout_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_ecount_nz_opt
|
||||
#undef __deref_inout_ecount_nz_opt
|
||||
#undef __nvapi_undef__deref_inout_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_inout_bcount_nz_opt
|
||||
#undef __deref_inout_bcount_nz_opt
|
||||
#undef __nvapi_undef__deref_inout_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_ecount
|
||||
#undef __deref_opt_ecount
|
||||
#undef __nvapi_undef__deref_opt_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_bcount
|
||||
#undef __deref_opt_bcount
|
||||
#undef __nvapi_undef__deref_opt_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out
|
||||
#undef __deref_opt_out
|
||||
#undef __nvapi_undef__deref_opt_out
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_z
|
||||
#undef __deref_opt_out_z
|
||||
#undef __nvapi_undef__deref_opt_out_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount
|
||||
#undef __deref_opt_out_ecount
|
||||
#undef __nvapi_undef__deref_opt_out_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount
|
||||
#undef __deref_opt_out_bcount
|
||||
#undef __nvapi_undef__deref_opt_out_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_part
|
||||
#undef __deref_opt_out_ecount_part
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_part
|
||||
#undef __deref_opt_out_bcount_part
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_full
|
||||
#undef __deref_opt_out_ecount_full
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_full
|
||||
#undef __deref_opt_out_bcount_full
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout
|
||||
#undef __deref_opt_inout
|
||||
#undef __nvapi_undef__deref_opt_inout
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount
|
||||
#undef __deref_opt_inout_ecount
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount
|
||||
#undef __deref_opt_inout_bcount
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_part
|
||||
#undef __deref_opt_inout_ecount_part
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_part
|
||||
#undef __deref_opt_inout_bcount_part
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_part
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_full
|
||||
#undef __deref_opt_inout_ecount_full
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_full
|
||||
#undef __deref_opt_inout_bcount_full
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_full
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_z
|
||||
#undef __deref_opt_inout_z
|
||||
#undef __nvapi_undef__deref_opt_inout_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_z
|
||||
#undef __deref_opt_inout_ecount_z
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_z
|
||||
#undef __deref_opt_inout_bcount_z
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_z
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_nz
|
||||
#undef __deref_opt_inout_nz
|
||||
#undef __nvapi_undef__deref_opt_inout_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_nz
|
||||
#undef __deref_opt_inout_ecount_nz
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_nz
|
||||
#undef __deref_opt_inout_bcount_nz
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_nz
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_ecount_opt
|
||||
#undef __deref_opt_ecount_opt
|
||||
#undef __nvapi_undef__deref_opt_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_bcount_opt
|
||||
#undef __deref_opt_bcount_opt
|
||||
#undef __nvapi_undef__deref_opt_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_opt
|
||||
#undef __deref_opt_out_opt
|
||||
#undef __nvapi_undef__deref_opt_out_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_opt
|
||||
#undef __deref_opt_out_ecount_opt
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_opt
|
||||
#undef __deref_opt_out_bcount_opt
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_part_opt
|
||||
#undef __deref_opt_out_ecount_part_opt
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_part_opt
|
||||
#undef __deref_opt_out_bcount_part_opt
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_full_opt
|
||||
#undef __deref_opt_out_ecount_full_opt
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_full_opt
|
||||
#undef __deref_opt_out_bcount_full_opt
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_z_opt
|
||||
#undef __deref_opt_out_z_opt
|
||||
#undef __nvapi_undef__deref_opt_out_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_z_opt
|
||||
#undef __deref_opt_out_ecount_z_opt
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_z_opt
|
||||
#undef __deref_opt_out_bcount_z_opt
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_nz_opt
|
||||
#undef __deref_opt_out_nz_opt
|
||||
#undef __nvapi_undef__deref_opt_out_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_ecount_nz_opt
|
||||
#undef __deref_opt_out_ecount_nz_opt
|
||||
#undef __nvapi_undef__deref_opt_out_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_out_bcount_nz_opt
|
||||
#undef __deref_opt_out_bcount_nz_opt
|
||||
#undef __nvapi_undef__deref_opt_out_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_opt
|
||||
#undef __deref_opt_inout_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_opt
|
||||
#undef __deref_opt_inout_ecount_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_opt
|
||||
#undef __deref_opt_inout_bcount_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_part_opt
|
||||
#undef __deref_opt_inout_ecount_part_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_part_opt
|
||||
#undef __deref_opt_inout_bcount_part_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_part_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_full_opt
|
||||
#undef __deref_opt_inout_ecount_full_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_full_opt
|
||||
#undef __deref_opt_inout_bcount_full_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_full_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_z_opt
|
||||
#undef __deref_opt_inout_z_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_z_opt
|
||||
#undef __deref_opt_inout_ecount_z_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_z_opt
|
||||
#undef __deref_opt_inout_bcount_z_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_z_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_nz_opt
|
||||
#undef __deref_opt_inout_nz_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_ecount_nz_opt
|
||||
#undef __deref_opt_inout_ecount_nz_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_ecount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_undef__deref_opt_inout_bcount_nz_opt
|
||||
#undef __deref_opt_inout_bcount_nz_opt
|
||||
#undef __nvapi_undef__deref_opt_inout_bcount_nz_opt
|
||||
#endif
|
||||
#ifdef __nvapi_success
|
||||
#undef __success
|
||||
#undef __nvapi_success
|
||||
#endif
|
||||
#ifdef __nvapi__Ret_notnull_
|
||||
#undef __nvapi__Ret_notnull_
|
||||
#undef _Ret_notnull_
|
||||
#endif
|
||||
#ifdef __nvapi__Post_writable_byte_size_
|
||||
#undef __nvapi__Post_writable_byte_size_
|
||||
#undef _Post_writable_byte_size_
|
||||
#endif
|
||||
#ifdef __nvapi_Outptr_
|
||||
#undef __nvapi_Outptr_
|
||||
#undef _Outptr_
|
||||
#endif
|
||||
|
||||
#endif // __NVAPI_EMPTY_SAL
|
||||
821
external/nvapi/nvapi_lite_salstart.h
vendored
Normal file
821
external/nvapi/nvapi_lite_salstart.h
vendored
Normal file
@@ -0,0 +1,821 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ® 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
|
||||
// ====================================================
|
||||
// SAL related support
|
||||
// ====================================================
|
||||
|
||||
#ifndef __ecount
|
||||
#define __nvapi_undef__ecount
|
||||
#define __ecount(size)
|
||||
#endif
|
||||
#ifndef __bcount
|
||||
#define __nvapi_undef__bcount
|
||||
#define __bcount(size)
|
||||
#endif
|
||||
#ifndef __in
|
||||
#define __nvapi_undef__in
|
||||
#define __in
|
||||
#endif
|
||||
#ifndef __in_ecount
|
||||
#define __nvapi_undef__in_ecount
|
||||
#define __in_ecount(size)
|
||||
#endif
|
||||
#ifndef __in_bcount
|
||||
#define __nvapi_undef__in_bcount
|
||||
#define __in_bcount(size)
|
||||
#endif
|
||||
#ifndef __in_z
|
||||
#define __nvapi_undef__in_z
|
||||
#define __in_z
|
||||
#endif
|
||||
#ifndef __in_ecount_z
|
||||
#define __nvapi_undef__in_ecount_z
|
||||
#define __in_ecount_z(size)
|
||||
#endif
|
||||
#ifndef __in_bcount_z
|
||||
#define __nvapi_undef__in_bcount_z
|
||||
#define __in_bcount_z(size)
|
||||
#endif
|
||||
#ifndef __in_nz
|
||||
#define __nvapi_undef__in_nz
|
||||
#define __in_nz
|
||||
#endif
|
||||
#ifndef __in_ecount_nz
|
||||
#define __nvapi_undef__in_ecount_nz
|
||||
#define __in_ecount_nz(size)
|
||||
#endif
|
||||
#ifndef __in_bcount_nz
|
||||
#define __nvapi_undef__in_bcount_nz
|
||||
#define __in_bcount_nz(size)
|
||||
#endif
|
||||
#ifndef __out
|
||||
#define __nvapi_undef__out
|
||||
#define __out
|
||||
#endif
|
||||
#ifndef __out_ecount
|
||||
#define __nvapi_undef__out_ecount
|
||||
#define __out_ecount(size)
|
||||
#endif
|
||||
#ifndef __out_bcount
|
||||
#define __nvapi_undef__out_bcount
|
||||
#define __out_bcount(size)
|
||||
#endif
|
||||
#ifndef __out_ecount_part
|
||||
#define __nvapi_undef__out_ecount_part
|
||||
#define __out_ecount_part(size,length)
|
||||
#endif
|
||||
#ifndef __out_bcount_part
|
||||
#define __nvapi_undef__out_bcount_part
|
||||
#define __out_bcount_part(size,length)
|
||||
#endif
|
||||
#ifndef __out_ecount_full
|
||||
#define __nvapi_undef__out_ecount_full
|
||||
#define __out_ecount_full(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_full
|
||||
#define __nvapi_undef__out_bcount_full
|
||||
#define __out_bcount_full(size)
|
||||
#endif
|
||||
#ifndef __out_z
|
||||
#define __nvapi_undef__out_z
|
||||
#define __out_z
|
||||
#endif
|
||||
#ifndef __out_z_opt
|
||||
#define __nvapi_undef__out_z_opt
|
||||
#define __out_z_opt
|
||||
#endif
|
||||
#ifndef __out_ecount_z
|
||||
#define __nvapi_undef__out_ecount_z
|
||||
#define __out_ecount_z(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_z
|
||||
#define __nvapi_undef__out_bcount_z
|
||||
#define __out_bcount_z(size)
|
||||
#endif
|
||||
#ifndef __out_ecount_part_z
|
||||
#define __nvapi_undef__out_ecount_part_z
|
||||
#define __out_ecount_part_z(size,length)
|
||||
#endif
|
||||
#ifndef __out_bcount_part_z
|
||||
#define __nvapi_undef__out_bcount_part_z
|
||||
#define __out_bcount_part_z(size,length)
|
||||
#endif
|
||||
#ifndef __out_ecount_full_z
|
||||
#define __nvapi_undef__out_ecount_full_z
|
||||
#define __out_ecount_full_z(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_full_z
|
||||
#define __nvapi_undef__out_bcount_full_z
|
||||
#define __out_bcount_full_z(size)
|
||||
#endif
|
||||
#ifndef __out_nz
|
||||
#define __nvapi_undef__out_nz
|
||||
#define __out_nz
|
||||
#endif
|
||||
#ifndef __out_nz_opt
|
||||
#define __nvapi_undef__out_nz_opt
|
||||
#define __out_nz_opt
|
||||
#endif
|
||||
#ifndef __out_ecount_nz
|
||||
#define __nvapi_undef__out_ecount_nz
|
||||
#define __out_ecount_nz(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_nz
|
||||
#define __nvapi_undef__out_bcount_nz
|
||||
#define __out_bcount_nz(size)
|
||||
#endif
|
||||
#ifndef __inout
|
||||
#define __nvapi_undef__inout
|
||||
#define __inout
|
||||
#endif
|
||||
#ifndef __inout_ecount
|
||||
#define __nvapi_undef__inout_ecount
|
||||
#define __inout_ecount(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount
|
||||
#define __nvapi_undef__inout_bcount
|
||||
#define __inout_bcount(size)
|
||||
#endif
|
||||
#ifndef __inout_ecount_part
|
||||
#define __nvapi_undef__inout_ecount_part
|
||||
#define __inout_ecount_part(size,length)
|
||||
#endif
|
||||
#ifndef __inout_bcount_part
|
||||
#define __nvapi_undef__inout_bcount_part
|
||||
#define __inout_bcount_part(size,length)
|
||||
#endif
|
||||
#ifndef __inout_ecount_full
|
||||
#define __nvapi_undef__inout_ecount_full
|
||||
#define __inout_ecount_full(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_full
|
||||
#define __nvapi_undef__inout_bcount_full
|
||||
#define __inout_bcount_full(size)
|
||||
#endif
|
||||
#ifndef __inout_z
|
||||
#define __nvapi_undef__inout_z
|
||||
#define __inout_z
|
||||
#endif
|
||||
#ifndef __inout_ecount_z
|
||||
#define __nvapi_undef__inout_ecount_z
|
||||
#define __inout_ecount_z(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_z
|
||||
#define __nvapi_undef__inout_bcount_z
|
||||
#define __inout_bcount_z(size)
|
||||
#endif
|
||||
#ifndef __inout_nz
|
||||
#define __nvapi_undef__inout_nz
|
||||
#define __inout_nz
|
||||
#endif
|
||||
#ifndef __inout_ecount_nz
|
||||
#define __nvapi_undef__inout_ecount_nz
|
||||
#define __inout_ecount_nz(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_nz
|
||||
#define __nvapi_undef__inout_bcount_nz
|
||||
#define __inout_bcount_nz(size)
|
||||
#endif
|
||||
#ifndef __ecount_opt
|
||||
#define __nvapi_undef__ecount_opt
|
||||
#define __ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __bcount_opt
|
||||
#define __nvapi_undef__bcount_opt
|
||||
#define __bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __in_opt
|
||||
#define __nvapi_undef__in_opt
|
||||
#define __in_opt
|
||||
#endif
|
||||
#ifndef __in_ecount_opt
|
||||
#define __nvapi_undef__in_ecount_opt
|
||||
#define __in_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __in_bcount_opt
|
||||
#define __nvapi_undef__in_bcount_opt
|
||||
#define __in_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __in_z_opt
|
||||
#define __nvapi_undef__in_z_opt
|
||||
#define __in_z_opt
|
||||
#endif
|
||||
#ifndef __in_ecount_z_opt
|
||||
#define __nvapi_undef__in_ecount_z_opt
|
||||
#define __in_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __in_bcount_z_opt
|
||||
#define __nvapi_undef__in_bcount_z_opt
|
||||
#define __in_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __in_nz_opt
|
||||
#define __nvapi_undef__in_nz_opt
|
||||
#define __in_nz_opt
|
||||
#endif
|
||||
#ifndef __in_ecount_nz_opt
|
||||
#define __nvapi_undef__in_ecount_nz_opt
|
||||
#define __in_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __in_bcount_nz_opt
|
||||
#define __nvapi_undef__in_bcount_nz_opt
|
||||
#define __in_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __out_opt
|
||||
#define __nvapi_undef__out_opt
|
||||
#define __out_opt
|
||||
#endif
|
||||
#ifndef __out_ecount_opt
|
||||
#define __nvapi_undef__out_ecount_opt
|
||||
#define __out_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_opt
|
||||
#define __nvapi_undef__out_bcount_opt
|
||||
#define __out_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __out_ecount_part_opt
|
||||
#define __nvapi_undef__out_ecount_part_opt
|
||||
#define __out_ecount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __out_bcount_part_opt
|
||||
#define __nvapi_undef__out_bcount_part_opt
|
||||
#define __out_bcount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __out_ecount_full_opt
|
||||
#define __nvapi_undef__out_ecount_full_opt
|
||||
#define __out_ecount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_full_opt
|
||||
#define __nvapi_undef__out_bcount_full_opt
|
||||
#define __out_bcount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __out_ecount_z_opt
|
||||
#define __nvapi_undef__out_ecount_z_opt
|
||||
#define __out_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_z_opt
|
||||
#define __nvapi_undef__out_bcount_z_opt
|
||||
#define __out_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __out_ecount_part_z_opt
|
||||
#define __nvapi_undef__out_ecount_part_z_opt
|
||||
#define __out_ecount_part_z_opt(size,length)
|
||||
#endif
|
||||
#ifndef __out_bcount_part_z_opt
|
||||
#define __nvapi_undef__out_bcount_part_z_opt
|
||||
#define __out_bcount_part_z_opt(size,length)
|
||||
#endif
|
||||
#ifndef __out_ecount_full_z_opt
|
||||
#define __nvapi_undef__out_ecount_full_z_opt
|
||||
#define __out_ecount_full_z_opt(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_full_z_opt
|
||||
#define __nvapi_undef__out_bcount_full_z_opt
|
||||
#define __out_bcount_full_z_opt(size)
|
||||
#endif
|
||||
#ifndef __out_ecount_nz_opt
|
||||
#define __nvapi_undef__out_ecount_nz_opt
|
||||
#define __out_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __out_bcount_nz_opt
|
||||
#define __nvapi_undef__out_bcount_nz_opt
|
||||
#define __out_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_opt
|
||||
#define __nvapi_undef__inout_opt
|
||||
#define __inout_opt
|
||||
#endif
|
||||
#ifndef __inout_ecount_opt
|
||||
#define __nvapi_undef__inout_ecount_opt
|
||||
#define __inout_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_opt
|
||||
#define __nvapi_undef__inout_bcount_opt
|
||||
#define __inout_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_ecount_part_opt
|
||||
#define __nvapi_undef__inout_ecount_part_opt
|
||||
#define __inout_ecount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __inout_bcount_part_opt
|
||||
#define __nvapi_undef__inout_bcount_part_opt
|
||||
#define __inout_bcount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __inout_ecount_full_opt
|
||||
#define __nvapi_undef__inout_ecount_full_opt
|
||||
#define __inout_ecount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_full_opt
|
||||
#define __nvapi_undef__inout_bcount_full_opt
|
||||
#define __inout_bcount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_z_opt
|
||||
#define __nvapi_undef__inout_z_opt
|
||||
#define __inout_z_opt
|
||||
#endif
|
||||
#ifndef __inout_ecount_z_opt
|
||||
#define __nvapi_undef__inout_ecount_z_opt
|
||||
#define __inout_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_ecount_z_opt
|
||||
#define __nvapi_undef__inout_ecount_z_opt
|
||||
#define __inout_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_z_opt
|
||||
#define __nvapi_undef__inout_bcount_z_opt
|
||||
#define __inout_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_nz_opt
|
||||
#define __nvapi_undef__inout_nz_opt
|
||||
#define __inout_nz_opt
|
||||
#endif
|
||||
#ifndef __inout_ecount_nz_opt
|
||||
#define __nvapi_undef__inout_ecount_nz_opt
|
||||
#define __inout_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __inout_bcount_nz_opt
|
||||
#define __nvapi_undef__inout_bcount_nz_opt
|
||||
#define __inout_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_ecount
|
||||
#define __nvapi_undef__deref_ecount
|
||||
#define __deref_ecount(size)
|
||||
#endif
|
||||
#ifndef __deref_bcount
|
||||
#define __nvapi_undef__deref_bcount
|
||||
#define __deref_bcount(size)
|
||||
#endif
|
||||
#ifndef __deref_out
|
||||
#define __nvapi_undef__deref_out
|
||||
#define __deref_out
|
||||
#endif
|
||||
#ifndef __deref_out_ecount
|
||||
#define __nvapi_undef__deref_out_ecount
|
||||
#define __deref_out_ecount(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount
|
||||
#define __nvapi_undef__deref_out_bcount
|
||||
#define __deref_out_bcount(size)
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_part
|
||||
#define __nvapi_undef__deref_out_ecount_part
|
||||
#define __deref_out_ecount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_part
|
||||
#define __nvapi_undef__deref_out_bcount_part
|
||||
#define __deref_out_bcount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_full
|
||||
#define __nvapi_undef__deref_out_ecount_full
|
||||
#define __deref_out_ecount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_full
|
||||
#define __nvapi_undef__deref_out_bcount_full
|
||||
#define __deref_out_bcount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_out_z
|
||||
#define __nvapi_undef__deref_out_z
|
||||
#define __deref_out_z
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_z
|
||||
#define __nvapi_undef__deref_out_ecount_z
|
||||
#define __deref_out_ecount_z(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_z
|
||||
#define __nvapi_undef__deref_out_bcount_z
|
||||
#define __deref_out_bcount_z(size)
|
||||
#endif
|
||||
#ifndef __deref_out_nz
|
||||
#define __nvapi_undef__deref_out_nz
|
||||
#define __deref_out_nz
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_nz
|
||||
#define __nvapi_undef__deref_out_ecount_nz
|
||||
#define __deref_out_ecount_nz(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_nz
|
||||
#define __nvapi_undef__deref_out_bcount_nz
|
||||
#define __deref_out_bcount_nz(size)
|
||||
#endif
|
||||
#ifndef __deref_inout
|
||||
#define __nvapi_undef__deref_inout
|
||||
#define __deref_inout
|
||||
#endif
|
||||
#ifndef __deref_inout_z
|
||||
#define __nvapi_undef__deref_inout_z
|
||||
#define __deref_inout_z
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount
|
||||
#define __nvapi_undef__deref_inout_ecount
|
||||
#define __deref_inout_ecount(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount
|
||||
#define __nvapi_undef__deref_inout_bcount
|
||||
#define __deref_inout_bcount(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_part
|
||||
#define __nvapi_undef__deref_inout_ecount_part
|
||||
#define __deref_inout_ecount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_part
|
||||
#define __nvapi_undef__deref_inout_bcount_part
|
||||
#define __deref_inout_bcount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_full
|
||||
#define __nvapi_undef__deref_inout_ecount_full
|
||||
#define __deref_inout_ecount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_full
|
||||
#define __nvapi_undef__deref_inout_bcount_full
|
||||
#define __deref_inout_bcount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_z
|
||||
#define __nvapi_undef__deref_inout_z
|
||||
#define __deref_inout_z
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_z
|
||||
#define __nvapi_undef__deref_inout_ecount_z
|
||||
#define __deref_inout_ecount_z(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_z
|
||||
#define __nvapi_undef__deref_inout_bcount_z
|
||||
#define __deref_inout_bcount_z(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_nz
|
||||
#define __nvapi_undef__deref_inout_nz
|
||||
#define __deref_inout_nz
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_nz
|
||||
#define __nvapi_undef__deref_inout_ecount_nz
|
||||
#define __deref_inout_ecount_nz(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_nz
|
||||
#define __nvapi_undef__deref_inout_bcount_nz
|
||||
#define __deref_inout_bcount_nz(size)
|
||||
#endif
|
||||
#ifndef __deref_ecount_opt
|
||||
#define __nvapi_undef__deref_ecount_opt
|
||||
#define __deref_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_bcount_opt
|
||||
#define __nvapi_undef__deref_bcount_opt
|
||||
#define __deref_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_opt
|
||||
#define __nvapi_undef__deref_out_opt
|
||||
#define __deref_out_opt
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_opt
|
||||
#define __nvapi_undef__deref_out_ecount_opt
|
||||
#define __deref_out_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_opt
|
||||
#define __nvapi_undef__deref_out_bcount_opt
|
||||
#define __deref_out_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_part_opt
|
||||
#define __nvapi_undef__deref_out_ecount_part_opt
|
||||
#define __deref_out_ecount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_part_opt
|
||||
#define __nvapi_undef__deref_out_bcount_part_opt
|
||||
#define __deref_out_bcount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_full_opt
|
||||
#define __nvapi_undef__deref_out_ecount_full_opt
|
||||
#define __deref_out_ecount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_full_opt
|
||||
#define __nvapi_undef__deref_out_bcount_full_opt
|
||||
#define __deref_out_bcount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_z_opt
|
||||
#define __nvapi_undef__deref_out_z_opt
|
||||
#define __deref_out_z_opt
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_z_opt
|
||||
#define __nvapi_undef__deref_out_ecount_z_opt
|
||||
#define __deref_out_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_z_opt
|
||||
#define __nvapi_undef__deref_out_bcount_z_opt
|
||||
#define __deref_out_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_nz_opt
|
||||
#define __nvapi_undef__deref_out_nz_opt
|
||||
#define __deref_out_nz_opt
|
||||
#endif
|
||||
#ifndef __deref_out_ecount_nz_opt
|
||||
#define __nvapi_undef__deref_out_ecount_nz_opt
|
||||
#define __deref_out_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_out_bcount_nz_opt
|
||||
#define __nvapi_undef__deref_out_bcount_nz_opt
|
||||
#define __deref_out_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_opt
|
||||
#define __nvapi_undef__deref_inout_opt
|
||||
#define __deref_inout_opt
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_opt
|
||||
#define __nvapi_undef__deref_inout_ecount_opt
|
||||
#define __deref_inout_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_opt
|
||||
#define __nvapi_undef__deref_inout_bcount_opt
|
||||
#define __deref_inout_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_part_opt
|
||||
#define __nvapi_undef__deref_inout_ecount_part_opt
|
||||
#define __deref_inout_ecount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_part_opt
|
||||
#define __nvapi_undef__deref_inout_bcount_part_opt
|
||||
#define __deref_inout_bcount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_full_opt
|
||||
#define __nvapi_undef__deref_inout_ecount_full_opt
|
||||
#define __deref_inout_ecount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_full_opt
|
||||
#define __nvapi_undef__deref_inout_bcount_full_opt
|
||||
#define __deref_inout_bcount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_z_opt
|
||||
#define __nvapi_undef__deref_inout_z_opt
|
||||
#define __deref_inout_z_opt
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_z_opt
|
||||
#define __nvapi_undef__deref_inout_ecount_z_opt
|
||||
#define __deref_inout_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_z_opt
|
||||
#define __nvapi_undef__deref_inout_bcount_z_opt
|
||||
#define __deref_inout_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_nz_opt
|
||||
#define __nvapi_undef__deref_inout_nz_opt
|
||||
#define __deref_inout_nz_opt
|
||||
#endif
|
||||
#ifndef __deref_inout_ecount_nz_opt
|
||||
#define __nvapi_undef__deref_inout_ecount_nz_opt
|
||||
#define __deref_inout_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_inout_bcount_nz_opt
|
||||
#define __nvapi_undef__deref_inout_bcount_nz_opt
|
||||
#define __deref_inout_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_ecount
|
||||
#define __nvapi_undef__deref_opt_ecount
|
||||
#define __deref_opt_ecount(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_bcount
|
||||
#define __nvapi_undef__deref_opt_bcount
|
||||
#define __deref_opt_bcount(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out
|
||||
#define __nvapi_undef__deref_opt_out
|
||||
#define __deref_opt_out
|
||||
#endif
|
||||
#ifndef __deref_opt_out_z
|
||||
#define __nvapi_undef__deref_opt_out_z
|
||||
#define __deref_opt_out_z
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount
|
||||
#define __nvapi_undef__deref_opt_out_ecount
|
||||
#define __deref_opt_out_ecount(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount
|
||||
#define __nvapi_undef__deref_opt_out_bcount
|
||||
#define __deref_opt_out_bcount(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_part
|
||||
#define __nvapi_undef__deref_opt_out_ecount_part
|
||||
#define __deref_opt_out_ecount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_part
|
||||
#define __nvapi_undef__deref_opt_out_bcount_part
|
||||
#define __deref_opt_out_bcount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_full
|
||||
#define __nvapi_undef__deref_opt_out_ecount_full
|
||||
#define __deref_opt_out_ecount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_full
|
||||
#define __nvapi_undef__deref_opt_out_bcount_full
|
||||
#define __deref_opt_out_bcount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout
|
||||
#define __nvapi_undef__deref_opt_inout
|
||||
#define __deref_opt_inout
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount
|
||||
#define __nvapi_undef__deref_opt_inout_ecount
|
||||
#define __deref_opt_inout_ecount(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount
|
||||
#define __nvapi_undef__deref_opt_inout_bcount
|
||||
#define __deref_opt_inout_bcount(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_part
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_part
|
||||
#define __deref_opt_inout_ecount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_part
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_part
|
||||
#define __deref_opt_inout_bcount_part(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_full
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_full
|
||||
#define __deref_opt_inout_ecount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_full
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_full
|
||||
#define __deref_opt_inout_bcount_full(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_z
|
||||
#define __nvapi_undef__deref_opt_inout_z
|
||||
#define __deref_opt_inout_z
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_z
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_z
|
||||
#define __deref_opt_inout_ecount_z(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_z
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_z
|
||||
#define __deref_opt_inout_bcount_z(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_nz
|
||||
#define __nvapi_undef__deref_opt_inout_nz
|
||||
#define __deref_opt_inout_nz
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_nz
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_nz
|
||||
#define __deref_opt_inout_ecount_nz(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_nz
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_nz
|
||||
#define __deref_opt_inout_bcount_nz(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_ecount_opt
|
||||
#define __nvapi_undef__deref_opt_ecount_opt
|
||||
#define __deref_opt_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_bcount_opt
|
||||
#define __nvapi_undef__deref_opt_bcount_opt
|
||||
#define __deref_opt_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_opt
|
||||
#define __nvapi_undef__deref_opt_out_opt
|
||||
#define __deref_opt_out_opt
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_opt
|
||||
#define __nvapi_undef__deref_opt_out_ecount_opt
|
||||
#define __deref_opt_out_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_opt
|
||||
#define __nvapi_undef__deref_opt_out_bcount_opt
|
||||
#define __deref_opt_out_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_part_opt
|
||||
#define __nvapi_undef__deref_opt_out_ecount_part_opt
|
||||
#define __deref_opt_out_ecount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_part_opt
|
||||
#define __nvapi_undef__deref_opt_out_bcount_part_opt
|
||||
#define __deref_opt_out_bcount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_full_opt
|
||||
#define __nvapi_undef__deref_opt_out_ecount_full_opt
|
||||
#define __deref_opt_out_ecount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_full_opt
|
||||
#define __nvapi_undef__deref_opt_out_bcount_full_opt
|
||||
#define __deref_opt_out_bcount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_z_opt
|
||||
#define __nvapi_undef__deref_opt_out_z_opt
|
||||
#define __deref_opt_out_z_opt
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_z_opt
|
||||
#define __nvapi_undef__deref_opt_out_ecount_z_opt
|
||||
#define __deref_opt_out_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_z_opt
|
||||
#define __nvapi_undef__deref_opt_out_bcount_z_opt
|
||||
#define __deref_opt_out_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_nz_opt
|
||||
#define __nvapi_undef__deref_opt_out_nz_opt
|
||||
#define __deref_opt_out_nz_opt
|
||||
#endif
|
||||
#ifndef __deref_opt_out_ecount_nz_opt
|
||||
#define __nvapi_undef__deref_opt_out_ecount_nz_opt
|
||||
#define __deref_opt_out_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_out_bcount_nz_opt
|
||||
#define __nvapi_undef__deref_opt_out_bcount_nz_opt
|
||||
#define __deref_opt_out_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_opt
|
||||
#define __nvapi_undef__deref_opt_inout_opt
|
||||
#define __deref_opt_inout_opt
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_opt
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_opt
|
||||
#define __deref_opt_inout_ecount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_opt
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_opt
|
||||
#define __deref_opt_inout_bcount_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_part_opt
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_part_opt
|
||||
#define __deref_opt_inout_ecount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_part_opt
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_part_opt
|
||||
#define __deref_opt_inout_bcount_part_opt(size,length)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_full_opt
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_full_opt
|
||||
#define __deref_opt_inout_ecount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_full_opt
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_full_opt
|
||||
#define __deref_opt_inout_bcount_full_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_z_opt
|
||||
#define __nvapi_undef__deref_opt_inout_z_opt
|
||||
#define __deref_opt_inout_z_opt
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_z_opt
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_z_opt
|
||||
#define __deref_opt_inout_ecount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_z_opt
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_z_opt
|
||||
#define __deref_opt_inout_bcount_z_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_nz_opt
|
||||
#define __nvapi_undef__deref_opt_inout_nz_opt
|
||||
#define __deref_opt_inout_nz_opt
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_ecount_nz_opt
|
||||
#define __nvapi_undef__deref_opt_inout_ecount_nz_opt
|
||||
#define __deref_opt_inout_ecount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __deref_opt_inout_bcount_nz_opt
|
||||
#define __nvapi_undef__deref_opt_inout_bcount_nz_opt
|
||||
#define __deref_opt_inout_bcount_nz_opt(size)
|
||||
#endif
|
||||
#ifndef __success
|
||||
#define __nvapi_success
|
||||
#define __success(epxr)
|
||||
#endif
|
||||
#ifndef _Ret_notnull_
|
||||
#define __nvapi__Ret_notnull_
|
||||
#define _Ret_notnull_
|
||||
#endif
|
||||
#ifndef _Post_writable_byte_size_
|
||||
#define __nvapi__Post_writable_byte_size_
|
||||
#define _Post_writable_byte_size_(n)
|
||||
#endif
|
||||
#ifndef _Outptr_
|
||||
#define __nvapi_Outptr_
|
||||
#define _Outptr_
|
||||
#endif
|
||||
|
||||
|
||||
#define NVAPI_INTERFACE extern __success(return == NVAPI_OK) NvAPI_Status __cdecl
|
||||
255
external/nvapi/nvapi_lite_sli.h
vendored
Normal file
255
external/nvapi/nvapi_lite_sli.h
vendored
Normal file
@@ -0,0 +1,255 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ® 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include"nvapi_lite_salstart.h"
|
||||
#include"nvapi_lite_common.h"
|
||||
#pragma pack(push,8)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
//-----------------------------------------------------------------------------
|
||||
// DirectX APIs
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
//! \ingroup dx
|
||||
//! Used in NvAPI_D3D10_GetCurrentSLIState(), and NvAPI_D3D_GetCurrentSLIState().
|
||||
typedef struct
|
||||
{
|
||||
NvU32 version; //!< Structure version
|
||||
NvU32 maxNumAFRGroups; //!< [OUT] The maximum possible value of numAFRGroups
|
||||
NvU32 numAFRGroups; //!< [OUT] The number of AFR groups enabled in the system
|
||||
NvU32 currentAFRIndex; //!< [OUT] The AFR group index for the frame currently being rendered
|
||||
NvU32 nextFrameAFRIndex; //!< [OUT] What the AFR group index will be for the next frame (i.e. after calling Present)
|
||||
NvU32 previousFrameAFRIndex; //!< [OUT] The AFR group index that was used for the previous frame (~0 if more than one frame has not been rendered yet)
|
||||
NvU32 bIsCurAFRGroupNew; //!< [OUT] Boolean: Is this frame the first time running on the current AFR group
|
||||
|
||||
} NV_GET_CURRENT_SLI_STATE_V1;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
NvU32 version; //!< Structure version
|
||||
NvU32 maxNumAFRGroups; //!< [OUT] The maximum possible value of numAFRGroups
|
||||
NvU32 numAFRGroups; //!< [OUT] The number of AFR groups enabled in the system
|
||||
NvU32 currentAFRIndex; //!< [OUT] The AFR group index for the frame currently being rendered
|
||||
NvU32 nextFrameAFRIndex; //!< [OUT] What the AFR group index will be for the next frame (i.e. after calling Present)
|
||||
NvU32 previousFrameAFRIndex; //!< [OUT] The AFR group index that was used for the previous frame (~0 if more than one frame has not been rendered yet)
|
||||
NvU32 bIsCurAFRGroupNew; //!< [OUT] Boolean: Is this frame the first time running on the current AFR group
|
||||
NvU32 numVRSLIGpus; //!< [OUT] The number of GPUs used in VR-SLI. If it is 0 VR-SLI is not active
|
||||
|
||||
} NV_GET_CURRENT_SLI_STATE_V2;
|
||||
|
||||
//! \ingroup dx
|
||||
#define NV_GET_CURRENT_SLI_STATE_VER1 MAKE_NVAPI_VERSION(NV_GET_CURRENT_SLI_STATE_V1,1)
|
||||
#define NV_GET_CURRENT_SLI_STATE_VER2 MAKE_NVAPI_VERSION(NV_GET_CURRENT_SLI_STATE_V2,1)
|
||||
#define NV_GET_CURRENT_SLI_STATE_VER NV_GET_CURRENT_SLI_STATE_VER2
|
||||
#define NV_GET_CURRENT_SLI_STATE NV_GET_CURRENT_SLI_STATE_V2
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D_GetCurrentSLIState
|
||||
//
|
||||
//! DESCRIPTION: This function returns the current SLI state for the specified device. The structure
|
||||
//! contains the number of AFR groups, the current AFR group index,
|
||||
//! and what the AFR group index will be for the next frame. \p
|
||||
//! pDevice can be either a IDirect3DDevice9 or ID3D10Device pointer.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 173
|
||||
//!
|
||||
//! \retval NVAPI_OK Completed request
|
||||
//! \retval NVAPI_ERROR Error occurred
|
||||
//!
|
||||
//! \ingroup dx
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_D3D_GetCurrentSLIState(IUnknown *pDevice, NV_GET_CURRENT_SLI_STATE *pSliState);
|
||||
#endif //if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D_SetResourceHint
|
||||
//
|
||||
//! \fn NvAPI_D3D_SetResourceHint(IUnknown *pDev, NVDX_ObjectHandle obj,
|
||||
//! NVAPI_D3D_SETRESOURCEHINT_CATEGORY dwHintCategory,
|
||||
//! NvU32 dwHintName,
|
||||
//! NvU32 *pdwHintValue)
|
||||
//!
|
||||
//! DESCRIPTION: This is a general purpose function for passing down various resource
|
||||
//! related hints to the driver. Hints are divided into categories
|
||||
//! and types within each category. For DX11 devices this function is free-threaded.
|
||||
//! An application is responsible to complete this call before making use of the resource
|
||||
//! in a rendering context (therefore applying inter-thread synchronization as appropriate).
|
||||
//! As a debug help to an application the driver enforces that a resource in this call was never bound.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 185
|
||||
//!
|
||||
//! \param [in] pDev The ID3D10Device or IDirect3DDevice9 that is a using the resource
|
||||
//! \param [in] obj Previously obtained HV resource handle
|
||||
//! \param [in] dwHintCategory Category of the hints
|
||||
//! \param [in] dwHintName A hint within this category
|
||||
//! \param [in/out] *pdwHintValue Pointer to location containing hint value, function returns previous hint value in this slot
|
||||
//!
|
||||
//! \return an int which could be an NvAPI status or DX HRESULT code
|
||||
//!
|
||||
//! \retval ::NVAPI_OK
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT
|
||||
//! \retval ::NVAPI_INVALID_CALL It is illegal to change a hint dynamically when the resource is already bound.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//! \ingroup dx
|
||||
//! Valid categories for NvAPI_D3D_SetResourceHint()
|
||||
typedef enum _NVAPI_D3D_SETRESOURCEHINT_CATEGORY
|
||||
{
|
||||
NVAPI_D3D_SRH_CATEGORY_SLI = 1
|
||||
} NVAPI_D3D_SETRESOURCEHINT_CATEGORY;
|
||||
|
||||
|
||||
//
|
||||
// NVAPI_D3D_SRH_SLI_APP_CONTROLLED_INTERFRAME_CONTENT_SYNC:
|
||||
// NVAPI_D3D_SRH_SLI_ASK_FOR_BROADCAST_USING:
|
||||
// NVAPI_D3D_SRH_SLI_RESPECT_DRIVER_INTERFRAME_CONTENT_SYNC:
|
||||
|
||||
|
||||
//! \ingroup dx
|
||||
//! Types of SLI hints; \n
|
||||
//! NVAPI_D3D_SRH_SLI_APP_CONTROLLED_INTERFRAME_CONTENT_SYNC: Valid values : 0 or 1 \n
|
||||
//! Default value: 0 \n
|
||||
//! Explanation: If the value is 1, the driver will not track any rendering operations that would mark this resource as dirty,
|
||||
//! avoiding any form of synchronization across frames rendered in parallel in multiple GPUs in AFR mode.
|
||||
//!
|
||||
//! NVAPI_D3D_SRH_SLI_ASK_FOR_BROADCAST_USAGE: Valid values : 0 or 1 \n
|
||||
//! Default value: 0 \n
|
||||
//! Explanation: If the value is 1, the driver will try to perform operations which involved target resource in broadcast,
|
||||
//! where it's possible. Hint is static and must be set before resource starts using.
|
||||
//!
|
||||
//! NVAPI_D3D_SRH_SLI_RESPECT_DRIVER_INTERFRAME_CONTENT_SYNC: Valid values : 0 or 1 \n
|
||||
//! Default value: 0 \n
|
||||
//! Explanation: If the value is 1, the driver will do dirty resource resolve regardless of discard flags in the application profile or
|
||||
//! AFR-FriendlyD3DHints.exe name using.
|
||||
//!
|
||||
typedef enum _NVAPI_D3D_SETRESOURCEHINT_SLI
|
||||
{
|
||||
NVAPI_D3D_SRH_SLI_APP_CONTROLLED_INTERFRAME_CONTENT_SYNC = 1,
|
||||
NVAPI_D3D_SRH_SLI_ASK_FOR_BROADCAST_USAGE = 2,
|
||||
NVAPI_D3D_SRH_SLI_RESPECT_DRIVER_INTERFRAME_CONTENT_SYNC = 3
|
||||
} NVAPI_D3D_SETRESOURCEHINT_SLI;
|
||||
|
||||
//! \ingroup dx
|
||||
NVAPI_INTERFACE NvAPI_D3D_SetResourceHint(IUnknown *pDev, NVDX_ObjectHandle obj,
|
||||
NVAPI_D3D_SETRESOURCEHINT_CATEGORY dwHintCategory,
|
||||
NvU32 dwHintName,
|
||||
NvU32 *pdwHintValue);
|
||||
#endif //defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D_BeginResourceRendering
|
||||
//
|
||||
//! \fn NvAPI_D3D_BeginResourceRendering(IUnknown *pDeviceOrContext, NVDX_ObjectHandle obj, NvU32 Flags)
|
||||
//! DESCRIPTION: This function tells the driver that the resource will begin to receive updates. It must be used in combination with NvAPI_D3D_EndResourceRendering().
|
||||
//! The primary use of this function is allow the driver to initiate early inter-frame synchronization of resources while running in AFR SLI mode.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 185
|
||||
//!
|
||||
//! \param [in] pDev IDirect3DDevice9, ID3D10Device, ID3D11Device or ID3D11DeviceContext that is using the resource
|
||||
//! \param [in] obj Previously obtained HV resource handle
|
||||
//! \param [in] Flags The flags for functionality applied to resource while being used.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Function succeeded, if used properly and driver can initiate proper sync'ing of the resources.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT Bad argument(s) or invalid flag values
|
||||
//! \retval ::NVAPI_INVALID_CALL Mismatched begin/end calls
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//! \ingroup dx
|
||||
//! Used in NvAPI_D3D_BeginResourceRendering().
|
||||
typedef enum _NVAPI_D3D_RESOURCERENDERING_FLAG
|
||||
{
|
||||
NVAPI_D3D_RR_FLAG_DEFAULTS = 0x00000000, //!< All bits set to 0 are defaults.
|
||||
NVAPI_D3D_RR_FLAG_FORCE_DISCARD_CONTENT = 0x00000001, //!< (bit 0) The flag forces to discard previous content of the resource regardless of the NvApiHints_Sli_Disable_InterframeSync hint
|
||||
NVAPI_D3D_RR_FLAG_FORCE_KEEP_CONTENT = 0x00000002, //!< (bit 1) The flag forces to respect previous content of the resource regardless of the NvApiHints_Sli_Disable_InterframeSync hint
|
||||
NVAPI_D3D_RR_FLAG_MULTI_FRAME = 0x00000004 //!< (bit 2) The flag hints the driver that content will be used for many frames. If not specified then the driver assumes that content is used only on the next frame
|
||||
} NVAPI_D3D_RESOURCERENDERING_FLAG;
|
||||
|
||||
//! \ingroup dx
|
||||
NVAPI_INTERFACE NvAPI_D3D_BeginResourceRendering(IUnknown *pDeviceOrContext, NVDX_ObjectHandle obj, NvU32 Flags);
|
||||
|
||||
#endif //defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_D3D_EndResourceRendering
|
||||
//
|
||||
//! DESCRIPTION: This function tells the driver that the resource is done receiving updates. It must be used in combination with
|
||||
//! NvAPI_D3D_BeginResourceRendering().
|
||||
//! The primary use of this function is allow the driver to initiate early inter-frame syncs of resources while running in AFR SLI mode.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 185
|
||||
//!
|
||||
//! \param [in] pDev IDirect3DDevice9, ID3D10Device, ID3D11Device or ID3D11DeviceContext that is using the resource
|
||||
//! \param [in] obj Previously obtained HV resource handle
|
||||
//! \param [in] Flags Reserved, must be zero
|
||||
//
|
||||
//! \retval ::NVAPI_OK Function succeeded, if used properly and driver can initiate proper sync'ing of the resources.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT Bad argument(s) or invalid flag values
|
||||
//! \retval ::NVAPI_INVALID_CALL Mismatched begin/end calls
|
||||
//!
|
||||
//! \ingroup dx
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_D3D_EndResourceRendering(IUnknown *pDeviceOrContext, NVDX_ObjectHandle obj, NvU32 Flags);
|
||||
#endif //if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)
|
||||
|
||||
#include"nvapi_lite_salend.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#pragma pack(pop)
|
||||
600
external/nvapi/nvapi_lite_stereo.h
vendored
Normal file
600
external/nvapi/nvapi_lite_stereo.h
vendored
Normal file
@@ -0,0 +1,600 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ® 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include"nvapi_lite_salstart.h"
|
||||
#include"nvapi_lite_common.h"
|
||||
#pragma pack(push,8)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_Enable
|
||||
//
|
||||
//! DESCRIPTION: This APU enables stereo mode in the registry.
|
||||
//! Calls to this function affect the entire system.
|
||||
//! If stereo is not enabled, then calls to functions that require that stereo is enabled have no effect,
|
||||
//! and will return the appropriate error code.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Stereo is now enabled.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_Enable(void);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_Disable
|
||||
//
|
||||
//! DESCRIPTION: This API disables stereo mode in the registry.
|
||||
//! Calls to this function affect the entire system.
|
||||
//! If stereo is not enabled, then calls to functions that require that stereo is enabled have no effect,
|
||||
//! and will return the appropriate error code.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Stereo is now disabled.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_Disable(void);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_IsEnabled
|
||||
//
|
||||
//! DESCRIPTION: This API checks if stereo mode is enabled in the registry.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [out] pIsStereoEnabled Address where the result of the inquiry will be placed.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Check was sucessfully completed and result reflects current state of stereo availability.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_IsEnabled(NvU8 *pIsStereoEnabled);
|
||||
#if defined(_D3D9_H_) || defined(__d3d10_h__) || defined(__d3d11_h__)|| defined(__d3d12_h__)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_CreateHandleFromIUnknown
|
||||
//
|
||||
//! DESCRIPTION: This API creates a stereo handle that is used in subsequent calls related to a given device interface.
|
||||
//! This must be called before any other NvAPI_Stereo_ function for that handle.
|
||||
//! Multiple devices can be used at one time using multiple calls to this function (one per each device).
|
||||
//!
|
||||
//! HOW TO USE: After the Direct3D device is created, create the stereo handle.
|
||||
//! On call success:
|
||||
//! -# Use all other NvAPI_Stereo_ functions that have stereo handle as first parameter.
|
||||
//! -# After the device interface that corresponds to the the stereo handle is destroyed,
|
||||
//! the application should call NvAPI_DestroyStereoHandle() for that stereo handle.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] pDevice Pointer to IUnknown interface that is IDirect3DDevice9* in DX9, ID3D10Device*.
|
||||
//! \param [out] pStereoHandle Pointer to the newly created stereo handle.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Stereo handle is created for given device interface.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT Provided device interface is invalid.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_CreateHandleFromIUnknown(IUnknown *pDevice, StereoHandle *pStereoHandle);
|
||||
|
||||
#endif // defined(_D3D9_H_) || defined(__d3d10_h__)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_DestroyHandle
|
||||
//
|
||||
//! DESCRIPTION: This API destroys the stereo handle created with one of the NvAPI_Stereo_CreateHandleFrom() functions.
|
||||
//! This should be called after the device corresponding to the handle has been destroyed.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that is to be destroyed.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Stereo handle is destroyed.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_DestroyHandle(StereoHandle stereoHandle);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_Activate
|
||||
//
|
||||
//! DESCRIPTION: This API activates stereo for the device interface corresponding to the given stereo handle.
|
||||
//! Activating stereo is possible only if stereo was enabled previously in the registry.
|
||||
//! If stereo is not activated, then calls to functions that require that stereo is activated have no effect,
|
||||
//! and will return the appropriate error code.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle corresponding to the device interface.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Stereo is turned on.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_Activate(StereoHandle stereoHandle);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_Deactivate
|
||||
//
|
||||
//! DESCRIPTION: This API deactivates stereo for the given device interface.
|
||||
//! If stereo is not activated, then calls to functions that require that stereo is activated have no effect,
|
||||
//! and will return the appropriate error code.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Stereo is turned off.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_Deactivate(StereoHandle stereoHandle);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_IsActivated
|
||||
//
|
||||
//! DESCRIPTION: This API checks if stereo is activated for the given device interface.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [in] pIsStereoOn Address where result of the inquiry will be placed.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK - Check was sucessfully completed and result reflects current state of stereo (on/off).
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE - Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED - NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED - Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR - Something is wrong (generic error).
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_IsActivated(StereoHandle stereoHandle, NvU8 *pIsStereoOn);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_GetSeparation
|
||||
//
|
||||
//! DESCRIPTION: This API gets current separation value (in percents).
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [out] pSeparationPercentage Address of @c float type variable to store current separation percentage in.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Retrieval of separation percentage was successfull.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_GetSeparation(StereoHandle stereoHandle, float *pSeparationPercentage);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_SetSeparation
|
||||
//
|
||||
//! DESCRIPTION: This API sets separation to given percentage.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [in] newSeparationPercentage New value for separation percentage.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Setting of separation percentage was successfull.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_PARAMETER_OUT_OF_RANGE Given separation percentage is out of [0..100] range.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_SetSeparation(StereoHandle stereoHandle, float newSeparationPercentage);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_GetConvergence
|
||||
//
|
||||
//! DESCRIPTION: This API gets the current convergence value.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [out] pConvergence Address of @c float type variable to store current convergence value in.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Retrieval of convergence value was successfull.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_GetConvergence(StereoHandle stereoHandle, float *pConvergence);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_SetConvergence
|
||||
//
|
||||
//! DESCRIPTION: This API sets convergence to the given value.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for the device interface is created via successfull call to the appropriate NvAPI_Stereo_CreateHandleFrom() function.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \since Release: 180
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [in] newConvergence New value for convergence.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Setting of convergence value was successfull.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_SetConvergence(StereoHandle stereoHandle, float newConvergence);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_SetActiveEye
|
||||
//
|
||||
//! \fn NvAPI_Stereo_SetActiveEye(StereoHandle hStereoHandle, NV_STEREO_ACTIVE_EYE StereoEye);
|
||||
//! DESCRIPTION: This API sets the back buffer to left or right in Direct stereo mode.
|
||||
//!
|
||||
//! HOW TO USE: After the stereo handle for device interface is created via successfull call to appropriate
|
||||
//! NvAPI_Stereo_CreateHandleFrom function.
|
||||
//!
|
||||
//! \since Release: 285
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [in] StereoEye Defines active eye in Direct stereo mode
|
||||
//!
|
||||
//! \retval ::NVAPI_OK - Active eye is set.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE - Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED - NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED - Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT - StereoEye parameter has not allowed value.
|
||||
//! \retval ::NVAPI_SET_NOT_ALLOWED - Current stereo mode is not Direct
|
||||
//! \retval ::NVAPI_ERROR - Something is wrong (generic error).
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//! \ingroup stereoapi
|
||||
typedef enum _NV_StereoActiveEye
|
||||
{
|
||||
NVAPI_STEREO_EYE_RIGHT = 1,
|
||||
NVAPI_STEREO_EYE_LEFT = 2,
|
||||
NVAPI_STEREO_EYE_MONO = 3,
|
||||
} NV_STEREO_ACTIVE_EYE;
|
||||
|
||||
//! \ingroup stereoapi
|
||||
NVAPI_INTERFACE NvAPI_Stereo_SetActiveEye(StereoHandle hStereoHandle, NV_STEREO_ACTIVE_EYE StereoEye);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_SetDriverMode
|
||||
//
|
||||
//! \fn NvAPI_Stereo_SetDriverMode( NV_STEREO_DRIVER_MODE mode );
|
||||
//! DESCRIPTION: This API sets the 3D stereo driver mode: Direct or Automatic
|
||||
//!
|
||||
//! HOW TO USE: This API must be called before the device is created.
|
||||
//! Applies to DirectX 9 and higher.
|
||||
//!
|
||||
//! \since Release: 285
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \param [in] mode Defines the 3D stereo driver mode: Direct or Automatic
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Active eye is set.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT mode parameter has not allowed value.
|
||||
//! \retval ::NVAPI_ERROR Something is wrong (generic error).
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//! \ingroup stereoapi
|
||||
typedef enum _NV_StereoDriverMode
|
||||
{
|
||||
NVAPI_STEREO_DRIVER_MODE_AUTOMATIC = 0,
|
||||
NVAPI_STEREO_DRIVER_MODE_DIRECT = 2,
|
||||
} NV_STEREO_DRIVER_MODE;
|
||||
|
||||
//! \ingroup stereoapi
|
||||
NVAPI_INTERFACE NvAPI_Stereo_SetDriverMode( NV_STEREO_DRIVER_MODE mode );
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_GetEyeSeparation
|
||||
//
|
||||
//! DESCRIPTION: This API returns eye separation as a ratio of <between eye distance>/<physical screen width>.
|
||||
//!
|
||||
//! HOW TO USE: After the stereo handle for device interface is created via successfull call to appropriate API. Applies only to DirectX 9 and up.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \param [in] stereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [out] pSeparation Eye separation.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Active eye is set.
|
||||
//! \retval ::NVAPI_STEREO_INVALID_DEVICE_INTERFACE Device interface is not valid. Create again, then attach again.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR (generic error).
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_GetEyeSeparation(StereoHandle hStereoHandle, float *pSeparation );
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_IsWindowedModeSupported
|
||||
//
|
||||
//! DESCRIPTION: This API returns availability of windowed mode stereo
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! \param [out] bSupported(OUT) != 0 - supported, \n
|
||||
//! == 0 - is not supported
|
||||
//!
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Retrieval of frustum adjust mode was successfull.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED NVAPI not initialized.
|
||||
//! \retval ::NVAPI_STEREO_NOT_INITIALIZED Stereo part of NVAPI not initialized.
|
||||
//! \retval ::NVAPI_ERROR Something is wrong (generic error).
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_IsWindowedModeSupported(NvU8* bSupported);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_SetSurfaceCreationMode
|
||||
//
|
||||
//! \function NvAPI_Stereo_SetSurfaceCreationMode(StereoHandle hStereoHandle, NVAPI_STEREO_SURFACECREATEMODE creationMode)
|
||||
//! \param [in] hStereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [in] creationMode New surface creation mode for this device interface.
|
||||
//!
|
||||
//! \since Release: 285
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! DESCRIPTION: This API sets surface creation mode for this device interface.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for device interface is created via successful call to appropriate NvAPI_Stereo_CreateHandleFrom function.
|
||||
//!
|
||||
//! \return This API can return any of the error codes enumerated in #NvAPI_Status.
|
||||
//! There are no return error codes with specific meaning for this API.
|
||||
//!
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//! \ingroup stereoapi
|
||||
typedef enum _NVAPI_STEREO_SURFACECREATEMODE
|
||||
{
|
||||
NVAPI_STEREO_SURFACECREATEMODE_AUTO, //!< Use driver registry profile settings for surface creation mode.
|
||||
NVAPI_STEREO_SURFACECREATEMODE_FORCESTEREO, //!< Always create stereo surfaces.
|
||||
NVAPI_STEREO_SURFACECREATEMODE_FORCEMONO //!< Always create mono surfaces.
|
||||
} NVAPI_STEREO_SURFACECREATEMODE;
|
||||
|
||||
//! \ingroup stereoapi
|
||||
NVAPI_INTERFACE NvAPI_Stereo_SetSurfaceCreationMode(__in StereoHandle hStereoHandle, __in NVAPI_STEREO_SURFACECREATEMODE creationMode);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_GetSurfaceCreationMode
|
||||
//
|
||||
//! \function NvAPI_Stereo_GetSurfaceCreationMode(StereoHandle hStereoHandle, NVAPI_STEREO_SURFACECREATEMODE* pCreationMode)
|
||||
//! \param [in] hStereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [out] pCreationMode The current creation mode for this device interface.
|
||||
//!
|
||||
//! \since Release: 295
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! DESCRIPTION: This API gets surface creation mode for this device interface.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for device interface is created via successful call to appropriate NvAPI_Stereo_CreateHandleFrom function.
|
||||
//!
|
||||
//! \return This API can return any of the error codes enumerated in #NvAPI_Status.
|
||||
//! There are no return error codes with specific meaning for this API.
|
||||
//!
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//! \ingroup stereoapi
|
||||
NVAPI_INTERFACE NvAPI_Stereo_GetSurfaceCreationMode(__in StereoHandle hStereoHandle, __in NVAPI_STEREO_SURFACECREATEMODE* pCreationMode);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_Debug_WasLastDrawStereoized
|
||||
//
|
||||
//! \param [in] hStereoHandle Stereo handle that corresponds to the device interface.
|
||||
//! \param [out] pWasStereoized Address where result of the inquiry will be placed.
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! DESCRIPTION: This API checks if the last draw call was stereoized. It is a very expensive to call and should be used for debugging purpose *only*.
|
||||
//!
|
||||
//! WHEN TO USE: After the stereo handle for device interface is created via successful call to appropriate NvAPI_Stereo_CreateHandleFrom function.
|
||||
//!
|
||||
//! \return This API can return any of the error codes enumerated in #NvAPI_Status.
|
||||
//! There are no return error codes with specific meaning for this API.
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_Debug_WasLastDrawStereoized(__in StereoHandle hStereoHandle, __out NvU8 *pWasStereoized);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_SetDefaultProfile
|
||||
//
|
||||
//!
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! DESCRIPTION: This API defines the stereo profile used by the driver in case the application has no associated profile.
|
||||
//!
|
||||
//! WHEN TO USE: To take effect, this API must be called before D3D device is created. Calling once a device has been created will not affect the current device.
|
||||
//!
|
||||
//! \param [in] szProfileName Default profile name.
|
||||
//!
|
||||
//! \return This API can return any of the error codes enumerated in #NvAPI_Status.
|
||||
//! Error codes specific to this API are described below.
|
||||
//!
|
||||
//! \retval NVAPI_SUCCESS - Default stereo profile name has been copied into szProfileName.
|
||||
//! \retval NVAPI_INVALID_ARGUMENT - szProfileName == NULL.
|
||||
//! \retval NVAPI_DEFAULT_STEREO_PROFILE_DOES_NOT_EXIST - Default stereo profile does not exist
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_SetDefaultProfile(__in const char* szProfileName);
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Stereo_GetDefaultProfile
|
||||
//
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//!
|
||||
//! DESCRIPTION: This API retrieves the current default stereo profile.
|
||||
//!
|
||||
//! After call cbSizeOut contain 0 if default profile is not set required buffer size cbSizeOut.
|
||||
//! To get needed buffer size this function can be called with szProfileName==0 and cbSizeIn == 0.
|
||||
//!
|
||||
//! WHEN TO USE: This API can be called at any time.
|
||||
//!
|
||||
//!
|
||||
//! \param [in] cbSizeIn Size of buffer allocated for default stereo profile name.
|
||||
//! \param [out] szProfileName Default stereo profile name.
|
||||
//! \param [out] pcbSizeOut Required buffer size.
|
||||
//! # ==0 - there is no default stereo profile name currently set
|
||||
//! # !=0 - size of buffer required for currently set default stereo profile name including trailing '0'.
|
||||
//!
|
||||
//!
|
||||
//! \return This API can return any of the error codes enumerated in #NvAPI_Status.
|
||||
//! Error codes specific to this API are described below.
|
||||
//!
|
||||
//! \retval NVAPI_SUCCESS - Default stereo profile name has been copied into szProfileName.
|
||||
//! \retval NVAPI_DEFAULT_STEREO_PROFILE_IS_NOT_DEFINED - There is no default stereo profile set at this time.
|
||||
//! \retval NVAPI_INVALID_ARGUMENT - pcbSizeOut == 0 or cbSizeIn >= *pcbSizeOut && szProfileName == 0
|
||||
//! \retval NVAPI_INSUFFICIENT_BUFFER - cbSizeIn < *pcbSizeOut
|
||||
//!
|
||||
//! \ingroup stereoapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Stereo_GetDefaultProfile( __in NvU32 cbSizeIn, __out_bcount_part_opt(cbSizeIn, *pcbSizeOut) char* szProfileName, __out NvU32 *pcbSizeOut);
|
||||
|
||||
#include"nvapi_lite_salend.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#pragma pack(pop)
|
||||
103
external/nvapi/nvapi_lite_surround.h
vendored
Normal file
103
external/nvapi/nvapi_lite_surround.h
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
/************************************************************************************************************************************\
|
||||
|* *|
|
||||
|* Copyright ? 2012 NVIDIA Corporation. All rights reserved. *|
|
||||
|* *|
|
||||
|* NOTICE TO USER: *|
|
||||
|* *|
|
||||
|* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
|
||||
|* *|
|
||||
|* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
|
||||
|* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
|
||||
|* Otherwise, you have no rights to use or access this software in any manner. *|
|
||||
|* *|
|
||||
|* If not covered by the applicable NVIDIA software license agreement: *|
|
||||
|* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
|
||||
|* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
|
||||
|* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
|
||||
|* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
|
||||
|* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
|
||||
|* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
|
||||
|* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
|
||||
|* *|
|
||||
|* U.S. Government End Users. *|
|
||||
|* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
|
||||
|* consisting of "commercial computer software" and "commercial computer software documentation" *|
|
||||
|* 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. *|
|
||||
|* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
|
||||
|* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
|
||||
|* *|
|
||||
|* Any use of this software in individual and commercial software must include, *|
|
||||
|* in the user documentation and internal comments to the code, *|
|
||||
|* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
|
||||
|* *|
|
||||
\************************************************************************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include"nvapi_lite_salstart.h"
|
||||
#include"nvapi_lite_common.h"
|
||||
#pragma pack(push,8)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_DISP_GetGDIPrimaryDisplayId
|
||||
//
|
||||
//! DESCRIPTION: This API returns the Display ID of the GDI Primary.
|
||||
//!
|
||||
//! \param [out] displayId Display ID of the GDI Primary display.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK: Capabilties have been returned.
|
||||
//! \retval ::NVAPI_NVIDIA_DEVICE_NOT_FOUND: GDI Primary not on an NVIDIA GPU.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT: One or more args passed in are invalid.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED: The NvAPI API needs to be initialized first
|
||||
//! \retval ::NVAPI_NO_IMPLEMENTATION: This entrypoint not available
|
||||
//! \retval ::NVAPI_ERROR: Miscellaneous error occurred
|
||||
//!
|
||||
//! \ingroup dispcontrol
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_DISP_GetGDIPrimaryDisplayId(NvU32* displayId);
|
||||
#define NV_MOSAIC_MAX_DISPLAYS (64)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// FUNCTION NAME: NvAPI_Mosaic_GetDisplayViewportsByResolution
|
||||
//
|
||||
//! DESCRIPTION: This API returns the viewports that would be applied on
|
||||
//! the requested display.
|
||||
//!
|
||||
//! \param [in] displayId Display ID of a single display in the active
|
||||
//! mosaic topology to query.
|
||||
//! \param [in] srcWidth Width of full display topology. If both
|
||||
//! width and height are 0, the current
|
||||
//! resolution is used.
|
||||
//! \param [in] srcHeight Height of full display topology. If both
|
||||
//! width and height are 0, the current
|
||||
//! resolution is used.
|
||||
//! \param [out] viewports Array of NV_RECT viewports.
|
||||
//! SUPPORTED OS: Windows 7 and higher
|
||||
//!
|
||||
//! If the requested resolution is a single-wide
|
||||
//! resolution, only viewports[0] will
|
||||
//! contain the viewport details, regardless
|
||||
//! of which display is driving the display.
|
||||
//! \param [out] bezelCorrected Returns 1 if the requested resolution is
|
||||
//! bezel corrected. May be NULL.
|
||||
//!
|
||||
//! \retval ::NVAPI_OK Capabilties have been returned.
|
||||
//! \retval ::NVAPI_INVALID_ARGUMENT One or more args passed in are invalid.
|
||||
//! \retval ::NVAPI_API_NOT_INTIALIZED The NvAPI API needs to be initialized first
|
||||
//! \retval ::NVAPI_MOSAIC_NOT_ACTIVE The display does not belong to an active Mosaic Topology
|
||||
//! \retval ::NVAPI_NO_IMPLEMENTATION This entrypoint not available
|
||||
//! \retval ::NVAPI_ERROR Miscellaneous error occurred
|
||||
//!
|
||||
//! \ingroup mosaicapi
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
NVAPI_INTERFACE NvAPI_Mosaic_GetDisplayViewportsByResolution(NvU32 displayId, NvU32 srcWidth, NvU32 srcHeight, NV_RECT viewports[NV_MOSAIC_MAX_DISPLAYS], NvU8* bezelCorrected);
|
||||
|
||||
#include"nvapi_lite_salend.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#pragma pack(pop)
|
||||
Reference in New Issue
Block a user