diff --git a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
index 5af541eea79402a473f050e961d30a763395586b..07cb95b9fb601ac46ef3f7ebb01b123459bddcc9 100644
--- a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
+++ b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
@@ -17,3 +17,11 @@
### 兼容性影响评估,如有影响请写明(Y/N)
- [ ] 不兼容
- [ ] 是否经过评审
+
+### L0新增用例自检结果
+- [ ] 是,有新增L0用例,且完成自检
+- [ ] 否
+
+### API参考文档影响评估(提供docs仓pr链接)
+- [ ] 是,已刷新API参考文档
+- [ ] 否,不涉及刷新API参考文档
\ No newline at end of file
diff --git a/AbilityKit/ability_base/libability_base_want.json b/AbilityKit/ability_base/libability_base_want.json
index 03133ce9184f429df9ec3fc7b412b27df94ab10f..96066b3d46506f54f5f97d19ecae2b0df4047807 100644
--- a/AbilityKit/ability_base/libability_base_want.json
+++ b/AbilityKit/ability_base/libability_base_want.json
@@ -32,35 +32,35 @@
"name": "OH_AbilityBase_GetWantFd"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_SetWantUri"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_GetWantUri"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_SetWantInt32Param"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_GetWantInt32Param"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_SetWantBoolParam"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_GetWantBoolParam"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_SetWantDoubleParam"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AbilityBase_GetWantDoubleParam"
}
]
\ No newline at end of file
diff --git a/AbilityKit/ability_base/want.h b/AbilityKit/ability_base/want.h
index e688836ec681e9ca2d66da0424513bf1d458a135..09355501285c417a6c3f94813b3f693f53bfd6fd 100644
--- a/AbilityKit/ability_base/want.h
+++ b/AbilityKit/ability_base/want.h
@@ -169,7 +169,7 @@ AbilityBase_ErrorCode OH_AbilityBase_GetWantFd(AbilityBase_Want* want, const cha
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_SetWantUri(AbilityBase_Want* want, const char* uri);
@@ -182,7 +182,7 @@ AbilityBase_ErrorCode OH_AbilityBase_SetWantUri(AbilityBase_Want* want, const ch
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_GetWantUri(AbilityBase_Want* want, char* uri, size_t uriSize);
@@ -195,7 +195,7 @@ AbilityBase_ErrorCode OH_AbilityBase_GetWantUri(AbilityBase_Want* want, char* ur
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_SetWantInt32Param(AbilityBase_Want* want, const char* key, int32_t value);
@@ -208,7 +208,7 @@ AbilityBase_ErrorCode OH_AbilityBase_SetWantInt32Param(AbilityBase_Want* want, c
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_GetWantInt32Param(AbilityBase_Want* want, const char* key, int32_t* value);
@@ -221,7 +221,7 @@ AbilityBase_ErrorCode OH_AbilityBase_GetWantInt32Param(AbilityBase_Want* want, c
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_SetWantBoolParam(AbilityBase_Want* want, const char* key, bool value);
@@ -234,7 +234,7 @@ AbilityBase_ErrorCode OH_AbilityBase_SetWantBoolParam(AbilityBase_Want* want, co
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_GetWantBoolParam(AbilityBase_Want* want, const char* key, bool* value);
@@ -247,7 +247,7 @@ AbilityBase_ErrorCode OH_AbilityBase_GetWantBoolParam(AbilityBase_Want* want, co
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_SetWantDoubleParam(AbilityBase_Want* want, const char* key, double value);
@@ -260,7 +260,7 @@ AbilityBase_ErrorCode OH_AbilityBase_SetWantDoubleParam(AbilityBase_Want* want,
* @return The error code.
* {@link ABILITY_BASE_ERROR_CODE_NO_ERROR} if the operation is successful.
* {@link ABILITY_BASE_ERROR_CODE_PARAM_INVALID} if the input parameters are invalid.
- * @since 18
+ * @since 17
*/
AbilityBase_ErrorCode OH_AbilityBase_GetWantDoubleParam(AbilityBase_Want* want, const char* key, double* value);
diff --git a/AbilityKit/ability_runtime/BUILD.gn b/AbilityKit/ability_runtime/BUILD.gn
index 350a42c3ccaa47e6294493316460a3fef85fd62d..3aedaa13ffbe0739f0a0d5abc595c17507ad8775 100644
--- a/AbilityKit/ability_runtime/BUILD.gn
+++ b/AbilityKit/ability_runtime/BUILD.gn
@@ -33,5 +33,6 @@ ohos_ndk_library("libability_runtime") {
"AbilityKit/ability_runtime/ability_runtime_common.h",
"AbilityKit/ability_runtime/application_context.h",
"AbilityKit/ability_runtime/context_constant.h",
+ "AbilityKit/ability_runtime/start_options.h",
]
}
diff --git a/AbilityKit/ability_runtime/application_context.h b/AbilityKit/ability_runtime/application_context.h
index bb39d5978ceb309b96b786f17d09c83505e0a98b..ed62cf40293ae91ec6ccbeaefa601c04a514f874 100644
--- a/AbilityKit/ability_runtime/application_context.h
+++ b/AbilityKit/ability_runtime/application_context.h
@@ -213,6 +213,24 @@ AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetDistributedFiles
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetCloudFileDir(
char* buffer, const int32_t bufferSize, int32_t* writeLength);
+/**
+ * @brief Obtain the resource directory of the target module.
+ *
+ * @param moduleName The module name.
+ * @param buffer A pointer to a buffer that receives the resource directory of the target module.
+ * @param bufferSize The length of the buffer.
+ * @param writeLength The string length actually written to the buffer,
+ * when returning {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR}.
+ * @return The error code.
+ * {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the buffer or writeLength is null,
+ * or the buffer size is less than the minimum buffer size.
+ * {@link ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST} if the application context does not exist.
+ * @since 20
+ */
+AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetResourceDir(const char* moduleName,
+ char* buffer, const int32_t bufferSize, int32_t* writeLength);
+
/**
* @brief Starts self UIAbility.
*
diff --git a/AbilityKit/ability_runtime/libability_runtime.ndk.json b/AbilityKit/ability_runtime/libability_runtime.ndk.json
index 3ae8eaeeed597d289170a04a44f9ccb054ebd6c8..6790d7d683b7cd97f6cc22c4bbe81b71f9080e18 100644
--- a/AbilityKit/ability_runtime/libability_runtime.ndk.json
+++ b/AbilityKit/ability_runtime/libability_runtime.ndk.json
@@ -174,5 +174,9 @@
{
"first_introduced": "17",
"name": "OH_AbilityRuntime_GetStartOptionsMaxWindowHeight"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AbilityRuntime_ApplicationContextGetResourceDir"
}
]
\ No newline at end of file
diff --git a/BasicServicesKit/BUILD.gn b/BasicServicesKit/BUILD.gn
index 11168e05767c470e71a1fd29061968685116a083..eef5fbef665c8cf31064fb06066cd1ad79d43a50 100644
--- a/BasicServicesKit/BUILD.gn
+++ b/BasicServicesKit/BUILD.gn
@@ -27,7 +27,10 @@ ohos_ndk_library("libos_account_ndk") {
system_capability = "SystemCapability.Account.OsAccount"
ndk_description_file = "./libos_account.ndk.json"
min_compact_version = "12"
- system_capability_headers = [ "BasicServicesKit/os_account.h" ]
+ system_capability_headers = [
+ "BasicServicesKit/os_account.h",
+ "BasicServicesKit/os_account_common.h",
+ ]
}
ohos_ndk_headers("ohprint_header") {
diff --git a/BasicServicesKit/commonevent/oh_commonevent.h b/BasicServicesKit/commonevent/oh_commonevent.h
index a5b93c49881419da14aceea3f13abb2552f8721e..d3f16a959a7268aa4bfa0d6b10580c5c0be36b15 100644
--- a/BasicServicesKit/commonevent/oh_commonevent.h
+++ b/BasicServicesKit/commonevent/oh_commonevent.h
@@ -59,6 +59,13 @@ typedef enum CommonEvent_ErrCode {
/** @error invalid input parameter. */
COMMONEVENT_ERR_INVALID_PARAMETER = 401,
+ /**
+ * @error The common event send frequency too high.
+ *
+ * @since 20
+ */
+ COMMONEVENT_ERR_SENDING_LIMIT_EXCEEDED = 1500003,
+
/** @error the application cannot send system common events. */
COMMONEVENT_ERR_NOT_SYSTEM_SERVICE = 1500004,
@@ -627,6 +634,8 @@ CommonEvent_ErrCode OH_CommonEvent_SetDoubleArrayToParameters(CommonEvent_Parame
* @return Returns the error code.
* Returns {@link COMMONEVENT_ERR_OK} if the operation is successful.
* Returns {@link COMMONEVENT_ERR_INVALID_PARAMETER} if a parameter error occurs.
+ * Returns {@link COMMONEVENT_ERR_SENDING_LIMIT_EXCEEDED} if the common event sending frequency too high,
+ * add since api 20.
* Returns {@link COMMONEVENT_ERR_FAIL_SEND_REQUEST } if IPC request failed to send.
* Returns {@link COMMONEVENT_ERR_INIT_UNDONE } if ces not init done.
* @since 18
@@ -641,6 +650,8 @@ CommonEvent_ErrCode OH_CommonEvent_Publish(const char* event);
* @return Returns the error code.
* Returns {@link COMMONEVENT_ERR_OK} if the operation is successful.
* Returns {@link COMMONEVENT_ERR_INVALID_PARAMETER} if a parameter error occurs.
+ * Returns {@link COMMONEVENT_ERR_SENDING_LIMIT_EXCEEDED} if the common event sending frequency too high,
+ * add since api 20.
* Returns {@link COMMONEVENT_ERR_FAIL_SEND_REQUEST } if IPC request failed to send.
* Returns {@link COMMONEVENT_ERR_INIT_UNDONE } if ces not init done.
* @since 18
diff --git a/BasicServicesKit/ohbattery_info.h b/BasicServicesKit/ohbattery_info.h
index 38f289a38f4087ca9fd0166d23146302aa2894bd..a8f8af9e81c6ddb7cd7477e0476a81f4aa3cd0db 100644
--- a/BasicServicesKit/ohbattery_info.h
+++ b/BasicServicesKit/ohbattery_info.h
@@ -19,7 +19,6 @@
*
* @brief Provides the definition of the C interface for the BatteryInfo module.
*
- * @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 13
* @version 1.0
*/
@@ -100,7 +99,6 @@ typedef enum {
* @brief This API returns the current battery capacity.
*
* @return Returns number between 0 and 100.
- * @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 13
*/
int32_t OH_BatteryInfo_GetCapacity();
@@ -113,7 +111,6 @@ int32_t OH_BatteryInfo_GetCapacity();
* {@link PLUGGED_TYPE_USB} if the power source is an USB DC charger.
* {@link PLUGGED_TYPE_WIRELESS} if the power source is wireless charger.
* {@link PLUGGED_TYPE_BUTT} if the type is unknown.
- * @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 13
*/
BatteryInfo_BatteryPluggedType OH_BatteryInfo_GetPluggedType();
diff --git a/ConnectivityKit/bluetooth/BUILD.gn b/ConnectivityKit/bluetooth/BUILD.gn
index 869366f31d196301aa0499d694ef943d419fda77..9f21ff227edf40f351de4e679bb4d09bdd7a4e66 100644
--- a/ConnectivityKit/bluetooth/BUILD.gn
+++ b/ConnectivityKit/bluetooth/BUILD.gn
@@ -25,5 +25,5 @@ ohos_ndk_library("libbluetooth_ndk") {
output_extension = "so"
min_compact_version = "13"
system_capability = "SystemCapability.Communication.Bluetooth.Core"
- system_capability_headers = [ "./oh_bluetooth.h" ]
+ system_capability_headers = [ "ConnectivityKit/bluetooth/oh_bluetooth.h" ]
}
diff --git a/ConnectivityKit/wifi/BUILD.gn b/ConnectivityKit/wifi/BUILD.gn
index 19812ca5c9565344db3df28a9e3c23397fd714ac..5e8b5d185e5cf8e94eafe93ac523b50f264ec4a4 100644
--- a/ConnectivityKit/wifi/BUILD.gn
+++ b/ConnectivityKit/wifi/BUILD.gn
@@ -25,5 +25,5 @@ ohos_ndk_library("libwifi_ndk") {
output_extension = "so"
min_compact_version = "13"
system_capability = "SystemCapability.Communication.WiFi.STA"
- system_capability_headers = [ "./oh_wifi.h" ]
+ system_capability_headers = [ "ConnectivityKit/wifi/oh_wifi.h" ]
}
diff --git a/ConnectivityKit/wifi/oh_wifi.h b/ConnectivityKit/wifi/oh_wifi.h
index 1d8e1d64516cd22c4f20fbacbc4c2a502905bfa0..366c07ab77b7f6ed597c6559cc1b2f7a84090016 100644
--- a/ConnectivityKit/wifi/oh_wifi.h
+++ b/ConnectivityKit/wifi/oh_wifi.h
@@ -24,7 +24,7 @@
* @file oh_wifi.h
* @kit ConnectivityKit
* @brief Define interfaces for querying wifi switch status.
- * @library libwifi.so
+ * @library libwifi_ndk.so
* @syscap SystemCapability.Communication.WiFi.STA
* @since 13
*/
diff --git a/CryptoArchitectureKit/BUILD.gn b/CryptoArchitectureKit/BUILD.gn
index 509347a9af3cd0405687a706a145be7f191ac567..d59e65555335da928c64ba2a37ddb9876175f8ed 100644
--- a/CryptoArchitectureKit/BUILD.gn
+++ b/CryptoArchitectureKit/BUILD.gn
@@ -18,9 +18,14 @@ ohos_ndk_headers("crypto_capi_header") {
dest_dir = "$ndk_headers_out_dir/CryptoArchitectureKit"
sources = [
"./crypto_architecture_kit.h",
+ "./crypto_asym_cipher.h",
"./crypto_asym_key.h",
"./crypto_common.h",
"./crypto_digest.h",
+ "./crypto_kdf.h",
+ "./crypto_key_agreement.h",
+ "./crypto_mac.h",
+ "./crypto_rand.h",
"./crypto_signature.h",
"./crypto_sym_cipher.h",
"./crypto_sym_key.h",
@@ -34,9 +39,14 @@ ohos_ndk_library("libohcrypto") {
system_capability = "SystemCapability.Security.CryptoFramework"
system_capability_headers = [
"CryptoArchitectureKit/crypto_architecture_kit.h",
+ "CryptoArchitectureKit/crypto_asym_cipher.h",
"CryptoArchitectureKit/crypto_asym_key.h",
"CryptoArchitectureKit/crypto_common.h",
"CryptoArchitectureKit/crypto_digest.h",
+ "CryptoArchitectureKit/crypto_kdf.h",
+ "CryptoArchitectureKit/crypto_key_agreement.h",
+ "CryptoArchitectureKit/crypto_mac.h",
+ "CryptoArchitectureKit/crypto_rand.h",
"CryptoArchitectureKit/crypto_signature.h",
"CryptoArchitectureKit/crypto_sym_cipher.h",
"CryptoArchitectureKit/crypto_sym_key.h",
diff --git a/CryptoArchitectureKit/crypto_architecture_kit.h b/CryptoArchitectureKit/crypto_architecture_kit.h
index 4580a750627cf34ea21bfd3c69784b26077e5685..ae3f93243b09aa04c202512e86d605ed40ce984b 100644
--- a/CryptoArchitectureKit/crypto_architecture_kit.h
+++ b/CryptoArchitectureKit/crypto_architecture_kit.h
@@ -19,7 +19,6 @@
*
* @brief Provides an entry to the crypto header files for you to reference.
*
- * @syscap SystemCapability.Security.CryptoFramework
* @since 12
*/
@@ -38,8 +37,13 @@
#define CRYPTO_ARCHITECTURE_KIT_H
#include "crypto_common.h"
+#include "crypto_asym_cipher.h"
#include "crypto_asym_key.h"
#include "crypto_digest.h"
+#include "crypto_kdf.h"
+#include "crypto_key_agreement.h"
+#include "crypto_mac.h"
+#include "crypto_rand.h"
#include "crypto_signature.h"
#include "crypto_sym_cipher.h"
#include "crypto_sym_key.h"
@@ -48,4 +52,4 @@
/** @} */
-#endif /* CRYPTO_ARCHITECTURE_KIT_H*/
\ No newline at end of file
+#endif /* CRYPTO_ARCHITECTURE_KIT_H */
\ No newline at end of file
diff --git a/CryptoArchitectureKit/crypto_asym_cipher.h b/CryptoArchitectureKit/crypto_asym_cipher.h
new file mode 100644
index 0000000000000000000000000000000000000000..3846be1733cfac6c843e75f837bb7f97065647d9
--- /dev/null
+++ b/CryptoArchitectureKit/crypto_asym_cipher.h
@@ -0,0 +1,206 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup CryptoAsymCipherApi
+ * @{
+ *
+ * @brief Describes the asymmetric encryption and decryption algorithm interface provided to applications.
+ *
+ * @since 20
+ */
+
+/**
+ * @file crypto_asym_cipher.h
+ *
+ * @brief Defines the asymmetric cipher APIs.
+ *
+ * @library libohcrypto.so
+ * @kit CryptoArchitectureKit
+ * @syscap SystemCapability.Security.CryptoFramework
+ * @since 20
+ */
+
+#ifndef CRYPTO_ASYM_CIPHER_H
+#define CRYPTO_ASYM_CIPHER_H
+
+#include "crypto_common.h"
+#include "crypto_asym_key.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the asymmetric cipher structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoAsymCipher OH_CryptoAsymCipher;
+
+/**
+ * @brief Creates an asymmetric cipher context according to the given algorithm name.
+ *
+ * @param algoName Indicates the algorithm name used to generate the asymmetric cipher context. e.g. "RSA|PKCS1",
+ * "RSA|PKCS1_OAEP|SHA384|MGF1_SHA384", "SM2|SM3".
+ * @param ctx Indicates the pointer to the asymmetric cipher context.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymCipher_Create(const char *algoName, OH_CryptoAsymCipher **ctx);
+
+/**
+ * @brief Initializes the asymmetric cipher context with the given crypto mode, key and parameters.
+ *
+ * @param ctx Indicates the asymmetric cipher context.
+ * @param mode Indicates the crypto mode is encryption or decryption.
+ * @param key Indicates the asymmetric key.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoAsymCipher_Final
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymCipher_Init(OH_CryptoAsymCipher *ctx, Crypto_CipherMode mode, OH_CryptoKeyPair *key);
+
+/**
+ * @brief Finalizes the encryption or decryption operation.
+ *
+ * @param ctx Indicates the asymmetric cipher context.
+ * @param in Indicates the input data to be encrypted or decrypted.
+ * @param out Indicates the result of encryption or decryption.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoAsymCipher_Init
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymCipher_Final(OH_CryptoAsymCipher *ctx, const Crypto_DataBlob *in,
+ Crypto_DataBlob *out);
+
+/**
+ * @brief Destroys the asymmetric cipher context.
+ *
+ * @param ctx Indicates the asymmetric cipher context.
+ * @since 20
+ */
+void OH_CryptoAsymCipher_Destroy(OH_CryptoAsymCipher *ctx);
+
+/**
+ * @brief Defines the SM2 ciphertext spec structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoSm2CiphertextSpec OH_CryptoSm2CiphertextSpec;
+
+/**
+ * @brief Defines the SM2 ciphertext spec item type.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Public key x, also known as C1x. */
+ CRYPTO_SM2_CIPHERTEXT_C1_X = 0,
+ /** Public key y, also known as C1y. */
+ CRYPTO_SM2_CIPHERTEXT_C1_Y = 1,
+ /** Hash, also known as C2. */
+ CRYPTO_SM2_CIPHERTEXT_C2 = 2,
+ /** Ciphertext data, also known as C3. */
+ CRYPTO_SM2_CIPHERTEXT_C3 = 3,
+} CryptoSm2CiphertextSpec_item;
+
+/**
+ * @brief Creates a SM2 ciphertext spec.
+ *
+ * @param sm2Ciphertext Indicates the SM2 ciphertext in DER format, if sm2Ciphertext param is NULL,
+ * an empty SM2 ciphertext spec will be created.
+ * @param spec Indicates the output SM2 ciphertext spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSm2CiphertextSpec_Create(Crypto_DataBlob *sm2Ciphertext, OH_CryptoSm2CiphertextSpec **spec);
+
+/**
+ * @brief Gets the specified item of the SM2 ciphertext.
+ *
+ * @param spec Indicates the SM2 ciphertext spec.
+ * @param item Indicates the SM2 ciphertext spec item.
+ * @param out Indicates the output data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSm2CiphertextSpec_GetItem(OH_CryptoSm2CiphertextSpec *spec,
+ CryptoSm2CiphertextSpec_item item, Crypto_DataBlob *out);
+
+/**
+ * @brief Sets the specified item to the SM2 ciphertext spec.
+ *
+ * @param spec Indicates the SM2 ciphertext spec.
+ * @param item Indicates the SM2 ciphertext spec item.
+ * @param in Indicates the input data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSm2CiphertextSpec_SetItem(OH_CryptoSm2CiphertextSpec *spec,
+ CryptoSm2CiphertextSpec_item item, Crypto_DataBlob *in);
+
+/**
+ * @brief Encodes the SM2 ciphertext spec to ciphertext in DER format.
+ *
+ * @param spec Indicates the SM2 ciphertext spec.
+ * @param out Indicates the output data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSm2CiphertextSpec_Encode(OH_CryptoSm2CiphertextSpec *spec, Crypto_DataBlob *out);
+
+/**
+ * @brief Destroys the SM2 ciphertext spec.
+ *
+ * @param spec Indicates the SM2 ciphertext spec.
+ * @since 20
+ */
+void OH_CryptoSm2CiphertextSpec_Destroy(OH_CryptoSm2CiphertextSpec *spec);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CRYPTO_ASYM_CIPHER_H */
+/** @} */
diff --git a/CryptoArchitectureKit/crypto_asym_key.h b/CryptoArchitectureKit/crypto_asym_key.h
index 63a76d39d29443c884ca14ec4de1f5aaf701be35..44803b8328177a8b86ec63a7e5309b51f087cbf4 100644
--- a/CryptoArchitectureKit/crypto_asym_key.h
+++ b/CryptoArchitectureKit/crypto_asym_key.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Copyright (C) 2024-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -50,12 +50,19 @@ extern "C" {
typedef struct OH_CryptoKeyPair OH_CryptoKeyPair;
/**
- * @brief Define the public Key structure.
+ * @brief Define the public key structure.
*
* @since 12
*/
typedef struct OH_CryptoPubKey OH_CryptoPubKey;
+/**
+ * @brief Defines the private key structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoPrivKey OH_CryptoPrivKey;
+
/**
* @brief Define the asymmetric key parameter types.
*
@@ -227,12 +234,21 @@ void OH_CryptoKeyPair_Destroy(OH_CryptoKeyPair *keyCtx);
*/
OH_CryptoPubKey *OH_CryptoKeyPair_GetPubKey(OH_CryptoKeyPair *keyCtx);
+/**
+ * @brief Gets the private key of the key pair.
+ *
+ * @param keyCtx Indicates the keyPair context.
+ * @return Return the private key context from the key pair.
+ * @since 20
+ */
+OH_CryptoPrivKey *OH_CryptoKeyPair_GetPrivKey(OH_CryptoKeyPair *keyCtx);
+
/**
* @brief Encode the public key.
*
* @param key Indicates the public key.
* @param type Indicates the pubkey type.
- * @param encodingStandard Indicates the encoding standard .
+ * @param encodingStandard Indicates the encoding standard.
* @param out Indicates the encoded result.
* @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
* {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
@@ -259,6 +275,361 @@ OH_Crypto_ErrCode OH_CryptoPubKey_Encode(OH_CryptoPubKey *key, Crypto_EncodingTy
*/
OH_Crypto_ErrCode OH_CryptoPubKey_GetParam(OH_CryptoPubKey *key, CryptoAsymKey_ParamType item, Crypto_DataBlob *value);
+/**
+ * @brief Sets the password to the asymmetric key generator context.
+ *
+ * Call this method to set the password if you need to convert encrypted private key data to a key pair using
+ * {@link OH_CryptoAsymKeyGenerator_Convert}.\n
+ *
+ * @param ctx Indicates the asymmetric key generator context.
+ * @param password Indicates the password.
+ * @param passwordLen Indicates the password length.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeyGenerator_SetPassword(OH_CryptoAsymKeyGenerator *ctx, const unsigned char *password,
+ uint32_t passwordLen);
+
+/**
+ * @brief Defines the private key encoding params structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoPrivKeyEncodingParams OH_CryptoPrivKeyEncodingParams;
+
+/**
+ * @brief Defines the private key encoding param type.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Indicates the password string. */
+ CRYPTO_PRIVATE_KEY_ENCODING_PASSWORD_STR = 0,
+
+ /** Indicates the symmetric cipher string. */
+ CRYPTO_PRIVATE_KEY_ENCODING_SYMMETRIC_CIPHER_STR = 1,
+} CryptoPrivKeyEncoding_ParamType;
+
+/**
+ * @brief Creates private key encoding params.
+ *
+ * @param ctx Indicates the private key encoding params.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoPrivKeyEncodingParams_Create(OH_CryptoPrivKeyEncodingParams **ctx);
+
+/**
+ * @brief Sets the private key encoding params.
+ *
+ * @param ctx Indicates the private key encoding params.
+ * @param type Indicates the private key encoding param type.
+ * @param value Indicates the private key encoding params value.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoPrivKeyEncodingParams_SetParam(OH_CryptoPrivKeyEncodingParams *ctx,
+ CryptoPrivKeyEncoding_ParamType type, Crypto_DataBlob *value);
+
+/**
+ * @brief Destroys the private key encoding params.
+ *
+ * @param ctx Indicates the private key encoding params.
+ * @since 20
+ */
+void OH_CryptoPrivKeyEncodingParams_Destroy(OH_CryptoPrivKeyEncodingParams *ctx);
+
+/**
+ * @brief Encodes the private key.
+ *
+ * @param key Indicates the private key.
+ * @param type Indicates the private encoding type.
+ * @param encodingStandard Indicates the encoding standard, such as "PKCS8".
+ * @param params Indicates the private key encoding params, it can be NULL, and if you want encypt the private key,
+ * you should set this param.
+ * @param out Indicates the encoded result.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoPrivKey_Encode(OH_CryptoPrivKey *key, Crypto_EncodingType type,
+ const char *encodingStandard, OH_CryptoPrivKeyEncodingParams *params, Crypto_DataBlob *out);
+
+/**
+ * @brief Gets the specified param of the private key.
+ *
+ * @param key Indicates the private key.
+ * @param item Indicates the asymmetric key param type.
+ * @param value Indicates the output data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoPrivKey_GetParam(OH_CryptoPrivKey *key, CryptoAsymKey_ParamType item,
+ Crypto_DataBlob *value);
+
+/**
+ * @brief Defines the asymmetric key spec structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoAsymKeySpec OH_CryptoAsymKeySpec;
+
+/**
+ * @brief Defines the asymmetric key spec type.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Common parameters spec. */
+ CRYPTO_ASYM_KEY_COMMON_PARAMS_SPEC = 0,
+ /** Private key spec. */
+ CRYPTO_ASYM_KEY_PRIVATE_KEY_SPEC = 1,
+ /** Public key spec. */
+ CRYPTO_ASYM_KEY_PUBLIC_KEY_SPEC = 2,
+ /** Key pair spec. */
+ CRYPTO_ASYM_KEY_KEY_PAIR_SPEC = 3,
+} CryptoAsymKeySpec_Type;
+
+/**
+ * @brief Generates an EC common parameters spec.
+ *
+ * @param curveName Indicates the ECC curve name.
+ * @param spec Indicates the pointer to the EC common parameters spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeySpec_GenEcCommonParamsSpec(const char *curveName, OH_CryptoAsymKeySpec **spec);
+
+/**
+ * @brief Generates a DH common parameters spec.
+ *
+ * @param pLen Indicates the byte length of the prime p.
+ * @param skLen Indicates the byte length of the private key.
+ * @param spec Indicates the pointer to the DH common parameters spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeySpec_GenDhCommonParamsSpec(int pLen, int skLen, OH_CryptoAsymKeySpec **spec);
+
+/**
+ * @brief Creates an asymmetric key spec according to the given algorithm name and spec type.
+ *
+ * @param algoName Indicates the algorithm name for generating the spec. Example RSA.
+ * @param type Indicates the asymmetric key spec type.
+ * @param spec Indicates the pointer to the asymmetric key spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeySpec_Create(const char *algoName, CryptoAsymKeySpec_Type type,
+ OH_CryptoAsymKeySpec **spec);
+
+/**
+ * @brief Sets the specified parameter to the asymmetric key spec.
+ *
+ * @param spec Indicates the asymmetric key spec.
+ * @param type Indicates the asymmetric key param type.
+ * @param value Indicates the input data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeySpec_SetParam(OH_CryptoAsymKeySpec *spec, CryptoAsymKey_ParamType type,
+ Crypto_DataBlob *value);
+
+/**
+ * @brief Sets the common parameters spec to the asymmetric key spec.
+ *
+ * @param spec Indicates the asymmetric key spec.
+ * @param commonParamsSpec Indicates the common parameters spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeySpec_SetCommonParamsSpec(OH_CryptoAsymKeySpec *spec,
+ OH_CryptoAsymKeySpec *commonParamsSpec);
+
+/**
+ * @brief Gets the specified parameter from the asymmetric key spec.
+ *
+ * @param spec Indicates the asymmetric key spec.
+ * @param type Indicates the asymmetric key param type.
+ * @param value Indicates the output data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeySpec_GetParam(OH_CryptoAsymKeySpec *spec, CryptoAsymKey_ParamType type,
+ Crypto_DataBlob *value);
+
+/**
+ * @brief Destroys the asymmetric key spec.
+ *
+ * @param spec Indicates the asymmetric key spec.
+ * @since 20
+ */
+void OH_CryptoAsymKeySpec_Destroy(OH_CryptoAsymKeySpec *spec);
+
+/**
+ * @brief Defines the asymmetric key generator with spec.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoAsymKeyGeneratorWithSpec OH_CryptoAsymKeyGeneratorWithSpec;
+
+/**
+ * @brief Creates an asymmetric key generator with spec.
+ *
+ * @param keySpec Indicates the asymmetric key spec.
+ * @param generator Indicates the asymmetric key generator with spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeyGeneratorWithSpec_Create(OH_CryptoAsymKeySpec *keySpec,
+ OH_CryptoAsymKeyGeneratorWithSpec **generator);
+
+/**
+ * @brief Generates a key pair according to the asymmetric key spec.
+ *
+ * @param generator Indicates the asymmetric key generator with spec.
+ * @param keyPair Indicates the pointer to the key pair.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoAsymKeyGeneratorWithSpec_GenKeyPair(OH_CryptoAsymKeyGeneratorWithSpec *generator,
+ OH_CryptoKeyPair **keyPair);
+
+/**
+ * @brief Destroys the asymmetric key generator with spec.
+ *
+ * @param generator Indicates the asymmetric key generator with spec.
+ * @since 20
+ */
+void OH_CryptoAsymKeyGeneratorWithSpec_Destroy(OH_CryptoAsymKeyGeneratorWithSpec *generator);
+
+/**
+ * @brief Defines the EC point structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoEcPoint OH_CryptoEcPoint;
+
+/**
+ * @brief Creates an EC point.
+ *
+ * @param curveName Indicates the curve name.
+ * @param ecKeyData Indicates the EC point data, supports "04 || x || y", "02 || x" or "03 || x" format.
+ * If ecKeyData param is NULL, an empty EC point spec will be created.
+ * @param point Indicates the pointer to the EC point.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEcPoint_Create(const char *curveName, Crypto_DataBlob *ecKeyData, OH_CryptoEcPoint **point);
+
+/**
+ * @brief Gets the x and y coordinate of the EC point.
+ *
+ * @param point Indicates the EC point.
+ * @param x Indicates the x coordinate of the EC point, it can be NULL.
+ * @param y Indicates the y coordinate of the EC point, it can be NULL.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEcPoint_GetCoordinate(OH_CryptoEcPoint *point, Crypto_DataBlob *x, Crypto_DataBlob *y);
+
+/**
+ * @brief Sets the x and y coordinate to the EC point.
+ *
+ * @param point Indicates the EC point.
+ * @param x Indicates the x coordinate of the EC point.
+ * @param y Indicates the y coordinate of the EC point.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEcPoint_SetCoordinate(OH_CryptoEcPoint *point, Crypto_DataBlob *x, Crypto_DataBlob *y);
+
+/**
+ * @brief Encodes the EC point to the specified format.
+ *
+ * @param point Indicates the EC point.
+ * @param format Indicates the encoding format, supports "UNCOMPRESSED" and "COMPRESSED".
+ * @param out Indicates the encoded ec point data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEcPoint_Encode(OH_CryptoEcPoint *point, const char *format, Crypto_DataBlob *out);
+
+/**
+ * @brief Destroys the EC point.
+ *
+ * @param point Indicates the EC point.
+ * @since 20
+ */
+void OH_CryptoEcPoint_Destroy(OH_CryptoEcPoint *point);
+
#ifdef __cplusplus
}
#endif
diff --git a/CryptoArchitectureKit/crypto_common.h b/CryptoArchitectureKit/crypto_common.h
index 8122dc51cf3fef846b1813210a21abdcabd06d5a..12ae6d224cd1b0b7727ff3ff7c9a339f25e28176 100644
--- a/CryptoArchitectureKit/crypto_common.h
+++ b/CryptoArchitectureKit/crypto_common.h
@@ -69,6 +69,11 @@ typedef enum {
CRYPTO_NOT_SUPPORTED = 801,
/** Indicates the memory error. */
CRYPTO_MEMORY_ERROR = 17620001,
+ /**
+ * Indicates that parameter check failed.
+ * @since 20
+ */
+ CRYPTO_PARAMETER_CHECK_FAILED = 17620003,
/** Indicates that crypto operation error. */
CRYPTO_OPERTION_ERROR = 17630001,
} OH_Crypto_ErrCode;
diff --git a/CryptoArchitectureKit/crypto_digest.h b/CryptoArchitectureKit/crypto_digest.h
index 52227bfe81985db9be558baf6b106b537d809ea7..bac24951a8b1c1fdc48364749b839435dd28ebcc 100644
--- a/CryptoArchitectureKit/crypto_digest.h
+++ b/CryptoArchitectureKit/crypto_digest.h
@@ -97,11 +97,8 @@ OH_Crypto_ErrCode OH_CryptoDigest_Final(OH_CryptoDigest *ctx, Crypto_DataBlob *o
* @brief Get the digest length of the digest context.
*
* @param ctx Indicates the digest context.
- * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
- * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
- * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
- * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
- * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
+ * @return Return the digest length.
+ * If the input parameter ctx is NULL, 401 is returned, in other failure scenarios, 0 is returned.
* @since 12
*/
uint32_t OH_CryptoDigest_GetLength(OH_CryptoDigest *ctx);
@@ -119,11 +116,6 @@ const char *OH_CryptoDigest_GetAlgoName(OH_CryptoDigest *ctx);
* @brief Destroy the digest context.
*
* @param ctx Indicates the digest context.
- * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
- * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
- * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
- * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
- * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
* @since 12
*/
void OH_DigestCrypto_Destroy(OH_CryptoDigest *ctx);
diff --git a/CryptoArchitectureKit/crypto_kdf.h b/CryptoArchitectureKit/crypto_kdf.h
new file mode 100644
index 0000000000000000000000000000000000000000..afa02bc37ee2a475ebb4eaa9de02eda31a0312c7
--- /dev/null
+++ b/CryptoArchitectureKit/crypto_kdf.h
@@ -0,0 +1,173 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup CryptoKdfApi
+ * @{
+ *
+ * @brief Describes the KDF algorithm interface provided to applications.
+ *
+ * @since 20
+ */
+
+/**
+ * @file crypto_kdf.h
+ *
+ * @brief Defines the KDF APIs.
+ *
+ * @library libohcrypto.so
+ * @kit CryptoArchitectureKit
+ * @syscap SystemCapability.Security.CryptoFramework
+ * @since 20
+ */
+
+#ifndef CRYPTO_KDF_H
+#define CRYPTO_KDF_H
+
+#include "crypto_common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the KDF structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoKdf OH_CryptoKdf;
+
+/**
+ * @brief Defines the KDF params structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoKdfParams OH_CryptoKdfParams;
+
+/**
+ * @brief Defines the KDF param type.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Indicates the key or password for KDF. */
+ CRYPTO_KDF_KEY_DATABLOB = 0,
+
+ /** Indicates the salt for KDF. */
+ CRYPTO_KDF_SALT_DATABLOB = 1,
+
+ /** Indicates the info for KDF. */
+ CRYPTO_KDF_INFO_DATABLOB = 2,
+
+ /** Indicates the iteration count for PBKDF2. */
+ CRYPTO_KDF_ITER_COUNT_INT = 3,
+
+ /** Indicates the n for SCRYPT KDF. */
+ CRYPTO_KDF_SCRYPT_N_UINT64 = 4,
+
+ /** Indicates the r for SCRYPT KDF. */
+ CRYPTO_KDF_SCRYPT_R_UINT64 = 5,
+
+ /** Indicates the p for SCRYPT KDF. */
+ CRYPTO_KDF_SCRYPT_P_UINT64 = 6,
+
+ /** Indicates the max memory for SCRYPT KDF. */
+ CRYPTO_KDF_SCRYPT_MAX_MEM_UINT64 = 7,
+} CryptoKdf_ParamType;
+
+/**
+ * @brief Creates KDF params.
+ *
+ * @param algoName Indicates the KDF algorithm name. e.g. "HKDF", "PBKDF2", "SCRYPT".
+ * @param params Indicates the KDF params.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoKdfParams_Create(const char *algoName, OH_CryptoKdfParams **params);
+
+/**
+ * @brief Sets a parameter to the KDF parameters.
+ *
+ * @param params Indicates the KDF parameters.
+ * @param type Indicates the KDF parameter type.
+ * @param value Indicates the KDF parameter value.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoKdfParams_SetParam(OH_CryptoKdfParams *params, CryptoKdf_ParamType type,
+ Crypto_DataBlob *value);
+
+/**
+ * @brief Destroys the KDF params.
+ *
+ * @param params Indicates the KDF parameters.
+ * @since 20
+ */
+void OH_CryptoKdfParams_Destroy(OH_CryptoKdfParams *params);
+
+/**
+ * @brief Creates a KDF context.
+ *
+ * @param algoName Indicates the KDF algorithm name. e.g. "HKDF|SHA384|EXTRACT_AND_EXPAND", "PBKDF2|SHA384", "SCRYPT".
+ * @param ctx Indicates the KDF context.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoKdf_Create(const char *algoName, OH_CryptoKdf **ctx);
+
+/**
+ * @brief Derives a key.
+ *
+ * @param ctx The KDF context.
+ * @param params Indicates the KDF parameters.
+ * @param keyLen Indicates the key derivation length.
+ * @param key Indicates the derived key.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoKdf_Derive(OH_CryptoKdf *ctx, const OH_CryptoKdfParams *params, int keyLen,
+ Crypto_DataBlob *key);
+
+/**
+ * @brief Destroys the KDF context.
+ *
+ * @param ctx The KDF context.
+ * @since 20
+ */
+void OH_CryptoKdf_Destroy(OH_CryptoKdf *ctx);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CRYPTO_KDF_H */
+/** @} */
diff --git a/CryptoArchitectureKit/crypto_key_agreement.h b/CryptoArchitectureKit/crypto_key_agreement.h
new file mode 100644
index 0000000000000000000000000000000000000000..2b011c409986ddbb4b0786765579d475c68a3ca0
--- /dev/null
+++ b/CryptoArchitectureKit/crypto_key_agreement.h
@@ -0,0 +1,97 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup CryptoKeyAgreementApi
+ * @{
+ *
+ * @brief Describes key agreement algorithm interface provided to applications.
+ *
+ * @since 20
+ */
+
+/**
+ * @file crypto_key_agreement.h
+ *
+ * @brief Defines the key agreement APIs.
+ *
+ * @library libohcrypto.so
+ * @kit CryptoArchitectureKit
+ * @syscap SystemCapability.Security.CryptoFramework
+ * @since 20
+ */
+
+#ifndef CRYPTO_KEY_AGREEMENT_H
+#define CRYPTO_KEY_AGREEMENT_H
+
+#include "crypto_common.h"
+#include "crypto_asym_key.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the key agreement structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoKeyAgreement OH_CryptoKeyAgreement;
+
+/**
+ * @brief Creates a key agreement context according to the given algorithm name.
+ *
+ * @param algoName Indicates the algorithm name used to generate a key agreement context. e.g. "ECC", "X25519".
+ * @param ctx Indicates the key agreement context.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoKeyAgreement_Create(const char *algoName, OH_CryptoKeyAgreement **ctx);
+
+/**
+ * @brief Generates a secret value.
+ *
+ * @param ctx Indicates the key agreement context.
+ * @param privkey Indicates the private key.
+ * @param pubkey Indicates the public key.
+ * @param secret Indicates the secret value.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoKeyAgreement_GenerateSecret(OH_CryptoKeyAgreement *ctx, OH_CryptoPrivKey *privkey,
+ OH_CryptoPubKey *pubkey, Crypto_DataBlob *secret);
+
+/**
+ * @brief Destroys the key agreement context.
+ *
+ * @param ctx Indicates the key agreement context.
+ * @since 20
+ */
+void OH_CryptoKeyAgreement_Destroy(OH_CryptoKeyAgreement *ctx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CRYPTO_KEY_AGREEMENT_H */
+/** @} */
diff --git a/CryptoArchitectureKit/crypto_mac.h b/CryptoArchitectureKit/crypto_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..24d3c99392e53be742365b56304923349f9ba9a5
--- /dev/null
+++ b/CryptoArchitectureKit/crypto_mac.h
@@ -0,0 +1,170 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup CryptoMacApi
+ * @{
+ *
+ * @brief Describes the MAC algorithm interface provided to applications.
+ *
+ * @since 20
+ */
+
+/**
+ * @file crypto_mac.h
+ *
+ * @brief Defines the MAC algorithm APIs.
+ *
+ * @library libohcrypto.so
+ * @kit CryptoArchitectureKit
+ * @syscap SystemCapability.Security.CryptoFramework
+ * @since 20
+ */
+
+#ifndef CRYPTO_MAC_H
+#define CRYPTO_MAC_H
+
+#include "crypto_common.h"
+#include "crypto_sym_key.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the MAC structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoMac OH_CryptoMac;
+
+/**
+ * @brief Defines the MAC algorithm parameter type.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Indicates the algorithm name of the message digest function for HMAC. e.g. "SHA256".*/
+ CRYPTO_MAC_DIGEST_NAME_STR = 0,
+
+ /** Indicates the algorithm name of the symmetric cipher function for CMAC. e.g. "AES256".*/
+ CRYPTO_MAC_CIPHER_NAME_STR = 1,
+} CryptoMac_ParamType;
+
+/**
+ * @brief Creates a MAC context according to the given algorithm name.
+ *
+ * @param algoName Indicates the algorithm name for generating the MAC context. e.g. "HMAC", "CMAC".
+ * @param ctx Indicates the pointer to the MAC context.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoMac_Create(const char *algoName, OH_CryptoMac **ctx);
+
+/**
+ * @brief Sets the specified parameter to the MAC context.
+ *
+ * @param ctx Indicates the MAC context.
+ * @param type Indicates the MAC parameter type.
+ * @param value Indicates the parameter value.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoMac_SetParam(OH_CryptoMac *ctx, CryptoMac_ParamType type, const Crypto_DataBlob *value);
+
+/**
+ * @brief Initializes the MAC context with a symmetric key.
+ *
+ * @param ctx Indicates the MAC context.
+ * @param key Indicates the symmetric key.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoMac_Update
+ * @see OH_CryptoMac_Final
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoMac_Init(OH_CryptoMac *ctx, const OH_CryptoSymKey *key);
+
+/**
+ * @brief Updates the MAC context with data.
+ *
+ * @param ctx Indicates the MAC context.
+ * @param in Indicates the data to update.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoMac_Init
+ * @see OH_CryptoMac_Final
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoMac_Update(OH_CryptoMac *ctx, const Crypto_DataBlob *in);
+
+/**
+ * @brief Finalizes the MAC operation.
+ *
+ * @param ctx Indicates the MAC context.
+ * @param out Indicates the MAC result.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoMac_Init
+ * @see OH_CryptoMac_Update
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoMac_Final(OH_CryptoMac *ctx, Crypto_DataBlob *out);
+
+/**
+ * @brief Gets the length of the MAC.
+ *
+ * @param ctx Indicates the MAC context.
+ * @param length Indicates the MAC length.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoMac_GetLength(OH_CryptoMac *ctx, uint32_t *length);
+
+/**
+ * @brief Destroys the MAC context.
+ *
+ * @param ctx Indicates the MAC context.
+ * @since 20
+ */
+void OH_CryptoMac_Destroy(OH_CryptoMac *ctx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CRYPTO_MAC_H */
+/** @} */
diff --git a/CryptoArchitectureKit/crypto_rand.h b/CryptoArchitectureKit/crypto_rand.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e9a4f8e017aaaae3d68c722704b4ef00bfb1acd
--- /dev/null
+++ b/CryptoArchitectureKit/crypto_rand.h
@@ -0,0 +1,114 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup CryptoRandApi
+ * @{
+ *
+ * @brief Describes the random number generation interface provided to applications.
+ *
+ * @since 20
+ */
+/**
+ * @file crypto_rand.h
+ *
+ * @brief Defines the random number generator APIs.
+ *
+ * @library libohcrypto.so
+ * @kit CryptoArchitectureKit
+ * @syscap SystemCapability.Security.CryptoFramework
+ * @since 20
+ */
+#ifndef CRYPTO_RAND_H
+#define CRYPTO_RAND_H
+
+#include "crypto_common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the random number generator structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoRand OH_CryptoRand;
+
+/**
+ * @brief Creates a random number generator context.
+ *
+ * @param ctx Indicates the random number generator context.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoRand_Create(OH_CryptoRand **ctx);
+
+/**
+ * @brief Generates random numbers.
+ *
+ * @param ctx Indicates the random number generator context.
+ * @param len Indicates the byte length of the random number.
+ * @param out Indicates the output data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoRand_GenerateRandom(OH_CryptoRand *ctx, int len, Crypto_DataBlob *out);
+
+/**
+ * @brief Gets the algorithm name of the random number generator context.
+ *
+ * @param ctx Indicates the pointer to the random number generator context.
+ * @return Return the algorithm name of the random number generator context.
+ * @since 20
+ */
+const char *OH_CryptoRand_GetAlgoName(OH_CryptoRand *ctx);
+
+/**
+ * @brief Sets the seed to the random number generator context.
+ *
+ * @param ctx Indicates the random number generator context.
+ * @param seed Indicates the seed.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoRand_SetSeed(OH_CryptoRand *ctx, Crypto_DataBlob *seed);
+
+/**
+ * @brief Destroys the random number generator context.
+ *
+ * @param ctx Indicates the random number generator context.
+ * @since 20
+ */
+void OH_CryptoRand_Destroy(OH_CryptoRand *ctx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CRYPTO_RAND_H */
+/** @} */
diff --git a/CryptoArchitectureKit/crypto_signature.h b/CryptoArchitectureKit/crypto_signature.h
index 321b3f83311d14013dfd841a65c9c4cba8b6458a..904488648d32fe387da5a8fa36231452dd9e2d3c 100644
--- a/CryptoArchitectureKit/crypto_signature.h
+++ b/CryptoArchitectureKit/crypto_signature.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Copyright (C) 2024-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -71,6 +71,13 @@ typedef enum {
*/
typedef struct OH_CryptoVerify OH_CryptoVerify;
+/**
+ * @brief Defines the sign structure.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoSign OH_CryptoSign;
+
/**
* @brief Create a verify context according to the given algorithm name.
*
@@ -159,8 +166,8 @@ const char *OH_CryptoVerify_GetAlgoName(OH_CryptoVerify *ctx);
* @brief Set the specified parameter to the verify context.
*
* @param ctx Indicates the verify context.
- * @param type Indicates the verify signature_paramType.
- * @param value Indicates the verify result.
+ * @param type Indicates the verify parameter type.
+ * @param value Indicates the input data.
* @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
* {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
* {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
@@ -175,8 +182,8 @@ OH_Crypto_ErrCode OH_CryptoVerify_SetParam(OH_CryptoVerify *ctx, CryptoSignature
* @brief Get the specified parameter from the verify context.
*
* @param ctx Indicates the verify context.
- * @param type Indicates the verify signature_paramType.
- * @param value Indicates the verify result.
+ * @param type Indicates the verify parameter type.
+ * @param value Indicates the output data.
* @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
* {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
* {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
@@ -195,6 +202,195 @@ OH_Crypto_ErrCode OH_CryptoVerify_GetParam(OH_CryptoVerify *ctx, CryptoSignature
*/
void OH_CryptoVerify_Destroy(OH_CryptoVerify *ctx);
+/**
+ * @brief Creates a sign context according to the given algorithm name.
+ *
+ * @param algoName Indicates the algorithm name for generating the sign context. e.g. "RSA|PKCS1|SHA384", "ECC|SHA384".
+ * @param sign Indicates the sign context.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSign_Create(const char *algoName, OH_CryptoSign **sign);
+
+/**
+ * @brief Initializes the sign context.
+ *
+ * @param ctx Indicates the sign context.
+ * @param privKey Indicates the private key.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoSign_Update
+ * @see OH_CryptoSign_Final
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSign_Init(OH_CryptoSign *ctx, OH_CryptoPrivKey *privKey);
+
+/**
+ * @brief Updates the data to be signed.
+ *
+ * @param ctx Indicates the sign context.
+ * @param in Indicates the data to be signed.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoSign_Init
+ * @see OH_CryptoSign_Final
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSign_Update(OH_CryptoSign *ctx, const Crypto_DataBlob *in);
+
+/**
+ * @brief Finalizes the sign operation.
+ *
+ * @param ctx Indicates the sign context.
+ * @param in Indicates the data to be signed, if OH_CryptoSign_Update has been called, this parameter can be NULL.
+ * @param out Indicates the sign result.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @see OH_CryptoSign_Init
+ * @see OH_CryptoSign_Update
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSign_Final(OH_CryptoSign *ctx, const Crypto_DataBlob *in, Crypto_DataBlob *out);
+
+/**
+ * @brief Gets the algorithm name of the sign context.
+ *
+ * @param ctx Indicates the sign context.
+ * @return Return signature algorithm name.
+ * @since 20
+ */
+const char *OH_CryptoSign_GetAlgoName(OH_CryptoSign *ctx);
+
+/**
+ * @brief Sets the specified parameter to the sign context.
+ *
+ * @param ctx Indicates the sign context.
+ * @param type Indicates the signature parameter type.
+ * @param value Indicates the input data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSign_SetParam(OH_CryptoSign *ctx, CryptoSignature_ParamType type,
+ const Crypto_DataBlob *value);
+
+/**
+ * @brief Gets the specified parameter from the sign context.
+ *
+ * @param ctx Indicates the sign context.
+ * @param type Indicates the signature parameter type.
+ * @param value Indicates the output data.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoSign_GetParam(OH_CryptoSign *ctx, CryptoSignature_ParamType type, Crypto_DataBlob *value);
+
+/**
+ * @brief Destroys the sign context.
+ *
+ * @param ctx Indicates the sign context.
+ * @since 20
+ */
+void OH_CryptoSign_Destroy(OH_CryptoSign *ctx);
+
+/**
+ * @brief Defines the ECC signature spec.
+ *
+ * @since 20
+ */
+typedef struct OH_CryptoEccSignatureSpec OH_CryptoEccSignatureSpec;
+
+/**
+ * @brief Creates the ECC signature spec, also support SM2 signature.
+ *
+ * @param eccSignature Indicates the ECC signature in DER format, if eccSignature parameter is NULL,
+ * an empty ECC signature spec will be created.
+ * @param spec Indicates the output ECC signature spec.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEccSignatureSpec_Create(Crypto_DataBlob *eccSignature,
+ OH_CryptoEccSignatureSpec **spec);
+
+/**
+ * @brief Gets the r and s value from the ECC signature spec.
+ *
+ * @param spec Indicates the ECC signature spec.
+ * @param r Indicates the output r value.
+ * @param s Indicates the output s value.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEccSignatureSpec_GetRAndS(OH_CryptoEccSignatureSpec *spec, Crypto_DataBlob *r,
+ Crypto_DataBlob *s);
+
+/**
+ * @brief Sets the r and s value to the ECC signature spec.
+ *
+ * @param spec Indicates the ECC signature spec.
+ * @param r Indicates the input r value.
+ * @param s Indicates the input s value.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEccSignatureSpec_SetRAndS(OH_CryptoEccSignatureSpec *spec, Crypto_DataBlob *r,
+ Crypto_DataBlob *s);
+
+/**
+ * @brief Encodes the ECC signature spec to signature data in DER format.
+ *
+ * @param spec Indicates the ECC signature spec.
+ * @param out Indicates the output data blob.
+ * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
+ * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_PARAMETER_CHECK_FAILED} 17620003 - If parameter check failed.
+ * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed.
+ * @since 20
+ */
+OH_Crypto_ErrCode OH_CryptoEccSignatureSpec_Encode(OH_CryptoEccSignatureSpec *spec, Crypto_DataBlob *out);
+
+/**
+ * @brief Destroys the ECC signature spec.
+ *
+ * @param spec Indicates the ECC signature spec.
+ * @since 20
+ */
+void OH_CryptoEccSignatureSpec_Destroy(OH_CryptoEccSignatureSpec *spec);
+
+
#ifdef __cplusplus
}
#endif
diff --git a/CryptoArchitectureKit/libcrypto.ndk.json b/CryptoArchitectureKit/libcrypto.ndk.json
index 8b4d102b5fdc5ceb1141ea192cd09527525d0659..76e0508480c6fc27ff9d2e82c7aa4d76033b36a4 100644
--- a/CryptoArchitectureKit/libcrypto.ndk.json
+++ b/CryptoArchitectureKit/libcrypto.ndk.json
@@ -166,5 +166,265 @@
{
"first_introduced": "12",
"name": "OH_CryptoSymKey_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymCipher_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymCipher_Init"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymCipher_Final"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymCipher_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSm2CiphertextSpec_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSm2CiphertextSpec_GetItem"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSm2CiphertextSpec_SetItem"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSm2CiphertextSpec_Encode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSm2CiphertextSpec_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKeyPair_GetPrivKey"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoPrivKeyEncodingParams_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoPrivKeyEncodingParams_SetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoPrivKeyEncodingParams_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoPrivKey_Encode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoPrivKey_GetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_GenEcCommonParamsSpec"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_GenDhCommonParamsSpec"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_SetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_SetCommonParamsSpec"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_GetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeySpec_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeyGeneratorWithSpec_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeyGeneratorWithSpec_GenKeyPair"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeyGeneratorWithSpec_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEcPoint_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEcPoint_GetCoordinate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEcPoint_SetCoordinate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEcPoint_Encode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEcPoint_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKdfParams_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKdfParams_SetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKdfParams_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKdf_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKdf_Derive"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKdf_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKeyAgreement_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKeyAgreement_GenerateSecret"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoKeyAgreement_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_SetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_Init"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_Update"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_Final"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_GetLength"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoMac_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoRand_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoRand_GenerateRandom"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoRand_GetAlgoName"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoRand_SetSeed"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoRand_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_Init"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_Update"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_Final"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_GetAlgoName"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_SetParam"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_CryptoSign_GetParam"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoSign_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEccSignatureSpec_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEccSignatureSpec_GetRAndS"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEccSignatureSpec_SetRAndS"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEccSignatureSpec_Encode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoEccSignatureSpec_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CryptoAsymKeyGenerator_SetPassword"
}
]
diff --git a/DataProtectionKit/dlp_permission_api.h b/DataProtectionKit/dlp_permission_api.h
index 40ec9c34700fa3271e90b6a107621c8769ec0c25..584d663c7c44903eca970fb850fa3b2ec54fae12 100644
--- a/DataProtectionKit/dlp_permission_api.h
+++ b/DataProtectionKit/dlp_permission_api.h
@@ -86,6 +86,18 @@ typedef enum {
*
* @param dlpFileAccess - Indicates the access permission for the DLP file.
* @param flags - Indicates the actions allowed for the DLP file.
+ * 0x00000000 - No file permissions.
+ * 0x00000001 - File view permission.
+ * 0x00000002 - File save permission.
+ * 0x00000004 - File save-as permission.
+ * 0x00000008 - File edit permission.
+ * 0x00000010 - File screenshot permission.
+ * 0x00000020 - File screen-sharing permission.
+ * 0x00000040 - File screen-recording permission.
+ * 0x00000080 - File copy permission.
+ * 0x00000100 - File print permission.
+ * 0x00000200 - File export permission.
+ * 0x00000400 - File permission modification permission.
* @return {@link DLP_ErrCode#ERR_OH_SUCCESS} 0 - If the operation is successful.
* {@link DLP_ErrCode#ERR_OH_INVALID_PARAMETER} 19100001 - If the parameter value is invalid.
* {@link DLP_ErrCode#ERR_OH_API_ONLY_FOR_SANDBOX} 19100006 - If no permission to
@@ -133,7 +145,7 @@ DLP_ErrCode OH_DLP_IsInSandbox(bool *isInSandbox);
* call this API, which is available only for non-DLP sandbox applications.
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
* works abnormally.
- * {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
+ * {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If the application is not authorized.
* @since 14
*/
DLP_ErrCode OH_DLP_SetSandboxAppConfig(const char *configInfo);
@@ -146,7 +158,7 @@ DLP_ErrCode OH_DLP_SetSandboxAppConfig(const char *configInfo);
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
* works abnormally.
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
- * {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
+ * {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If the application is not authorized.
* @since 14
*/
DLP_ErrCode OH_DLP_GetSandboxAppConfig(char **configInfo);
@@ -159,7 +171,7 @@ DLP_ErrCode OH_DLP_GetSandboxAppConfig(char **configInfo);
* call this API, which is available only for non-DLP sandbox applications.
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
* works abnormally.
- * {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
+ * {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If the application is not authorized.
* @since 14
*/
DLP_ErrCode OH_DLP_CleanSandboxAppConfig();
diff --git a/LocationKit/BUILD.gn b/LocationKit/BUILD.gn
index b5718e151b6855764be4a008588249c329f593c7..4befb797b03629e23a28fb9c8cef6f355a763a40 100644
--- a/LocationKit/BUILD.gn
+++ b/LocationKit/BUILD.gn
@@ -29,7 +29,7 @@ ohos_ndk_library("liblocation_ndk") {
min_compact_version = "13"
system_capability = "SystemCapability.Location.Location.Core"
system_capability_headers = [
- "./oh_location.h",
- "./oh_location_type.h",
+ "LocationKit/oh_location.h",
+ "LocationKit/oh_location_type.h",
]
}
diff --git a/TEEKit/BUILD.gn b/TEEKit/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a11491845572c20cd1efad80f59192aa16a7ddf1
--- /dev/null
+++ b/TEEKit/BUILD.gn
@@ -0,0 +1,79 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License"),
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+
+ohos_ndk_library("libteec") {
+ output_name = "teec"
+ output_extension = "so"
+ ndk_description_file = "./libteec.ndk.json"
+ min_compact_version = "20"
+ system_capability = "SystemCapability.Tee.TeeClient"
+ system_capability_headers = [
+ "TEEKit/tee_client/tee_client_api.h",
+ "TEEKit/tee_client/tee_client_constants.h",
+ "TEEKit/tee_client/tee_client_type.h",
+ ]
+}
+
+ohos_ndk_headers("libtee_header") {
+ dest_dir = "$ndk_headers_out_dir/TEEKit/tee"
+ sources = [
+ "./include/tee/dstb_api.h",
+ "./include/tee/pthread_attr.h",
+ "./include/tee/rpmb_driver_rw_api.h",
+ "./include/tee/rpmb_fcntl.h",
+ "./include/tee/tee_agent.h",
+ "./include/tee/tee_apm_api.h",
+ "./include/tee/tee_arith_api.h",
+ "./include/tee/tee_core_api.h",
+ "./include/tee/tee_crypto_api.h",
+ "./include/tee/tee_crypto_hal.h",
+ "./include/tee/tee_defines.h",
+ "./include/tee/tee_drv_client.h",
+ "./include/tee/tee_dynamic_srv.h",
+ "./include/tee/tee_ext_api.h",
+ "./include/tee/tee_get_recoverymode.h",
+ "./include/tee/tee_hw_ext_api.h",
+ "./include/tee/tee_hw_ext_api_legacy.h",
+ "./include/tee/tee_internal_se_api.h",
+ "./include/tee/tee_log.h",
+ "./include/tee/tee_mem_mgmt_api.h",
+ "./include/tee/tee_notify_set_priority.h",
+ "./include/tee/tee_object_api.h",
+ "./include/tee/tee_property_api.h",
+ "./include/tee/tee_rtc_time_api.h",
+ "./include/tee/tee_service_public.h",
+ "./include/tee/tee_sharemem.h",
+ "./include/tee/tee_sharemem_ops.h",
+ "./include/tee/tee_time_api.h",
+ "./include/tee/tee_trusted_storage_api.h",
+ "./include/tee/tee_tui_gp_api.h",
+ ]
+}
+
+ohos_ndk_headers("libteec_header") {
+ dest_dir = "$ndk_headers_out_dir/TEEKit/tee_client"
+ sources = [
+ "./include/tee_client/tee_client_api.h",
+ "./include/tee_client/tee_client_constants.h",
+ "./include/tee_client/tee_client_type.h",
+ ]
+}
+
+group("tee_ndk_header") {
+ deps = [
+ ":libtee_header",
+ ":libteec_header",
+ ]
+}
diff --git a/TEEKit/include/tee/dstb_api.h b/TEEKit/include/tee/dstb_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..7c67aa22b1bce2562415bb589fed541d720c782b
--- /dev/null
+++ b/TEEKit/include/tee/dstb_api.h
@@ -0,0 +1,123 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file dstb_api.h
+ *
+ * @brief Provides the API about Distributed TEE service.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef DSTB_API_H
+#define DSTB_API_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Enumerates device ID types.
+ *
+ * @since 20
+ */
+enum devid_type {
+ /** Network ID */
+ DEVID_NETID = 0,
+ /** Device ID */
+ DEVID_UDID = 1,
+};
+
+/**
+ * @brief Defines device information.
+ *
+ * @since 20
+ */
+struct device_info {
+ /** Enumerated variable for device ID type */
+ enum devid_type devid_type;
+ /** Device ID value */
+ char *devid;
+};
+
+/**
+ * @brief Enumerates the negotiation conditions.
+ *
+ * @since 20
+ */
+enum nego_condition {
+ /** check whether local has record of peer. If no, start negatiation. */
+ CHECK_LOCAL = 0,
+ /** check local and peer have records of each other. If no, start negotiation. */
+ CHECK_BOTH = 1,
+ /** start negotiation with no condition. */
+ NO_CHECK = 2,
+};
+
+/**
+ * @brief Generate share key by distributed TEE.
+ *
+ * @param devid_info [OUT]The peer devid, can be networkid or deviceid.
+ * @param salt [IN]The salt should be random, same as peer if caller want to generate same share key.
+ * @param salt_len [IN]The length of the salt buffer.
+ * @param info [IN]The entra information for generate share key, same as peer if caller want to generate same share key.
+ * @param info_len [IN]The length of the information buffer.
+ * @param key [OUT]The result key.
+ * @param key_len [IN]The length of the result key.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_dstb_gen_sharekey(struct device_info *devid_info, const uint8_t *salt, uint32_t salt_len,
+ const uint8_t *info, uint32_t info_len, uint8_t *key, uint32_t key_len);
+
+/**
+ * @brief The pre-negotiation interface about distributed TEE service .
+ *
+ * @param devid_info [OUT]The peer devid, can be networkid or deviceid.
+ * @param cond [IN]Pre-negotiation conditions.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_dstb_pre_attestation(struct device_info *devid_info, enum nego_condition cond);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/pthread_attr.h b/TEEKit/include/tee/pthread_attr.h
new file mode 100644
index 0000000000000000000000000000000000000000..8dd0c4e36e421b38db961b13908e35962eed89c0
--- /dev/null
+++ b/TEEKit/include/tee/pthread_attr.h
@@ -0,0 +1,102 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file pthread_attr.h
+ *
+ * @brief Provides the attr about TA multi-thread.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef PTHREAD_ATTR_H
+#define PTHREAD_ATTR_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines that the thread attribute of ca is not explicitly set (wildcard/default state).
+ *
+ * @since 20
+ */
+#define TEESMP_THREAD_ATTR_CA_WILDCARD 0
+
+/**
+ * @brief Defines that the thread attribute of ca inherit from the parent thread.
+ *
+ * @since 20
+ */
+#define TEESMP_THREAD_ATTR_CA_INHERIT (-1U)
+
+/**
+ * @brief Defines that the task ID attribute inherit from the parent task/thread.
+ *
+ * @since 20
+ */
+#define TEESMP_THREAD_ATTR_TASK_ID_INHERIT (-1U)
+
+/**
+ * @brief Defines that the thread attribute has a shadow.
+ *
+ * @since 20
+ */
+#define TEESMP_THREAD_ATTR_HAS_SHADOW 0x1
+
+/**
+ * @brief Defines that the thread attribute does not have a shadow.
+ *
+ * @since 20
+ */
+#define TEESMP_THREAD_ATTR_NO_SHADOW 0x0
+
+/**
+ * @brief Sets thread attributes for CA, task ID, and shadow settings.
+ *
+ * @param a Pointer to the thread attribute object to be modified.
+ * @param ca Specifies the CA attribute value (e.g., TEESMP_THREAD_ATTR_CA_INHERIT for inheritance).
+ * @param task_id Specifies the task ID attribute value (e.g., TEESMP_THREAD_ATTR_TASK_ID_INHERIT for inheritance).
+ * @param shadow Indicates whether to enable shadow settings (TEESMP_THREAD_ATTR_NO_SHADOW 0x0 for no shadow,
+ * TEESMP_THREAD_ATTR_HAS_SHADOW 0x1 for has shadow).
+ *
+ * @return always return 0.
+ *
+ * @since 20
+ */
+int pthread_attr_settee(pthread_attr_t *a, int ca, int task_id, int shadow);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/rpmb_driver_rw_api.h b/TEEKit/include/tee/rpmb_driver_rw_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a77bb84b8cba841cb85a3ab5b95b0d008f12e68
--- /dev/null
+++ b/TEEKit/include/tee/rpmb_driver_rw_api.h
@@ -0,0 +1,351 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file rpmb_driver_rw_api.h
+ *
+ * @brief APIs related to RPMB driver read and write.
+ * Provides the function of reading and writing RPMB driver.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef RPMB_DRIVER_RW_API_H
+#define RPMB_DRIVER_RW_API_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the total block number.
+ *
+ * @since 20
+ */
+#define TOTAL_BLK 4
+
+/**
+ * @brief Defines the size of block.
+ *
+ * @since 20
+ */
+#define BLK_SIZE 256
+
+/**
+ * @brief Defines the size of the total block.
+ *
+ * @since 20
+ */
+#define TOTAL_BLK_SIZE (TOTAL_BLK * BLK_SIZE)
+
+/**
+ * @brief Defines the number of security write protection entries.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_ENTRY_NUM 4
+
+/**
+ * @brief Defines the number of reserved security write protection entries.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_ENTRY_RESERVED_NUM 3
+
+/**
+ * @brief Defines the reserved size of security write protection entries.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_ENTRY_RESERVED_SIZE 16
+
+/**
+ * @brief Defines the number of reserved security write protection frames.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_FRAME_RESERVED_NUM 14
+
+/**
+ * @brief Defines the number of reserved end security write protection frames.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_FRAME_RESERVED_END_NUM 176
+
+/**
+ * @brief Defines the size of the security write protection block.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_BLK_SIZE 256
+
+/**
+ * @brief Defines the maximum number of security write protection LUNs.
+ *
+ * @since 20
+ */
+#define SEC_WRITE_PROTECT_LUN_MAX 5
+
+/**
+ * @brief A WPF set to one specifies that the logical unit shall inhibit alteration of the medium for LBA within
+ * the range indicated by LOGICAL BLOCK ADDRESS field and NUMBER OF LOGICAL BLOCKS field.
+ * Commands requiring writes to the medium shall be terminated with CHECK CONDITION status,
+ * with the sense key set to DATA PROTECT, and the additional sense code set to WRITE PROTECTED.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Disables the write protection. */
+ SEC_WRITE_PROTECT_DISABLE = 0,
+ /** Enables the write protection. */
+ SEC_WRITE_PROTECT_ENABLE = 1,
+} write_protect_flag;
+
+/**
+ * @brief Write Protect Type specifies how WPF bit may be modified.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** WPF bit is persistent through power cycle and hardware reset.
+ * WPF value may only be changed writing to Secure Write Protect Configuration Block.
+ */
+ NV_TYPE = 0,
+ /** WPF bit is automatically cleared to 0b after power cycle or hardware reset. */
+ P_TYPE = 1,
+ /** WPF bit is automatically set to 1b after power cycle or hardware reset. */
+ NV_AWP_TYPE = 2,
+} write_protect_type;
+
+/**
+ * @brief Secure Write Protect Entry.
+ * +-----+---+---+---+---+---+---+---+----+
+ * | | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 0 | Reserved | WFT | WPF| -> wp_data
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 1 | Reserved |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 2 | Reserved |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 3 | Reserved |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 4 | LOGICAL BLOCK ADDRESS | -> logical_blk_addr
+ * +-----+ +
+ * | ... | |
+ * +-----+ +
+ * | 11 | |
+ * +-----+ +
+ * | 20 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | ... | NUMBER OF LOGICAL BLOCKS | -> logical_blk_num
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 15 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ *
+ * @since 20
+ */
+struct rpmb_protect_cfg_blk_entry {
+ /** This field specifies the write protect data. */
+ uint8_t wp_data;
+ /** Reserved bytes for padding. */
+ uint8_t reserved[SEC_WRITE_PROTECT_ENTRY_RESERVED_NUM];
+ /** This field specifies the LBA of the first logical address of the Secure Write Protect ares. */
+ uint64_t logical_blk_addr;
+ /** This field specifies the number of contiguous logical size that belong to the Secure Write Protect. */
+ uint32_t logical_blk_num;
+}__attribute__((packed));
+
+
+/**
+ * @brief Secure Write Protect Configuration Block is supported by RPMB region 0 only.
+ * This block is used for configuring secure write protect areas in logical units.
+ * Each Secure Write Protect Configuration Block for each logical unit.
+ * Each entry represents one secure write protect area.
+ * If an entry is not used, then the related fields shall contain a value of zero.
+ * +-----+---+---+---+---+---+---+---+----+
+ * | | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 0 | LUN |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 1 | DATA LENGTH |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 2 | |
+ * +-----+ +
+ * | ... | Reserved |
+ * +-----+ +
+ * | 15 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 16 | |
+ * +-----+ +
+ * | ... | Secure Write Protect Entry 0 |
+ * +-----+ +
+ * | 31 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 32 | |
+ * +-----+ +
+ * | ... | Secure Write Protect Entry 1 |
+ * +-----+ +
+ * | 47 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 48 | |
+ * +-----+ +
+ * | ... | Secure Write Protect Entry 1 |
+ * +-----+ +
+ * | 63 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 64 | |
+ * +-----+ +
+ * | ... | Secure Write Protect Entry 1 |
+ * +-----+ +
+ * | 79 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ * | 80 | |
+ * +-----+ +
+ * | ... | Reserved |
+ * +-----+ +
+ * | 255 | |
+ * +-----+---+---+---+---+---+---+---+----+
+ *
+ * @since 20
+ */
+struct rpmb_protect_cfg_block {
+ /** Logical Unit Number (LUN) */
+ uint8_t lun;
+ /** Data length for the configuration block */
+ uint8_t data_length;
+ /** Reserved bytes for padding */
+ uint8_t reserved[SEC_WRITE_PROTECT_FRAME_RESERVED_NUM];
+ /** Array of Secure Write Protect entries */
+ struct rpmb_protect_cfg_blk_entry entries[SEC_WRITE_PROTECT_ENTRY_NUM];
+ /** Reserved bytes for padding at the end of the block */
+ uint8_t reserved_end[SEC_WRITE_PROTECT_FRAME_RESERVED_END_NUM];
+}__attribute__((packed));
+
+/**
+ * @brief Write protect config block by RPMB driver.
+ *
+ * @param lun Indicates the logical unit to which secure write protection shall apply,
+ * and 0 <= lun <= {@code SEC_WRITE_PROTECT_LUN_MAX}
+ * @param entries Indicates the Secure Write Protect Entry array, The maximum length is 4.
+ * @param len Indicates the real length of the Secure Write Protect Entry array, which value is less than 4.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if the input parameter is incorrect.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the send message fail.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_rpmb_protect_cfg_blk_write(uint8_t lun, struct rpmb_protect_cfg_blk_entry *entries, uint32_t len);
+
+/**
+ * @brief Read protect config block by RPMB driver.
+ *
+ * @param lun Indicates the logical unit to which secure read protection shall apply,
+ * and 0 <= lun <= SEC_WRITE_PROTECT_LUN_MAX.
+ * @param entries Indicates the Secure Read Protect Entry array, The maximum length is 4.
+ * @param len Indicates the real length of the Secure Read Protect Entry array, which value is less than 4.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if the input parameter is incorrect.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the send message fail.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_rpmb_protect_cfg_blk_read(uint8_t lun, struct rpmb_protect_cfg_blk_entry *entries, uint32_t *len);
+
+/**
+ * @brief Write plaintext buffer to RPMB driver.
+ *
+ * @param buf Indicates the buffer for writing data.
+ * @param size Indicates the length of buffer, the maximum value is 1024.
+ * @param block Indicates the block index of the position of start block, the value is [0, 3].
+ * @param offset Indicates the offset bytes of data position, and the value of offest bytes is less than 256.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if the input parameter is incorrect.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the send message fail.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_rpmb_driver_write(const uint8_t *buf, size_t size, uint32_t block, uint32_t offset);
+
+/**
+ * @brief Read plaintext buffer from RPMB driver.
+ *
+ * @param buf Indicates the buffer for read data.
+ * @param size Indicates the length of buffer, the maximum value is 1024.
+ * @param block Indicates the block index of the position of start block, the value is [0, 3].
+ * @param offset Indicates the offset bytes of data position, and the value of offest bytes is less than 256.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if the input parameter is incorrect.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the send message fail.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_rpmb_driver_read(uint8_t *buf, size_t size, uint32_t block, uint32_t offset);
+
+/**
+ * @brief Remove data from RPMB driver.
+ *
+ * @param size Indicates the length of remove data, the maximum value is 1024.
+ * @param block Indicates the block index of the position of start block, the value is [0, 3].
+ * @param offset Indicates the offset bytes of data position, and the value of offest bytes is less than 256.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if the input parameter is incorrect.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the send message fail.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_rpmb_driver_remove(size_t size, uint32_t block, uint32_t offset);
+
+/**
+ * @brief RPMB secure storage fully formatted operation
+ *
+ * @return TEE_SUCCESS Indicates that the function was executed successfully
+ * TEE_ERROR_RPMB_GENERIC RPMB controller general error
+ * TEE_ERROR_RPMB_MAC_FAIL RPMB controller MAC check error
+ * TEE_ERROR_RPMB_RESP_UNEXPECT_MAC RPMB response data MAC check error
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_rpmb_format();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/rpmb_fcntl.h b/TEEKit/include/tee/rpmb_fcntl.h
new file mode 100644
index 0000000000000000000000000000000000000000..ccd796bb2f2c25e0dad7aebbbaab46b5c2c5e887
--- /dev/null
+++ b/TEEKit/include/tee/rpmb_fcntl.h
@@ -0,0 +1,324 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file rpmb_fcntl.h
+ *
+ * @brief Provides the APIs related to RPMB service.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef RPMB_RPMB_FCNTL_H
+#define RPMB_RPMB_FCNTL_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Partition initialization, perform RPMB Key writing and formatting operations.
+ *
+ * @attention This function only needs to be executed once.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_RPMB_GENERIC} if the RPMB controller general error.
+ * Returns {@code TEE_ERROR_RPMB_MAC_FAIL} if the RPMB controller MAC check error.
+ * Returns {@code TEE_ERROR_RPMB_RESP_UNEXPECT_MAC} if the RPMB response data MAC check error.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Init(void);
+
+/**
+ * @brief RPMB secure storage fully formatted operation.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_RPMB_GENERIC} if the RPMB controller general error.
+ * Returns {@code TEE_ERROR_RPMB_MAC_FAIL} if the RPMB controller MAC check error.
+ * Returns {@code TEE_ERROR_RPMB_RESP_UNEXPECT_MAC} if the RPMB response data MAC check error.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Format(void);
+
+/**
+ * @brief Write files to RPMB.
+ *
+ * @attention If you want to improve the performance of writing files, you need to define the heap size in TA's
+ * manifest to be at leaset 3 times the file size plus 256KB.
+ * For example: To write a file with a size of 100KB, the defined heap size is at least
+ * 556KB (3 * 100 + 256). If the heap size cannot be satisfied, the file writing will still succeed,
+ * but the performance will be poor.
+ *
+ * @param filename Indicates the file name of the data to be written, the maximum length is 64 bytes.
+ * @param buf Indicates the buffer for writting data.
+ * @param size Indicates the size of the written data, the maximum size is 160KB.
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect, or the file name is longer than 64
+ * bytes.
+ * Returns {@code TEE_ERROR_RPMB_NOSPC} if the RPMB partition has insufficient disk space.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Write(const char *filename, const uint8_t *buf, size_t size);
+
+/**
+ * @brief Write files to RPMB by huk2 encryption.
+ *
+ * @attention If you want to improve the performance of writing files, you need to define the heap size in TA's
+ * manifest to be at leaset 3 times the file size plus 256KB.
+ * For example: To write a file with a size of 100KB, the defined heap size is at least
+ * 556KB (3 * 100 + 256). If the heap size cannot be satisfied, the file writing will still succeed,
+ * but the performance will be poor.
+ *
+ * @param filename Indicates the file name of the data to be written, the maximum length is 64 bytes.
+ * @param buf Indicates the buffer for writting data.
+ * @param size Indicates the size of the written data, the maximum size is 160KB.
+ * @param fmode Indicates the encryption method for written data, this interface provides specified huk2 encryption.
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect, or the file name is longer than 64
+ * bytes.
+ * Returns {@code TEE_ERROR_RPMB_NOSPC} if the RPMB partition has insufficient disk space.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Write_Attr(const char *filename, const uint8_t *buf, size_t size, uint32_t fmode);
+
+/**
+ * @brief Read files from RPMB.
+ *
+ * @attention If you want to improve the performance of reading files, you need to define the heap size in TA's
+ * manifest to be at leaset 3 times the file size plus 256KB.
+ * For example: To read a file with a size of 100KB, the defined heap size is at least
+ * 556KB (3 * 100 + 256). If the heap size cannot be satisfied, the file reading will still succeed,
+ * but the performance will be poor.
+ *
+ * @param filename Indicates the file name of the data to be read, the maximum length is 64 bytes.
+ * @param buf Indicates the buffer for reading data.
+ * @param size Indicates the read data size.
+ * @param count Indicates the size of the actual read.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect, or the file name is longer than 64
+ * bytes.
+ * Returns {@code TEE_ERROR_RPMB_FILE_NOT_FOUND} if the file dose not exist.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Read(const char *filename, uint8_t *buf, size_t size, uint32_t *count);
+
+/**
+ * @brief Rename file name in RPMB.
+ *
+ * @param old_name Indicates the old file name.
+ * @param new_name Indicates the new file name.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect, or the file name is longer than 64
+ * bytes.
+ * Returns {@code TEE_ERROR_RPMB_FILE_NOT_FOUND} if the file dose not exist.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Rename(const char *old_name, const char *new_name);
+
+/**
+ * @brief Delete files in RPMB.
+ *
+ * @param filename Indicates the file name to be deleted.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect, or the file name is longer than 64
+ * bytes.
+ * Returns {@code TEE_ERROR_RPMB_FILE_NOT_FOUND} if the file dose not exist.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Rm(const char *filename);
+
+/**
+ * @brief File status stored in RPMB partition, used in {@code TEE_RPMB_FS_Stat}.
+ *
+ * @since 20
+ */
+struct rpmb_fs_stat {
+ /** Indicates the file size. */
+ uint32_t size;
+ /** Reserved field for padding. */
+ uint32_t reserved;
+};
+
+/**
+ * @brief Get file status in RPMB.
+ *
+ * @param filename Indicates the file name in RPMB.
+ * @param stat Indicates the file status information obtained.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect, or the file name is longer than 64
+ * bytes.
+ * Returns {@code TEE_ERROR_RPMB_FILE_NOT_FOUND} if the file dose not exist.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Stat(const char *filename, struct rpmb_fs_stat *stat);
+
+/**
+ * @brief Disk status stored in RPMB partition, used in {@code TEE_RPMB_FS_StatDisk}.
+ *
+ * @since 20
+ */
+struct rpmb_fs_statdisk {
+ /** Indicates the total size of RPMB partition. */
+ uint32_t disk_size;
+ /** Indicates the TA used size. */
+ uint32_t ta_used_size;
+ /** Indicates the free size of the RPMB partition. */
+ uint32_t free_size;
+ /** Reserved field for padding. */
+ uint32_t reserved;
+};
+
+/**
+ * @brief Get the disk status.
+ *
+ * @param stat Indicates the disk status information obtained.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_StatDisk(struct rpmb_fs_statdisk *stat);
+
+/**
+ * @brief File attribute definition, which means that the file cannot be erased during the factory reset.
+ *
+ * @since 20
+*/
+#define TEE_RPMB_FMODE_NON_ERASURE (1U << 0)
+
+/**
+ * @brief File attribute definition, which means the attribute value of the cleard file.
+ *
+ * @since 20
+*/
+#define TEE_RPMB_FMODE_CLEAR 0
+
+
+/**
+ * @brief Set the file attribute in RPMB.
+ *
+ * @param filename Indicates the file name in RPMB.
+ * @param fmode Indicates the file attribute, currently supports {@code TEE_RPMB_FMODE_NON_ERASURE} and
+ * {@code TEE_RPMB_FMODE_CLEAR} two attributes, other values will return {@code TEE_ERROR_BAD_PARAMETERS}.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect,
+ * or the file name is longer than 64 bytes.
+ * Returns {@code TEE_ERROR_RPMB_FILE_NOT_FOUND} if the file dose not exist.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_SetAttr(const char *filename, uint32_t fmode);
+
+/**
+ * @brief Format, delete file attribute is erasable file, keep the file attribute is an inerasable file.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_RPMB_GENERIC} if the RPMB controller general error.
+ * Returns {@code TEE_ERROR_RPMB_MAC_FAIL} if the RPMB controller MAC check error.
+ * Returns {@code TEE_ERROR_RPMB_RESP_UNEXPECT_MAC} if the RPMB response data MAC check error.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RPMB_FS_Erase(void);
+
+/**
+ * @brief Enumerates the types of RPMB key status, used in {@code TEE_RPMB_KEY_Status}.
+ *
+ * @since 20
+*/
+enum TEE_RPMB_KEY_STAT {
+ /** RPMB Key status is invalid. */
+ TEE_RPMB_KEY_INVALID = 0x0,
+ /** RPMB Key has been programmed and matched correctly. */
+ TEE_RPMB_KEY_SUCCESS,
+ /** RPMB Key is not programmed. */
+ TEE_RPMB_KEY_NOT_PROGRAM,
+ /** RPMB Key has been programmed but failed to match. */
+ TEE_RPMB_KEY_NOT_MATCH,
+};
+
+/**
+ * @brief Obtain RPMB Key status.
+ *
+ * @return Returns {@code TEE_RPMB_KEY_SUCCESS} if the RPMB Key has been programmed and matched correctly.
+ * Returns {@code TEE_RPMB_KEY_NOT_PROGRAM} if the RPMB Key is not programmed.
+ * Returns {@code TEE_RPMB_KEY_NOT_MATCH} if RPMB Key has been programmed but failed to match.
+ * Returns {@code TEE_RPMB_KEY_INVALID} if the RPMB Key status is invalid.
+ *
+ * @since 20
+ */
+uint32_t TEE_RPMB_KEY_Status(void);
+
+/**
+ * @brief Enumerates the types of RPMB, 1 means ufs or emmc, 2 means rpmc.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** ufs / emmc is safe. */
+ TEE_RPMB_SECLEVEL_HIGH = 0x1,
+ /** rpmb is emulated by rpmc. */
+ TEE_RPMB_SECLEVEL_LOW = 0x2,
+} TEE_RPMB_SECLEVEL;
+
+/**
+ * @brief Get RPMB security level, 1 means ufs/emmc, 2 means rpmc.
+ *
+ * @param sec_level Returns current security level.
+ *
+ * @return TEE_SUCCESS Indicates successful, sec_level value is valid.
+ * Other return value Indicates error, sec_level value is invalid.
+ *
+ * @since 20
+ */
+TEE_Result tee_rpmb_fs_getseclevel(uint32_t *sec_level);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_agent.h b/TEEKit/include/tee/tee_agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..83777e3779dfac4295a7e6046d1989bf7a176ffb
--- /dev/null
+++ b/TEEKit/include/tee/tee_agent.h
@@ -0,0 +1,103 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_agent.h
+ *
+ * @brief Provides the API about TA agent.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_AGENT_H
+#define TEE_AGENT_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief The TA sends a message to the gtask to lock the agent.
+ *
+ * @param agent_id ID of the agent that requests to be locked.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_agent_lock(uint32_t agent_id);
+
+/**
+ * @brief Unlock the agent.
+ *
+ * @param agent_id ID of the agent that requests to be unlocked.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_agent_unlock(uint32_t agent_id);
+
+/**
+ * @brief Send agent cmd to gtask.
+ *
+ * @param agent_id The agent ID.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_send_agent_cmd(uint32_t agent_id);
+
+/**
+ * @brief Receive messgage in get agent buffer.
+ *
+ * @param agent_id The agent ID.
+ * @param buffer The agent buffer.
+ * @param length The length of the agent buffer.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_get_agent_buffer(uint32_t agent_id, void **buffer, uint32_t *length);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_apm_api.h b/TEEKit/include/tee/tee_apm_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e9aac32926e4422a52c34a694366ecf5e2bf3e2
--- /dev/null
+++ b/TEEKit/include/tee/tee_apm_api.h
@@ -0,0 +1,232 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_apm_api.h
+ *
+ * @brief Provides the API about TA APM.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_APM_API_H
+#define TEE_APM_API_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Enumerates the TEE measurement result values.
+ *
+ * @since 20
+ */
+enum tee_measure_result_value {
+ /** Measurement success. */
+ TEE_MEASURE_SUCCESS = 0x00000000,
+ /** Generic error. */
+ TEE_MEASURE_ERROR_GENERIC = 0x00000001,
+ /** TA hash check failed. */
+ TEE_MEASURE_ERROR_TA_HASH_CHECK_FAILED = 0x00000002,
+ /** TA baseline does not exist. */
+ TEE_MEASURE_ERROR_TA_BASELINE_NOT_EXIST = 0x00000003,
+ /** TA memory hash does not exist. */
+ TEE_MEASURE_ERROR_TA_MEMHASH_NOT_EXIST = 0x00000004,
+ /** Permission denied. */
+ TEE_MEASURE_ERROR_PERMISSION_DENY = 0x00000005,
+ /** TA history measurement does not exist. */
+ TEE_MEASURE_ERROR_TA_HISTORY_MEASURE_NOT_EXIST = 0x00000006,
+ /** MSPC report query failed. */
+ TEE_MEASURE_ERROR_MSPC_REPORT_QUERY_FAILED = 0x00000007,
+ /** MSPC service is unavailable. */
+ TEE_MEASURE_ERROR_MSPC_NOT_SUPPORT = 0x00000008,
+ /** APM measurement report not supported. */
+ TEE_MEASURE_ERROR_REPORT_NOT_SUPPORT = 0x00000009,
+ /** APM service is unavailable. */
+ TEE_MEASURE_ERROR_APM_NOT_SUPPORT = 0x0000000a,
+};
+
+/**
+ * @brief Record the recent measure errors.
+ *
+ * @since 20
+ */
+#define MAX_HISTORY_MEASURE_RECORDS_NUM 10
+
+/**
+ * @brief Defines the history of measurement errors.
+ *
+ * @since 20
+ */
+struct history_measure_result_t {
+ /** recent measure errors number. */
+ uint8_t error_num;
+ /** measure error type */
+ uint32_t error_type[MAX_HISTORY_MEASURE_RECORDS_NUM];
+ /** measure error time */
+ uint64_t error_time[MAX_HISTORY_MEASURE_RECORDS_NUM];
+};
+
+/**
+ * @brief Defines the size of the TA memory hash.
+ *
+ * @since 20
+ */
+#define TA_HASH_SIZE 32
+
+/**
+ * @brief Defines the structure of the TA measure report.
+ *
+ * @since 20
+ */
+struct ta_measure_report_t {
+ /** TA UUID */
+ TEE_UUID uuid;
+ /** TA's measurement result */
+ uint32_t measure_result;
+ /** TA's runtime measurement hash */
+ uint8_t ta_measured[TA_HASH_SIZE];
+ /** TA's baseline measurement hash */
+ uint8_t ta_baseline[TA_HASH_SIZE];
+ /** History measurement results */
+ struct history_measure_result_t history_result;
+};
+
+/**
+ * @brief Queries the TA measure report.
+ *
+ * @param uuid A pointer to the TA's UUID.
+ * @param report A pointer to the structure that stores the measure report result.
+ *
+ * @return Returns the query result, TEE_SUCCESS if successful, or the corresponding error code if failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_query_ta_measure_report(const TEE_UUID *uuid, struct ta_measure_report_t *report);
+
+/**
+ * @brief Defines the structure of the MSPC measure report element.
+ *
+ * @since 20
+ */
+struct mspc_metric_report_element_t {
+ /** Baseline status */
+ uint32_t baseline_status;
+ /** Most recent error */
+ uint32_t recent_error;
+ /** Error type */
+ uint32_t error_class;
+ /** Time when the error occurred */
+ uint32_t error_time;
+};
+
+/**
+ * @brief Defines the structure of the MSPC measure result report substructure.
+ *
+ * @since 20
+ */
+struct mspc_metric_result_report_sub {
+ /** Global metric result */
+ struct mspc_metric_report_element_t global_result;
+ /** BL2 metric result */
+ struct mspc_metric_report_element_t bl2_result;
+ /** BL31 metric result */
+ struct mspc_metric_report_element_t bl31_result;
+ /** TEE metric result */
+ struct mspc_metric_report_element_t tee_result;
+};
+
+/**
+ * @brief Defines the structure of the passive part of the MSPC measure result report.
+ *
+ * @since 20
+ */
+struct mspc_metric_result_report_passive {
+ /** BL2 verification result */
+ struct mspc_metric_report_element_t bl2_verify_result;
+ /** TEE active metric result */
+ struct mspc_metric_report_element_t tee_active_protect;
+};
+
+/**
+ * @brief Defines the structure of the command processing part of the MSPC measure result report.
+ *
+ * @since 20
+ */
+struct mspc_metric_result_report_of_cmd_process {
+ /** Baseline command metirc result */
+ struct mspc_metric_report_element_t cmd_baseline;
+ /** Active command metric result */
+ struct mspc_metric_report_element_t cmd_active_metric;
+ /** Passive command metric result */
+ struct mspc_metric_report_element_t cmd_passive_metric;
+ /** Query command metric result */
+ struct mspc_metric_report_element_t cmd_query_result;
+};
+
+/**
+ * @brief Defines the structure of the MSPC measure result report.
+ *
+ * @since 20
+ */
+struct mspc_metric_result_report_t {
+ /** Final metric result */
+ uint32_t final_result;
+ /** Baseline metric report */
+ struct mspc_metric_result_report_sub baseline_report;
+ /** Idle metric report */
+ struct mspc_metric_result_report_sub idle_metric_report;
+ /** Active metric report */
+ struct mspc_metric_result_report_sub active_metric_report;
+ /** Passive metric report */
+ struct mspc_metric_result_report_passive passive_metric_report;
+ /** Command metric report */
+ struct mspc_metric_result_report_of_cmd_process cmd_process_report;
+};
+
+/**
+ * @brief Queries the MSPC measurement report.
+ *
+ * @param report A pointer to the structure that stores mspc measurement report.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_query_mspc_measure_report(struct mspc_metric_result_report_t *report);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_arith_api.h b/TEEKit/include/tee/tee_arith_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..258ca8a1b8081d412504a9beb5ddacdf91d05041
--- /dev/null
+++ b/TEEKit/include/tee/tee_arith_api.h
@@ -0,0 +1,555 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_arith_api.h
+ *
+ * @brief Provides APIs for operating big integers.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_ARITH_API_H
+#define TEE_ARITH_API_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the handle type representing a big integer.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_BigInt;
+
+/**
+ * @brief Defines the handle of a big integer for Fast Modular Multiplication (FMM).
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_BigIntFMM;
+
+/**
+ * @brief Defines the handle of a context container for FMM operations.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_BigIntFMMContext;
+
+/**
+ * @brief Obtains the size of the array of uint32_t values required to represent a BigInt.
+ *
+ * @param n Indicates the TEE_BigInt type.
+ *
+ * @return Returns the BigInt size obtained.
+ *
+ * @since 20
+ */
+#define TEE_BigIntSizeInU32(n) ((((n) + 31) / 32) + 2)
+
+/**
+ * @brief Obtains the size of the array of uint32_t values.
+ *
+ * @param modulusSizeInBits Indicates the modulus size, in bits.
+ *
+ * @return Returns the number of bytes required to store a TEE_BigIntFMM,
+ * given a modulus of length modSizeInBits.
+ *
+ * @since 20
+ */
+size_t TEE_BigIntFMMSizeInU32(size_t modulusSizeInBits);
+
+/**
+ * @brief Obtains the size of an array of uint32_t values required to represent a fast modular context.
+ *
+ * @param modulusSizeInBits Indicates the modulus size, in bits.
+ *
+ * @return Returns the number of bytes required to store a TEE_BigIntFMMContext,
+ * given a modulus of length modSizeInBits.
+ *
+ * @since 20
+ */
+size_t TEE_BigIntFMMContextSizeInU32(size_t modulusSizeInBits);
+
+/**
+ * @brief Initializes a TEE_BigInt.
+ *
+ * @param bigInt Indicates the pointer to the TEE_BigInt to initialize.
+ * @param len Indicates the size of the memory pointed to by TEE_BigInt, in uint32_t.
+ *
+ * @since 20
+ */
+void TEE_BigIntInit(TEE_BigInt *bigInt, size_t len);
+
+/**
+ * @brief Calculates the necessary prerequisites for fast modular multiplication and stores them in a context.
+ *
+ * @param context Indicates the pointer to the TEE_BigIntFMMContext to initialize.
+ * @param len Indicates the size of the memory pointed to by context, in uint32_t.
+ * @param modulus Indicates the pointer to the modulus.
+ *
+ * @since 20
+ */
+void TEE_BigIntInitFMMContext(TEE_BigIntFMMContext *context, size_t len, const TEE_BigInt *modulus);
+
+/**
+ * @brief Calculates the necessary prerequisites for fast modular multiplication and stores them in a context.
+ *
+ * @param context Indicates the pointer to the TEE_BigIntFMMContext to initialize.
+ * @param len Indicates the size of the memory pointed to by context, in uint32_t.
+ * @param modulus Indicates the pointer to the modulus.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns other values if the operation fails.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntInitFMMContext1(TEE_BigIntFMMContext *context, size_t len, const TEE_BigInt *modulus);
+
+/**
+ * @brief Initializes a TEE_BigIntFMM and sets its represented value to zero.
+ *
+ * @param bigIntFMM Indicates the pointer to the TEE_BigIntFMM to initialize.
+ * @param len Indicates the size of the memory pointed to by bigIntFMM, in uint32_t.
+ *
+ * @since 20
+ */
+void TEE_BigIntInitFMM(TEE_BigIntFMM *bigIntFMM, size_t len);
+
+/**
+ * @brief Converts an octet string buffer into the TEE_BigInt format.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result.
+ * @param buffer Indicates the pointer to the buffer that holds the octet string representation of the integer.
+ * @param bufferLen Indicates the buffer length, in bytes.
+ * @param sign Indicates the sign of dest, which is set to the sign of sign.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OVERFLOW if the memory allocated for dest is too small.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntConvertFromOctetString(TEE_BigInt *dest, const uint8_t *buffer, size_t bufferLen, int32_t sign);
+
+/**
+ * @brief Converts the absolute value of an integer in TEE_BigInt format into an octet string.
+ *
+ * @param buffer Indicates the pointer to the output buffer that holds the converted octet string representation
+ * of the integer.
+ * @param bufferLen Indicates the pointer to the buffer length, in bytes.
+ * @param bigInt Indicates the pointer to the integer to convert.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_SHORT_BUFFER if the output buffer is too small to hold the octet string.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntConvertToOctetString(void *buffer, size_t *bufferLen, const TEE_BigInt *bigInt);
+
+/**
+ * @brief Sets dest to the value shortVal.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result.
+ * @param shortVal Indicates the value to set.
+ *
+ * @since 20
+ */
+void TEE_BigIntConvertFromS32(TEE_BigInt *dest, int32_t shortVal);
+
+/**
+ * @brief Sets dest to the value of src, including the sign of src.
+ *
+ * @param dest Indicates the pointer to the int32_t that holds the result.
+ * @param src Indicates the pointer to the value to set.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OVERFLOW if src does not fit within an int32_t.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntConvertToS32(int32_t *dest, const TEE_BigInt *src);
+
+/**
+ * @brief Checks whether op1 > op2, op1 == op2, or op1 < op2.
+ *
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ *
+ * @return Returns 0 if op1 == op2.
+ * Returns a positive number if op1 > op2.
+ *
+ * @since 20
+ */
+int32_t TEE_BigIntCmp(const TEE_BigInt *op1, const TEE_BigInt *op2);
+
+/**
+ * @brief Checks whether op > shortVal, op == shortVal, or op < shortVal.
+ *
+ * @param op Indicates the pointer to the first operand.
+ * @param shortVal Indicates the pointer to the second operand.
+ *
+ * @return Returns 0 if op1 == shortVal.
+ * Returns a positive number if op1 > shortVal.
+ *
+ * @since 20
+ */
+int32_t TEE_BigIntCmpS32(const TEE_BigInt *op, int32_t shortVal);
+
+/**
+ * @brief Computes |dest| = |op| >> bits.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the shifted result.
+ * @param op Indicates the pointer to the operand to be shifted.
+ * @param bits Indicates the number of bits to shift.
+ *
+ * @since 20
+ */
+void TEE_BigIntShiftRight(TEE_BigInt *dest, const TEE_BigInt *op, size_t bits);
+
+/**
+ * @brief Obtains the bitIndex bit of the natural binary representation of |src|.
+ *
+ * @param src Indicates the pointer to the integer.
+ * @param bitIndex Indicates the offset of the bit to read, starting from offset 0 of the least significant bit.
+ *
+ * @return Returns the Boolean value of bitIndexth in |src|. The value true represents a 1,
+ * and false represents a 0.
+ *
+ * @since 20
+ */
+bool TEE_BigIntGetBit(const TEE_BigInt *src, uint32_t bitIndex);
+
+/**
+ * @brief Obtains the number of bits in the natural binary representation of |src|,
+ * that is, the magnitude of src.
+ *
+ * @param src Indicates the pointer to the integer.
+ *
+ * @return Returns 0 if src is 0.
+ * Returns the number of bits in the natural binary representation of src.
+ *
+ * @since 20
+ */
+uint32_t TEE_BigIntGetBitCount(const TEE_BigInt *src);
+
+/**
+ * @brief Sets the first bit of bitIndex in the natural binary representation of op to
+ * 1 or 0.
+ *
+ * @param op Indicates the pointer to the integer.
+ * @param bitIndex Indicates the offset of the bit to set, starting from offset 0 of the least significant bit.
+ * @param value Indicates the bit value to set. The value true represents a 1, and the value false
+ * represents a 0.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OVERFLOW bitIndexth if the bitIndexth bit is larger than the allocated bit
+ * length of op.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntSetBit(TEE_BigInt *op, uint32_t bitIndex, bool value);
+
+/**
+ * @brief Assigns the value of src to dest.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt to be assigned.
+ * @param src Indicates the pointer to the source operand.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OVERFLOW if the dest operand cannot hold the value of src.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntAssign(TEE_BigInt *dest, const TEE_BigInt *src);
+
+/**
+ * @brief Assigns the value of src to dest.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt to be assigned.
+ * @param src Indicates the pointer to the source operand.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OVERFLOW if the dest operand cannot hold the value of src.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntAbs(TEE_BigInt *dest, const TEE_BigInt *src);
+
+/**
+ * @brief Computes dest = op1 + op2.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the sum of op1 and op2.
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ *
+ * @since 20
+ */
+void TEE_BigIntAdd(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2);
+
+/**
+ * @brief Computes dest = op1 – op2.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the difference between op1
+ * and op2.
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ *
+ * @since 20
+ */
+void TEE_BigIntSub(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2);
+
+/**
+ * @brief Negates an operand: dest = –op.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result –op.
+ * @param op Indicates the pointer to the operand to be negated.
+ *
+ * @since 20
+ */
+void TEE_BigIntNeg(TEE_BigInt *dest, const TEE_BigInt *op);
+
+/**
+ * @brief Computes dest = op1 * op2.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the product of op1 and op2.
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ *
+ * @since 20
+ */
+void TEE_BigIntMul(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2);
+
+/**
+ * @brief Computes dest = op * op.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result op * op.
+ * @param op Indicates the pointer to the operand to be squared.
+ *
+ * @since 20
+ */
+void TEE_BigIntSquare(TEE_BigInt *dest, const TEE_BigInt *op);
+
+/**
+ * @brief Computes dest_r and dest_q to make op1 = dest_q* op2 + dest_r.
+ *
+ * @param dest_q Indicates the pointer to the TEE_BigInt that holds the quotient.
+ * @param dest_r Indicates the pointer to the TEE_BigInt that holds the remainder.
+ * @param op1 Indicates the pointer to the first operand, which is the dividend.
+ * @param op2 Indicates the pointer to the second operand, which is the divisor.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if at least one parameter is null.
+ *
+ * @since 20
+ */
+void TEE_BigIntDiv(TEE_BigInt *dest_q, TEE_BigInt *dest_r, const TEE_BigInt *op1, const TEE_BigInt *op2);
+
+/**
+ * @brief Computes dest = op (mod n) to make 0 <= dest < n.
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result op (mod n).
+ * @param op Indicates the pointer to the operand to be reduced mod n.
+ * @param n [IN] Indicates the pointer to the modulus, which must be greater than 1.
+ *
+ * @since 20
+ */
+void TEE_BigIntMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
+
+/**
+ * @brief Computes dest = (op1 + op2) (mod n).
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result op (op1 + op2)(mod n).
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ * @param n Indicates the pointer to the modulus, which must be greater than 1.
+ *
+ * @since 20
+ */
+void TEE_BigIntAddMod(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n);
+
+/**
+ * @brief Computes dest = (op1 – op2) (mod n).
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result op (op1 – op2)(mod n).
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ * @param n Indicates the pointer to the modulus, which must be greater than 1.
+ *
+ * @since 20
+ */
+void TEE_BigIntSubMod(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n);
+
+/**
+ * @brief Computes dest = (op1* op2)(mod n).
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result op (op1 * op2)(mod n).
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ * @param n Indicates the pointer to the modulus, which must be greater than 1.
+ *
+ * @since 20
+ */
+void TEE_BigIntMulMod(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n);
+
+/**
+ * @brief Computes dest = (op * op) (mod n).
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result op (op * op)(mod n).
+ * @param op Indicates the pointer to the operand.
+ * @param n [IN] Indicates the pointer to the modulus, which must be greater than 1.
+ *
+ * @since 20
+ */
+void TEE_BigIntSquareMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
+
+/**
+ * @brief Computes dest to make dest* op = 1 (mod n).
+ *
+ * @param dest Indicates the pointer to the TEE_BigInt that holds the result (op^–1)(mod n).
+ * @param op Indicates the pointer to the operand.
+ * @param n [IN] Indicates the pointer to the modulus, which must be greater than 1.
+ *
+ * @since 20
+ */
+void TEE_BigIntInvMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
+
+/**
+ * @brief Checks whether gcd(op1, op2) == 1.
+ *
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ *
+ * @return Returns true if gcd(op1, op2) == 1.
+ * Returns false if gcd(op1, op2) != 1.
+ *
+ * @since 20
+ */
+bool TEE_BigIntRelativePrime(const TEE_BigInt *op1, const TEE_BigInt *op2);
+
+/**
+ * @brief Computes the greatest common divisor of op1 and op2.
+ *
+ * @param gcd Indicates the pointer to the TEE_BigInt that holds the greatest common divisor of op1
+ * and op2.
+ * @param u Indicates the pointer to the TEE_BigInt that holds the first coefficient.
+ * @param v Indicates the pointer to the TEE_BigInt that holds the second coefficient.
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ *
+ * @since 20
+ */
+void TEE_BigIntComputeExtendedGcd(TEE_BigInt *gcd, TEE_BigInt *u, TEE_BigInt *v, const TEE_BigInt *op1,
+ const TEE_BigInt *op2);
+/**
+ * @brief Performs a probabilistic primality test on op.
+ *
+ * @param op Indicates the pointer to the candidate number that is tested for primality.
+ * @param confidenceLevel Indicates the expected confidence level for a non-conclusive test.
+ *
+ * @return Returns 0 if op is a composite number.
+ * Returns 1 if op is a prime number.
+ * Returns –1 if the test is non-conclusive but the probability that op is composite is
+ * less than 2^(-confidenceLevel).
+ *
+ * @since 20
+ */
+int32_t TEE_BigIntIsProbablePrime(const TEE_BigInt *op, uint32_t confidenceLevel);
+
+/**
+ * @brief Converts src into a representation suitable for doing fast modular multiplication.
+ *
+ * @param dest Indicates the pointer to an initialized TEE_BigIntFMM memory area.
+ * @param src Indicates the pointer to the TEE_BigInt to convert.
+ * @param n Indicates the pointer to the modulus.
+ * @param context Indicates the pointer to the context that is previously initialized using
+ * {@link TEE_BigIntInitFMMContext1}.
+ *
+ * @since 20
+ */
+void TEE_BigIntConvertToFMM(TEE_BigIntFMM *dest, const TEE_BigInt *src, const TEE_BigInt *n,
+ const TEE_BigIntFMMContext *context);
+
+/**
+ * @brief Converts src in the fast modular multiplication representation back to a
+ * TEE_BigInt representation.
+ *
+ * @param dest Indicates the pointer to an initialized TEE_BigIntFMM memory area to store the converted result.
+ * @param src Indicates the pointer to a TEE_BigIntFMM holding the value in the fast modular multiplication
+ * representation.
+ * @param n Indicates the pointer to the modulus.
+ * @param context Indicates the pointer to the context that is previously initialized using
+ * {@link TEE_BigIntInitFMMContext1}.
+ *
+ * @since 20
+ */
+void TEE_BigIntConvertFromFMM(TEE_BigInt *dest, const TEE_BigIntFMM *src, const TEE_BigInt *n,
+ const TEE_BigIntFMMContext *context);
+
+/**
+ * @brief Computes dest = op1* op2 in the fast modular multiplication representation.
+ *
+ * @param dest Indicates the pointer to the TEE_BigIntFMM that holds the result op1* op2.
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ * @param n Indicates the pointer to the modulus.
+ * @param context Indicates the pointer to the context that is previously initialized using
+ * {@link TEE_BigIntInitFMMContext1}.
+ *
+ * @since 20
+ */
+void TEE_BigIntComputeFMM(TEE_BigIntFMM *dest, const TEE_BigIntFMM *op1, const TEE_BigIntFMM *op2, const TEE_BigInt *n,
+ const TEE_BigIntFMMContext *context);
+
+/**
+ * @brief Computes dest = (op1 ^ op2)(mod n).
+ *
+ * @param des Indicates the pointer to the TEE_BigInt that holds the result (op1 ^ op2)(mod n).
+ * @param op1 Indicates the pointer to the first operand.
+ * @param op2 Indicates the pointer to the second operand.
+ * @param n Indicates the pointer to the modulus.
+ * @param context Indicates the pointer to the context that is previously initialized using
+ * {@link TEE_BigIntInitFMMContext1} or initialized to null.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_NOT_SUPPORTED if the value of n is not supported.
+ *
+ * @since 20
+ */
+TEE_Result TEE_BigIntExpMod(TEE_BigInt *des, TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n,
+ TEE_BigIntFMMContext *context);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_core_api.h b/TEEKit/include/tee/tee_core_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd4fae6162922d75cbc86be2a3263dc7d30532a0
--- /dev/null
+++ b/TEEKit/include/tee/tee_core_api.h
@@ -0,0 +1,126 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+ /**
+ * @file tee_core_api.h
+ *
+ * @brief Provides APIs for managing trusted application (TA) sessions.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_CORE_API_H
+#define __TEE_CORE_API_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _TEE_TA_SESSION_HANDLE
+/**
+ * @brief Represents the handle for a Trusted Application session.
+ *
+ * @since 20
+ */
+#define _TEE_TA_SESSION_HANDLE
+
+/**
+ * @brief Defines the handle of TA session.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_TASessionHandle;
+#endif
+
+/**
+ * @brief Raises a panic in the TA instance.
+ *
+ * @param panicCode Indicates an informative panic code defined by the TA.
+ *
+ * @since 20
+ */
+void TEE_Panic(TEE_Result panicCode);
+
+/**
+ * @brief Opens a new session with a TA.
+ *
+ * @param destination Indicates the pointer to the TEE_UUID structure that contains
+ * the Universal Unique Identifier (UUID) of the target TA.
+ * @param cancellationRequestTimeout Indicates the timeout period in milliseconds or a special value
+ * if there is no timeout.
+ * @param paramTypes Indicates the types of all parameters passed in the operation.
+ * @param params Indicates the parameters passed in the operation.
+ * @param session Indicates the pointer to the variable that will receive the client session handle.
+ * @param returnOrigin Indicates the pointer to the variable that holds the return origin.
+ *
+ * @return Returns TEE_SUCCESS if the session is opened.
+ * Returns TEE_ERROR_ITEM_NOT_FOUND if the TA cannot be found in the Trusted Execution Environment (TEE).
+ * Returns TEE_ERROR_ACCESS_DENIED if the access request to the TA is denied.
+ *
+ * @since 20
+ */
+TEE_Result TEE_OpenTASession(const TEE_UUID *destination, uint32_t cancellationRequestTimeout, uint32_t paramTypes,
+ TEE_Param params[TEE_PARAMS_NUM], TEE_TASessionHandle *session, uint32_t *returnOrigin);
+
+/**
+ * @brief Closes a client session.
+ *
+ * @param session Indicates the handle of the session to close.
+ *
+ * @since 20
+ */
+void TEE_CloseTASession(TEE_TASessionHandle session);
+
+/**
+ * @brief Invokes a command in a session opened between this client TA instance and a target TA instance.
+ *
+ * @param session Indicates the handle of the opened session.
+ * @param cancellationRequestTimeout Indicates the timeout period in milliseconds or a special value
+ * if there is no timeout.
+ * @param commandID Indicates the identifier of the command to invoke.
+ * @param paramTypes Indicates the types of all parameters passed in the operation.
+ * @param params Indicates the parameters passed in the operation.
+ * @param returnOrigin Indicates the pointer to the variable that holds the return origin.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_ACCESS_DENIED if the command fails to be invoked.
+ *
+ * @since 20
+ */
+TEE_Result TEE_InvokeTACommand(TEE_TASessionHandle session, uint32_t cancellationRequestTimeout, uint32_t commandID,
+ uint32_t paramTypes, TEE_Param params[TEE_PARAMS_NUM], uint32_t *returnOrigin);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_crypto_api.h b/TEEKit/include/tee/tee_crypto_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..c563d2c710e6282d750ebd36cdc3d649e476226d
--- /dev/null
+++ b/TEEKit/include/tee/tee_crypto_api.h
@@ -0,0 +1,1160 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_crypto_api.h
+ *
+ * @brief Provides APIs for cryptographic operations.
+ *
+ * You can use these APIs to implement encryption and decryption.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_CRYPTO_API_H
+#define TEE_CRYPTO_API_H
+
+#include
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef NULL
+/**
+ * @brief Definition of NULL.
+ *
+ * @since 20
+ */
+#define NULL ((void *)0)
+#endif
+
+/**
+ * @brief Defines the maximum key length, in bits.
+ *
+ * @since 20
+ */
+#define TEE_MAX_KEY_SIZE_IN_BITS (1024 * 8)
+
+/**
+ * @brief Defines the length of the SW_RSA key, in bytes.
+ *
+ * @since 20
+ */
+#define SW_RSA_KEYLEN 1024
+
+/**
+ * @brief Defines the maximum length of other Diffie-Hellman (DH) information, in bytes.
+ *
+ * @since 20
+ */
+#define TEE_DH_MAX_SIZE_OF_OTHER_INFO 64
+
+/**
+ * @brief Defines the maximum parameter count.
+ *
+ * @since 20
+ */
+#define TEE_PARAM_COUNT_MAX 9
+
+/**
+ * @brief Enumerates the cryptographic operation handles.
+ *
+ * @since 20
+ */
+enum __TEE_Operation_Constants {
+ /** Cipher */
+ TEE_OPERATION_CIPHER = 0x1,
+ /** MAC */
+ TEE_OPERATION_MAC = 3,
+ /** AE */
+ TEE_OPERATION_AE = 4,
+ /** Digest */
+ TEE_OPERATION_DIGEST = 5,
+ /** Asymmetric Cipher */
+ TEE_OPERATION_ASYMMETRIC_CIPHER = 6,
+ /** Asymmetric Signature */
+ TEE_OPERATION_ASYMMETRIC_SIGNATURE = 7,
+ /** Key Derivation */
+ TEE_OPERATION_KEY_DERIVATION = 8,
+ /** KDF Key Derivation */
+ TEE_OPERATION_KDF_KEY_DERIVATION = 9,
+};
+
+/**
+ * @brief Enumerates the cryptographic algorithms.
+ *
+ * @since 20
+ */
+enum __tee_crypto_algorithm_id {
+ /** Invalid algorithm */
+ TEE_ALG_INVALID = 0x0,
+ /** AES_ECB_NOPAD */
+ TEE_ALG_AES_ECB_NOPAD = 0x10000010,
+ /** AES_CBC_NOPAD */
+ TEE_ALG_AES_CBC_NOPAD = 0x10000110,
+ /** AES_CTR */
+ TEE_ALG_AES_CTR = 0x10000210,
+ /** AES_CTS */
+ TEE_ALG_AES_CTS = 0x10000310,
+ /** AES_XTS */
+ TEE_ALG_AES_XTS = 0x10000410,
+ /** AES_CBC_MAC_NOPAD */
+ TEE_ALG_AES_CBC_MAC_NOPAD = 0x30000110,
+ /** AES_CBC_MAC_PKCS5 */
+ TEE_ALG_AES_CBC_MAC_PKCS5 = 0x30000510,
+ /** AES_CMAC */
+ TEE_ALG_AES_CMAC = 0x30000610,
+ /** AES_GMAC */
+ TEE_ALG_AES_GMAC = 0x30000810,
+ /** AES_CCM */
+ TEE_ALG_AES_CCM = 0x40000710,
+ /** AES_GCM */
+ TEE_ALG_AES_GCM = 0x40000810,
+ /** DES_ECB_NOPAD */
+ TEE_ALG_DES_ECB_NOPAD = 0x10000011,
+ /** DES_CBC_NOPAD */
+ TEE_ALG_DES_CBC_NOPAD = 0x10000111,
+ /** DES_CBC_MAC_NOPAD */
+ TEE_ALG_DES_CBC_MAC_NOPAD = 0x30000111,
+ /** DES_CBC_MAC_PKCS5 */
+ TEE_ALG_DES_CBC_MAC_PKCS5 = 0x30000511,
+ /** DES3_ECB_NOPAD */
+ TEE_ALG_DES3_ECB_NOPAD = 0x10000013,
+ /** DES3_CBC_NOPAD */
+ TEE_ALG_DES3_CBC_NOPAD = 0x10000113,
+ /** DES3_CBC_MAC_NOPAD */
+ TEE_ALG_DES3_CBC_MAC_NOPAD = 0x30000113,
+ /** DES3_CBC_MAC_PKCS5 */
+ TEE_ALG_DES3_CBC_MAC_PKCS5 = 0x30000513,
+ /** RSASSA_PKCS1_V1_5_MD5 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_MD5 = 0x70001830,
+ /** RSASSA_PKCS1_V1_5_SHA1 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_SHA1 = 0x70002830,
+ /** RSASSA_PKCS1_V1_5_SHA224 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_SHA224 = 0x70003830,
+ /** RSASSA_PKCS1_V1_5_SHA256 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_SHA256 = 0x70004830,
+ /** RSASSA_PKCS1_V1_5_SHA384 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_SHA384 = 0x70005830,
+ /** RSASSA_PKCS1_V1_5_SHA512 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_SHA512 = 0x70006830,
+ /** RSASSA_PKCS1_V1_5_SM3 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_SM3 = 0xF0007830,
+ /** RSASSA_PKCS1_V1_5_MD5_SHA1 */
+ TEE_ALG_RSASSA_PKCS1_V1_5_MD5_SHA1 = 0xF0008830,
+ /** RSASSA_PKCS1_PSS_MGF1_MD5 */
+ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_MD5 = 0x70111930,
+ /** RSASSA_PKCS1_PSS_MGF1_SHA1 */
+ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA1 = 0x70212930,
+ /** RSASSA_PKCS1_PSS_MGF1_SHA224 */
+ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA224 = 0x70313930,
+ /** RSASSA_PKCS1_PSS_MGF1_SHA256 */
+ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256 = 0x70414930,
+ /** RSASSA_PKCS1_PSS_MGF1_SHA384 */
+ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384 = 0x70515930,
+ /** RSASSA_PKCS1_PSS_MGF1_SHA512 */
+ TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512 = 0x70616930,
+ /** RSAES_PKCS1_V1_5 */
+ TEE_ALG_RSAES_PKCS1_V1_5 = 0x60000130,
+ /** RSAES_PKCS1_OAEP_MGF1_SHA1 */
+ TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1 = 0x60210230,
+ /** RSAES_PKCS1_OAEP_MGF1_SHA224 */
+ TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA224 = 0x60211230,
+ /** RSAES_PKCS1_OAEP_MGF1_SHA256 */
+ TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA256 = 0x60212230,
+ /** RSAES_PKCS1_OAEP_MGF1_SHA384 */
+ TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA384 = 0x60213230,
+ /** RSAES_PKCS1_OAEP_MGF1_SHA512 */
+ TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA512 = 0x60214230,
+ /** RSA_NOPAD */
+ TEE_ALG_RSA_NOPAD = 0x60000030,
+ /** DSA_SHA1 */
+ TEE_ALG_DSA_SHA1 = 0x70002131,
+ /** DSA_SHA224 */
+ TEE_ALG_DSA_SHA224 = 0x70003131,
+ /** DSA_SHA256 */
+ TEE_ALG_DSA_SHA256 = 0x70004131,
+ /** DH_DERIVE_SHARED_SECRET */
+ TEE_ALG_DH_DERIVE_SHARED_SECRET = 0x80000032,
+ /** MD5 */
+ TEE_ALG_MD5 = 0x50000001,
+ /** SHA1 */
+ TEE_ALG_SHA1 = 0x50000002,
+ /** SHA224 */
+ TEE_ALG_SHA224 = 0x50000003,
+ /** SHA256 */
+ TEE_ALG_SHA256 = 0x50000004,
+ /** SHA384 */
+ TEE_ALG_SHA384 = 0x50000005,
+ /** SHA512 */
+ TEE_ALG_SHA512 = 0x50000006,
+ /** HMAC_MD5 */
+ TEE_ALG_HMAC_MD5 = 0x30000001,
+ /** HMAC_SHA1 */
+ TEE_ALG_HMAC_SHA1 = 0x30000002,
+ /** HMAC_SHA224 */
+ TEE_ALG_HMAC_SHA224 = 0x30000003,
+ /** HMAC_SHA256 */
+ TEE_ALG_HMAC_SHA256 = 0x30000004,
+ /** HMAC_SHA384 */
+ TEE_ALG_HMAC_SHA384 = 0x30000005,
+ /** HMAC_SHA512 */
+ TEE_ALG_HMAC_SHA512 = 0x30000006,
+ /** HMAC_SM3 */
+ TEE_ALG_HMAC_SM3 = 0x30000007,
+ /** AES_ECB_PKCS5 */
+ TEE_ALG_AES_ECB_PKCS5 = 0x10000020,
+ /** AES_CBC_PKCS5 */
+ TEE_ALG_AES_CBC_PKCS5 = 0x10000220,
+ /** AES_CBC_ISO_PADDING */
+ TEE_ALG_AES_CBC_ISO_PADDING = 0x10000330,
+ /** ECDSA_SHA1 */
+ TEE_ALG_ECDSA_SHA1 = 0x70001042,
+ /** ECDSA_SHA224 */
+ TEE_ALG_ECDSA_SHA224 = 0x70002042,
+ /** ECDSA_SHA256 */
+ TEE_ALG_ECDSA_SHA256 = 0x70003042,
+ /** ECDSA_SHA384 */
+ TEE_ALG_ECDSA_SHA384 = 0x70004042,
+ /** ECDSA_SHA512 */
+ TEE_ALG_ECDSA_SHA512 = 0x70005042,
+ /** ED25519 */
+ TEE_ALG_ED25519 = 0x70005043,
+ /** ECDH_DERIVE_SHARED_SECRET */
+ TEE_ALG_ECDH_DERIVE_SHARED_SECRET = 0x80000042,
+ /** X25519 */
+ TEE_ALG_X25519 = 0x80000044,
+ /** ECC */
+ TEE_ALG_ECC = 0x80000001,
+ /** ECDSA_P192 */
+ TEE_ALG_ECDSA_P192 = 0x70001042,
+ /** ECDSA_P224 */
+ TEE_ALG_ECDSA_P224 = 0x70002042,
+ /** ECDSA_P256 */
+ TEE_ALG_ECDSA_P256 = 0x70003042,
+ /** ECDSA_P384 */
+ TEE_ALG_ECDSA_P384 = 0x70004042,
+ /** ECDSA_P521 */
+ TEE_ALG_ECDSA_P521 = 0x70005042,
+ /** ECDH_P192 */
+ TEE_ALG_ECDH_P192 = 0x80001042,
+ /** ECDH_P224 */
+ TEE_ALG_ECDH_P224 = 0x80002042,
+ /** ECDH_P256 */
+ TEE_ALG_ECDH_P256 = 0x80003042,
+ /** ECDH_P384 */
+ TEE_ALG_ECDH_P384 = 0x80004042,
+ /** ECDH_P521 */
+ TEE_ALG_ECDH_P521 = 0x80005042,
+ /** SIP_HASH */
+ TEE_ALG_SIP_HASH = 0xF0000002,
+ /** SM2_DSA_SM3 */
+ TEE_ALG_SM2_DSA_SM3 = 0x70006045,
+ /** SM2_PKE */
+ TEE_ALG_SM2_PKE = 0x80000045,
+ /** SM3 */
+ TEE_ALG_SM3 = 0x50000007,
+ /** SM4_ECB_NOPAD */
+ TEE_ALG_SM4_ECB_NOPAD = 0x10000014,
+ /** SM4_ECB_PKCS7 */
+ TEE_ALG_SM4_ECB_PKCS7 = 0x10000024,
+ /** SM4_CBC_NOPAD */
+ TEE_ALG_SM4_CBC_NOPAD = 0x10000114,
+ /** SM4_CBC_PKCS7 */
+ TEE_ALG_SM4_CBC_PKCS7 = 0xF0000003,
+ /** SM4_CTR */
+ TEE_ALG_SM4_CTR = 0x10000214,
+ /** SM4_CFB128 */
+ TEE_ALG_SM4_CFB128 = 0xF0000000,
+ /** SM4_XTS */
+ TEE_ALG_SM4_XTS = 0x10000414,
+ /** SM4_OFB */
+ TEE_ALG_SM4_OFB = 0x10000514,
+ /** AES_OFB */
+ TEE_ALG_AES_OFB = 0x10000510,
+ /** AES_CFB128 */
+ TEE_ALG_AES_CFB128 = 0xF0000610,
+ /** SM4_GCM */
+ TEE_ALG_SM4_GCM = 0xF0000005,
+ /** PBKDF2_HMAC_SHA1_DERIVE_KEY */
+ TEE_ALG_PBKDF2_HMAC_SHA1_DERIVE_KEY = 0x800020C2,
+ /** PBKDF2_HMAC_SHA256_DERIVE_KEY */
+ TEE_ALG_PBKDF2_HMAC_SHA256_DERIVE_KEY = 0x800040C2,
+ /** PBKDF2_HMAC_SHA384_DERIVE_KEY */
+ TEE_ALG_PBKDF2_HMAC_SHA384_DERIVE_KEY = 0x800050C2,
+ /** PBKDF2_HMAC_SHA512_DERIVE_KEY */
+ TEE_ALG_PBKDF2_HMAC_SHA512_DERIVE_KEY = 0x800060C2,
+ /** HKDF */
+ TEE_ALG_HKDF = 0x80000047,
+ /** PRF */
+ TEE_ALG_PRF = 0xF0000006,
+};
+
+/**
+ * @brief Defines the __tee_crypto_algorithm_id struct.
+ *
+ * @see __tee_crypto_algorithm_id
+ *
+ * @since 20
+ */
+typedef enum __tee_crypto_algorithm_id tee_crypto_algorithm_id;
+
+/**
+ * @brief No element is available.
+ *
+ * @since 20
+ */
+#define TEE_OPTIONAL_ELEMENT_NONE 0x00000000
+
+/**
+ * @brief Enumerates the Elliptic-Curve Cryptography (ECC) curves supported.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** CURVE_NIST_P192 */
+ TEE_ECC_CURVE_NIST_P192 = 0x00000001,
+ /** CURVE_NIST_P224 */
+ TEE_ECC_CURVE_NIST_P224 = 0x00000002,
+ /** CURVE_NIST_P256 */
+ TEE_ECC_CURVE_NIST_P256 = 0x00000003,
+ /** CURVE_NIST_P384 */
+ TEE_ECC_CURVE_NIST_P384 = 0x00000004,
+ /** CURVE_NIST_P521 */
+ TEE_ECC_CURVE_NIST_P521 = 0x00000005,
+ /** CURVE_SM2 256 bits */
+ TEE_ECC_CURVE_SM2 = 0x00000300,
+ /** CURVE_25519 256 bits */
+ TEE_ECC_CURVE_25519 = 0x00000200,
+} TEE_ECC_CURVE;
+
+/**
+ * @brief Enumerates the Mask Generation Function (MGF1) modes.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** SHA1 mode for DH hashing. */
+ TEE_DH_HASH_SHA1_mode = 0,
+ /** SHA224 mode for DH hashing. */
+ TEE_DH_HASH_SHA224_mode = 1,
+ /** SHA256 mode for DH hashing. */
+ TEE_DH_HASH_SHA256_mode = 2,
+ /** SHA384 mode for DH hashing. */
+ TEE_DH_HASH_SHA384_mode = 3,
+ /** SHA512 mode for DH hashing. */
+ TEE_DH_HASH_SHA512_mode = 4,
+ /** Total number of DH hashing modes. */
+ TEE_DH_HASH_NumOfModes,
+} TEE_DH_HASH_Mode;
+
+/**
+ * @brief Enumerates the Diffie-Hellman operation modes.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** PKCS3 */
+ TEE_DH_PKCS3_mode = 0,
+ /** X942 algorithm. */
+ TEE_DH_ANSI_X942_mode = 1,
+ /** Number of modes. */
+ TEE_DH_NumOfModes,
+} TEE_DH_OpMode_t;
+
+/**
+ * @brief Defines an enum for TEE_DH_DerivFuncMode.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** ASN1_DerivMode */
+ TEE_DH_ASN1_DerivMode = 0,
+ /** ConcatDerivMode */
+ TEE_DH_ConcatDerivMode = 1,
+ /** X963_DerivMode */
+ TEE_DH_X963_DerivMode = TEE_DH_ConcatDerivMode,
+ /** OMADRM_DerivMode */
+ TEE_DH_OMADRM_DerivMode = 2,
+ /** ISO18033_KDF1_DerivMode */
+ TEE_DH_ISO18033_KDF1_DerivMode = 3,
+ /** ISO18033_KDF2_DerivMode */
+ TEE_DH_ISO18033_KDF2_DerivMode = 4,
+ /** Number of modes. */
+ TEE_DH_DerivFunc_NumOfModes,
+} TEE_DH_DerivFuncMode;
+
+/**
+ * @brief Enumerates the object attributes for cryptographic operations.
+ *
+ * @since 20
+ */
+enum __TEE_DK_ObjectAttribute {
+ /** Pointer to the shared secret value. */
+ TEE_DK_SECRECT = 0,
+ /** Pointer to a struct that contains other data. */
+ TEE_DK_OTHER,
+ /** Enumerator ID of the hash function to be used. */
+ TEE_DK_HASH_MODE,
+ /** Enumerator ID of the derivation function mode. */
+ TEE_DK_DERIVATION_MODE
+};
+
+/**
+ * @brief Defines a struct for __TEE_DK_ObjectAttribute.
+ *
+ * @see __TEE_DK_ObjectAttribute
+ *
+ * @since 20
+ */
+typedef enum __TEE_DK_ObjectAttribute tee_dk_objectattribute;
+
+/**
+ * @brief Enumerates the cryptographic operation modes.
+ *
+ * @since 20
+ */
+enum __TEE_OperationMode {
+ /** Encryption */
+ TEE_MODE_ENCRYPT = 0x0,
+ /** Decryption */
+ TEE_MODE_DECRYPT,
+ /** Signing */
+ TEE_MODE_SIGN,
+ /** Signature verification */
+ TEE_MODE_VERIFY,
+ /** MAC */
+ TEE_MODE_MAC,
+ /** Digest */
+ TEE_MODE_DIGEST,
+ /** Key derivation */
+ TEE_MODE_DERIVE
+};
+
+/**
+ * @brief Enumerates the cryptographic operation states.
+ *
+ * @since 20
+ */
+enum tee_operation_state {
+ /** Initial */
+ TEE_OPERATION_STATE_INITIAL = 0x00000000,
+ /** Active */
+ TEE_OPERATION_STATE_ACTIVE = 0x00000001,
+};
+
+/**
+ * @brief Defines the mode for cryptographic operations.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_OperationMode;
+
+/**
+ * @brief Defines a struct for TEE_DH_OtherInfo.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** object ID(OID) */
+ uint8_t algorithm_id[TEE_DH_MAX_SIZE_OF_OTHER_INFO];
+ /** length of AlgorithmID */
+ uint32_t size_of_algorithm_id;
+ /** public info of sender */
+ uint8_t party_u_info[TEE_DH_MAX_SIZE_OF_OTHER_INFO];
+ /** length of PartyUInfo */
+ uint32_t size_of_party_u_info;
+ /** public info of receiver */
+ uint8_t party_v_info[TEE_DH_MAX_SIZE_OF_OTHER_INFO];
+ /** length of PartyVInfo */
+ uint32_t size_of_party_v_info;
+ /** shared private info */
+ uint8_t supp_priv_info[TEE_DH_MAX_SIZE_OF_OTHER_INFO];
+ /** length of SuppPrivInfo */
+ uint32_t size_of_supp_priv_info;
+ /** shared public info */
+ uint8_t supp_pub_info[TEE_DH_MAX_SIZE_OF_OTHER_INFO];
+ /** length of SuppPubInfo */
+ uint32_t size_of_supp_pub_info;
+} TEE_DH_OtherInfo;
+
+/**
+ * @brief Defines the operation information.
+ *
+ * @since 20
+ */
+struct __TEE_OperationInfo {
+ /** Algorithm ID */
+ uint32_t algorithm; /* #__TEE_CRYPTO_ALGORITHM_ID */
+ /** Operation type */
+ uint32_t operationClass; /* #__TEE_Operation_Constants */
+ /** Operation mode */
+ uint32_t mode; /* #__TEE_OperationMode */
+ /** Digest length */
+ uint32_t digestLength;
+ /** Maximum key length */
+ uint32_t maxKeySize;
+ /** Key length*/
+ uint32_t keySize;
+ /** Required key usage */
+ uint32_t requiredKeyUsage;
+ /** Handle state */
+ uint32_t handleState;
+ /** Key */
+ void *keyValue;
+};
+
+/**
+ * @brief Defines a struct for __TEE_OperationInfo.
+ *
+ * @see __TEE_OperationInfo
+ *
+ * @since 20
+ */
+typedef struct __TEE_OperationInfo TEE_OperationInfo;
+
+/**
+ * @brief Defines the key information stored in the OperationInfo.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Key length */
+ uint32_t keySize;
+ /** Required key usage */
+ uint32_t requiredKeyUsage;
+} TEE_OperationInfoKey;
+
+/**
+ * @brief Defines information about an operation.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Algorithm ID */
+ uint32_t algorithm;
+ /** Operation type */
+ uint32_t operationClass;
+ /** Operation mode */
+ uint32_t mode;
+ /** Digest length */
+ uint32_t digestLength;
+ /** Maximum key length */
+ uint32_t maxKeySize;
+ /** Handle state */
+ uint32_t handleState;
+ /** Operation state */
+ uint32_t operationState;
+ /** Number of keys */
+ uint32_t numberOfKeys;
+ /** Key information */
+ TEE_OperationInfoKey keyInformation[];
+} TEE_OperationInfoMultiple;
+
+/**
+ * @brief Defines the cryptographic operation handle.
+ *
+ * @since 20
+ */
+struct __TEE_OperationHandle {
+ /** Algorithm ID */
+ uint32_t algorithm;
+ /** Operation type */
+ uint32_t operationClass;
+ /** Operation mode */
+ uint32_t mode;
+ /** Digest length */
+ uint32_t digestLength;
+ /** Maximum key length */
+ uint32_t maxKeySize;
+ /** Key length */
+ uint32_t keySize;
+ /** Key length */
+ uint32_t keySize2;
+ /** Required key usage */
+ uint32_t requiredKeyUsage;
+ /** Handle state */
+ uint32_t handleState;
+ /** Key */
+ void *keyValue;
+ /** Key */
+ void *keyValue2;
+ /** */
+ void *crypto_ctxt;
+ /** */
+ void *hmac_rest_ctext;
+ /** iv */
+ void *IV;
+ /** Public key */
+ void *publicKey;
+ /** Length of the public key */
+ uint32_t publicKeyLen;
+ /** Private key */
+ void *privateKey;
+ /** Length of the private key */
+ uint32_t privateKeyLen;
+ /** Length of the IV */
+ uint32_t IVLen;
+ /** TEE_DH_OtherInfo */
+ TEE_DH_OtherInfo *dh_otherinfo;
+ /** TEE_DH_HASH_Mode */
+ uint32_t dh_hash_mode;
+ /** TEE_DH_DerivFuncMode */
+ uint32_t dh_derive_func;
+ /** TEE_DH_OpMode_t */
+ uint32_t dh_op_mode;
+ void *dh_prime;
+ uint32_t dh_prime_size;
+ /** Operation lock */
+ pthread_mutex_t operation_lock;
+ /** HAL information */
+ void *hal_info;
+};
+
+/**
+ * @brief Defines the data used for conversion of integers.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Source */
+ uint32_t src;
+ /** Destination */
+ uint32_t dest;
+} crypto_uint2uint;
+
+/**
+ * @brief Defines the maximum length of an RSA public key.
+ *
+ * @since 20
+ */
+#define RSA_PUBKEY_MAXSIZE sizeof(CRYS_RSAUserPubKey_t)
+
+/**
+ * @brief Defines the maximum length of an RES private key.
+ *
+ * @since 20
+ */
+#define RSA_PRIVKEY_MAXSIZE sizeof(CRYS_RSAUserPrivKey_t)
+
+/**
+ * @brief Defines a structure to hold the input and output data.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Source data */
+ void *src_data;
+ /** Length of the source data */
+ size_t src_len;
+ /** Destination data */
+ void *dest_data;
+ /** Length of the destination data */
+ size_t *dest_len;
+} operation_src_dest;
+
+/**
+ * @brief Defines the AE initialization data.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** nonce */
+ void *nonce;
+ /** Leng of nonce */
+ size_t nonce_len;
+ /** Length of the tag */
+ uint32_t tag_len;
+ /** Length of the additional authenticated data (AAD) */
+ size_t aad_len;
+ /** Length of the payload */
+ size_t payload_len;
+} operation_ae_init;
+
+/**
+ * @brief Defines the __TEE_OperationHandle struct.
+ *
+ * @see __TEE_OperationHandle
+ *
+ * @since 20
+ */
+typedef struct __TEE_OperationHandle TEE_OperationHandleVar;
+
+/**
+ * @brief Defines the __TEE_ObjectHandle struct.
+ *
+ * @since 20
+ */
+typedef struct __TEE_ObjectHandle TEE_ObjectHandleVar;
+
+/**
+ * @brief Allocates an operation handle.
+ *
+ * @param operation Indicates the pointer to the operation handle.
+ * @param algorithm Indicates the cipher algorithm.
+ * @param mode Indicates the operation mode.
+ * @param maxKeySize Indicates the maximum length of the key.
+ *
+ * @return Returns TEE_SUCCESS if the operation handle is allocated.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if there is no enough memory for this operation.
+ * Returns TEE_ERROR_NOT_SUPPORTED if the specified algorithm is not supported.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AllocateOperation(TEE_OperationHandle *operation, uint32_t algorithm, uint32_t mode,
+ uint32_t maxKeySize);
+
+/**
+ * @brief Releases an operation handle.
+ *
+ * @param operation Indicates the operation handle to release.
+ *
+ * @since 20
+ */
+void TEE_FreeOperation(TEE_OperationHandle operation);
+
+/**
+ * @brief Obtains operation information.
+ *
+ * @param operation Indicates the operation handle.
+ * @param operationInfo Indicates the pointer to the operation information.
+ *
+ * @since 20
+ */
+void TEE_GetOperationInfo(const TEE_OperationHandle operation, TEE_OperationInfo *operationInfo);
+
+/**
+ * @brief Resets an operation handle.
+ *
+ * @param operation Indicates the operation handle to reset.
+ *
+ * @since 20
+ */
+void TEE_ResetOperation(TEE_OperationHandle operation);
+
+/**
+ * @brief Sets the key for an operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param key Indicates the key.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if there is no enough memory for this operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SetOperationKey(TEE_OperationHandle operation, const TEE_ObjectHandle key);
+
+/**
+ * @brief Sets two keys for an operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param key1 Indicates key 1.
+ * @param key2 Indicates key 2.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SetOperationKey2(TEE_OperationHandle operation, const TEE_ObjectHandle key1,
+ const TEE_ObjectHandle key2);
+
+/**
+ * @brief Copies an operation handle.
+ *
+ * @param dstOperation Indicates the destination operation handle.
+ * @param srcOperation Indicates the source operation handle.
+ *
+ * @since 20
+ */
+void TEE_CopyOperation(TEE_OperationHandle dstOperation, const TEE_OperationHandle srcOperation);
+
+/**
+ * @brief Initializes the context to start a cipher operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param IV Indicates the pointer to the buffer storing the operation IV. If this parameter is not used,
+ * set it to NULL.
+ * @param IVLen Indicates the length of the IV buffer.
+ *
+ * @since 20
+ */
+void TEE_CipherInit(TEE_OperationHandle operation, const void *IV, size_t IVLen);
+
+/**
+ * @brief Updates the data for a cipher operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_CipherUpdate(TEE_OperationHandle operation, const void *srcData, size_t srcLen, void *destData,
+ size_t *destLen);
+
+/**
+ * @brief Finalizes a cipher operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_CipherDoFinal(TEE_OperationHandle operation, const void *srcData, size_t srcLen, void *destData,
+ size_t *destLen);
+
+/**
+ * @brief Updates the digest.
+ *
+ * @param operation Indicates the operation handle.
+ * @param chunk Indicates the pointer to the chunk of data to be hashed.
+ * @param chunkSize Indicates the length of the chunk.
+ *
+ * @since 20
+ */
+void TEE_DigestUpdate(TEE_OperationHandle operation, const void *chunk, size_t chunkSize);
+
+/**
+ * @brief Finalizes the message digest operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param chunk Indicates the pointer to the chunk of data to be hashed.
+ * @param chunkLen Indicates the length of the chunk.
+ * @param hash Indicates the pointer to the buffer storing the message hash.
+ * @param hashLen
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_SHORT_BUFFER if the operationInfo buffer is not large enough to
+ * hold the information obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_DigestDoFinal(TEE_OperationHandle operation, const void *chunk, size_t chunkLen, void *hash,
+ size_t *hashLen);
+
+/**
+ * @brief Initializes a MAC operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param IV Indicates the pointer to the buffer storing the operation IV. If this parameter is not used,
+ * set it to NULL.
+ * @param IVLen Indicates the length of the IV buffer.
+ *
+ * @since 20
+ */
+void TEE_MACInit(TEE_OperationHandle operation, void *IV, size_t IVLen);
+
+/**
+ * @brief Updates the MAC.
+ *
+ * @param operation Indicates the operation handle.
+ * @param chunk Indicates the pointer to the chunk of MAC data.
+ * @param chunkSize Indicates the size of the chunk.
+ *
+ * @since 20
+ */
+void TEE_MACUpdate(TEE_OperationHandle operation, const void *chunk, size_t chunkSize);
+
+/**
+ * @brief MAC Finalizes the MAC operation with a last chunk of message and computes the MAC.
+ *
+ * @param operation Indicates the operation handle.
+ * @param message Indicates the pointer to the buffer containing the last message chunk to MAC.
+ * @param messageLen Indicates the length of the message buffer.
+ * @param mac Indicates the pointer to the buffer storing the computed MAC.
+ * @param macLen Indicates the pointer to the MAC buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_MACComputeFinal(TEE_OperationHandle operation, const void *message, size_t messageLen, void *mac,
+ size_t *macLen);
+
+/**
+ * @brief Finalizes the MAC operation and compares the MAC with the one passed in.
+ *
+ * @param operation Indicates the operation handle.
+ * @param message Indicates the pointer to the buffer containing the last message chunk to MAC.
+ * @param messageLen Indicates the length of the buffer.
+ * @param mac Indicates the pointer to the buffer storing the computed MAC.
+ * @param macLen Indicates the MAC buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ * Returns TEE_ERROR_MAC_INVALID if the computed MAC is not the same as that passed in.
+ *
+ * @since 20
+ */
+TEE_Result TEE_MACCompareFinal(TEE_OperationHandle operation, const void *message, size_t messageLen, const void *mac,
+ const size_t macLen);
+
+/**
+ * @brief Derives a key.
+ *
+ * @param operation Indicates the operation handle.
+ * @param params Indicates the pointer to the parameters for this operation.
+ * @param paramCount Indicates the number of parameters.
+ * @param derivedKey Indicates the derived key.
+ *
+ * @since 20
+ */
+void TEE_DeriveKey(TEE_OperationHandle operation, const TEE_Attribute *params, uint32_t paramCount,
+ TEE_ObjectHandle derivedKey);
+
+/**
+ * @brief Generates random data.
+ *
+ * @param randomBuffer Indicates the pointer to the buffer storing the random data generated.
+ * @param randomBufferLen Indicates the length of the buffer storing the random data.
+ *
+ * @since 20
+ */
+void TEE_GenerateRandom(void *randomBuffer, size_t randomBufferLen);
+
+/**
+ * @brief Initializes an AE operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param nonce Indicates the pointer to the buffer for storing the nonce.
+ * @param nonceLen Indicates the length of the nonce.
+ * @param tagLen Indicates the length of the tag.
+ * @param AADLen Indicates the length of the AAD.
+ * @param payloadLen Indicates the length of the payload.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AEInit(TEE_OperationHandle operation, void *nonce, size_t nonceLen, uint32_t tagLen, size_t AADLen,
+ size_t payloadLen);
+
+/**
+ * @brief Updates the AAD in an AE operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param AADdata Indicates the pointer to the new AAD.
+ * @param AADdataLen Indicates the length of the new AAD.
+ *
+ * @since 20
+ */
+void TEE_AEUpdateAAD(TEE_OperationHandle operation, const void *AADdata, size_t AADdataLen);
+
+/**
+ * @brief Updates data for an AE operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AEUpdate(TEE_OperationHandle operation, void *srcData, size_t srcLen, void *destData, size_t *destLen);
+
+/**
+ * @brief Finalizes the AE encryption operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ * @param tag Indicates the pointer to the buffer storing the computed tag.
+ * @param tagLen Indicates the pointer to the tag buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AEEncryptFinal(TEE_OperationHandle operation, void *srcData, size_t srcLen, void *destData,
+ size_t *destLen, void *tag, size_t *tagLen);
+
+/**
+ * @brief Finalizes an AE decryption operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ * @param tag Indicates the pointer to the buffer storing the computed tag.
+ * @param tagLen Indicates the tag buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_MAC_INVALID if the computed tag does not match the provided tag.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AEDecryptFinal(TEE_OperationHandle operation, void *srcData, size_t srcLen, void *destData,
+ size_t *destLen, void *tag, size_t tagLen);
+
+/**
+ * @brief Performs asymmetric encryption.
+ *
+ * @param operation Indicates the operation handle.
+ * @param params Indicates the pointer to the parameters for this operation.
+ * @param paramCount Indicates the number of parameters.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AsymmetricEncrypt(TEE_OperationHandle operation, const TEE_Attribute *params, uint32_t paramCount,
+ void *srcData, size_t srcLen, void *destData, size_t *destLen);
+
+/**
+ * @brief Performs asymmetric decryption.
+ *
+ * @param operation Indicates the operation handle.
+ * @param params Indicates the pointer to the parameters for this operation.
+ * @param paramCount Indicates the number of parameters.
+ * @param srcData Indicates the pointer to the source data.
+ * @param srcLen Indicates the length of the source data.
+ * @param destData Indicates the pointer to the destination data.
+ * @param destLen Indicates the pointer to the destination data length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AsymmetricDecrypt(TEE_OperationHandle operation, const TEE_Attribute *params, uint32_t paramCount,
+ void *srcData, size_t srcLen, void *destData, size_t *destLen);
+
+/**
+ * @brief Signs a message digest in an asymmetric operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param params Indicates the pointer to the parameters for this operation.
+ * @param paramCount Indicates the number of parameters.
+ * @param digest Indicates the pointer to the message digest.
+ * @param digestLen Indicates the digest length.
+ * @param signature Indicates the pointer to the signature.
+ * @param signatureLen Indicates the pointer to the signature length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AsymmetricSignDigest(TEE_OperationHandle operation, const TEE_Attribute *params, uint32_t paramCount,
+ void *digest, size_t digestLen, void *signature, size_t *signatureLen);
+
+/**
+ * @brief Verifies a message digest signature in an asymmetric operation.
+ *
+ * @param operation Indicates the operation handle.
+ * @param params Indicates the pointer to the parameters for this operation.
+ * @param paramCount Indicates the number of parameters.
+ * @param digest Indicates the pointer to the message digest.
+ * @param digestLen Indicates the digest length.
+ * @param signature Indicates the pointer to the signature.
+ * @param signatureLen Indicates the signature length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_GENERIC if the operation fails due to other errors.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AsymmetricVerifyDigest(TEE_OperationHandle operation, const TEE_Attribute *params, uint32_t paramCount,
+ void *digest, size_t digestLen, void *signature, size_t signatureLen);
+
+/**
+ * @brief Obtains information about the operation involving multiple keys.
+ *
+ * @param operation Indicates the operation handle.
+ * @param operationInfoMultiple Indicates the pointer to the operation information obtained.
+ * @param operationSize [IN/OUT] Indicates the pointer to the operation information size.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if the operation fails due to invalid parameters.
+ * Returns TEE_ERROR_SHORT_BUFFER if the operationInfo buffer is not large enough to
+ * hold the information obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetOperationInfoMultiple(TEE_OperationHandle operation, TEE_OperationInfoMultiple *operationInfoMultiple,
+ const size_t *operationSize);
+
+/**
+ * @brief Checks whether the algorithm is supported.
+ *
+ * @param algId Indicates the algorithm to check.
+ * @param element Indicates the cryptographic element.
+ *
+ * @return Returns TEE_SUCCESS if the algorithm is supported.
+ * Returns TEE_ERROR_NOT_SUPPORTED otherwise.
+ *
+ * @since 20
+ */
+TEE_Result TEE_IsAlgorithmSupported(uint32_t algId, uint32_t element);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_crypto_hal.h b/TEEKit/include/tee/tee_crypto_hal.h
new file mode 100644
index 0000000000000000000000000000000000000000..4cce2c6b3d94637d8801d55ddbb85d30d128da0d
--- /dev/null
+++ b/TEEKit/include/tee/tee_crypto_hal.h
@@ -0,0 +1,98 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_crypto_hal.h
+ *
+ * @brief Provides APIs for cryptographic operations.
+ *
+ * You can use these APIs to implement encryption and decryption.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_CRYPTO_HAL_H
+#define TEE_CRYPTO_HAL_H
+
+#include "tee_crypto_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Enumerates the types of the crypto engine.
+ *
+ * @since 20
+ */
+enum CRYPTO_ENGINE {
+ /** The hardware-based DX crypto engine. */
+ DX_CRYPTO = 0,
+ /** The hardware-based MSPE crypto engine. */
+ EPS_CRYPTO = 1,
+ /** The software-based crypto engine, such as OpenSSL. */
+ SOFT_CRYPTO = 2,
+ /** The SEC crypto engine, commonly employed in vehicle platforms. */
+ SEC_CRYPTO = 3,
+ /** The maximum value of the crypto engine. */
+ CRYPTO_ENGINE_MAX = 1024,
+};
+
+/**
+ * @brief Sets the encryption and decryption engines to an operation.
+ *
+ * @param operation Indicates the handle of the operation to set.
+ * @param crypto Indicates the engines to set.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if operation is null or crypto is invalid.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SetCryptoFlag(TEE_OperationHandle operation, uint32_t crypto);
+
+/**
+ * @brief Sets the encryption and decryption engines to an object.
+ *
+ * @param object Indicates the handle of the object to set.
+ * @param crypto Indicates the engines to set.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_BAD_PARAMETERS if object is null or crypto is invalid.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SetObjectFlag(TEE_ObjectHandle object, uint32_t crypto);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_defines.h b/TEEKit/include/tee/tee_defines.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1a35dc72044fdec083b69cd087009dc715f6444
--- /dev/null
+++ b/TEEKit/include/tee/tee_defines.h
@@ -0,0 +1,991 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_defines.h
+ *
+ * @brief Defines basic data types and data structures of TEE.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_DEFINES_H
+#define __TEE_DEFINES_H
+
+#include
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef TA_EXPORT
+
+/**
+ * @brief Represents the export attribute for Trusted Applications.
+ *
+ * @since 20
+ */
+#define TA_EXPORT
+#endif
+
+/**
+ * @brief Defines the tee mutex handle.
+ *
+ * @since 20
+ */
+typedef int *tee_mutex_handle;
+
+/**
+ * @brief Represents API level 1.1.1.
+ *
+ * @since 20
+ */
+#define API_LEVEL1_1_1 2
+
+/**
+ * @brief Represents API level 1.2.
+ *
+ * @since 20
+ */
+#define API_LEVEL1_2 3
+
+/**
+ * @brief Represents the number of TEE parameters.
+ *
+ * @since 20
+ */
+#define TEE_PARAMS_NUM 4
+
+#ifndef NULL
+/**
+ * @brief Represents a null pointer constant.
+ *
+ * @since 20
+ */
+#define NULL ((void*)0)
+#endif
+
+/**
+ * @brief Marks a parameter as unused.
+ *
+ * @since 20
+ */
+#define PARAM_NOT_USED(val) ((void)(val))
+
+/**
+ * @brief Enumerates the TEE parameter.
+ *
+ * @since 20
+ */
+typedef union {
+ /**
+ * @brief Describes a memory reference.
+ *
+ * @since 20
+ */
+ struct {
+ /** Pointer to the memory buffer. */
+ void *buffer;
+ /** Size of the memory buffer. */
+ size_t size;
+ } memref;
+ /**
+ * @brief Describes value parameters.
+ *
+ * @since 20
+ */
+ struct {
+ /** First value. */
+ unsigned int a;
+ /** Second value. */
+ unsigned int b;
+ } value;
+ /**
+ * @brief Describes shared memory reference.
+ *
+ * @since 20
+ */
+ struct {
+ /** Pointer to the shared memory buffer. */
+ void *buffer;
+ /** Size of the shared memory buffer. */
+ size_t size;
+ } sharedmem;
+} TEE_Param;
+
+/**
+ * @brief Constructs the TEE parameter types from the provided types.
+ *
+ * @since 20
+ */
+#define TEE_PARAM_TYPES(param0Type, param1Type, param2Type, param3Type) \
+ (((param3Type) << 12) | ((param2Type) << 8) | ((param1Type) << 4) | (param0Type))
+
+/**
+ * @brief Extracts the parameter type at the specified index from the TEE parameter types.
+ *
+ * @since 20
+ */
+#define TEE_PARAM_TYPE_GET(paramTypes, index) (((paramTypes) >> (4U * (index))) & 0x0F)
+
+/**
+ * @brief Checks parameter types.
+ *
+ * @param param_to_check Indicates the expected parameter values.
+ * @param valid0 Indicates the first parameter type to check.
+ * @param valid1 Indicates the second parameter type to check.
+ * @param valid2 Indicates the third parameter type to check.
+ * @param valid3 Indicates the fourth parameter type to check.
+ *
+ * @return Returns true if the parameter types are correct.
+ * Returns false otherwise.
+ * @since 20
+ */
+static inline bool check_param_type(uint32_t param_to_check, uint32_t valid0, uint32_t valid1, uint32_t valid2,
+ uint32_t valid3)
+{
+ return (TEE_PARAM_TYPES(valid0, valid1, valid2, valid3) == param_to_check);
+}
+
+/**
+ * @brief Enumerates the types of the TEE parameter.
+ *
+ * @since 20
+ */
+enum TEE_ParamType {
+ /** Represents no parameter type. */
+ TEE_PARAM_TYPE_NONE = 0x0,
+ /** Represents a value input type. */
+ TEE_PARAM_TYPE_VALUE_INPUT = 0x1,
+ /** Represents a value output type. */
+ TEE_PARAM_TYPE_VALUE_OUTPUT = 0x2,
+ /** Represents a value inout type. */
+ TEE_PARAM_TYPE_VALUE_INOUT = 0x3,
+ /** Represents a memory reference input type. */
+ TEE_PARAM_TYPE_MEMREF_INPUT = 0x5,
+ /** Represents a memory reference output type. */
+ TEE_PARAM_TYPE_MEMREF_OUTPUT = 0x6,
+ /** Represents a memory reference inout type. */
+ TEE_PARAM_TYPE_MEMREF_INOUT = 0x7,
+ /** Represents an ION input type. */
+ TEE_PARAM_TYPE_ION_INPUT = 0x8,
+ /** Represents an ION single list input type. */
+ TEE_PARAM_TYPE_ION_SGLIST_INPUT = 0x9,
+ /** Represents a shared memory reference inout type. */
+ TEE_PARAM_TYPE_MEMREF_SHARED_INOUT = 0xa,
+ /** Represents a resource memory input type. */
+ TEE_PARAM_TYPE_RESMEM_INPUT = 0xc,
+ /** Represents a resource memory output type. */
+ TEE_PARAM_TYPE_RESMEM_OUTPUT = 0xd,
+ /** Represents a resource memory inout type. */
+ TEE_PARAM_TYPE_RESMEM_INOUT = 0xe,
+};
+
+/**
+ * @brief Marks a variable as unused.
+ *
+ * @since 20
+ */
+#define S_VAR_NOT_USED(variable) \
+ do { \
+ (void)(variable); \
+ } while (0)
+
+/**
+ * @brief Defines an object information.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Type of the object. */
+ uint32_t objectType;
+ /** Size of the object. */
+ uint32_t objectSize;
+ /** Maximum allowed size for the object. */
+ uint32_t maxObjectSize;
+ /** Usage flags of the object. */
+ uint32_t objectUsage;
+ /** Size of the data associated with the object. */
+ uint32_t dataSize;
+ /** Position of the data within the object. */
+ uint32_t dataPosition;
+ /** Flags associated with the handle. */
+ uint32_t handleFlags;
+} TEE_ObjectInfo;
+
+/**
+ * @brief Defines an object attribute.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Attribute ID. */
+ uint32_t attributeID;
+ /**
+ * @brief Attribute content.
+ *
+ * @since 20
+ */
+ union {
+ /**
+ * @brief Reference type content.
+ *
+ * @since 20
+ */
+ struct {
+ /** Buffer pointer. */
+ void *buffer;
+ /** Length of the buffer. */
+ size_t length;
+ } ref;
+ /**
+ * @brief Value type content.
+ *
+ * @since 20
+ */
+ struct {
+ /** First value. */
+ uint32_t a;
+ /** Second value. */
+ uint32_t b;
+ } value;
+ } content;
+} TEE_Attribute;
+
+/**
+ * @brief Enumerates the types of object attribute.
+ *
+ * @since 20
+ */
+enum TEE_ObjectAttribute {
+ /** Secret value attribute. */
+ TEE_ATTR_SECRET_VALUE = 0xC0000000,
+ /** RSA modulus attribute. */
+ TEE_ATTR_RSA_MODULUS = 0xD0000130,
+ /** RSA public exponent attribute. */
+ TEE_ATTR_RSA_PUBLIC_EXPONENT = 0xD0000230,
+ /** RSA private exponent attribute. */
+ TEE_ATTR_RSA_PRIVATE_EXPONENT = 0xC0000330,
+ /** RSA prime1 attribute. */
+ TEE_ATTR_RSA_PRIME1 = 0xC0000430,
+ /** RSA prime2 attribute. */
+ TEE_ATTR_RSA_PRIME2 = 0xC0000530,
+ /** RSA exponent1 attribute. */
+ TEE_ATTR_RSA_EXPONENT1 = 0xC0000630,
+ /** RSA exponent2 attribute. */
+ TEE_ATTR_RSA_EXPONENT2 = 0xC0000730,
+ /** RSA coefficient attribute. */
+ TEE_ATTR_RSA_COEFFICIENT = 0xC0000830,
+ /** RSA MGF1 hash attribute. */
+ TEE_ATTR_RSA_MGF1_HASH = 0xF0000830,
+ /** DSA prime attribute. */
+ TEE_ATTR_DSA_PRIME = 0xD0001031,
+ /** DSA subprime attribute. */
+ TEE_ATTR_DSA_SUBPRIME = 0xD0001131,
+ /** DSA base attribute. */
+ TEE_ATTR_DSA_BASE = 0xD0001231,
+ /** DSA public value attribute. */
+ TEE_ATTR_DSA_PUBLIC_VALUE = 0xD0000131,
+ /** DSA private value attribute. */
+ TEE_ATTR_DSA_PRIVATE_VALUE = 0xC0000231,
+ /** DH prime attribute. */
+ TEE_ATTR_DH_PRIME = 0xD0001032,
+ /** DH subprime attribute. */
+ TEE_ATTR_DH_SUBPRIME = 0xD0001132,
+ /** DH base attribute. */
+ TEE_ATTR_DH_BASE = 0xD0001232,
+ /** DH X bits attribute. */
+ TEE_ATTR_DH_X_BITS = 0xF0001332,
+ /** DH public value attribute. */
+ TEE_ATTR_DH_PUBLIC_VALUE = 0xD0000132,
+ /** DH private value attribute. */
+ TEE_ATTR_DH_PRIVATE_VALUE = 0xC0000232,
+ /** RSA OAEP label attribute. */
+ TEE_ATTR_RSA_OAEP_LABEL = 0xD0000930,
+ /** RSA PSS salt length attribute. */
+ TEE_ATTR_RSA_PSS_SALT_LENGTH = 0xF0000A30,
+ /** ECC public value X attribute. */
+ TEE_ATTR_ECC_PUBLIC_VALUE_X = 0xD0000141,
+ /** ECC public value Y attribute. */
+ TEE_ATTR_ECC_PUBLIC_VALUE_Y = 0xD0000241,
+ /** ECC private value attribute. */
+ TEE_ATTR_ECC_PRIVATE_VALUE = 0xC0000341,
+ /** ECC curve attribute. */
+ TEE_ATTR_ECC_CURVE = 0xF0000441,
+ /** ED25519 context attribute. */
+ TEE_ATTR_ED25519_CTX = 0xD0000643,
+ /** ED25519 public value attribute. */
+ TEE_ATTR_ED25519_PUBLIC_VALUE = 0xD0000743,
+ /** ED25519 private value attribute. */
+ TEE_ATTR_ED25519_PRIVATE_VALUE = 0xC0000843,
+ /** ED25519 PH attribute. */
+ TEE_ATTR_ED25519_PH = 0xF0000543,
+ /** X25519 public value attribute. */
+ TEE_ATTR_X25519_PUBLIC_VALUE = 0xD0000944,
+ /** X25519 private value attribute. */
+ TEE_ATTR_X25519_PRIVATE_VALUE = 0xC0000A44,
+ /** PBKDF2 HMAC password attribute. */
+ TEE_ATTR_PBKDF2_HMAC_PASSWORD = 0xD0000133,
+ /** PBKDF2 HMAC salt attribute. */
+ TEE_ATTR_PBKDF2_HMAC_SALT = 0xD0000134,
+ /** PRF label attribute. */
+ TEE_ATTR_PRF_LABEL = 0xD0000136,
+ /** PRF seed attribute. */
+ TEE_ATTR_PRF_SEED = 0xD0000137,
+ /** PRF hash algorithm attribute. */
+ TEE_ATTR_PRF_HASH_ALGORITHM = 0xF0000138,
+ /** HKDF salt attribute. */
+ TEE_ATTR_HKDF_SALT = 0xD0000946,
+ /** HKDF info attribute. */
+ TEE_ATTR_HKDF_INFO = 0xD0000A46,
+ /** PBKDF2 HMAC digest attribute. */
+ TEE_ATTR_PBKDF2_HMAC_DIGEST = 0xF0000135,
+ /** HKDF hash algorithm attribute. */
+ TEE_ATTR_HKDF_HASH_ALGORITHM = 0xF0000B46,
+ /** KDF key size attribute. */
+ TEE_ATTR_KDF_KEY_SIZE = 0xF0000C46,
+};
+
+/**
+ * @brief Enumerates the types of object.
+ *
+ * @since 20
+ */
+enum TEE_ObjectType {
+ /** AES object type. */
+ TEE_TYPE_AES = 0xA0000010,
+ /** DES object type. */
+ TEE_TYPE_DES = 0xA0000011,
+ /** DES3 object type. */
+ TEE_TYPE_DES3 = 0xA0000013,
+ /** HMAC MD5 object type. */
+ TEE_TYPE_HMAC_MD5 = 0xA0000001,
+ /** HMAC SHA1 object type. */
+ TEE_TYPE_HMAC_SHA1 = 0xA0000002,
+ /** HMAC SHA224 object type. */
+ TEE_TYPE_HMAC_SHA224 = 0xA0000003,
+ /** HMAC SHA256 object type. */
+ TEE_TYPE_HMAC_SHA256 = 0xA0000004,
+ /** HMAC SHA384 object type. */
+ TEE_TYPE_HMAC_SHA384 = 0xA0000005,
+ /** HMAC SHA512 object type. */
+ TEE_TYPE_HMAC_SHA512 = 0xA0000006,
+ /** RSA public key object type. */
+ TEE_TYPE_RSA_PUBLIC_KEY = 0xA0000030,
+ /** RSA keypair object type. */
+ TEE_TYPE_RSA_KEYPAIR = 0xA1000030,
+ /** DSA public key object type. */
+ TEE_TYPE_DSA_PUBLIC_KEY = 0xA0000031,
+ /** DSA keypair object type. */
+ TEE_TYPE_DSA_KEYPAIR = 0xA1000031,
+ /** DH keypair object type. */
+ TEE_TYPE_DH_KEYPAIR = 0xA1000032,
+ /** Generic secret object type. */
+ TEE_TYPE_GENERIC_SECRET = 0xA0000000,
+ /** Data object type. */
+ TEE_TYPE_DATA = 0xA1000033,
+ /** Data GP1.1 object type. */
+ TEE_TYPE_DATA_GP1_1 = 0xA00000BF,
+ /** ECDSA public key object type. */
+ TEE_TYPE_ECDSA_PUBLIC_KEY = 0xA0000041,
+ /** ECDSA keypair object type. */
+ TEE_TYPE_ECDSA_KEYPAIR = 0xA1000041,
+ /** ECDH public key object type. */
+ TEE_TYPE_ECDH_PUBLIC_KEY = 0xA0000042,
+ /** ECDH keypair object type. */
+ TEE_TYPE_ECDH_KEYPAIR = 0xA1000042,
+ /** ED25519 public key object type. */
+ TEE_TYPE_ED25519_PUBLIC_KEY = 0xA0000043,
+ /** ED25519 keypair object type. */
+ TEE_TYPE_ED25519_KEYPAIR = 0xA1000043,
+ /** X25519 public key object type. */
+ TEE_TYPE_X25519_PUBLIC_KEY = 0xA0000044,
+ /** X25519 keypair object type. */
+ TEE_TYPE_X25519_KEYPAIR = 0xA1000044,
+ /** SM2 DSA public key object type. */
+ TEE_TYPE_SM2_DSA_PUBLIC_KEY = 0xA0000045,
+ /** SM2 DSA keypair object type. */
+ TEE_TYPE_SM2_DSA_KEYPAIR = 0xA1000045,
+ /** SM2 KEP public key object type. */
+ TEE_TYPE_SM2_KEP_PUBLIC_KEY = 0xA0000046,
+ /** SM2 KEP keypair object type. */
+ TEE_TYPE_SM2_KEP_KEYPAIR = 0xA1000046,
+ /** SM2 PKE public key object type. */
+ TEE_TYPE_SM2_PKE_PUBLIC_KEY = 0xA0000047,
+ /** SM2 PKE keypair object type. */
+ TEE_TYPE_SM2_PKE_KEYPAIR = 0xA1000047,
+ /** HMAC SM3 object type. */
+ TEE_TYPE_HMAC_SM3 = 0xA0000007,
+ /** SM4 object type. */
+ TEE_TYPE_SM4 = 0xA0000014,
+ /** HKDF object type. */
+ TEE_TYPE_HKDF = 0xA000004A,
+ /** SIP Hash object type. */
+ TEE_TYPE_SIP_HASH = 0xF0000002,
+ /** PBKDF2 HMAC object type. */
+ TEE_TYPE_PBKDF2_HMAC = 0xF0000004,
+ /** PRF object type. */
+ TEE_TYPE_PRF = 0xF0000005,
+ /** Corrupted object type. */
+ TEE_TYPE_CORRUPTED_OBJECT = 0xA00000BE,
+};
+
+/**
+ * @brief Maximum length for the object name.
+ *
+ * @since 20
+ */
+#define OBJECT_NAME_LEN_MAX 256
+
+/**
+ * @brief Defines an object handle.
+ *
+ * @since 20
+ */
+struct __TEE_ObjectHandle {
+ /** Pointer to the data. */
+ void *dataPtr;
+ /** Length of the data. */
+ uint32_t dataLen;
+ /** Name of the data. */
+ uint8_t dataName[OBJECT_NAME_LEN_MAX];
+ /** Pointer to the object information. */
+ TEE_ObjectInfo *ObjectInfo;
+ /** Pointer to the attributes of the object. */
+ TEE_Attribute *Attribute;
+ /** Length of the attributes. */
+ uint32_t attributesLen;
+ /** CRT mode. */
+ uint32_t CRTMode;
+ /** File descriptor for info attributes. */
+ void *infoattrfd;
+ /** Flag for object generation. */
+ uint32_t generate_flag;
+ /** Storage ID for the object. */
+ uint32_t storage_id;
+};
+
+/**
+ * @brief Defines the __TEE_ObjectHandle struct.
+ *
+ * @see __TEE_ObjectHandle
+ *
+ * @since 20
+ */
+typedef struct __TEE_ObjectHandle *TEE_ObjectHandle;
+
+/**
+ * @brief Defines the length of the node.
+ *
+ * @since 20
+ */
+#define NODE_LEN 8
+
+/**
+ * @brief Defines an UUID of TA.
+ *
+ * @since 20
+ */
+typedef struct tee_uuid {
+ /** Low part of the UUID time. */
+ uint32_t timeLow;
+ /** Mid part of the UUID time. */
+ uint16_t timeMid;
+ /** High part of the UUID time and version. */
+ uint16_t timeHiAndVersion;
+ /** Clock sequence and node of the UUID. */
+ uint8_t clockSeqAndNode[NODE_LEN];
+} TEE_UUID;
+
+/**
+ * @brief Defines the type of spawn UUID.
+ *
+ * @since 20
+ */
+typedef struct spawn_uuid {
+ /** Indicates if the UUID is valid. */
+ uint64_t uuid_valid;
+ /** The spawn UUID. */
+ TEE_UUID uuid;
+} spawn_uuid_t;
+
+/**
+ * @brief Enumerates the result codes used in the TEEKit APIs.
+ *
+ * @since 20
+ */
+enum TEE_Result_Value {
+ /** The operation is successful. */
+ TEE_SUCCESS = 0x00000000,
+ /** The command is invalid. */
+ TEE_ERROR_INVALID_CMD = 0x00000001,
+ /** The service does not exist. */
+ TEE_ERROR_SERVICE_NOT_EXIST = 0x00000002,
+ /** The session does not exist. */
+ TEE_ERROR_SESSION_NOT_EXIST = 0x00000003,
+ /** The number of sessions exceeds the limit. */
+ TEE_ERROR_SESSION_MAXIMUM = 0x00000004,
+ /** The service has been already registered. */
+ TEE_ERROR_REGISTER_EXIST_SERVICE = 0x00000005,
+ /** An internal error occurs. */
+ TEE_ERROR_TARGET_DEAD_FATAL = 0x00000006,
+ /** Failed to read data. */
+ TEE_ERROR_READ_DATA = 0x00000007,
+ /** Failed to write data. */
+ TEE_ERROR_WRITE_DATA = 0x00000008,
+ /** Failed to truncate data. */
+ TEE_ERROR_TRUNCATE_OBJECT = 0x00000009,
+ /** Failed to seek data. */
+ TEE_ERROR_SEEK_DATA = 0x0000000A,
+ /** Failed to synchronize data. */
+ TEE_ERROR_SYNC_DATA = 0x0000000B,
+ /** Failed to rename the file. */
+ TEE_ERROR_RENAME_OBJECT = 0x0000000C,
+ /** An error occurs when the TA is loaded. */
+ TEE_ERROR_TRUSTED_APP_LOAD_ERROR = 0x0000000D,
+ /** TA type is inconsistent with the loading mode. */
+ TEE_ERROR_OTRP_LOAD_NOT_MATCHED = 0x80000100,
+ /** The not open session's otrp service num exceeds. */
+ TEE_ERROR_OTRP_LOAD_EXCEED = 0x80000101,
+ /** UUID of load cmd is not inconsistent with the sec file. */
+ TEE_ERROR_OTRP_ACCESS_DENIED = 0x80000102,
+ /** Otrp service is aged. */
+ TEE_ERROR_OTRP_SERVICE_AGED = 0x80000103,
+ /** An I/O error occurs when data is stored. */
+ TEE_ERROR_STORAGE_EIO = 0x80001001,
+ /** The storage section is unavailable. */
+ TEE_ERROR_STORAGE_EAGAIN = 0x80001002,
+ /** The operation target is not a directory. */
+ TEE_ERROR_STORAGE_ENOTDIR = 0x80001003,
+ /** This operation cannot be performed on a directory. */
+ TEE_ERROR_STORAGE_EISDIR = 0x80001004,
+ /** The number of opened files exceeds the limit in system. */
+ TEE_ERROR_STORAGE_ENFILE = 0x80001005,
+ /** The number of files opened for the process exceeds the limit.*/
+ TEE_ERROR_STORAGE_EMFILE = 0x80001006,
+ /** The storage section is read only. */
+ TEE_ERROR_STORAGE_EROFS = 0x80001007,
+ /** The file object has been rolled back. */
+ TEE_ERROR_STORAGE_EROLLBACK = 0x80001008,
+ /** The file path is not correct. */
+ TEE_ERROR_STORAGE_PATH_WRONG = 0x8000100A,
+ /** The service message queue overflows. */
+ TEE_ERROR_MSG_QUEUE_OVERFLOW = 0x8000100B,
+ /** The subthread created by TA cannot access the service */
+ TEE_ERROR_SUBTHREAD_ACCESS = 0x8000100C,
+ /** Enable backup feature, original partition is inactive */
+ TEE_ERROR_ORIGIN_PARTITION_INACTIVE = 0x8000100D,
+ /** Enable backup feature, backup partition is inactive */
+ TEE_ERROR_BACKUP_PARTITION_INACTIVE = 0x8000100E,
+ /** The file object is corrupted. */
+ TEE_ERROR_CORRUPT_OBJECT = 0xF0100001,
+ /** The storage section is unavailable. */
+ TEE_ERROR_STORAGE_NOT_AVAILABLE = 0xF0100003,
+ /** The cipher text is incorrect. */
+ TEE_ERROR_CIPHERTEXT_INVALID = 0xF0100006,
+ /** Protocol error in socket connection. */
+ TEE_ISOCKET_ERROR_PROTOCOL = 0xF1007001,
+ /** The socket is closed by the remote end. */
+ TEE_ISOCKET_ERROR_REMOTE_CLOSED = 0xF1007002,
+ /** The socket connection timed out. */
+ TEE_ISOCKET_ERROR_TIMEOUT = 0xF1007003,
+ /** There is no resource available for the socket connection. */
+ TEE_ISOCKET_ERROR_OUT_OF_RESOURCES = 0xF1007004,
+ /** The buffer is too large for the socket connection. */
+ TEE_ISOCKET_ERROR_LARGE_BUFFER = 0xF1007005,
+ /** A warning is given in the socket connection. */
+ TEE_ISOCKET_WARNING_PROTOCOL = 0xF1007006,
+ /** Generic error. */
+ TEE_ERROR_GENERIC = 0xFFFF0000,
+ /** The access is denied. */
+ TEE_ERROR_ACCESS_DENIED = 0xFFFF0001,
+ /** The operation has been canceled. */
+ TEE_ERROR_CANCEL = 0xFFFF0002,
+ /** An access conflict occurs. */
+ TEE_ERROR_ACCESS_CONFLICT = 0xFFFF0003,
+ /** The data size exceeds the maximum. */
+ TEE_ERROR_EXCESS_DATA = 0xFFFF0004,
+ /** Incorrect data format. */
+ TEE_ERROR_BAD_FORMAT = 0xFFFF0005,
+ /** Incorrect parameters. */
+ TEE_ERROR_BAD_PARAMETERS = 0xFFFF0006,
+ /** The current state does not support the operation. */
+ TEE_ERROR_BAD_STATE = 0xFFFF0007,
+ /** Failed to find the target item. */
+ TEE_ERROR_ITEM_NOT_FOUND = 0xFFFF0008,
+ /** The API is not implemented. */
+ TEE_ERROR_NOT_IMPLEMENTED = 0xFFFF0009,
+ /** The API is not supported. */
+ TEE_ERROR_NOT_SUPPORTED = 0xFFFF000A,
+ /** There is no data available for this operation. */
+ TEE_ERROR_NO_DATA = 0xFFFF000B,
+ /** There is no memory available for this operation. */
+ TEE_ERROR_OUT_OF_MEMORY = 0xFFFF000C,
+ /** The system does not respond to this operation. */
+ TEE_ERROR_BUSY = 0xFFFF000D,
+ /** Failed to communicate with the target. */
+ TEE_ERROR_COMMUNICATION = 0xFFFF000E,
+ /** A security error occurs. */
+ TEE_ERROR_SECURITY = 0xFFFF000F,
+ /** The buffer is insufficient for this operation. */
+ TEE_ERROR_SHORT_BUFFER = 0xFFFF0010,
+ /** The operation has been canceled. */
+ TEE_ERROR_EXTERNAL_CANCEL = 0xFFFF0011,
+ /** The service is in the pending state (asynchronous state). */
+ TEE_PENDING = 0xFFFF2000,
+ /** The service is in the pending state(). */
+ TEE_PENDING2 = 0xFFFF2001,
+ /** Reserved. */
+ TEE_PENDING3 = 0xFFFF2002,
+ /** The operation timed out. */
+ TEE_ERROR_TIMEOUT = 0xFFFF3001,
+ /** Overflow occurs. */
+ TEE_ERROR_OVERFLOW = 0xFFFF300f,
+ /** The TA is crashed. */
+ TEE_ERROR_TARGET_DEAD = 0xFFFF3024,
+ /** There is no enough space to store data. */
+ TEE_ERROR_STORAGE_NO_SPACE = 0xFFFF3041,
+ /** The MAC operation failed. */
+ TEE_ERROR_MAC_INVALID = 0xFFFF3071,
+ /** The signature verification failed. */
+ TEE_ERROR_SIGNATURE_INVALID = 0xFFFF3072,
+ /** Thecertificate verify failed. */
+ TEE_ERROR_CERTIFICATE_INVALID = 0xFFFF3073,
+ /** Interrupted by CFC. Broken control flow is detected. */
+ TEE_CLIENT_INTR = 0xFFFF4000,
+ /** Time is not set. */
+ TEE_ERROR_TIME_NOT_SET = 0xFFFF5000,
+ /** Time needs to be reset. */
+ TEE_ERROR_TIME_NEEDS_RESET = 0xFFFF5001,
+ /** System error. */
+ TEE_FAIL = 0xFFFF5002,
+ /** Base value of the timer error code. */
+ TEE_ERROR_TIMER = 0xFFFF6000,
+ /** Failed to create the timer. */
+ TEE_ERROR_TIMER_CREATE_FAILED = 0xFFFF6001,
+ /** Failed to destroy the timer. */
+ TEE_ERROR_TIMER_DESTROY_FAILED = 0xFFFF6002,
+ /** The timer is not found. */
+ TEE_ERROR_TIMER_NOT_FOUND = 0xFFFF6003,
+ /** Base value of RPMB error codes. */
+ TEE_ERROR_RPMB_BASE = 0xFFFF7000,
+ /** Generic error of RPMB operations. */
+ TEE_ERROR_RPMB_GENERIC = 0xFFFF7001,
+ /** Verify MAC failed in RPMB operations. */
+ TEE_ERROR_RPMB_MAC_FAIL = 0xFFFF7002,
+ /** Invalid counter in RPMB operations. */
+ TEE_ERROR_RPMB_COUNTER_FAIL = 0xFFFF7003,
+ /** Address check failed in RPMB operations. */
+ TEE_ERROR_RPMB_ADDR_FAIL = 0xFFFF7004,
+ /** Fail to write data to RPMB. */
+ TEE_ERROR_RPMB_WRITE_FAIL = 0xFFFF7005,
+ /** Fail to read data in RPMB. */
+ TEE_ERROR_RPMB_READ_FAIL = 0xFFFF7006,
+ /** Key is not provisioned in RPMB. */
+ TEE_ERROR_RPMB_KEY_NOT_PROGRAM = 0xFFFF7007,
+ /** Incorrect message type in RPMB response. */
+ TEE_ERROR_RPMB_RESP_UNEXPECT_MSGTYPE = 0xFFFF7100,
+ /** Incorrect message data block count in RPMB response. */
+ TEE_ERROR_RPMB_RESP_UNEXPECT_BLKCNT = 0xFFFF7101,
+ /** Incorrect message data block count in RPMB response. */
+ TEE_ERROR_RPMB_RESP_UNEXPECT_BLKIDX = 0xFFFF7102,
+ /** Incorrect message data counter in RPMB response. */
+ TEE_ERROR_RPMB_RESP_UNEXPECT_WRCNT = 0xFFFF7103,
+ /** Incorrect message data nonce in RPMB response. */
+ TEE_ERROR_RPMB_RESP_UNEXPECT_NONCE = 0xFFFF7104,
+ /** Incorrect message data MAC in RPMB response. */
+ TEE_ERROR_RPMB_RESP_UNEXPECT_MAC = 0xFFFF7105,
+ /** The file is not found in RPMB. */
+ TEE_ERROR_RPMB_FILE_NOT_FOUND = 0xFFFF7106,
+ /** No spece left for RPMB operations. */
+ TEE_ERROR_RPMB_NOSPC = 0xFFFF7107,
+ /** Exceeds max space of RPMB for this TA. */
+ TEE_ERROR_RPMB_SPC_CONFLICT = 0xFFFF7108,
+ /** RPMB service not ready. */
+ TEE_ERROR_RPMB_NOT_AVAILABLE = 0xFFFF7109,
+ /** RPMB partition is damaged. */
+ TEE_ERROR_RPMB_DAMAGED = 0xFFFF710A,
+ /** TUI is being used. */
+ TEE_ERROR_TUI_IN_USE = 0xFFFF7110,
+ /** Incorrect message switch channal in TUI response. */
+ TEE_ERROR_TUI_SWITCH_CHANNAL = 0xFFFF7111,
+ /** Incorrect message configurator driver in TUI response. */
+ TEE_ERROR_TUI_CFG_DRIVER = 0xFFFF7112,
+ /** Invalid TUI event. */
+ TEE_ERROR_TUI_INVALID_EVENT = 0xFFFF7113,
+ /** Incorrect message polling events in TUI response. */
+ TEE_ERROR_TUI_POLL_EVENT = 0xFFFF7114,
+ /** TUI is cancelled. */
+ TEE_ERROR_TUI_CANCELED = 0xFFFF7115,
+ /** TUI is exited. */
+ TEE_ERROR_TUI_EXIT = 0xFFFF7116,
+ /** TUI unavailable. */
+ TEE_ERROR_TUI_NOT_AVAILABLE = 0xFFFF7117,
+ /** sec flash is not available. */
+ TEE_ERROR_SEC_FLASH_NOT_AVAILABLE = 0xFFFF7118,
+ /** SE service has crashed or not enable. */
+ TEE_ERROR_SESRV_NOT_AVAILABLE = 0xFFFF7119,
+ /** The BIO service is not available. */
+ TEE_ERROR_BIOSRV_NOT_AVAILABLE = 0xFFFF711A,
+ /** The ROT service is not available. */
+ TEE_ERROR_ROTSRV_NOT_AVAILABLE = 0xFFFF711B,
+ /** The TA Anti-Rollback service is not available. */
+ TEE_ERROR_ARTSRV_NOT_AVAILABLE = 0xFFFF711C,
+ /** The HSM service is not available. */
+ TEE_ERROR_HSMSRV_NOT_AVAILABLE = 0xFFFF711D,
+ /** REE vrpmb agent check magic failed, maybe cache fail. */
+ TEE_ERROR_VRPMB_AGENT_FAIL = 0xFFFF7200,
+ /** REE ssd driver rw failed. */
+ TEE_ERROR_VRPMB_RW_FAIL = 0xFFFF7201,
+ /** vrpmb check super block mac failed. */
+ TEE_ERROR_VRPMB_SUPER_MAC_FAILED = 0xFFFF7202,
+ /** reject write to vrpmb. */
+ TEE_ERROR_VRPMB_WRITE_REJECT = 0xFFFF7203,
+ /** Failed to verify AntiRoot response. */
+ TEE_ERROR_ANTIROOT_RSP_FAIL = 0xFFFF9110,
+ /** AntiRoot error in invokeCmd(). */
+ TEE_ERROR_ANTIROOT_INVOKE_ERROR = 0xFFFF9111,
+ /** Audit failed. */
+ TEE_ERROR_AUDIT_FAIL = 0xFFFF9112,
+ /** Unused. */
+ TEE_FAIL2 = 0xFFFF9113,
+ /** IPC Channel overflow error. */
+ TEE_ERROR_IPC_OVERFLOW = 0xFFFF9114,
+ /** APM error. */
+ TEE_ERROR_APM = 0xFFFF9115,
+ /** CA auth file not exist. */
+ TEE_ERROR_CA_AUTHFILE_NOT_EXIST = 0xFFFF9116,
+ /** CA caller access is denied. */
+ TEE_ERROR_CA_CALLER_ACCESS_DENIED = 0xFFFF9117,
+ /** Invalid TA format. */
+ TEE_ERROR_INVALID_TA_FORMAT = 0xFFFF9118,
+ /** local dstb service sign report error. */
+ TEE_DSTB_LOCAL_SIGN_REPORT_ERROR = 0xFFFF9200,
+ /** remote dstb service sign report error. */
+ TEE_DSTB_REMOTE_SIGN_REPORT_ERROR = 0xFFFF9201,
+ /** local dstb service report cert chain error. */
+ TEE_DSTB_LOCAL_REPORT_CERT_CHAIN_ERROR = 0xFFFF9202,
+ /** remote dstb service report cert chain error. */
+ TEE_DSTB_REMOTE_REPORT_CERT_CHAIN_ERROR = 0xFFFF9203,
+ /** local dstb service verify report error. */
+ TEE_DSTB_LOCAL_REPORT_VERIFY_ERROR = 0xFFFF9204,
+ /** remote dstb service verify report error. */
+ TEE_DSTB_REMOTE_REPORT_VERIFY_ERROR = 0xFFFF9205,
+ /** local dstb service verify cert chain error. */
+ TEE_DSTB_LOCAL_CERT_CHAIN_VERIFY_ERROR = 0xFFFF9206,
+ /** remote dstb service verify cert chain error. */
+ TEE_DSTB_REMOTE_CERT_CHAIN_VERIFY_ERROR = 0xFFFF9207,
+ /** local dstb service key version error. */
+ TEE_DSTB_LOCAL_INVALID_KEY_VERSION_ERROR = 0xFFFF9208,
+ /** remote dstb service key version error. */
+ TEE_DSTB_REMOTE_INVALID_KEY_VERSION_ERROR = 0xFFFF9209,
+ /** udid is invalid. */
+ TEE_DSTB_INVALID_UDID = 0xFFFF920A,
+ /** dstb service derive key error. */
+ TEE_DSTB_DERIVE_KEY_ERROR = 0xFFFF920B,
+ /** dstb service of ree error. */
+ TEE_DSTB_REE_SRV_ERROR = 0xFFFF920C,
+ /** TA load fail becauce of anti-rollback. */
+ TEE_ERROR_TA_ANTI_ROLLBACK = 0xFFFF920D,
+ /** open_session fail becauce of race with close_session. */
+ TEE_ERROR_RETRY_OPEN_SESSION = 0xFFFF920E,
+ /** TA control file load fail. */
+ TEE_ERROR_TA_CTRL_FILE_LOAD_FAIL = 0xFFFF920F,
+ /** TA control file verify fail. */
+ TEE_ERROR_TA_CTRL_FILE_VERIFY_FAIL = 0xFFFF9210,
+ /** TA version is below the verison in control file. */
+ TEE_ERROR_TA_VER_BELOW_CONTROL_VER = 0xFFFF9211,
+ /** Local dstb cert chain validity check failed. */
+ TEE_DSTB_LOCAL_CERT_VALIDITY_ERROR = 0xFFFF9212,
+ /** Remote dstb cert chain validity check failed. */
+ TEE_DSTB_REMOTE_CERT_VALIDITY_ERROR = 0xFFFF9213,
+};
+
+/**
+ * @brief Login type definitions
+ *
+ * @since 20
+ */
+enum TEE_LoginMethod {
+ /** Public login method. */
+ TEE_LOGIN_PUBLIC = 0x0,
+ /** User login method. */
+ TEE_LOGIN_USER,
+ /** Group login method. */
+ TEE_LOGIN_GROUP,
+ /** Application login method. */
+ TEE_LOGIN_APPLICATION = 0x4,
+ /** User-application login method. */
+ TEE_LOGIN_USER_APPLICATION = 0x5,
+ /** Group-application login method. */
+ TEE_LOGIN_GROUP_APPLICATION = 0x6,
+ /** Customized login type. */
+ TEE_LOGIN_IDENTIFY = 0x7,
+ /** Login type from the Linux kernel. */
+ TEEK_LOGIN_IDENTIFY = 0x80000001,
+};
+
+/**
+ * @brief Definitions the TEE Identity.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Login method. */
+ uint32_t login;
+ /** The UUID of the identity. */
+ TEE_UUID uuid;
+} TEE_Identity;
+
+/**
+ * @brief Defines the return values.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_Result;
+
+/**
+ * @brief Defines the return values.
+ *
+ * @since 20
+ */
+typedef TEE_Result TEEC_Result;
+
+/**
+ * @brief Origin of the TEE.
+ *
+ * @since 20
+ */
+#define TEE_ORIGIN_TEE 0x00000003
+
+/**
+ * @brief Origin of the Trusted Application.
+ *
+ * @since 20
+ */
+#define TEE_ORIGIN_TRUSTED_APP 0x00000004
+
+#ifndef _TEE_TA_SESSION_HANDLE
+/**
+ * @brief Defines the handle for a TA session.
+ *
+ * @since 20
+ */
+#define _TEE_TA_SESSION_HANDLE
+/**
+ * @brief Defines the handle of TA session.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_TASessionHandle;
+#endif
+
+/**
+ * @brief Defines the pointer to TEE_ObjectEnumHandle.
+ *
+ * @see __TEE_ObjectEnumHandle
+ *
+ * @since 20
+ */
+typedef struct __TEE_ObjectEnumHandle *TEE_ObjectEnumHandle;
+
+/**
+ * @brief Defines the pointer to __TEE_OperationHandle.
+ *
+ * @see __TEE_OperationHandle
+ *
+ * @since 20
+ */
+typedef struct __TEE_OperationHandle *TEE_OperationHandle;
+
+/**
+ * @brief Defines the infinite timeout value.
+ *
+ * @since 20
+ */
+#define TEE_TIMEOUT_INFINITE (0xFFFFFFFF)
+
+/**
+ * @brief Definitions the TEE time.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Seconds part of the time. */
+ uint32_t seconds;
+ /** Milliseconds part of the time. */
+ uint32_t millis;
+} TEE_Time;
+
+/**
+ * @brief Definitions the date time of TEE.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Seconds part of the date time. */
+ int32_t seconds;
+ /** Milliseconds part of the date time. */
+ int32_t millis;
+ /** Minutes part of the date time. */
+ int32_t min;
+ /** Hours part of the date time. */
+ int32_t hour;
+ /** Day part of the date time. */
+ int32_t day;
+ /** Month part of the date time. */
+ int32_t month;
+ /** Year part of the date time. */
+ int32_t year;
+} TEE_Date_Time;
+
+/**
+ * @brief Definitions the timer property of TEE.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Type of the timer. */
+ uint32_t type;
+ /** Timer ID. */
+ uint32_t timer_id;
+ /** Timer class. */
+ uint32_t timer_class;
+ /** Reserved field for future use. */
+ uint32_t reserved2;
+} TEE_timer_property;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_drv_client.h b/TEEKit/include/tee/tee_drv_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..555730ef4f524c4644826598f8dc1428687e6b16
--- /dev/null
+++ b/TEEKit/include/tee/tee_drv_client.h
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_drv_client.h
+ *
+ * @brief Declare tee driver client API.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_DRV_CLIENT_H
+#define TEE_DRV_CLIENT_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Open the specified driver in the TEE.
+ *
+ * @param drv_name [IN] The driver name.
+ * @param param [IN] The parameter information.
+ * @param param_len [IN] The length of the parameter.
+ *
+ * @return Returns greater than 0, which means the fd of the corresponding driver.
+ * Returns less than or equal to 0, which means falied to open the driver.
+ *
+ * @since 20
+ */
+int64_t tee_drv_open(const char *drv_name, const void *param, uint32_t param_len);
+
+/**
+ * @brief Cancels an operation.
+ *
+ * @param fd [IN] The file descriptor of the driver.
+ * @param cmd_id [IN] The command id.
+ * @param param [IN] The parameter information.
+ * @param param_len [IN] The length of the parameter.
+ *
+ * @return Returns 0 if the operation is successful.
+ * Returns -1 if the operation is failed.
+ *
+ * @since 20
+ */
+int64_t tee_drv_ioctl(int64_t fd, uint32_t cmd_id, const void *param, uint32_t param_len);
+
+/**
+ * @brief Open the specified driver in the TEE.
+ *
+ * @param fd [IN] The file descriptor of the driver.
+ *
+ * @return Returns 0 if the operation is successful.
+ * Returns -1 if the operation is failed.
+ *
+ * @since 20
+ */
+int64_t tee_drv_close(int64_t fd);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_dynamic_srv.h b/TEEKit/include/tee/tee_dynamic_srv.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ef249dfa6a92c3fb443afc2395dbb7a7bb9d32e
--- /dev/null
+++ b/TEEKit/include/tee/tee_dynamic_srv.h
@@ -0,0 +1,149 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_dynamic_srv.h
+ *
+ * @brief Provides APIs related to dynamic service development.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef _TEE_DYNAMIC_SRV_H_
+#define _TEE_DYNAMIC_SRV_H_
+
+#include
+#include "tee_service_public.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines a structure for service thread initialize informations.
+ *
+ * @since 20
+ */
+struct srv_thread_init_info {
+ /** Function pointer to the thread function. */
+ void *(*func)(void *arg);
+ /** The maximum number of parallel threads. */
+ uint32_t max_thread;
+ /** Shadow parameter, its purpose depends on the implementation. */
+ int32_t shadow;
+ /** The stack size of the thread. */
+ uint32_t stack_size;
+ /** The timeout period for the thread (in seconds). */
+ uint32_t time_out_sec;
+};
+
+/**
+ * @brief Defines a function pointer type for service dispatch function.
+ *
+ * @param msg A pointer to the IPC message to be processed.
+ * @param sndr The sender of the IPC message.
+ * @param rsp A pointer to the IPC response message.
+ *
+ * @since 20
+ */
+typedef void (*srv_dispatch_fn_t)(tee_service_ipc_msg *msg,
+ uint32_t sndr, tee_service_ipc_msg_rsp *rsp);
+
+/**
+ * @brief Defines a structure for service dispatch information.
+ *
+ * @since 20
+ */
+struct srv_dispatch_t {
+ /** The command associated with the dispatch. */
+ uint32_t cmd;
+ /** Function pointer for the dispatch handler. */
+ srv_dispatch_fn_t fn;
+};
+
+/**
+ * @brief Get UUID by sender.
+ *
+ * @param sender [IN] Indicates the sender's task Id.
+ * @param uuid [OUT] Indicates the universally unique identifier.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if the input parameter is incorrect,
+ * or the file name is longer than 64 bytes.
+ * Returns {@code TEE_ERROR_ITEM_NOT_FOUND} if failed to find the corresponding UUID by sender.
+ * Returns {@code TEE_ERROR_GENERIC} if failed to obtain the UUID.
+ *
+ * @since 20
+ */
+TEE_Result tee_srv_get_uuid_by_sender(uint32_t sender, TEE_UUID *uuid);
+
+/**
+ * @brief Releasing the object mapping of a specified address area.
+ *
+ * @param va_addr [IN] Indicates the address of the memory area to be released.
+ * @param size [IN] Indicates the size of the released memory area.
+ *
+ * @since 20
+ */
+void tee_srv_unmap_from_task(uint32_t va_addr, uint32_t size);
+
+/**
+ * @brief Create a new mapping in the virtual address space of the calling process.
+ *
+ * @param in_task_id [IN] Indicates the task Id.
+ * @param va_addr [IN] Indicates the address of the memory area to be mapped.
+ * @param size [IN] Indicates the size of the memory area to be mapped.
+ * @param virt_addr [OUT] Indicates the new mapping vitural address.
+ *
+ * @return Returns 0 if the operation is successful.
+ * @return Returns -1 if the operation is failed.
+ *
+ * @since 20
+ */
+int tee_srv_map_from_task(uint32_t in_task_id, uint32_t va_addr, uint32_t size, uint32_t *virt_addr);
+
+/**
+ * @brief Dispatch task by task name.
+ *
+ * @param task_name [IN] Indicates the task name.
+ * @param dispatch [IN] Indicates the dispatch information.
+ * @param n_dispatch [IN] Indicates the dispatch number.
+ * @param cur_thread [IN] Indicates the current thread information.
+ *
+ * @since 20
+ */
+void tee_srv_cs_server_loop(const char *task_name, const struct srv_dispatch_t *dispatch,
+ uint32_t n_dispatch, struct srv_thread_init_info *cur_thread);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_ext_api.h b/TEEKit/include/tee/tee_ext_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..21eb3591c565df551a6c703b512c9ae578dec2ec
--- /dev/null
+++ b/TEEKit/include/tee/tee_ext_api.h
@@ -0,0 +1,209 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_ext_api.h
+ *
+ * @brief Provides extended interfaces.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_EXT_API_H
+#define TEE_EXT_API_H
+
+#include "tee_defines.h"
+#include "tee_hw_ext_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the value of invalid user ID.
+ *
+ * @since 20
+ */
+#define INVALID_USERID 0xFFFFFFFFU
+
+/**
+ * @brief Defines the SMC from user mode.
+ *
+ * @since 20
+ */
+#define TEE_SMC_FROM_USR 0
+
+/**
+ * @brief Defines the SMC from kernel mode.
+ *
+ * @since 20
+ */
+#define TEE_SMC_FROM_KERNEL 1
+
+/**
+ * @brief Defines the szie of reserved buffer.
+ *
+ * @since 20
+ */
+#define RESERVED_BUF_SIZE 32
+
+/**
+ * @brief Defines the caller information.
+ *
+ * @since 20
+ */
+typedef struct ta_caller_info {
+ /** The session type. */
+ uint32_t session_type;
+ union {
+ struct {
+ /** The caller's UUID. */
+ TEE_UUID caller_uuid;
+ /** The caller's group ID. */
+ uint32_t group_id;
+ };
+ /** The buffer used to store CA information. */
+ uint8_t ca_info[RESERVED_BUF_SIZE];
+ } caller_identity;
+ /** Indicates whether the SMC is sent from kernel mode. */
+ uint8_t smc_from_kernel_mode;
+ /** Reserved buffer. */
+ uint8_t reserved[RESERVED_BUF_SIZE - 1];
+} caller_info;
+
+/**
+ * @brief Get caller info of current session, refer caller_info struct for more details.
+ *
+ * @param caller_info_data A pointer to a buffer where the caller_info struct will be stored.
+ * @param length The size of the buffer pointed to by caller_info_data.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_get_caller_info(caller_info *caller_info_data, uint32_t length);
+
+/**
+ * @brief Get user ID of current CA.
+ *
+ * @param user_id Indicates the user ID to be returned.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_get_caller_userid(uint32_t *user_id);
+
+/**
+ * @brief Adds information about a caller that can invoke this TA.
+ * This API applies to the client applications (CAs) in the native CA and HAP format.
+ *
+ * @param cainfo_hash Indicates the hash value of the CA caller information.
+ * @param length Indicates the length of the hash value.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result AddCaller_CA(const uint8_t *cainfo_hash, uint32_t length);
+
+/**
+ * @brief TA call this API allow others TA open session with itself.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result AddCaller_TA_all(void);
+
+/**
+ * @brief Defines the session caller from CA.
+ *
+ * @since 20
+ */
+#define SESSION_FROM_CA 0
+
+/**
+ * @brief Defines the session caller from TA.
+ *
+ * @since 20
+ */
+#define SESSION_FROM_TA 1
+
+/**
+ * @brief Defines the TA task is not found, for example, from TA sub thread.
+ *
+ * @since 20
+ */
+#define SESSION_FROM_NOT_SUPPORTED 0xFE
+
+/**
+ * @brief Defines the TA caller is not found.
+ *
+ * @since 20
+ */
+#define SESSION_FROM_UNKNOWN 0xFF
+
+/**
+ * @brief Obtains the session type.
+ *
+ * @return Returns the session type obtained.
+ *
+ * @since 20
+ */
+uint32_t tee_get_session_type(void);
+
+/**
+ * @brief Derive key from platform key.
+ *
+ * @param object [IN/OUT] input data in ObjectInfo->keytype, output keys in Attributes.
+ * @param key_size [IN] key size in bits, it desides the ecc curve type too.
+ * @param params [IN] unused.
+ * @param param_count [IN] unused.
+ * @param exinfo [IN] user info as dervice salt.
+ * @param exinfo_size [IN] size of user info, Max is 64 bytes, must bigger than 0.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_derive_ta_platfrom_keys(TEE_ObjectHandle object, uint32_t key_size, const TEE_Attribute *params,
+ uint32_t param_count, const uint8_t *exinfo, uint32_t exinfo_size);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_get_recoverymode.h b/TEEKit/include/tee/tee_get_recoverymode.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3ec00cf6552932f650262482bf5f825e7551bf8
--- /dev/null
+++ b/TEEKit/include/tee/tee_get_recoverymode.h
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_get_recoverymode.h
+ *
+ * @brief Provides APIs for getting boot mode.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_GET_RECOVERYMODE_H
+#define TEE_GET_RECOVERYMODE_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Enumerates the supported boot modes of the system.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** System is powered off or shutting down. */
+ BOOT_MODE_SHUTDOWN = 0,
+ /** Normal boot mode */
+ BOOT_MODE_NORMAL,
+ /** Fastboot boot mode. */
+ BOOT_MODE_FASTBOOT,
+ /** Recovery boot mode. */
+ BOOT_MODE_RECOVERY,
+ /** eRecovery mode. */
+ BOOT_MODE_RECOVERY2,
+ /** Maximum number of supported boot modes. */
+ BOOT_MODE_CNT_MAX
+} boot_modes;
+
+/**
+ * @brief Get current boot mode.
+ *
+ * @param recoverymode [OUT] Indicates current boot mode.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ *
+ * @since 20
+ */
+int32_t tee_ext_get_recoverymode(enum boot_modes *recoverymode);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_hw_ext_api.h b/TEEKit/include/tee/tee_hw_ext_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..d52911e9f7b7d708e036c84448c6db165ee1b307
--- /dev/null
+++ b/TEEKit/include/tee/tee_hw_ext_api.h
@@ -0,0 +1,146 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_hw_ext_api.h
+ *
+ * @brief Provides extended interfaces.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_HW_EXT_API_H
+#define TEE_HW_EXT_API_H
+
+#include "tee_defines.h"
+#include "tee_crypto_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Obtains the unique device ID from the TEE.
+ *
+ * @param device_unique_id Indicates the pointer to the buffer for storing the device ID.
+ * @param length Indicates the pointer to the buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other information otherwise.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_get_device_unique_id(uint8_t *device_unique_id, uint32_t *length);
+
+/**
+ * @brief Defines the memory information.
+ *
+ * @since 20
+ */
+struct meminfo_t {
+ /** Pointer to the memory buffer. */
+ uint64_t buffer;
+ /** The size of the memory. */
+ uint32_t size;
+};
+
+/**
+ * @brief Derive key from device rootkey and UUID of the current task for iteration.
+ *
+ * @param salt [IN] Indicates the data for salt.
+ * @param key [OUT] Indicates the pointer where key is saved.
+ * @param outer_iter_num [IN] Indicates the iteration times in huk service.
+ * @param inner_iter_num [IN] Indicates the iteration times in platform driver.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_derive_key_iter(const struct meminfo_t *salt, struct meminfo_t *key,
+ uint32_t outer_iter_num, uint32_t inner_iter_num);
+
+/**
+ * @brief Derive key from device rootkey and UUID of the current task for iteration by huk2 encryption.
+ *
+ * @param salt [IN] Indicates the data for salt.
+ * @param key [OUT] Indicates the pointer where key is saved.
+ * @param outer_iter_num [IN] Indicates the iteration times in huk service.
+ * @param inner_iter_num [IN] Indicates the iteration times in platform driver.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_derive_key_iter_by_huk2(const struct meminfo_t *salt, struct meminfo_t *key,
+ uint32_t outer_iter_num, uint32_t inner_iter_num);
+
+/**
+ * @brief Derive key from device root key by HUK2.
+ * @attention If the device does not support HUK2, the key is derived by HUK.
+ *
+ * @param salt [IN] Indicates the data for salt.
+ * @param size [IN] Indicates the length of salt.
+ * @param key [OUT] Indicates the pointer where key is saved.
+ * @param key_size [IN] Indicates the size of the key, which must be integer times of 16.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_derive_ta_root_key_by_huk2(const uint8_t *salt, uint32_t size, uint8_t *key, uint32_t key_size);
+
+/**
+ * @brief derive key from device rootkey and UUID of the current task for iteration using huk2 enhance
+ *
+ * @param salt [IN] data for salt
+ * @param key [OUT] pointer where key is saved
+ * @param outer_iter_num [IN] iteration times in huk service
+ * @param inner_iter_num [IN] iteration times in platdrv
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is illegal.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_derive_key_iter_by_huk2_enhance(const struct meminfo_t *salt, struct meminfo_t *key,
+ uint32_t outer_iter_num, uint32_t inner_iter_num);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_hw_ext_api_legacy.h b/TEEKit/include/tee/tee_hw_ext_api_legacy.h
new file mode 100644
index 0000000000000000000000000000000000000000..be77f2b09b30273a03e82538481122e43d229a30
--- /dev/null
+++ b/TEEKit/include/tee/tee_hw_ext_api_legacy.h
@@ -0,0 +1,137 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_hw_ext_api_legacy.h
+ *
+ * @brief Provides extended interfaces.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_HW_EXT_API_LEGACY_H__
+#define __TEE_HW_EXT_API_LEGACY_H__
+
+#include "tee_defines.h"
+#include "tee_crypto_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Derive key from device root key.
+ *
+ * @param salt [IN] Indicates the data for salt.
+ * @param size [IN] Indicates the length of salt.
+ * @param key [OUT] Indicates the pointer where key is saved.
+ * @param key_size [IN] Indicates the size of the key, which must be integer times of 16.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result TEE_EXT_DeriveTARootKey(const uint8_t *salt, uint32_t size, uint8_t *key, uint32_t key_size);
+
+/**
+ * @brief Derive key from device root key by HUK2.
+ * @attention If the device does not support HUK2, the key is derived by HUK.
+ *
+ * @param secret [IN] Indicates the input secret.
+ * @param secret_len [IN] Indicates the length of the input secret.
+ * @param key [OUT] Indicates the derived key.
+ * @param key_len [IN] Indicates the length of the derived key.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_root_derive_key2_by_huk2(const uint8_t *secret, uint32_t secret_len, uint8_t *key, uint32_t key_len);
+
+/**
+ * @brief Derive key from device root key and UUID of the current task by HUK2.
+ * @attention If the device does not support HUK2, the key is derived by HUK.
+ *
+ * @param salt [IN] Indicates the data for salt.
+ * @param size [IN] Indicates the length of salt.
+ * @param key [OUT] Indicates the pointer where key is saved.
+ * @param key_size [IN] Indicates the size of the generated key, fix-size 32 bytes.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_root_uuid_derive_key_by_huk2(const uint8_t *salt, uint32_t size, uint8_t *key, uint32_t *key_size);
+
+/**
+ * @brief using root key to derive key for keymaster using huk2 enhance
+ *
+ * @param secret [IN] input secret
+ * @param secret_len [IN] input secret size
+ * @param key [OUT] derived key
+ * @param key_len [OUT] derived key size
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_root_derive_key2_by_huk2_enhance(const uint8_t *secret, uint32_t secret_len, uint8_t *key,
+ uint32_t key_len);
+
+/**
+ * @brief derive key from device rootkey and UUID of the current task using huk2 enhance
+ *
+ * @param salt [IN] data for salt
+ * @param size [IN] salt length
+ * @param key [OUT] pointer where key is saved
+ * @param key_size [OUT] size of generated key, fix-size 32 bytes
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_GENERIC} if the processing failed.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_root_uuid_derive_key_by_huk2_enhance(const uint8_t *salt, uint32_t size, uint8_t *key,
+ uint32_t *key_size);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_internal_se_api.h b/TEEKit/include/tee/tee_internal_se_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..3a24c6a97a4a2b2ccfd9fc204ff0ed54a1720ec2
--- /dev/null
+++ b/TEEKit/include/tee/tee_internal_se_api.h
@@ -0,0 +1,570 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_internal_se_api.h
+ *
+ * @brief Provides APIs related to the TEE Secure Element.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_INTERNAL_SE_API_H
+#define TEE_INTERNAL_SE_API_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Represents the handle for the SE (Secure Element) service.
+ *
+ * @since 20
+ */
+struct __TEE_SEServiceHandle;
+
+/**
+ * @brief Represents the handle for the SE reader.
+ *
+ * @since 20
+ */
+struct __TEE_SEReaderHandle;
+
+/**
+ * @brief Represents the handle for the SE session.
+ *
+ * @since 20
+ */
+struct __TEE_SESessionHandle;
+
+/**
+ * @brief Represents the handle for the SE channel.
+ *
+ * @since 20
+ */
+struct __TEE_SEChannelHandle;
+
+/**
+ * @brief Defines the pointer type for {@code TEE_SEServiceHandle}.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SEServiceHandle *TEE_SEServiceHandle;
+
+/**
+ * @brief Defines the pointer type for {@code TEE_SEReaderHandle}.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SEReaderHandle *TEE_SEReaderHandle;
+
+/**
+ * @brief Defines the pointer type for {@code TEE_SESessionHandle}.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SESessionHandle *TEE_SESessionHandle;
+
+/**
+ * @brief Defines the pointer type for {@code TEE_SEChannelHandle}.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SEChannelHandle *TEE_SEChannelHandle;
+
+/**
+ * @brief Defines the maximum length of the ATR (Answer to Reset) in bytes.
+ *
+ * @since 20
+ */
+#define ATR_LEN_MAX 32U
+
+/**
+ * @brief Defines the minimum length of the AID (Application Identifier) in bytes.
+ *
+ * @since 20
+ */
+#define AID_LEN_MIN 5U
+
+/**
+ * @brief Defines the maximum length of the AID (Application Identifier) in bytes.
+ *
+ * @since 20
+ */
+#define AID_LEN_MAX 16U
+
+/**
+ * @brief Defines the maximum of the logic channel.
+ *
+ * @since 20
+ */
+#define SE_LOGIC_CHANNEL_MAX 8U
+
+/**
+ * @brief Defines the SCP03 type.
+ *
+ * @since 20
+ */
+#define TEE_SC_TYPE_SCP03 0x01
+
+/**
+ * @brief Defines the number of bits in a byte.
+ *
+ * @since 20
+ */
+#define BYTE_LEN 8
+
+/**
+ * @brief Represents the properties of the SE reader.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SEReaderProperties {
+ /** If an SE is present in the reader, the value is true. */
+ bool sePresent;
+ /** If this reader is only accessible via the TEE, the value is true. */
+ bool teeOnly;
+ /** If the response to a SELECT is available in the TEE, the value is true.*/
+ bool selectResponseEnable;
+} TEE_SEReaderProperties;
+
+/**
+ * @brief Defines the SE AID.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SEAID {
+ /** The value of the applet's AID. */
+ uint8_t *buffer;
+ /** The lenght of the applet's AID. */
+ uint32_t bufferLen;
+} TEE_SEAID;
+
+/**
+ * @brief Enumerates the types of the key.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** A base key acc. to SCP02. */
+ TEE_SC_BASE_KEY = 0,
+ /** A key set (key-MAC, key_ENC) acc. to SCP02, SCP03. */
+ TEE_SC_KEY_SET = 1
+} TEE_SC_KeyType;
+
+/**
+ * @brief Defines a reference to a key set.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SC_KeySetRef {
+ /** Key-ENC (Static encryption key). */
+ TEE_ObjectHandle scKeyEncHandle;
+ /** Key-MAC (Static MAC key). */
+ TEE_ObjectHandle scKeyMacHandle;
+} TEE_SC_KeySetRef;
+
+/**
+ * @brief Enumerates the levels of the security.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Nothing will be applied. */
+ TEE_SC_NO_SECURE_MESSAGING = 0x00,
+ /** Command and response APDU not be secured. */
+ TEE_SC_AUTHENTICATE = 0x80,
+ /** Command APDU shall be MAC protected. */
+ TEE_SC_C_MAC = 0x01,
+ /** Response APDU shall be MAC protected. */
+ TEE_SC_R_MAC = 0x10,
+ /** Command and response APDU shall be MAC protected. */
+ TEE_SC_CR_MAC = 0x11,
+ /** Command APDU shall be encrypted and MAC protected. */
+ TEE_SC_C_ENC_MAC = 0x03,
+ /** Response APDU shall be encrypted and MAC protected. */
+ TEE_SC_R_ENC_MAC = 0x30,
+ /** Command and response APDU shall be encrypted and MAC protected. */
+ TEE_SC_CR_ENC_MAC = 0x33,
+ /** Command APDU shall be encrypted, and the command and response APDU shall be MAC protected.*/
+ TEE_SC_C_ENC_CR_MAC = 0x13
+} TEE_SC_SecurityLevel;
+
+/**
+ * @brief Defines an alias for TEE_SC_AUTHENTICATE.
+ *
+ * @since 20
+ */
+#define TEE_AUTHENTICATE TEE_SC_AUTHENTICATE
+
+/**
+ * @brief Represents the reference about SC card key.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SC_CardKeyRef {
+ /** The key identifier of the SC card key. */
+ uint8_t scKeyID;
+ /** The key version if the SC card key. */
+ uint8_t scKeyVersion;
+} TEE_SC_CardKeyRef;
+
+/**
+ * @brief Represents the reference about the SC device key.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SC_DeviceKeyRef {
+ /** The type of the SC key. */
+ TEE_SC_KeyType scKeyType;
+ /**
+ * @brief Contains the specific information of the SC key.
+ *
+ * @since 20
+ */
+ union {
+ /** The handle for the SC base key. */
+ TEE_ObjectHandle scBaseKeyHandle;
+ /** A reference to the SC key set. */
+ TEE_SC_KeySetRef scKeySetRef;
+ } __TEE_key;
+} TEE_SC_DeviceKeyRef;
+
+/**
+ * @brief Defines the OID of the SC.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SC_OID {
+ /** The value of the OID. */
+ uint8_t *buffer;
+ /** The length of the OID. */
+ uint32_t bufferLen;
+} TEE_SC_OID;
+
+/**
+ * @brief Represents the paramaters about the SC.
+ *
+ * @since 20
+ */
+typedef struct __TEE_SC_Params {
+ /** The SC type. */
+ uint8_t scType;
+ /** The SC type defined by OID. */
+ TEE_SC_OID scOID;
+ /** The SC security level. */
+ TEE_SC_SecurityLevel scSecurityLevel;
+ /** Reference to SC card keys. */
+ TEE_SC_CardKeyRef scCardKeyRef;
+ /** Reference to SC device keys. */
+ TEE_SC_DeviceKeyRef scDeviceKeyRef;
+} TEE_SC_Params;
+
+/**
+ * @brief Open the SE service.
+ *
+ * @param se_service_handle [IN] Indicates the handle of SE service.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_ACCESS_CONFLICT} if failed to access the SE service due to conflict.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEServiceOpen(TEE_SEServiceHandle *se_service_handle);
+
+/**
+ * @brief Close the SE service.
+ *
+ * @param se_service_handle [IN] Indicates the handle of SE service.
+ *
+ * @since 20
+ */
+void TEE_SEServiceClose(TEE_SEServiceHandle se_service_handle);
+
+/**
+ * @brief Get the available readers handle of the SE service.
+ *
+ * @param se_service_handle [IN] Indicates the handle of SE service.
+ * @param se_reader_handle_list [OUT] Indicates the available readers handle list.
+ * @param se_reader_handle_list_len [OUT] Indicates the length of the handle list.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ITEM_NOT_FOUND} if cannot find the input SE service handle.
+ * Returns {@code TEE_ERROR_SHORT_BUFFER} if the provided buffer is too small to store the readers handle.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEServiceGetReaders(TEE_SEServiceHandle se_service_handle, TEE_SEReaderHandle *se_reader_handle_list,
+ uint32_t *se_reader_handle_list_len);
+
+/**
+ * @brief Get the available readers handle of the SE service.
+ *
+ * @param se_reader_handle [IN] Indicates the SE readers handle.
+ * @param reader_properties [OUT] Indicates the reader's properties.
+ *
+ * @since 20
+ */
+void TEE_SEReaderGetProperties(TEE_SEReaderHandle se_reader_handle, TEE_SEReaderProperties *reader_properties);
+
+/**
+ * @brief Get the SE reader's name.
+ *
+ * @param se_reader_handle [IN] Indicates the SE readers handle.
+ * @param reader_name [OUT] Indicates the SE reader's name.
+ * @param reader_name_len [OUT] Indicates the length of the reader's name.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ITEM_NOT_FOUND} if cannot find the input SE reader handle.
+ * Returns {@code TEE_ERROR_BAD_FORMAT} if the input se_reader_handle points to the reader illegally.
+ * Returns {@code TEE_ERROR_SHORT_BUFFER} if the reader_name_len is too small to store the readers name.
+ * Returns {@code TEE_ERROR_SECURITY} if the security error is detected.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEReaderGetName(TEE_SEReaderHandle se_reader_handle, char *reader_name, uint32_t *reader_name_len);
+
+/**
+ * @brief Open a session between the SE reader to the SE.
+ *
+ * @param se_reader_handle Indicates the SE readers handle.
+ * @param se_session_handle Indicates the session handle.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ITEM_NOT_FOUND} if cannot find the input SE reader handle.
+ * Returns {@code TEE_ERROR_COMMUNICATION} if communicte failed with the SE.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEReaderOpenSession(TEE_SEReaderHandle se_reader_handle, TEE_SESessionHandle *se_session_handle);
+
+/**
+ * @brief Close sessions between the SE reader to the SE.
+ *
+ * @param se_reader_handle Indicates the SE readers handle.
+ *
+ * @since 20
+ */
+void TEE_SEReaderCloseSessions(TEE_SEReaderHandle se_reader_handle);
+
+/**
+ * @brief Get the SE ATR.
+ *
+ * @param se_session_handle Indicates the session handle.
+ * @param atr Indicates the SE ATR.
+ * @param atrLen Indicates the length of ATR.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_SHORT_BUFFER} if the provided buffer is too small to store the ATR.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SESessionGetATR(TEE_SESessionHandle se_session_handle, void *atr, uint32_t *atrLen);
+
+/**
+ * @brief Check whether the session is closed.
+ *
+ * @param se_session_handle Indicates the session handle.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the session is closed or the input handle is invalid.
+ * Returns {@code TEE_ERROR_COMMUNICATION} if session state is invalid.
+ * Returns {@code TEE_ERROR_BAD_STATE} if the session is opened.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SESessionIsClosed(TEE_SESessionHandle se_session_handle);
+
+/**
+ * @brief Close the SE session.
+ *
+ * @param se_session_handle Indicates the session handle.
+ *
+ * @since 20
+ */
+void TEE_SESessionClose(TEE_SESessionHandle se_session_handle);
+
+/**
+ * @brief Close all channels which pointed to by the SE session.
+ *
+ * @param se_session_handle Indicates the session handle.
+ *
+ * @since 20
+ */
+void TEE_SESessionCloseChannels(TEE_SESessionHandle se_session_handle);
+
+/**
+ * @brief Open a basic channel which pointed to by the SE session.
+ *
+ * @param se_session_handle Indicates the session handle.
+ * @param se_aid Indicates the SE AID.
+ * @param se_channel_handle Indicates the SE channel handle.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_STATE} if the session is closed.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ITEM_NOT_FOUND} if cannot find the input SE reader handle.
+ * Returns other when SE responding to the abnormal status word.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SESessionOpenBasicChannel(TEE_SESessionHandle se_session_handle, TEE_SEAID *se_aid,
+ TEE_SEChannelHandle *se_channel_handle);
+
+/**
+ * @brief Open a logical channel which pointed to by the SE session.
+ *
+ * @param se_session_handle Indicates the session handle.
+ * @param se_aid Indicates the SE AID.
+ * @param se_channel_handle Indicates the SE channel handle.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_STATE} if the session is closed.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ITEM_NOT_FOUND} if cannot find the input SE reader handle.
+ * Returns other when SE responding to the abnormal status word.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SESessionOpenLogicalChannel(TEE_SESessionHandle se_session_handle, TEE_SEAID *se_aid,
+ TEE_SEChannelHandle *se_channel_handle);
+
+/**
+ * @brief Close the channel which pointed to by the channel handle.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ *
+ * @since 20
+ */
+void TEE_SEChannelClose(TEE_SEChannelHandle se_channel_handle);
+
+/**
+ * @brief Select the next SE service which pointed to by the channel handle.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is invalid or the mode of SE is wrong.
+ * Returns other when SE responding to the abnormal status word.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEChannelSelectNext(TEE_SEChannelHandle se_channel_handle);
+
+/**
+ * @brief Get the SELECT command response of SE when open the channel handle.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ * @param response Indicates the response of SE.
+ * @param response_len Indicates the length of the response.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is invalid.
+ * Returns {@code TEE_ERROR_SHORT_BUFFER} if the provided buffer is too small to store the response.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEChannelGetSelectResponse(TEE_SEChannelHandle se_channel_handle, void *response,
+ uint32_t *response_len);
+
+/**
+ * @brief Transmit the command through the channle.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ * @param command Indicates the transmitted command.
+ * @param command_len Indicates the length of the command.
+ * @param response Indicates the response of SE.
+ * @param response_len Indicates the length of the response.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_COMMUNICATION} if length of command is less than 4.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is invalid.
+ * Returns {@code TEE_ERROR_BAD_STATE} if the channel is closed.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEChannelTransmit(TEE_SEChannelHandle se_channel_handle, void *command, uint32_t command_len,
+ void *response, uint32_t *response_len);
+
+/**
+ * @brief Open a SE secure channel based on the input channel handle.
+ * Thereafter, when the {@code TEE_SEChannelTransmit} is called, all APDUs(ENC/MAC protected) transmitted based on
+ * the handle are automatically protected based on the defined secure channel parameter options.
+ * Currently, only SCP03 is supported.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ * @param sc_params Indicates the parameter reference for the secure channel protocol.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_COMMUNICATION} if communicate failed with the SE.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is invalid or the mode of SE is wrong.
+ * Returns {@code TEE_ERROR_NOT_SUPPORTED} if the parameter of the sc_params is not supported
+ * Returns {@code TEE_ERROR_MAC_INVALID} if the verification failed.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SESecureChannelOpen(TEE_SEChannelHandle se_channel_handle, TEE_SC_Params *sc_params);
+
+/**
+ * @brief Close the SE secure channel based on the input channel handle.
+ * The channel, which pointed to by the input channel handle, is not closed.
+ * It can be used for insecure communication, but the APDU that calls {@code TEE_SEChannelTransmit}
+ * transmission is not secure.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ *
+ * @since 20
+ */
+void TEE_SESecureChannelClose(TEE_SEChannelHandle se_channel_handle);
+
+/**
+ * @brief Get the channel Id which pointed to by the input channel handle.
+ *
+ * @param se_channel_handle Indicates the SE channel handle.
+ * @param channel_id Indicates the SE channel Id.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is invalid.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SEChannelGetID(TEE_SEChannelHandle se_channel_handle, uint8_t *channel_id);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_log.h b/TEEKit/include/tee/tee_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c463b3a8823a150df7484c975a08eada2076af0
--- /dev/null
+++ b/TEEKit/include/tee/tee_log.h
@@ -0,0 +1,386 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_log.h
+ *
+ * @brief Provides TEE log APIs.
+ *
+ * Reference of TEE log APIs and internal definitions.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_LOG_H
+#define __TEE_LOG_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the ERROR level of the TA log.
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL_ERROR 0
+
+/**
+ * @brief Defines the WARNING level of the TA log.
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL_WARNING 1
+
+/**
+ * @brief Defines the INFO level of the TA log.
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL_INFO 2
+
+/**
+ * @brief Defines the DEBUG level of the TA log.
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL_DEBUG 3
+
+/**
+ * @brief Defines the VERBO level of the TA log.
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL_VERBO 4
+
+/**
+ * @brief Defines the default level of the TA log.
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL_DEFAULT TA_LOG_LEVEL_INFO
+
+#ifndef TA_LOG_LEVEL
+/**
+ * @brief Defines the default level of the TA log.
+ * {@code TA_LOG_LEVEL} can be redefined by TA developers
+ *
+ * @since 20
+ */
+#define TA_LOG_LEVEL TA_LOG_LEVEL_DEFAULT
+#endif
+
+/**
+ * @brief Defines the tag of the VERBO level TA log.
+ *
+ * @since 20
+ */
+#define TAG_VERB "[verb]"
+
+/**
+ * @brief Defines the tag of the DEBUG level TA log.
+ *
+ * @since 20
+ */
+#define TAG_DEBUG "[debug]"
+
+/**
+ * @brief Defines the tag of the INFO level TA log.
+ *
+ * @since 20
+ */
+#define TAG_INFO "[info]"
+
+/**
+ * @brief Defines the tag of the WARNING level TA log.
+ *
+ * @since 20
+ */
+#define TAG_WARN "[warn]"
+
+/**
+ * @brief Defines the tag of the ERROR level TA log.
+ *
+ * @since 20
+ */
+#define TAG_ERROR "[error]"
+
+/**
+ * @brief Enumerates the levels of the log.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Error level log. */
+ LOG_LEVEL_ERROR = 0,
+ /** Warning level log. */
+ LOG_LEVEL_WARN = 1,
+ /** Information level log. */
+ LOG_LEVEL_INFO = 2,
+ /** Debug level log. */
+ LOG_LEVEL_DEBUG = 3,
+ /** Verbose level log. */
+ LOG_LEVEL_VERBO = 4,
+ /** On level log. */
+ LOG_LEVEL_ON = 5,
+} LOG_LEVEL;
+
+/**
+ * @brief Provides to print UART logs.
+ *
+ * @param fmt [IN] The log information.
+ *
+ * @since 20
+ */
+void uart_cprintf(const char *fmt, ...);
+
+/**
+ * @brief Provides to print UART logs.
+ *
+ * @param fmt [IN] The log information.
+ *
+ * @since 20
+ */
+void uart_printf_func(const char *fmt, ...);
+
+/**
+ * @brief Provides to print TEE logs.
+ *
+ * @param log_level [IN] The level of the log.
+ * @param fmt [IN] The log information.
+ *
+ * @since 20
+ */
+void tee_print(LOG_LEVEL log_level, const char *fmt, ...);
+
+/**
+ * @brief Provides to print TEE driver logs.
+ *
+ * @param log_level [IN] The level of the log.
+ * @param log_tag [IN] The tag of the log.
+ * @param fmt [IN] The log information.
+ *
+ * @since 20
+ */
+void tee_print_driver(LOG_LEVEL log_level, const char *log_tag, const char *fmt, ...);
+
+/**
+ * @brief Defines the debug prefix string.
+ *
+ * @since 20
+ */
+extern const char *g_debug_prefix;
+
+#if (TA_LOG_LEVEL >= TA_LOG_LEVEL_VERBO)
+#ifdef DRIVER_LOG_TAG
+/**
+ * @brief Defines the API to print TEE log at the VERBO level.
+ *
+ * @since 20
+ */
+#define tlogv(fmt, args...) \
+ tee_print_driver(LOG_LEVEL_VERBO, DRIVER_LOG_TAG, "%s %d:" fmt "", TAG_VERB, __LINE__, ##args)
+#else
+/**
+ * @brief Defines the API to print TEE log at the VERBO level.
+ *
+ * @since 20
+ */
+#define tlogv(fmt, args...) tee_print(LOG_LEVEL_VERBO, "%s %d:" fmt "", TAG_VERB, __LINE__, ##args)
+#endif /* DRIVER_LOG_TAG */
+#else
+/**
+ * @brief Defines the API to print TEE log at the VERBO level.
+ *
+ * @since 20
+ */
+#define tlogv(fmt, args...) \
+ do { \
+ } while (0)
+#endif /* TA_LOG_LEVEL >= TA_LOG_LEVEL_VERBO */
+
+#if (TA_LOG_LEVEL >= TA_LOG_LEVEL_DEBUG)
+#ifdef DRIVER_LOG_TAG
+/**
+ * @brief Defines the API to print TEE log at the DEBUG level.
+ *
+ * @since 20
+ */
+#define tlogd(fmt, args...) \
+ tee_print_driver(LOG_LEVEL_DEBUG, DRIVER_LOG_TAG, "%s %d:" fmt "", TAG_DEBUG, __LINE__, ##args)
+#else
+/**
+ * @brief Defines the API to print TEE log at the DEBUG level.
+ *
+ * @since 20
+ */
+#define tlogd(fmt, args...) tee_print(LOG_LEVEL_DEBUG, "%s %d:" fmt "", TAG_DEBUG, __LINE__, ##args)
+#endif /* DRIVER_LOG_TAG */
+#else
+/**
+ * @brief Defines the API to print TEE log at the DEBUG level.
+ *
+ * @since 20
+ */
+#define tlogd(fmt, args...) \
+ do { \
+ } while (0)
+#endif /* TA_LOG_LEVEL >= TA_LOG_LEVEL_DEBUG */
+
+#if (TA_LOG_LEVEL >= TA_LOG_LEVEL_INFO)
+#ifdef DRIVER_LOG_TAG
+/**
+ * @brief Defines the API to print TEE log at the INFO level.
+ *
+ * @since 20
+ */
+#define tlogi(fmt, args...) \
+ tee_print_driver(LOG_LEVEL_INFO, DRIVER_LOG_TAG, "%s %d:" fmt "", TAG_INFO, __LINE__, ##args)
+#else
+/**
+ * @brief Defines the API to print TEE log at the INFO level.
+ *
+ * @since 20
+ */
+#define tlogi(fmt, args...) tee_print(LOG_LEVEL_INFO, "%s %d:" fmt "", TAG_INFO, __LINE__, ##args)
+#endif /* DRIVER_LOG_TAG */
+#else
+/**
+ * @brief Defines the API to print TEE log at the INFO level.
+ *
+ * @since 20
+ */
+#define tlogi(fmt, args...) \
+ do { \
+ } while (0)
+#endif /* TA_LOG_LEVEL >= TA_LOG_LEVEL_INFO */
+
+#if (TA_LOG_LEVEL >= TA_LOG_LEVEL_WARNING)
+#ifdef DRIVER_LOG_TAG
+/**
+ * @brief Defines the API to print TEE log at the WARNING level.
+ *
+ * @since 20
+ */
+#define tlogw(fmt, args...) \
+ tee_print_driver(LOG_LEVEL_WARN, DRIVER_LOG_TAG, "%s %d:" fmt "", TAG_WARN, __LINE__, ##args)
+#else
+/**
+ * @brief Defines the API to print TEE log at the WARNING level.
+ *
+ * @since 20
+ */
+#define tlogw(fmt, args...) tee_print(LOG_LEVEL_WARN, "%s %d:" fmt "", TAG_WARN, __LINE__, ##args)
+#endif /* DRIVER_LOG_TAG */
+#else
+/**
+ * @brief Defines the API to print TEE log at the WARNING level.
+ *
+ * @since 20
+ */
+#define tlogw(fmt, args...) \
+ do { \
+ } while (0)
+#endif /* TA_LOG_LEVEL >= TA_LOG_LEVEL_WARNING */
+
+#if (TA_LOG_LEVEL >= TA_LOG_LEVEL_ERROR) /* Always meet this condition. */
+#ifndef TLOGE_NO_TIMESTAMP
+#ifdef DRIVER_LOG_TAG
+/**
+ * @brief Defines the API to print TEE log at the ERROR level.
+ *
+ * @since 20
+ */
+#define tloge(fmt, args...) \
+ tee_print_driver(LOG_LEVEL_ERROR, DRIVER_LOG_TAG, "%s %d:" fmt " ", TAG_ERROR, __LINE__, ##args)
+#else
+/**
+ * @brief Defines the API to print TEE log at the ERROR level.
+ *
+ * @since 20
+ */
+#define tloge(fmt, args...) tee_print(LOG_LEVEL_ERROR, "%s %d:" fmt " ", TAG_ERROR, __LINE__, ##args)
+#endif /* DRIVER_LOG_TAG */
+#else
+/**
+ * @brief Defines the API to print TEE log at the ERROR level.
+ *
+ * @since 20
+ */
+#define tloge(fmt, args...) printf("[%s] %s %d:" fmt " ", g_debug_prefix, TAG_ERROR, __LINE__, ##args)
+#endif /* TLOGE_NO_TIMESTAMP */
+#else
+/**
+ * @brief Defines the API to print TEE log at the ERROR level.
+ *
+ * @since 20
+ */
+#define tloge(fmt, args...) \
+ do { \
+ } while (0)
+#endif /* TA_LOG_LEVEL >= TA_LOG_LEVEL_ERROR */
+
+/**
+ * @brief Defines an enum for system events.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Fault event. */
+ FAULT = 1,
+ /** Statistics event. */
+ STATISTIC = 2,
+ /** Security event. */
+ SECURITY = 3,
+ /** Behavior event. */
+ BEHAVIOR = 4,
+} HISYSEVENT_TYPE;
+
+/**
+ * @brief Reports DFX messages to HiViewOcean.
+ *
+ * @param domain Domain name of a message.
+ * @param event Event name of a message.
+ * @param event_type Event type of a message.
+ * @param fmt Format of a logged message.
+ *
+ * @since 20
+ */
+
+void tee_report(const char *domain, const char *event, HISYSEVENT_TYPE event_type, const char *fmt, ...);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TEE_LOG_H */
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_mem_mgmt_api.h b/TEEKit/include/tee/tee_mem_mgmt_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..af710864c8583582e9b13ae37411663f9c5a99b2
--- /dev/null
+++ b/TEEKit/include/tee/tee_mem_mgmt_api.h
@@ -0,0 +1,274 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_mem_mgmt_api.h
+ *
+ * @brief Provides APIs for memory management.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_MEM_MGMT_API_H
+#define TEE_MEM_MGMT_API_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * The definitions below are defined by Global Platform or Platform SDK released previously
+ * for compatibility.
+ * Do not make any change to the content below.
+ */
+#ifndef ZERO_SIZE_PTR
+
+/**
+ * @brief Represents a zero-size pointer.
+ *
+ * @since 20
+ */
+#define ZERO_SIZE_PTR ((void *)16)
+
+/**
+ * @brief Checks if the pointer is either zero-size or NULL.
+ *
+ * @since 20
+ */
+#define zero_or_null_ptr(x) ((unsigned long)(x) <= (unsigned long)ZERO_SIZE_PTR)
+#endif
+
+/**
+ * @brief Defines the enumeration values for memory allocation hints.
+ *
+ * @since 20
+ */
+enum MALLOC_HINT {
+ /** Uninitialized buffer. */
+ ZERO = 0,
+ /** Non-zero initialized buffer. */
+ NOT_ZERO = 1,
+ /** 4-byte aligned buffer. */
+ ALIGN_004 = 0x80000002,
+ /** 8-byte aligned buffer. */
+ ALIGN_008 = 0x80000003,
+ /** 16-byte aligned buffer. */
+ ALIGN_016 = 0x80000004,
+ /** 32-byte aligned buffer. */
+ ALIGN_032 = 0x80000005,
+ /** 64-byte aligned buffer. */
+ ALIGN_064 = 0x80000006,
+ /** 128-byte aligned buffer. */
+ ALIGN_128 = 0x80000007,
+ /** 256-byte aligned buffer. */
+ ALIGN_256 = 0x80000008,
+ /** 4-byte aligned buffer initialized to zero. */
+ ALIGN_004_ZERO = 0x80000012,
+ /** 8-byte aligned buffer initialized to zero. */
+ ALIGN_008_ZERO = 0x80000013,
+ /** 16-byte aligned buffer initialized to zero. */
+ ALIGN_016_ZERO = 0x80000014,
+ /** 32-byte aligned buffer initialized to zero. */
+ ALIGN_032_ZERO = 0x80000015,
+ /** 64-byte aligned buffer initialized to zero. */
+ ALIGN_064_ZERO = 0x80000016,
+ /** 128-byte aligned buffer initialized to zero. */
+ ALIGN_128_ZERO = 0x80000017,
+ /** 256-byte aligned buffer initialized to zero. */
+ ALIGN_256_ZERO = 0x80000018,
+};
+
+/**
+ * @brief Allocated memory filled with zeros.
+ *
+ * @since 20
+ */
+#define TEE_MALLOC_FILL_ZERO 0x00000000
+
+/**
+ * @brief Allocated memory with no filling.
+ *
+ * @since 20
+ */
+#define TEE_MALLOC_NO_FILL 0x00000001
+
+/**
+ * @brief Allocated memory that is not shareable.
+ *
+ * @since 20
+ */
+#define TEE_MALLOC_NO_SHARE 0x00000002
+
+/**
+ * @brief Grants read access to memory.
+ *
+ * @since 20
+ */
+#define TEE_MEMORY_ACCESS_READ 0x00000001
+
+/**
+ * @brief Grants write access to memory.
+ *
+ * @since 20
+ */
+#define TEE_MEMORY_ACCESS_WRITE 0x00000002
+
+/**
+ * @brief Grants access to memory by any owner.
+ *
+ * @since 20
+ */
+#define TEE_MEMORY_ACCESS_ANY_OWNER 0x00000004
+
+/**
+ * @brief Fills x into the first size bytes of the buffer.
+ *
+ * @param buffer Indicates the pointer to the buffer.
+ * @param x Indicates the value to fill.
+ * @param size Indicates the number of bytes to fill.
+ *
+ * @since 20
+ */
+void TEE_MemFill(void *buffer, uint8_t x, size_t size);
+
+/**
+ * @brief Copies bytes.
+ *
+ * @param dest Indicates the pointer to the buffer that holds the bytes copied.
+ * @param src Indicates the pointer to the buffer that holds the bytes to copy.
+ * @param size Indicates the number of bytes to copy.
+ *
+ * @since 20
+ */
+void TEE_MemMove(void *dest, const void *src, size_t size);
+
+/**
+ * @brief Allocates space of the specified size for an object.
+ *
+ * @param size Indicates the size of the memory to be allocated.
+ * @param hint Indicates a hint to the allocator. The value 0 indicates that the memory block
+ * returned is filled with "\0".
+ *
+ * @return Returns a pointer to the newly allocated space if the operation is successful.
+ * @return Returns a NULL pointer if the allocation fails.
+ *
+ * @since 20
+ */
+void *TEE_Malloc(size_t size, uint32_t hint);
+
+/**
+ * @brief Releases the memory allocated by TEE_Malloc.
+ *
+ * If the buffer is a NULL pointer, TEE_Free does nothing.
+ * The buffer to be released must have been allocated by TEE_Malloc or TEE_Realloc and cannot be
+ * released repeatedly. Otherwise, unexpected result may be caused.
+ *
+ * @param buffer Indicates the pointer to the memory to release.
+ *
+ * @since 20
+ */
+void TEE_Free(void *buffer);
+
+/**
+ * @brief Reallocates memory.
+ *
+ * If new_size is greater than the old size, the content of the original memory does not change
+ * and the space in excess of the old size contains unspecified content.
+ * If the new size of the memory object requires movement of the object, the space for the previous
+ * instantiation of the object is deallocated.
+ * If the space cannot be allocated, the original object remains allocated and this function
+ * returns a NULL pointer.
+ * If the buffer is NULL, this function is equivalent to TEE_Malloc.
+ *
+ * @param buffer Indicates the pointer to the memory to reallocate.
+ * @param new_size Indicates the new size required.
+ *
+ * @return Returns a pointer to the allocated memory if the operation is successful.
+ * @return Returns a NULL pointer if the operation fails.
+ *
+ * @since 20
+ */
+void *TEE_Realloc(void *buffer, size_t new_size);
+
+/**
+ * @brief Compares memory content from the beginning.
+ *
+ * @param buffer1 Indicates the pointer to the first buffer.
+ * @param buffer2 Indicates the pointer to the second buffer.
+ * @param size Indicates the number of the bytes to compare.
+ *
+ * @return Returns –1 if buffer1 < buffer2.
+ * @return Returns 0 if buffer1 == buffer2.
+ * @return Returns 1 if buffer1 > buffer2.
+ *
+ * @since 20
+ */
+int32_t TEE_MemCompare(const void *buffer1, const void *buffer2, size_t size);
+
+/**
+ * @brief Checks whether this TA has the requested permissions to access a buffer.
+ *
+ * @param accessFlags Indicates the access permissions to check.
+ * @param buffer Indicates the pointer to the target buffer.
+ * @param size Indicates the size of the buffer to check.
+ *
+ * @return Returns TEE_SUCCESS if the TA has the requested permissions.
+ * @return Returns TEE_ERROR_ACCESS_DENIED otherwise.
+ *
+ * @since 20
+ */
+TEE_Result TEE_CheckMemoryAccessRights(uint32_t accessFlags, const void *buffer, size_t size);
+
+/**
+ * @brief Sets the TA instance data pointer.
+ *
+ * @param instanceData Indicates the pointer to the global TA instance data.
+ *
+ * @since 20
+ */
+void TEE_SetInstanceData(void *instanceData);
+
+/**
+ * @brief Obtains the instance data pointer set by the TA using TEE_SetInstanceData.
+ *
+ * @return Returns the pointer to the instance data set by TEE_SetInstanceData
+ * @return or NULL if no instance data pointer has been set.
+ *
+ * @since 20
+ */
+void *TEE_GetInstanceData(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_notify_set_priority.h b/TEEKit/include/tee/tee_notify_set_priority.h
new file mode 100644
index 0000000000000000000000000000000000000000..dee1145f468f079d0ae21c42a3c0f129f74e111d
--- /dev/null
+++ b/TEEKit/include/tee/tee_notify_set_priority.h
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_notify_set_priority.h
+ *
+ * @brief Provides API for setting shadow threads' priority.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_NOTIFY_SET_PRIORITY_H
+#define TEE_NOTIFY_SET_PRIORITY_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Support setting the priority of the shadow thread
+ *
+ * @param priority_ree [IN] priority of the shadow thread
+ *
+ * @return 0 success
+ * @return TEE_ERROR_ACCESS_DENIED do NOT have access right (thread without shadow-thread flag)
+ * @return TEE_ERROR_BAD_PARAMETERS invalid value of priority_ree
+ * @return -1 set priority fail
+ *
+ * @since 20
+ */
+int spi_notify_set_shadow_priority(uint32_t priority_ree);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_object_api.h b/TEEKit/include/tee/tee_object_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f167b75a34c84ca41344dec1155e99d77b0bab2
--- /dev/null
+++ b/TEEKit/include/tee/tee_object_api.h
@@ -0,0 +1,370 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_object_api.h
+ *
+ * @brief Provides trusted storage APIs.
+ *
+ * You can use these APIs to implement trusted storage features.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_OBJECT_API_H
+#define __TEE_OBJECT_API_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines HANDLE_NULL, which is used to denote the absence of a handle.
+ *
+ * @since 20
+ */
+#define TEE_HANDLE_NULL 0x00000000
+
+/**
+ * @brief Enumerates the usages of the key of the TEE_ObjectHandle.
+ *
+ * @since 20
+ */
+enum Usage_Constants {
+ /** The object's key is extractable. */
+ TEE_USAGE_EXTRACTABLE = 0x00000001,
+ /** Used for encryption. */
+ TEE_USAGE_ENCRYPT = 0x00000002,
+ /** Used for decryption. */
+ TEE_USAGE_DECRYPT = 0x00000004,
+ /** Used for hash calculation. */
+ TEE_USAGE_MAC = 0x00000008,
+ /** Used for creating a signature. */
+ TEE_USAGE_SIGN = 0x00000010,
+ /** Used for signature verification. */
+ TEE_USAGE_VERIFY = 0x00000020,
+ /** Used for key derivation. */
+ TEE_USAGE_DERIVE = 0x00000040,
+ /** Used for object initialization, with all permissions assigned by default. */
+ TEE_USAGE_DEFAULT = 0xFFFFFFFF,
+};
+
+/**
+ * @brief Defines information about the object pointed to by the flag of the TEE_ObjectHandle,
+ * for example, whether the object is a persistent object or is initialized.
+ *
+ * @since 20
+ */
+enum Handle_Flag_Constants {
+ /** The object is a persistent object. */
+ TEE_HANDLE_FLAG_PERSISTENT = 0x00010000,
+ /** The object is initialized. */
+ TEE_HANDLE_FLAG_INITIALIZED = 0x00020000,
+ /** The object is a key set. */
+ TEE_HANDLE_FLAG_KEY_SET = 0x00040000,
+ /** The object is expected to have two keys. */
+ TEE_HANDLE_FLAG_EXPECT_TWO_KEYS = 0x00080000,
+};
+
+/**
+ * @brief Defines a value attribute identifier flag.
+ *
+ * @since 20
+ */
+#define TEE_ATTR_FLAG_VALUE 0x20000000
+
+/**
+ * @brief Defines a public attribute identifier flag.
+ *
+ * @since 20
+ */
+#define TEE_ATTR_FLAG_PUBLIC 0x10000000
+
+/**
+ * @brief Check whether the attribute is a buffer.
+ *
+ * @since 20
+ */
+#define TEE_ATTR_IS_BUFFER(attribute_id) ((((attribute_id) << 2) >> 31) == 0)
+
+/**
+ * @brief Check whether the attribute is a value.
+ *
+ * @since 20
+ */
+#define TEE_ATTR_IS_VALUE(attribute_id) ((((attribute_id) << 2) >> 31) == 1)
+
+/**
+ * @brief Check whether the attribute is protected.
+ *
+ * @since 20
+ */
+#define TEE_ATTR_IS_PROTECTED(attribute_id) ((((attribute_id) << 3) >> 31) == 0)
+
+/**
+ * @brief Check whether the attribute is public.
+ *
+ * @since 20
+ */
+#define TEE_ATTR_IS_PUBLIC(attribute_id) ((((attribute_id) << 3) >> 31) == 1)
+
+/**
+ * @brief Obtains a buffer attribute from the TEE_Attribute struct of the object pointed
+ * to by TEE_ObjectHandle.
+ *
+ * The members in the TEE_Attribute struct must be ref. If the TEE_Attribute is private,
+ * the Usage_Constants of the object must include TEE_USAGE_EXTRACTABLE.
+ *
+ * @param object Indicates the handle of the object.
+ * @param attributeID Indicates the ID of the attribute to obtain, for example, TEE_ObjectAttribute.
+ * The attribute ID can also be customized.
+ * @param buffer Indicates the pointer to the buffer that stores the attribute obtained.
+ * @param size Indicates the pointer to the length of the content stored.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the TEE_Attribute cannot be found in the object
+ * or the object is not initialized.
+ * @return Returns TEE_ERROR_SHORT_BUFFER if the buffer is too small to store the content obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetObjectBufferAttribute(TEE_ObjectHandle object, uint32_t attributeID, void *buffer, size_t *size);
+
+/**
+ * @brief Obtains a value attribute from the TEE_Attribute of an object.
+ *
+ * The members of the TEE_Attribute struct must be values. If the TEE_Attribute is private,
+ * the Usage_Constants of the object must include TEE_USAGE_EXTRACTABLE.
+ *
+ * @param object Indicates the handle of the object.
+ * @param attributeID Indicates the ID of the attribute to obtain, for example, TEE_ObjectAttribute.
+ * The attribute ID can also be customized.
+ * @param a Indicates the pointer to the placeholder filled with the attribute field a.
+ * @param b Indicates the pointer to the placeholder filled with the attribute field b.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the TEE_Attribute cannot be found in the object
+ * or the object is not initialized.
+ * @return Returns TEE_ERROR_ACCESS_DENIED if TEE_Attribute is private
+ * but the object Usage_Constants does not contain the TEE_USAGE_EXTRACTABLE flag.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetObjectValueAttribute(TEE_ObjectHandle object, uint32_t attributeID, uint32_t *a, uint32_t *b);
+
+/**
+ * @brief Closes a TEE_ObjectHandle object.
+ *
+ * The object can be persistent or transient.
+ *
+ * @param object Indicates the TEE_ObjectHandle object to close.
+ *
+ * @since 20
+ */
+void TEE_CloseObject(TEE_ObjectHandle object);
+
+/**
+ * @brief Allocates an uninitialized object to store keys.
+ *
+ * objectType and maxObjectSize must be specified.
+ *
+ * @param objectType Indicates the type of the object to create. The value is TEE_ObjectType.
+ * @param maxObjectSize Indicates the maximum number of bytes of the object.
+ * @param object Indicates the pointer to the handle of the newly created object.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_OUT_OF_MEMORY if the memory is insufficient.
+ * @return Returns TEE_ERROR_NOT_SUPPORTED if the object type is not supported.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AllocateTransientObject(uint32_t objectType, uint32_t maxObjectSize, TEE_ObjectHandle *object);
+
+/**
+ * @brief Releases a transient object that is previously allocated with TEE_AllocateTransientObject.
+ *
+ * After the function is called, the handle becomes invalid and all allocated resources are released.
+ * TEE_FreeTransientObject and TEE_AllocateTransientObject are used in pairs.
+ *
+ * @param object Indicates the TEE_ObjectHandle to release.
+ *
+ * @since 20
+ */
+void TEE_FreeTransientObject(TEE_ObjectHandle object);
+
+/**
+ * @brief Resets a transient object to its initial state after allocation.
+ *
+ * You can use an allocated object, which has not been initialized or used to store a key, to store a key.
+ *
+ * @param object Indicates the TEE_ObjectHandle to reset.
+ *
+ * @since 20
+ */
+void TEE_ResetTransientObject(TEE_ObjectHandle object);
+
+/**
+ * @brief Populates an uninitialized object with object attributes passed by the TA in the attrs parameter.
+ *
+ * The object must be uninitialized. \n
+ * The attrs parameter is passed by a TA.
+ *
+ * @param object Indicates the handle on a created but uninitialized object.
+ * @param attrs Indicates the pointer to an array of object attributes, which can be one or more TEE_Attributes.
+ * @param attrCount Indicates the number of members in the attribute array.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_BAD_PARAMETERS if an incorrect or inconsistent attribute value is detected.
+ *
+ * @since 20
+ */
+TEE_Result TEE_PopulateTransientObject(TEE_ObjectHandle object, TEE_Attribute *attrs, uint32_t attrCount);
+
+/**
+ * @brief Initializes the TEE_Attribute of the buffer type.
+ *
+ * The members in the TEE_Attribute struct must be ref.
+ *
+ * @param attr Indicates the pointer to the TEE_Attribute initialized.
+ * @param attributeID Indicates the ID assigned to the TEE_Attribute.
+ * @param buffer Indicates the pointer to the buffer that stores the content to be allocated.
+ * @param length Indicates the length of the assigned value, in bytes.
+ *
+ * @since 20
+ */
+void TEE_InitRefAttribute(TEE_Attribute *attr, uint32_t attributeID, void *buffer, size_t length);
+
+/**
+ * @brief Initializes a TEE_Attribute.
+ *
+ * @param attr Indicates the pointer to the TEE_Attribute initialized.
+ * @param attributeID Indicates the ID assigned to the TEE_Attribute.
+ * @param a Indicates the value to be assigned to the member a in the TEE_Attribute.
+ * @param b Indicates the value to be assigned to the member b in the TEE_Attribute.
+ *
+ * @since 20
+ */
+void TEE_InitValueAttribute(TEE_Attribute *attr, uint32_t attributeID, uint32_t a, uint32_t b);
+
+/**
+ * @brief Generates a random key or a key pair and populates a transient key object with the generated key.
+ *
+ * @param object Indicates a transient object used to hold the generated key.
+ * @param keySize Indicates the number of bytes of the key.
+ * @param params Indicates the pointer to the parameters for key generation.
+ * @param paramCount Indicates the number of parameters required for key generation.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_BAD_PARAMETERS if the type of the key generated does not match
+ * the key that can be held in the transient object.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GenerateKey(TEE_ObjectHandle object, uint32_t keySize, TEE_Attribute *params, uint32_t paramCount);
+
+/**
+ * @brief Get the information of the object data part, the total length of the data part and the current
+ * position of the data stream.
+ *
+ * @param object Indicates the handle of the object.
+ * @param pos Indicates the data stream position.
+ * @param len Indicates the data stream length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns others if the operation is failed.
+ *
+ * @since 20
+ */
+TEE_Result TEE_InfoObjectData(TEE_ObjectHandle object, uint32_t *pos, uint32_t *len);
+
+/**
+ * @brief Obtains TEE_ObjectInfo.
+ *
+ * This function obtains TEE_ObjectInfo and copies the obtained information to the pre-allocated space
+ * pointed to by objectInfo.
+ *
+ * @param object Indicates the handle of the object.
+ * @param objectInfo Indicates the pointer to the TEE_ObjectInfo obtained.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_CORRUPT_OBJECT if the object is corrupted and the object handle will be closed.
+ * @return Returns TEE_ERROR_STORAGE_NOT_AVAILABLE if the object is stored
+ * in a storage area that is inaccessible currently.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetObjectInfo1(TEE_ObjectHandle object, TEE_ObjectInfo *objectInfo);
+
+/**
+ * @brief Assigns the TEE_Attribute of an initialized object to an uninitialized object.
+ *
+ * This function populates an uninitialized object with TEE_Attribute.
+ * That is, it copies TEE_Attribute of srcobject to destobject.
+ * The TEE_Attribute types and IDs of the two objects must match.
+ *
+ * @param destObject Indicates the uninitialized object.
+ * @param srcObject Indicates the initialized object.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_CORRUPT_OBJECT if the object is corrupted and the object handle will be closed.
+ * @return Returns TEE_ERROR_STORAGE_NOT_AVAILABLE if the object is stored
+ * in a storage area that is inaccessible currently.
+ *
+ * @since 20
+ */
+TEE_Result TEE_CopyObjectAttributes1(TEE_ObjectHandle destObject, TEE_ObjectHandle srcObject);
+
+/**
+ * @brief Restricts the objectUse bit of an object.
+ *
+ * This bit determines the usage of the key in the object. The value range is Usage_Constant.
+ * The bit in the objectUse parameter can be set as follows: \n
+ * If it is set to 1, the corresponding usage flag in the object is left unchanged. \n
+ * If it is set to 0, the corresponding usage flag in the object is cleared. \n
+ * The newly created object contains all Usage_Constant, and the usage flag can be cleared only.
+ *
+ * @param object Indicates the TEE_ObjectHandle of the target object.
+ * @param objectUsage Indicates the new object usage.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_CORRUPT_OBJECT if the object is corrupted and the object handle will be closed.
+ * @return Returns TEE_ERROR_STORAGE_NOT_AVAILABLE if the object is stored
+ * in a storage area that is inaccessible currently.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RestrictObjectUsage1(TEE_ObjectHandle object, uint32_t objectUsage);
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_property_api.h b/TEEKit/include/tee/tee_property_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..8770447dec340425d34634119f233e1c88388485
--- /dev/null
+++ b/TEEKit/include/tee/tee_property_api.h
@@ -0,0 +1,255 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_property_api.h
+ *
+ * @brief Reference of TEE object api definitions.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_PROPERTY_API_H
+#define TEE_PROPERTY_API_H
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Enumerates the types of the property set.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Unknown property set type. */
+ TEE_PROPSET_UNKNOW = 0,
+ /** Property set type for TEE implementation. */
+ TEE_PROPSET_TEE_IMPLEMENTATION = 0xFFFFFFFD,
+ /** Property set type for the current client. */
+ TEE_PROPSET_CURRENT_CLIENT = 0xFFFFFFFE,
+ /** Property set type for the current Trusted Application (TA). */
+ TEE_PROPSET_CURRENT_TA = 0xFFFFFFFF,
+} Pseudo_PropSetHandle;
+
+/**
+ * @brief Defines the property set handle type.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_PropSetHandle;
+
+/**
+ * @brief Obtains a property from a property set and converts its value into a printable string.
+ *
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param valueBuffer Indicates the pointer to the buffer for holding the property value obtained.
+ * @param valueBufferLen Indicates the pointer to the buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ * @return Returns TEE_ERROR_SHORT_BUFFER if the value buffer is too small to hold the property value obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsString(TEE_PropSetHandle propsetOrEnumerator, const char *name, char *valueBuffer,
+ size_t *valueBufferLen);
+
+/**
+ * @brief Obtains a property from a property set and converts its value into a Boolean value.
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param value Indicates the pointer to the variable that holds the property value obtained.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsBool(TEE_PropSetHandle propsetOrEnumerator, const char *name, bool *value);
+
+/**
+ * @brief Obtains a property from a property set and converts its value into a 32-bit unsigned integer.
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param value Indicates the pointer to the variable that holds the property value obtained.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsU32(TEE_PropSetHandle propsetOrEnumerator, const char *name, uint32_t *value);
+
+/**
+ * @brief Obtains a property from a property set and converts its value into a 64-bit unsigned integer.
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param value Indicates the pointer to the variable that holds the property value obtained.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsU64(TEE_PropSetHandle propsetOrEnumerator, const char *name, uint64_t *value);
+
+/**
+ * @brief Obtains a property from a property set and converts its value into a binary block.
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param valueBuffer Indicates the pointer to the buffer for holding the property value obtained.
+ * @param valueBufferLen Indicates the pointer to the buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ * @return TEE_ERROR_SHORT_BUFFER the value buffer is not large enough to hold the whole property value
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsBinaryBlock(TEE_PropSetHandle propsetOrEnumerator, const char *name, void *valueBuffer,
+ size_t *valueBufferLen);
+
+/**
+ * @brief Obtains a property from a property set and converts its value to the TEE_UUID struct.
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param value Indicates the pointer to the variable that holds the property value obtained.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsUUID(TEE_PropSetHandle propsetOrEnumerator, const char *name, TEE_UUID *value);
+
+/**
+ * @brief Obtains a property from a property set and converts its value to the TEE_Identity struct.
+ *
+ * @param propsetOrEnumerator Indicates one of the TEE_PROPSET_XXX pseudo-handles or a handle on a property enumerator.
+ * @param name Indicates the pointer to the zero-terminated string containing the name of the property to obtain.
+ * @param value Indicates the pointer to the variable that holds the property value obtained.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the target property cannot be obtained.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyAsIdentity(TEE_PropSetHandle propsetOrEnumerator, const char *name, TEE_Identity *value);
+
+/**
+ * @brief Allocates a property enumerator object.
+ *
+ * @param enumerator Indicates the pointer to the property enumerator filled with an opaque handle.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_OUT_OF_MEMORY if there is no enough resources to allocate the property enumerator.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AllocatePropertyEnumerator(TEE_PropSetHandle *enumerator);
+
+/**
+ * @brief Releases a property enumerator object.
+ *
+ * @param enumerator Indicates the handle on the property enumerator to release.
+ *
+ * @return void
+ *
+ * @since 20
+ */
+void TEE_FreePropertyEnumerator(TEE_PropSetHandle enumerator);
+
+/**
+ * @brief Starts to enumerate the properties in an enumerator.
+ *
+ * @param enumerator Indicates the handle on the enumerator.
+ * @param propSet Indicates the pseudo-handle on the property set to enumerate.
+ *
+ * @return void
+ *
+ * @since 20
+ */
+void TEE_StartPropertyEnumerator(TEE_PropSetHandle enumerator, TEE_PropSetHandle propSet);
+
+/**
+ * @brief Resets a property enumerator immediately after allocation.
+ *
+ * @param enumerator Indicates the handle on the enumerator to reset.
+ *
+ * @return void
+ *
+ * @since 20
+ */
+void TEE_ResetPropertyEnumerator(TEE_PropSetHandle enumerator);
+
+/**
+ * @brief Obtains the name of this property in an enumerator.
+ *
+ * @param enumerator Indicates the handle on the enumerator.
+ * @param nameBuffer Indicates the pointer to the buffer that stores the property name obtained.
+ * @param nameBufferLen Indicates the pointer to the buffer length.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the property is not found because the enumerator has not started
+ * or has reached the end of the property set.
+ * @return Returns TEE_ERROR_SHORT_BUFFER if the buffer is too small to hold the property name.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetPropertyName(TEE_PropSetHandle enumerator, void *nameBuffer, size_t *nameBufferLen);
+
+/**
+ * @brief Obtains the next property in an enumerator.
+ *
+ * @param enumerator Indicates the handle on the enumerator.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_ITEM_NOT_FOUND if the property is not found because the enumerator
+ * has not started or has reached the end of the property set.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetNextProperty(TEE_PropSetHandle enumerator);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_rtc_time_api.h b/TEEKit/include/tee/tee_rtc_time_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..52157b02b00cb3bc3d915acda8eb393e4705829f
--- /dev/null
+++ b/TEEKit/include/tee/tee_rtc_time_api.h
@@ -0,0 +1,113 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_rtc_time_api.h
+ *
+ * @brief Provides APIs about rtc timer.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_RTC_TIME_API_H
+#define __TEE_RTC_TIME_API_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Create a secure timer.
+ *
+ * @param time_seconds Indicates the security duration.
+ * @param timer_property Indicates the property of the timer, where only need to specify the timer type.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other values if the operation fails.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_create_timer(uint32_t time_seconds, TEE_timer_property *timer_property);
+
+/**
+ * @brief Destory a secure timer.
+ *
+ * @param timer_property Indicates the property of the timer, where only need to specify the timer type.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other values if the operation fails.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_destory_timer(TEE_timer_property *timer_property);
+
+/**
+ * @brief Obtain the set timing duration.
+ *
+ * @param timer_property Indicates the property of the timer, where only need to specify the timer type.
+ * @param time_seconds Indicates the timing duration.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other values if the operation fails.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_get_timer_expire(TEE_timer_property *timer_property, uint32_t *time_seconds);
+
+/**
+ * @brief Obtain the remain timing duration.
+ *
+ * @param timer_property Indicates the property of the timer, where only need to specify the timer type.
+ * @param time_seconds Indicates the remain timing duration.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns other values if the operation fails.
+ *
+ * @since 20
+ */
+TEE_Result tee_ext_get_timer_remain(TEE_timer_property *timer_property, uint32_t *time_seconds);
+
+/**
+ * @brief Obtain the current timing of the RTC clock.
+ * @attention The obtained time is in seconds and cannot be converted to universal time.
+ *
+ * @return The RTC clock count(in seconds).
+ *
+ * @since 20
+ */
+unsigned int tee_get_secure_rtc_time(void);
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_service_public.h b/TEEKit/include/tee/tee_service_public.h
new file mode 100644
index 0000000000000000000000000000000000000000..67fa1d2a29de048ecbee7459456627ec5131daec
--- /dev/null
+++ b/TEEKit/include/tee/tee_service_public.h
@@ -0,0 +1,193 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_service_public.h
+ *
+ * @brief Provides the TEE service public function for developers.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef _TEE_SERVICE_PUBLIC_H_
+#define _TEE_SERVICE_PUBLIC_H_
+
+#include "tee_defines.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines a function pointer type.
+ *
+ * @since 20
+ */
+typedef void (*func_ptr)(void);
+
+/**
+ * @brief Defines the size of the message queue for the TEE service
+ *
+ * @since 20
+ */
+#define TEE_SERVICE_MSG_QUEUE_SIZE 100
+
+/**
+ * @brief Defines the maximum size of the image hash.
+ *
+ * @since 20
+ */
+#define MAX_IMAGE_HASH_SIZE 64
+
+/**
+ * @brief Defines the arguments of a message.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Argument 0. */
+ uint64_t arg0;
+ /** Argument 1. */
+ uint64_t arg1;
+ /** Argument 2. */
+ uint64_t arg2;
+ /** Argument 3. */
+ uint64_t arg3;
+ /** Argument 4. */
+ uint64_t arg4;
+ /** Argument 5. */
+ uint64_t arg5;
+ /** Argument 6. */
+ uint64_t arg6;
+ /** Argument 7. */
+ uint64_t arg7;
+} args_t;
+
+/**
+ * @brief Defines the register information of TA.
+ *
+ * @since 20
+ */
+struct reg_ta_info {
+ /** TA's task ID. */
+ uint32_t taskid;
+ /** TA's UUID (Universally Unique Identifier). */
+ TEE_UUID uuid;
+ /** User ID. */
+ uint32_t userid;
+ /** Used only for SSA; other tasks should ignore this field. */
+ bool ssa_enum_enable;
+};
+
+/**
+ * @brief Defines the IPC message of TEE service.
+ *
+ * @since 20
+ */
+typedef union {
+ /** Parameter data. */
+ args_t args_data;
+ /** TA's registration information. */
+ struct reg_ta_info reg_ta;
+} tee_service_ipc_msg;
+
+/**
+ * @brief Defines the IPC request message of TEE service.
+ *
+ * @since 20
+ */
+struct tee_service_ipc_msg_req {
+ /** Command identifier for the request. */
+ uint32_t cmd;
+ /** IPC message carried by the request. */
+ tee_service_ipc_msg msg;
+};
+
+/**
+ * @brief Defines the IPC response message of TEE service.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Return result of the request. */
+ TEE_Result ret;
+ /** IPC message carried by the response. */
+ tee_service_ipc_msg msg;
+} tee_service_ipc_msg_rsp;
+
+/**
+ * @brief Defines the message of the TEE service.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Message ID, a unique identifier for the message. */
+ uint32_t msg_id;
+ /** Sender ID of the message. */
+ uint32_t sender;
+ /** Message data. */
+ tee_service_ipc_msg msg;
+} tee_service_msg_t;
+
+/**
+ * @brief Defines the message queue for the TEE service.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Pointer to the input position of the queue. */
+ uint32_t in;
+ /** Pointer to the output position of the queue. */
+ uint32_t out;
+ /** Array of messages, storing the messages in the queue. */
+ tee_service_msg_t msg[TEE_SERVICE_MSG_QUEUE_SIZE];
+} tee_service_msg_queue_t;
+
+/**
+ * @brief Provides to send IPC synchronization messages to a specified service
+ * and receive responses from the service.
+ *
+ * @param task_name Indicates the task name of recipient.
+ * @param snd_cmd Indicates the command ID of the send message.
+ * @param snd_msg Indicates the send message.
+ * @param ack_cmd Indicates the ID of the ack cmd to be received.
+ * @param rsp_msg Indicates the service response message.
+ *
+ * @since 20
+ */
+void tee_common_ipc_proc_cmd(const char *task_name,
+ uint32_t snd_cmd, const tee_service_ipc_msg *snd_msg,
+ uint32_t ack_cmd, tee_service_ipc_msg_rsp *rsp_msg);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_sharemem.h b/TEEKit/include/tee/tee_sharemem.h
new file mode 100644
index 0000000000000000000000000000000000000000..c6651690979c8a8ab0eb2eb727dbcb9eaec32426
--- /dev/null
+++ b/TEEKit/include/tee/tee_sharemem.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_sharemem.h
+ *
+ * @brief Provides APIs for shared memory.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_SHAREMEM_H
+#define TEE_SHAREMEM_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief get advanced security mode
+ *
+ * @param advsecmode [OUT] 0:no advanced security mode; none-zero:level of security mode.
+ *
+ * @return TEE_SUCCESS means success, others means failed.
+ * @since 20
+ */
+int32_t tee_ext_get_advsecmode(uint32_t *advsecmode);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_sharemem_ops.h b/TEEKit/include/tee/tee_sharemem_ops.h
new file mode 100644
index 0000000000000000000000000000000000000000..827396691d5bee6870e490190e8fd22bf57a9501
--- /dev/null
+++ b/TEEKit/include/tee/tee_sharemem_ops.h
@@ -0,0 +1,123 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_sharemem_ops.h
+ *
+ * @brief Provides APIs for developers to apply for shared memory.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_SHAREMEM_OPS_H
+#define TEE_SHAREMEM_OPS_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Alloc shared memory in TEE.
+ *
+ * @param uuid Indicates the UUID of TA.
+ * @param size Indicates the size of the requested shared memory.
+ *
+ * @return Returns a pointer to the newly allocated space if the operation is successful.
+ * Returns a NULL pointer if the allocation fails.
+ *
+ * @since 20
+ */
+void *tee_alloc_sharemem_aux(const struct tee_uuid *uuid, uint32_t size);
+
+/**
+ * @brief Alloc continuous shared memory in TEE.
+ *
+ * @param uuid Indicates the UUID of TA.
+ * @param size Indicates the size of the requested shared memory.
+ *
+ * @return Returns a pointer to the newly allocated space if the operation is successful.
+ * Returns a NULL pointer if the allocation fails.
+ *
+ * @since 20
+ */
+void *tee_alloc_coherent_sharemem_aux(const struct tee_uuid *uuid, uint32_t size);
+
+/**
+ * @brief Free the shared memory in TEE.
+ *
+ * @param addr Indicates the shared memory address that will be freed.
+ * @param size Indicates the size of the shared memory.
+ *
+ * @return Returns 0 if the operation is successful.
+ * Returns others if the operation is failed.
+ *
+ * @since 20
+ */
+uint32_t tee_free_sharemem(void *addr, uint32_t size);
+
+/**
+ * @brief Copy shared memory from source task.
+ *
+ * @param src_task Indicates the pid of the source task.
+ * @param src Indicates the address of the source buffer.
+ * @param src_size Indicates the size of the source buffer.
+ * @param dst Indicates the address of the destination buffer.
+ * @param dst_size Indicates the size of the destination buffer.
+ *
+ * @return Returns 0 if the operation is successful.
+ * Returns -1 if the operation is failed.
+ *
+ * @since 20
+ */
+int32_t copy_from_sharemem(uint32_t src_task, uint64_t src, uint32_t src_size, uintptr_t dst, uint32_t dst_size);
+
+/**
+ * @brief Copy shared memory to destination task.
+ *
+ * @param src Indicates the address of the source buffer.
+ * @param src_size Indicates the size of the source buffer.
+ * @param dst_task Indicates the pid of the destination task.
+ * @param dst Indicates the address of the destination buffer.
+ * @param dst_size Indicates the size of the destination buffer.
+ *
+ * @return Returns 0 if the operation is successful.
+ * Returns -1 if the operation is failed.
+ *
+ * @since 20
+ */
+int32_t copy_to_sharemem(uintptr_t src, uint32_t src_size, uint32_t dst_task, uint64_t dst, uint32_t dst_size);
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_time_api.h b/TEEKit/include/tee/tee_time_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..db97d6acf021e3c07119e6db19731244d6a7f529
--- /dev/null
+++ b/TEEKit/include/tee/tee_time_api.h
@@ -0,0 +1,125 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_time_api.h
+ *
+ * @brief Provides APIs for managing the Trusted Execution Environment (TEE) time.
+ *
+ * You can use these APIs to implement time-related features in a TEE.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_TIME_API_H
+#define __TEE_TIME_API_H
+
+#include "tee_defines.h"
+#include "tee_rtc_time_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Get current TEE system rtc time.
+ *
+ * @param time [OUT] current TEE system rtc time.
+ *
+ * @since 20
+ */
+void get_sys_rtc_time(TEE_Time *time);
+
+/**
+ * @brief Obtains the current TEE system time.
+ *
+ * @param time Indicates the pointer to the current system time obtained.
+ *
+ * @since 20
+ */
+void TEE_GetSystemTime(TEE_Time *time);
+
+/**
+ * @brief Waits for the specified period of time, in milliseconds.
+ *
+ * @param timeout Indicates the period of time to wait, in milliseconds.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_CANCEL if the wait is canceled.
+ * @return Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_Wait(uint32_t timeout);
+
+/**
+ * @brief Obtains the persistent time of this trusted application (TA).
+ *
+ * @param time Indicates the pointer to the persistent time of the TA.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_TIME_NOT_SET if the persistent time has not been set.
+ * @return Returns TEE_ERROR_TIME_NEEDS_RESET if the persistent time is corrupted and
+ * the application is not longer trusted.
+ * @return Returns TEE_ERROR_OVERFLOW if the number of seconds in the TA persistent time
+ * exceeds the range of uint32_t.
+ * @return Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetTAPersistentTime(TEE_Time *time);
+
+/**
+ * @brief Sets the persistent time for this TA.
+ *
+ * @param time Indicates the pointer to the persistent time of the TA.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * @return Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ * @return Returns TEE_ERROR_STORAGE_NO_SPACE if the storage space is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SetTAPersistentTime(TEE_Time *time);
+
+/**
+ * @brief Obtains the current Rich Execution Environment (REE) system time.
+ *
+ * @param time Indicates the pointer to the REE system time obtained.
+ *
+ * @since 20
+ */
+void TEE_GetREETime(TEE_Time *time);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_trusted_storage_api.h b/TEEKit/include/tee/tee_trusted_storage_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..6643a26d6486acb7013d1b8debcb72e7decae169
--- /dev/null
+++ b/TEEKit/include/tee/tee_trusted_storage_api.h
@@ -0,0 +1,412 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_trusted_storage_api.h
+ *
+ * @brief Provides trusted storage APIs.
+ *
+ * You can use these APIs to implement trusted storage features.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef __TEE_TRUSTED_STORAGE_API_H
+#define __TEE_TRUSTED_STORAGE_API_H
+
+#include "tee_defines.h"
+#include "tee_object_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the start position in the data stream associated with an object.
+ * It is used in the TEE_SeekObjectData function.
+ *
+ * @since 20
+ */
+enum __TEE_Whence {
+ /** Set the start position to the beginning of the data stream. */
+ TEE_DATA_SEEK_SET = 0,
+ /** Set the start position to the current data stream position. */
+ TEE_DATA_SEEK_CUR,
+ /** Set the start position to the end of the data stream. */
+ TEE_DATA_SEEK_END
+};
+
+/**
+ * @brief Defines the handle for enumerating objects.
+ *
+ * @since 20
+ */
+struct __TEE_ObjectEnumHandle;
+
+/**
+ * @brief Defines the type for the data stream position.
+ *
+ * @since 20
+ */
+typedef uint32_t TEE_Whence;
+
+/**
+ * @brief Defines the storage ID, which identifies the storage space of the application.
+ *
+ * @since 20
+ */
+enum Object_Storage_Constants {
+ /** Separate private storage space for each application. */
+ TEE_OBJECT_STORAGE_PRIVATE = 0x00000001,
+ /** Separate personal storage space for application. */
+ TEE_OBJECT_STORAGE_PERSO = 0x00000002,
+ /** Space for secure flash storage. */
+ TEE_OBJECT_SEC_FLASH = 0x80000000,
+ /** Space for RPMB storage. */
+ TEE_OBJECT_STORAGE_RPMB = 0x80000001,
+ /** Credential encrypted storage space. */
+ TEE_OBJECT_STORAGE_CE = 0x80000002,
+ /** Anti-rollback storage space. */
+ TEE_OBJECT_STORAGE_ANTIROLLBACK = 0x80000003,
+};
+
+/**
+ * @brief Defines the system resource constraints, such as the maximum value for the data stream position indicator.
+ *
+ * @since 20
+ */
+enum Miscellaneous_Constants {
+ /** Maximum length that the position indicator of the data stream can take. */
+ TEE_DATA_MAX_POSITION = 0xFFFFFFFF,
+ /** Maximum length of the object ID, which can extend to 128 bytes. */
+ TEE_OBJECT_ID_MAX_LEN = 64,
+};
+
+/**
+ * @brief Defines the maximum number of bytes that can be held in a data stream.
+ *
+ * @since 20
+ */
+enum TEE_DATA_Size {
+ TEE_DATA_OBJECT_MAX_SIZE = 0xFFFFFFFF
+};
+
+/**
+ * @brief Defines the handleFlags of a TEE_ObjectHandle.
+ * The handleFlags determines the access permissions to the data stream associated with the object.
+ *
+ * @since 20
+ */
+enum Data_Flag_Constants {
+ /** The data stream can be read. */
+ TEE_DATA_FLAG_ACCESS_READ = 0x00000001,
+ /** The data stream can be written or truncated. */
+ TEE_DATA_FLAG_ACCESS_WRITE = 0x00000002,
+ /** The data stream can be deleted or renamed. */
+ TEE_DATA_FLAG_ACCESS_WRITE_META = 0x00000004,
+ /** Multiple TEE_ObjectHandles can be opened for concurrent read. */
+ TEE_DATA_FLAG_SHARE_READ = 0x00000010,
+ /** Multiple TEE_ObjectHandles can be opened for concurrent write. */
+ TEE_DATA_FLAG_SHARE_WRITE = 0x00000020,
+ /** Reserved. */
+ TEE_DATA_FLAG_CREATE = 0x00000200,
+ /**
+ * Protect the existing file with the same name. Throw an error if the file with the same name exists;
+ * create a data file otherwise.
+ */
+ TEE_DATA_FLAG_EXCLUSIVE = 0x00000400,
+ /**
+ * Protect the existing file with the same name. Throw an error if the file with the same name exists;
+ * create a data file otherwise.
+ */
+ TEE_DATA_FLAG_OVERWRITE = 0x00000400,
+ /** If the bit25 is set to 1, it means deriving TA root key by using gid */
+ TEE_DATA_FLAG_GID = 0x02000000,
+ /** If the bit26 is set to 1, it means deriving TA root key by using huk2 */
+ TEE_DATA_FLAG_HUK2 = 0x04000000,
+ /**
+ * If the bit27 os set to 1, it means deriving the 32-bytes TA root key at one time,
+ * if it is 0, it means deriving TA root keys and combined them together.
+ */
+ TEE_DATA_FLAG_DERIVE_32BYTES_KEY_ONCE = 0x08000000,
+ /** Use AES256 if bit 28 is 1; use AES128 if bit 28 is 0. */
+ TEE_DATA_FLAG_AES256 = 0x10000000,
+ /** If bit 29 is set to 1, open the earlier version preferentially. */
+ TEE_DATA_FLAG_OPEN_AESC = 0x20000000,
+ /** If bit30 is set to 1, it means use GM algorithm to protect data */
+ TEE_DATA_FLAG_GM = 0x40000000,
+};
+
+/**
+ * @brief Creates a persistent object.
+ *
+ * This function creates a persistent object with initialized TEE_Attribute and data stream.
+ * You can use the returned handle to access the TEE_Attribute and data stream of the object.
+ *
+ * @param storageID Indicates the storage to use. The value is specified by Object_Storage_Constants.
+ * @param objectID Indicates the pointer to the object identifier, that is, the name of the object to create.
+ * @param objectIDLen Indicates the length of the object identifier, in bytes. It cannot exceed 128 bytes.
+ * @param flags Indicates the flags of the object created. The value can be
+ * one or more of Data_Flag_Constants or Handle_Flag_Constants.
+ * @param attributes Indicates the TEE_ObjectHandle of a transient object from which to take
+ * TEE_Attribute. It can be TEE_HANDLE_NULL if the persistent object contains no attribute.
+ * @param initialData Indicates the pointer to the initial data used to initialize the data stream data.
+ * @param initialDataLen Indicates the length of the initial data, in bytes.
+ * @param object Indicates the pointer to the TEE_ObjectHandle returned
+ * after the function is successfully executed.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_ITEM_NOT_FOUND if the storage specified by storageID does not exist.
+ * Returns TEE_ERROR_ACCESS_CONFLICT if an access conflict occurs.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ * Returns TEE_ERROR_STORAGE_NO_SPACE if there is no enough space to create the object.
+ *
+ * @since 20
+ */
+TEE_Result TEE_CreatePersistentObject(uint32_t storageID, const void *objectID, size_t objectIDLen, uint32_t flags,
+ TEE_ObjectHandle attributes, const void *initialData, size_t initialDataLen,
+ TEE_ObjectHandle *object);
+
+/**
+ * @brief Opens an existing persistent object.
+ *
+ * The handle returned can be used to access the TEE_Attribute and data stream of the object.
+ *
+ * @param storageID Indicates the storage to use. The value is specified by Object_Storage_Constants.
+ * @param objectID Indicates the pointer to the object identifier, that is, the name of the object to open.
+ * @param objectIDLen Indicates the length of the object identifier, in bytes. It cannot exceed 128 bytes.
+ * @param flags Indicates the flags of the object opened.
+ * The value can be one or more of Data_Flag_Constants or Handle_Flag_Constants.
+ * @param object Indicates the pointer to the TEE_ObjectHandle returned
+ * after the function is successfully executed.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_ITEM_NOT_FOUND if the storage specified by storageID does not exist
+ * or the object identifier cannot be found in the storage.
+ * Returns TEE_ERROR_ACCESS_CONFLICT if an access conflict occurs.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_OpenPersistentObject(uint32_t storageID, const void *objectID, size_t objectIDLen, uint32_t flags,
+ TEE_ObjectHandle *object);
+
+/**
+ * @brief Reads data from the data stream associated with an object into the buffer.
+ *
+ * The TEE_ObjectHandle of the object must have been opened with the TEE_DATA_FLAG_ACCESS_READ permission.
+ *
+ * @param object Indicates the TEE_ObjectHandle of the object to read.
+ * @param buffer Indicates the pointer to the buffer used to store the data read.
+ * @param size Indicates the number of bytes to read.
+ * @param count Indicates the pointer to the variable that contains the number of bytes read.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_ReadObjectData(TEE_ObjectHandle object, void *buffer, size_t size, uint32_t *count);
+
+/**
+ * @brief Writes bytes from the buffer to the data stream associated with an object.
+ *
+ * The TEE_ObjectHandle must have been opened with the TEE_DATA_FLAG_ACCESS_WRITE permission.
+ *
+ * @param object Indicates the TEE_ObjectHandle of the object.
+ * @param buffer Indicates the pointer to the buffer that stores the data to be written.
+ * @param size Indicates the number of bytes to be written. It cannot exceed 4096 bytes.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ * Returns TEE_ERROR_STORAGE_NO_SPACE if the storage space is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_WriteObjectData(TEE_ObjectHandle object, const void *buffer, size_t size);
+
+/**
+ * @brief Changes the size of a data stream.
+ *
+ * If the size is less than the current size of the data stream, all bytes beyond size are deleted. If the size
+ * is greater than the current size of the data stream, add 0s at the end of the stream to extend the stream.
+ * The object handle must be opened with the TEE_DATA_FLAG_ACCESS_WRITE permission.
+ *
+ * @param object Indicates the TEE_ObjectHandle of the object.
+ * @param size Indicates the new size of the data stream. It cannot exceed 4096 bytes.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_STORAGE_NO_SPACE if the storage space is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TruncateObjectData(TEE_ObjectHandle object, size_t size);
+
+/**
+ * @brief Sets the position of the data stream to which TEE_ObjectHandle points.
+ *
+ * The data position indicator is determined by the start position and an offset together.
+ * The whence parameter determines the start position. Its value is set in TEE_Whence as follows:
+ * TEE_DATA_SEEK_SET = 0: The start position is the beginning of the data stream.
+ * TEE_DATA_SEEK_CUR: The start position is the current position of the data stream.
+ * TEE_DATA_SEEK_END: The start position is the end of the data stream.
+ * If the parameter offset is a positive number, the data position is moved forward.
+ * If offset is a negative number, the data position is moved backward.
+ *
+ * @param object Indicates the TEE_ObjectHandle of the object.
+ * @param offset Indicates the number of bytes to move the data position. It cannot exceed 4096 bytes.
+ * @param whence Indicates the start position in the data stream to calculate the new position.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OVERFLOW if the position indicator resulting from this operation
+ * is greater than TEE_DATA_MAX_POSIT.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SeekObjectData(TEE_ObjectHandle object, int32_t offset, TEE_Whence whence);
+
+/**
+ * @brief Synchronizes the opened TEE_ObjectHandle and the corresponding security attribute file to the disk.
+ *
+ * @param object Indicates the TEE_ObjectHandle of the object.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ *
+ * @since 20
+ */
+TEE_Result TEE_SyncPersistentObject(TEE_ObjectHandle object);
+
+/**
+ * @brief Changes the object identifier.
+ *
+ * The TEE_ObjectHandle must have been opened with the TEE_DATA_FLAG_ACCESS_WRITE_META permission.
+ *
+ * @param object Indicates the handle of the target object.
+ * @param newObjectID Indicates the pointer to the new object identifier.
+ * @param newObjectIDLen Indicates the length of the new object identifier.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ *
+ * @since 20
+ */
+TEE_Result TEE_RenamePersistentObject(TEE_ObjectHandle object, void *newObjectID, size_t newObjectIDLen);
+
+/**
+ * @brief Allocates a handle on an uninitialized object enumerator.
+ *
+ * @param obj_enumerator Indicates the pointer to the handle of the newly created object enumerator.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_OUT_OF_MEMORY if the memory is not sufficient to complete the operation.
+ *
+ * @since 20
+ */
+TEE_Result TEE_AllocatePersistentObjectEnumerator(TEE_ObjectEnumHandle *obj_enumerator);
+
+/**
+ * @brief Releases all resources associated with an object enumerator handle.
+ *
+ * After this function is called, the object handle is no longer valid and all resources associated with
+ * the object enumerator handle will be reclaimed.
+ * TEE_FreePersistentObjectEnumerator and TEE_AllocatePersistentObjectEnumeratorare used in pairs.
+ *
+ * @param obj_enumerator Indicates the TEE_ObjectEnumHandle to release.
+ *
+ * @since 20
+ */
+void TEE_FreePersistentObjectEnumerator(TEE_ObjectEnumHandle obj_enumerator);
+
+/**
+ * @brief Resets an object enumerator handle to its initial state after allocation.
+ *
+ * @param obj_enumerator Indicates the TEE_ObjectEnumHandle of the object enumerator to reset.
+ *
+ * @since 20
+ */
+void TEE_ResetPersistentObjectEnumerator(TEE_ObjectEnumHandle obj_enumerator);
+
+/**
+ * @brief Starts the enumeration of all the objects in the given trusted storage.
+ *
+ * The object information can be obtained by using TEE_GetNextPersistentObject.
+ *
+ * @param obj_enumerator Indicates the TEE_ObjectEnumHandle of the object enumerator.
+ * @param storage_id Indicates the storage, in which the objects are enumerated.
+ * The value is specified by Object_Storage_Constants.
+ * Currently, only TEE_STORAGE_PRIVATE is supported.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ITEM_NOT_FOUND if storageID is not TEE_STORAGE_PRIVATE
+ * or there is no object in the specified storage.
+ *
+ * @since 20
+ */
+TEE_Result TEE_StartPersistentObjectEnumerator(TEE_ObjectEnumHandle obj_enumerator, uint32_t storage_id);
+
+/**
+ * @brief Obtains the next object in the object enumerator.
+ *
+ * Information such as TEE_ObjectInfo, objectID, and objectIDLen will be obtained.
+ *
+ * @param obj_enumerator Indicates the TEE_ObjectEnumHandle of the object enumerator.
+ * @param object_info Indicates the pointer to the obtainedTEE_ObjectInfo.
+ * @param object_id Indicates the pointer to the buffer used to store the obtained objectID.
+ * @param object_id_len Indicates the pointer to the objectIDLen.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ITEM_NOT_FOUND if the object enumerator has no element
+ * or the enumerator has not been initialized.
+ *
+ * @since 20
+ */
+TEE_Result TEE_GetNextPersistentObject(TEE_ObjectEnumHandle obj_enumerator,
+ TEE_ObjectInfo *object_info, void *object_id, size_t *object_id_len);
+
+/**
+ * @brief Closes a TEE_ObjectHandle and deletes the object.
+ *
+ * The object must be a persistent object, and the object handle must have been opened with
+ * the TEE_DATA_FLAG_ACCESS_WRITE_META permission.
+ *
+ * @param object Indicates the object handle to close.
+ *
+ * @return Returns TEE_SUCCESS if the operation is successful.
+ * Returns TEE_ERROR_STORAGE_NOT_AVAILABLE if the object is stored
+ * in a storage area that is inaccessible currently.
+ *
+ * @since 20
+ */
+TEE_Result TEE_CloseAndDeletePersistentObject1(TEE_ObjectHandle object);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee/tee_tui_gp_api.h b/TEEKit/include/tee/tee_tui_gp_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d7accc8bae1326395f285e306891d3c5d9e4c38
--- /dev/null
+++ b/TEEKit/include/tee/tee_tui_gp_api.h
@@ -0,0 +1,484 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeTrusted
+ * @{
+ *
+ * @brief TEE(Trusted Excution Environment) API.
+ * Provides security capability APIs such as trusted storage, encryption and decryption,
+ * and trusted time for trusted application development.
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_tui_gp_api.h
+ *
+ * @brief Provides APIs for operating big integers.
+ *
+ * @library NA
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TASK_TUI_GP_API_H
+#define TASK_TUI_GP_API_H
+
+#include
+#include
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the number of button types in TUI.
+ *
+ * @since 20
+ */
+#define TEE_TUI_NUMBER_BUTTON_TYPES 0x00000006
+
+/**
+ * @brief Defines the private storage type.
+ *
+ * @since 20
+ */
+#define TEE_STORAGE_PRIVATE 0x00000001
+
+/**
+ * @brief Defines the default maximum number of entry fields.
+ *
+ * @since 20
+ */
+#define DEFAULT_MAX_ENTRY_FIELDS 3
+
+/**
+ * @brief Defines the identifier for the exit operation.
+ *
+ * @since 20
+ */
+#define TUI_EXIT 8
+
+/**
+ * @brief Enumerates the modes supported when displaying characters within an input entry field.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Never visible, displayed as '*'. */
+ TEE_TUI_HIDDEN_MODE = 0,
+ /** Always visible. */
+ TEE_TUI_CLEAR_MODE,
+ /** Visible then hidden. */
+ TEE_TUI_TEMPORARY_CLEAR_MODE
+} TEE_TUIEntryFieldMode;
+
+/**
+ * @brief Enumerates the input types supported of the TUI entry field.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** When the field accepts only digits as inputs. */
+ TEE_TUI_NUMERICAL = 0,
+ /** When the field accepts characters and digits as inputs. */
+ TEE_TUI_ALPHANUMERICAL,
+} TEE_TUIEntryFieldType;
+
+/**
+ * @brief Enumerates the TUI screen orientation.
+ * @attention Currently {@code TEE_TUI_LANDSCAPE} is not supported.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Displayed as a portrait, i.e. vertically. */
+ TEE_TUI_PORTRAIT = 0,
+ /** Displayed as a landscape, i.e. horizontally. */
+ TEE_TUI_LANDSCAPE,
+} TEE_TUIScreenOrientation;
+
+/**
+ * @brief Enumerates the types of the button.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Used to delete the previous input digit. */
+ TEE_TUI_CORRECTION = 0,
+ /** Exits the interface. */
+ TEE_TUI_OK,
+ /** Cancels the operation and exits the interface. */
+ TEE_TUI_CANCEL,
+ /** Used to trigger PIN verifcation and exit the interface.*/
+ TEE_TUI_VALIDATE,
+ /** Exit the current interface and ask the TA to display the previous interface. */
+ TEE_TUI_PREVIOUS,
+ /** Exit the current interface and ask the TA to display the next interface. */
+ TEE_TUI_NEXT,
+} TEE_TUIButtonType;
+
+/**
+ * @brief Enumerates source of the uesd image.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** No picture provided in the input. */
+ TEE_TUI_NO_SOURCE = 0,
+ /** The picture provided as a memory pointer. */
+ TEE_TUI_REF_SOURCE,
+ /** The picture provided by an object in the secure storage. */
+ TEE_TUI_OBJECT_SOURCE,
+ /** The picture provided as a file. */
+ TEE_TUI_FILE_SOURCE = 0x8001
+} TEE_TUIImageSource;
+
+/**
+ * @brief Represents the image in PNG format.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Represents the source of the image. */
+ TEE_TUIImageSource source;
+ /**
+ * @brief Contains the image data and its length.
+ *
+ * @since 20
+ */
+ struct {
+ /** Pointer to the image data. */
+ void *image;
+ /** The length of the image data. */
+ size_t imageLength;
+ } ref;
+ /**
+ * @brief Represents the object storage information.
+ *
+ * @since 20
+ */
+ struct {
+ /** The storage ID where the image is stored. */
+ uint32_t storageID;
+ /** Pointer to the object ID where the image is stored. */
+ void *objectID;
+ /** The length of the object ID. */
+ size_t objectIDLen;
+ } object;
+ /** Represents the number of pixels in the width of the image. */
+ uint32_t width;
+ /** Represents the number of pixels in the height of the image. */
+ uint32_t height;
+} TEE_TUIImage;
+
+/**
+ * @brief Enumerates the GP color index.
+ *
+ * @since 20
+ */
+enum gp_color_idx {
+ /** Red color index. */
+ RED_IDX = 0,
+ /** Green color index. */
+ GREEN_IDX = 1,
+ /** Blue color index. */
+ BLUE_IDX = 2,
+ /** RGB color index. */
+ RGB_COLOR_IDX = 3,
+};
+
+/**
+ * @brief Represents the label for TA branding/message, generally on the top of screen.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** It's the string to put in the label area, which can be NULL. */
+ char *text;
+ /** X-coordinate of the upper left corner of the text information. */
+ uint32_t textXOffset;
+ /** Y-coordinate of the upper left corner of the text information. */
+ uint32_t textYOffset;
+ /** RGB color used for displaying the text information. */
+ uint8_t textColor[RGB_COLOR_IDX];
+ /** The image is placed in the label area. */
+ TEE_TUIImage image;
+ /** X-coordinate of the upper left corner of the image to be displayed. */
+ uint32_t imageXOffset;
+ /** Y-coordinate of the upper left corner of the image to be displayed. */
+ uint32_t imageYOffset;
+} TEE_TUIScreenLabel;
+
+/**
+ * @brief Represents the content displayed on a button.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** It's the string to associate with the button, which can be NULL. */
+ char *text;
+ /** The image to associate with the button. */
+ TEE_TUIImage image;
+} TEE_TUIButton;
+
+/**
+ * @brief Represents the configuration about the TUI screen.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** The requested screen orientation. */
+ TEE_TUIScreenOrientation screenOrientation;
+ /** The specifies label of the screen.*/
+ TEE_TUIScreenLabel label;
+ /** Customizes the buttons compared to the default. */
+ TEE_TUIButton *buttons[TEE_TUI_NUMBER_BUTTON_TYPES];
+ /** Specifes which buttons to be displayed. */
+ bool requestedButtons[TEE_TUI_NUMBER_BUTTON_TYPES];
+} TEE_TUIScreenConfiguration;
+
+/**
+ * @brief Represents the information about a TUI screen button.
+ * @attention The {@code buttonTextCustom} and {@code buttonImageCustom} cannot be set to true at the same time.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Defaut label value of the button text. If the value is NULL means the parameter is unavailable. */
+ const char *buttonText;
+ /** The pixel width of the button.
+ * If the text or image on the button cannot be customized, the value is 0.
+ */
+ uint32_t buttonWidth;
+ /** The pixel height of the button.
+ * If the text or image on the button cannot be customized, the value is 0.
+ */
+ uint32_t buttonHeight;
+ /** If the text on the button cannot be customized, the value is true. */
+ bool buttonTextCustom;
+ /** If the image on the button cannot be customized, the value is true. */
+ bool buttonImageCustom;
+} TEE_TUIScreenButtonInfo;
+
+/**
+ * @brief Represents the information displayed on the TUI.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Available grayscale. */
+ uint32_t grayscaleBitsDepth;
+ /** Available red depth level. */
+ uint32_t redBitsDepth;
+ /** Available green depth level. */
+ uint32_t greenBitsDepth;
+ /** Available blue depth level. */
+ uint32_t blueBitsDepth;
+ /** Indicates the number of pixels per inch in the width direction. */
+ uint32_t widthInch;
+ /** Indicates the number of pixels per inch in the height direction. */
+ uint32_t heightInch;
+ /** Indicates the maximum number of entries that can be displayed on the TUI. */
+ uint32_t maxEntryFields;
+ /** Indicates the pixel width of the input region label. */
+ uint32_t entryFieldLabelWidth;
+ /** Indicates the pixel height of the input region label. */
+ uint32_t entryFieldLabelHeight;
+ /** Indicates the maximum number of characters that can be entered in the entry field. */
+ uint32_t maxEntryFieldLength;
+ /** RGB value of the default label canvas. */
+ uint8_t labelColor[RGB_COLOR_IDX];
+ /** Indicates the pixel width of the label canvas. */
+ uint32_t labelWidth;
+ /** Indicates the pixel height of the label canvas. */
+ uint32_t labelHeight;
+ /** Indicates the information of the buttons on the interface. */
+ TEE_TUIScreenButtonInfo buttonInfo[TEE_TUI_NUMBER_BUTTON_TYPES];
+} TEE_TUIScreenInfo;
+
+/**
+ * @brief Represents the information in an entry field that requires user input.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Indicates the label of the entry field. */
+ char *label;
+ /** Indicates the mode used to display characters. */
+ TEE_TUIEntryFieldMode mode;
+ /** Indicates the type of the characters can be entered in the entry field. */
+ TEE_TUIEntryFieldType type;
+ /** The minimum number of characters to be entered. */
+ uint32_t minExpectedLength;
+ /** The maximum number of characters to be entered. */
+ uint32_t maxExpectedLength;
+ /** Contains the content entered by user. */
+ char *buffer;
+ /** Indicates the length of the buffer. */
+ size_t bufferLength;
+} TEE_TUIEntryField;
+
+/**
+ * @brief Initializing the TUI resources.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_NOT_SUPPORTED} if the device is not support TUI.
+ * Returns {@code TEE_ERROR_BUSY} if the TUI resources cannot be reserved.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the system ran out of the resources.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUIInitSession(void);
+
+
+/**
+ * @brief Releases TUI resources previously acquired.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_STATE} if the current TA is not within a TUI session initially
+ * started by a successful call to {@code TEE_TUIInitSession}.
+ * Returns {@code TEE_ERROR_BUSY} if the TUI resources currently are in use.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUICloseSession(void);
+
+/**
+ * @brief Allows a TA to check whether a given text can be rendered by the current implementation and
+ * retrieves information about the size and width that is needed to render it.
+ *
+ * @param text Indicates the string to be checked.
+ * @param width Indicates the width in pixels needed to render the text.
+ * @param height Indicates the height in pixels needed to render the text.
+ * @param last_index Indicates the last character that has been checked
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_NOT_SUPPORTED} if at least one of the characters present
+ * in the text string cannot be rendered.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUICheckTextFormat(const char *text, uint32_t *width, uint32_t *height, uint32_t *last_index);
+
+/**
+ * @brief Retrieves information about the screen depending on its orientation and
+ * the number of required entry fields.
+ *
+ * @param screenOrientation Defines for which orientation screen information is requested.
+ * @param nbEntryFields Indicates the number of the requested entry fields.
+ * @param screenInfo Indicates the information on the requested screen for a given orientation.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_NOT_SUPPORTED} if the number of entry fields is not supported.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUIGetScreenInfo(TEE_TUIScreenOrientation screenOrientation,
+ uint32_t nbEntryFields,
+ TEE_TUIScreenInfo *screenInfo);
+/**
+ * @brief Display a TUI screen.
+ *
+ * @param screenConfiguration Indicates the configuration of the labels and optional buttons on the display interface.
+ * @param closeTUISession If the value is true, the TUI session will automatically closed when exiting the function.
+ * @param entryFields Indicates the information of entry field.
+ * @param entryFieldCount Indicates the count of the entry fields.
+ * @param selectedButton Indicates which button has been selected by the user to exit the TUI screen.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_OUT_OF_MEMORY} if the system ran out of the resources.
+ * Returns {@code TEE_ERROR_ITEM_NOT_FOUND} if at least one image provided by the TA refers to a storage
+ * denoted by a storageID which dose not exist or if the corresponding object identifier cannot be found in the storage.
+ * Returns {@code TEE_ERROR_ACCESS_CONFLICT} if at least one image provided by the TA refers to a data
+ * object in the trusted storage and an access right conflict was detected while opening the object.
+ * Returns {@code TEE_ERROR_BAD_FORMAT} if at least one input image is not compliant with PNG format.
+ * Returns {@code TEE_ERROR_BAD_STATE} if the current TA is not within a TUI session
+ * initially started by a successful call to {@code TEE_TUIInitSession}.
+ * Returns {@code TEE_ERROR_BUSY} if the TUI resources are currently in use, i.e. a TUI screen is displayed.
+ * Returns {@code TEE_ERROR_CANCEL} if the operation has been cancelled while a TUI screen is currently
+ * displayed.
+ * Returns {@code TEE_ERROR_EXTERNAL_CANCEL} if the operation has been cancelled by an external event which
+ * occurred in the REE while a TUI screen is currently displayed.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUIDisplayScreen(TEE_TUIScreenConfiguration *screenConfiguration,
+ bool closeTUISession,
+ TEE_TUIEntryField *entryFields,
+ uint32_t entryFieldCount,
+ TEE_TUIButtonType *selectedButton);
+
+/**
+ * @brief Fringerprint identification port.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_NOT_SUPPORTED} if the device is not support TUI.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUINotify_fp(void);
+
+/**
+ * @brief Set the Chinese character encoding. The system supports UTF-8 by default.
+ *
+ * @param type Indicates the encoding type. The value 1 indicates GBK. Other values are not supported.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_NOT_SUPPORTED} if the device is not support this function.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUISetInfo(int32_t type);
+
+/**
+ * @brief Send message to TUI.
+ *
+ * @param type Indicates the messages send to the TUI. Only support {@code TUI_EXIT}.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_BAD_PARAMETERS} if input parameter is incorrect.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUISendEvent(int32_t type);
+
+/**
+ * @brief Setting the TUI background image.
+ *
+ * @param label Configure the background image information in the label variable.
+ * The image must be a PNG image in array format.
+ * @param len Indicates the label size.
+ *
+ * @return Returns {@code TEE_SUCCESS} if the operation is successful.
+ * Returns {@code TEE_ERROR_GENERIC} if input parameter is incorrect.
+ * Returns {@code TEE_ERROR_ACCESS_DENIED} if the permission verification failed.
+ *
+ * @since 20
+ */
+TEE_Result TEE_TUISetLabel(TEE_TUIScreenLabel *label, uint32_t len);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee_client/tee_client_api.h b/TEEKit/include/tee_client/tee_client_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d7bb0ec44240045b6913c61ee8ea1e1fe381918
--- /dev/null
+++ b/TEEKit/include/tee_client/tee_client_api.h
@@ -0,0 +1,234 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeClient
+ * @{
+ *
+ * @brief Provides APIs for the client applications (CAs) in the Rich Execution Environment (normal mode) to
+ * access the trusted applications (TAs) in a Trusted Execution Environment (TEE).
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_client_api.h
+ *
+ * @brief Defines APIs for CAs to access TAs.
+ *
+ * Example:
+ *
1. Initialize a TEE: Call TEEC_InitializeContext to initialize the TEE.
+ *
2. Open a session: Call TEEC_OpenSession with the Universal Unique Identifier (UUID) of the TA.
+ *
3. Send a command: Call TEEC_InvokeCommand to send a command to the TA.
+ *
4. Close the session: Call TEEC_CloseSession to close the session.
+ *
5. Close the TEE: Call TEEC_FinalizeContext to close the TEE.
+ *
+ * @library libteec.so
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_CLIENT_API_H
+#define TEE_CLIENT_API_H
+
+#include
+#include "tee_client_type.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the values of the parameters transmitted between the REE and TEE.
+ *
+ * @since 20
+ */
+#define TEEC_PARAM_TYPES(param0Type, param1Type, param2Type, param3Type) \
+ ((param3Type) << 12 | (param2Type) << 8 | (param1Type) << 4 | (param0Type))
+
+/**
+ * @brief Defines the value of the parameter specified by paramTypes and index.
+ *
+ * @since 20
+ */
+#define TEEC_PARAM_TYPE_GET(paramTypes, index) \
+ (((paramTypes) >> (4*(index))) & 0x0F)
+
+/**
+ * @brief Initializes a TEE.
+ *
+ * The TEE must be initialized before a session is open or commands are sent.
+ * After the initialization, a connection is set up between the CA and the TEE.
+ *
+ * @param name [IN] Indicates the pointer to the TEE path.
+ * @param context [IN/OUT] Indicates the context pointer, which is the handle of the TEE.
+ *
+ * @return Returns {@code TEEC_SUCCESS} if the TEE is successfully initialized.
+ * Returns {@code TEEC_ERROR_BAD_PARAMETERS} if name is incorrect or context is null.
+ * Returns {@code TEEC_ERROR_GENERIC} if the available system resources are insufficient.
+ *
+ * @since 20
+ */
+TEEC_Result TEEC_InitializeContext(const char *name, TEEC_Context *context);
+
+/**
+ * @brief Closes the TEE.
+ *
+ * After the TEE is closed, the CA is disconnected from the TEE.
+ *
+ * @param context [IN/OUT] Indicates the pointer to the TEE that is successfully initialized.
+ *
+ * @since 20
+ */
+void TEEC_FinalizeContext(TEEC_Context *context);
+
+/**
+ * @brief Opens a session.
+ *
+ * This function is used to set up a connection between the CA and the TA of the specified UUID in the specified TEE
+ * context. The data to be transferred is contained in operation.
+ * If a session is opened successfully, session is returned providing a description of the connection.
+ * If the session fails to open, returnOrigin is returned indicating the cause of the failure.
+ *
+ * @param context [IN/OUT] Indicates the pointer to the TEE that is successfully initialized.
+ * @param session [OUT] Indicates the pointer to the session. The value cannot be null.
+ * @param destination [IN] Indicates the pointer to the UUID of the target TA. Each TA has a unique UUID.
+ * @param connectionMethod [IN] Indicates the connection method. For details, see {@link TEEC_LoginMethod}.
+ * @param connectionData [IN] Indicates the pointer to the connection data, which varies with the connection mode.
+ * If the connection mode is {@code TEEC_LOGIN_PUBLIC}, {@code TEEC_LOGIN_USER},
+ * {@code TEEC_LOGIN_USER_APPLICATION}, or {@code TEEC_LOGIN_GROUP_APPLICATION}, the connection data must be null.
+ * If the connection mode is {@code TEEC_LOGIN_GROUP} or {@code TEEC_LOGIN_GROUP_APPLICATION},
+ * the connection data must point to data of the uint32_t type, which indicates the target group user to be connected
+ * by the CA.
+ * @param operation [IN/OUT] Indicates the pointer to the data to be transmitted between the CA and TA.
+ * @param returnOrigin [IN/OUT] Indicates the pointer to the error source.
+ * For details, see {@code TEEC_ReturnCodeOrigin}.
+ *
+ * @return Returns {@code TEEC_SUCCESS} if the session is open successfully.
+ * Returns {@code TEEC_ERROR_BAD_PARAMETERS} if context, session, or destination is null.
+ * Returns {@code TEEC_ERROR_ACCESS_DENIED} if the access request is denied.
+ * Returns {@code TEEC_ERROR_OUT_OF_MEMORY} if the available system resources are insufficient.
+ * Returns {@code TEEC_ERROR_TRUSTED_APP_LOAD_ERROR} if the TA failed to be loaded.
+ * For details about other return values, see {@code TEEC_ReturnCode}.
+ *
+ * @since 20
+ */
+TEEC_Result TEEC_OpenSession(TEEC_Context *context, TEEC_Session *session, const TEEC_UUID *destination,
+ uint32_t connectionMethod, const void *connectionData, TEEC_Operation *operation, uint32_t *returnOrigin);
+
+/**
+ * @brief Closes a session.
+ *
+ * After the session is closed, the CA is disconnected from the TA.
+ *
+ * @param session [IN/OUT] Indicates the pointer to the session to close.
+ *
+ * @since 20
+ */
+void TEEC_CloseSession(TEEC_Session *session);
+
+/**
+ * @brief Sends a command to a TA.
+ *
+ * The CA sends the command ID to the TA through the specified session.
+ *
+ * @param session [IN/OUT] Indicates the pointer to the session opened.
+ * @param commandID [IN] Indicates the command ID supported by the TA. It is defined by the TA.
+ * @param operation [IN/OUT] Indicates the pointer to the data to be sent from the CA to the TA.
+ * @param returnOrigin [IN/OUT] Indicates the pointer to the error source.
+ * For details, see {@code TEEC_ReturnCodeOrigin}.
+ *
+ * @return Returns {@code TEEC_SUCCESS} if the command is sent successfully.
+ * Returns {@code TEEC_ERROR_BAD_PARAMETERS} if session is null or
+ * operation is in incorrect format.
+ * Returns {@code TEEC_ERROR_ACCESS_DENIED} if the access request is denied.
+ * Returns {@code TEEC_ERROR_OUT_OF_MEMORY} if the available system resources are insufficient.
+ * For details about other return values, see {@code TEEC_ReturnCode}.
+ *
+ * @since 20
+ */
+TEEC_Result TEEC_InvokeCommand(TEEC_Session *session, uint32_t commandID,
+ TEEC_Operation *operation, uint32_t *returnOrigin);
+
+/**
+ * @brief Registers shared memory in the specified TEE context.
+ *
+ * The registered shared memory can implement zero-copy.
+ * The zero-copy function, however, also requires support by the operating system.
+ * At present, zero-copy cannot be implemented in this manner.
+ *
+ * @param context [IN/OUT] Indicates the pointer to the TEE that is successfully initialized.
+ * @param sharedMem [IN/OUT] Indicates the pointer to the shared memory.
+ * The pointed shared memory cannot be null and the size cannot be 0.
+ *
+ * @return Returns {@code TEEC_SUCCESS} if the operation is successful.
+ * Returns {@code TEEC_ERROR_BAD_PARAMETERS} if context or sharedMem is null or
+ * the pointed memory is empty.
+ *
+ * @since 20
+ */
+TEEC_Result TEEC_RegisterSharedMemory(TEEC_Context *context, TEEC_SharedMemory *sharedMem);
+
+/**
+ * @brief Requests shared memory in the specified TEE context.
+ *
+ * The shared memory can be used to implement zero-copy during data transmission between the REE and TEE.
+ * The zero-copy function, however, also requires support by the operating system.
+ * At present, zero-copy cannot be implemented in this manner.
+ *
+ * @attention If the size field of the input parameter sharedMem is set to 0, TEEC_SUCCESS
+ * will be returned but the shared memory cannot be used because this memory has neither an address nor size.
+ * @param context [IN/OUT] Indicates the pointer to the TEE that is successfully initialized.
+ * @param sharedMem [IN/OUT] Indicates the pointer to the shared memory. The size of the shared memory cannot be 0.
+ *
+ * @return Returns {@code TEEC_SUCCESS} if the operation is successful.
+ * Returns {@code TEEC_ERROR_BAD_PARAMETERS} if context or sharedMem is null.
+ * Returns {@code TEEC_ERROR_OUT_OF_MEMORY} if the available system resources are insufficient.
+ *
+ * @since 20
+ */
+TEEC_Result TEEC_AllocateSharedMemory(TEEC_Context *context, TEEC_SharedMemory *sharedMem);
+
+/**
+ * @brief Releases the shared memory registered or acquired.
+ *
+ * @attention If the shared memory is acquired by using {@code TEEC_AllocateSharedMemory},
+ * the memory released will be reclaimed. If the shared memory is acquired by using {@code TEEC_RegisterSharedMemory},
+ * the local memory released will not be reclaimed.
+ * @param sharedMem [IN/OUT] Indicates the pointer to the shared memory to release.
+ *
+ * @since 20
+ */
+void TEEC_ReleaseSharedMemory(TEEC_SharedMemory *sharedMem);
+
+/**
+ * @brief Cancels an operation.
+ *
+ * @attention This operation is only used to send a cancel message. Whether to perform the cancel operation is
+ * determined by the TEE or TA.
+ * At present, the cancel operation does not take effect.
+ * @param operation [IN/OUT] Indicates the pointer to the data to be sent from the CA to the TA.
+ *
+ * @since 20
+ */
+void TEEC_RequestCancellation(TEEC_Operation *operation);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee_client/tee_client_constants.h b/TEEKit/include/tee_client/tee_client_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..08a63219a806682863689046f701a88e961da406
--- /dev/null
+++ b/TEEKit/include/tee_client/tee_client_constants.h
@@ -0,0 +1,228 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeClient
+ * @{
+ *
+ * @brief Provides APIs for the client applications (CAs) in the Rich Execution Environment (normal mode) to
+ * access the trusted applications (TAs) in a Trusted Execution Environment (TEE).
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_client_constants.h
+ *
+ * @brief Defines public data and constants.
+ *
+ * @library libteec.so
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_CLIENT_CONSTANTS_H
+#define TEE_CLIENT_CONSTANTS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the number of TEEC_Parameters in TEEC_Operation.
+ *
+ * @since 20
+ */
+#define TEEC_PARAM_NUM 4
+
+/**
+ * @brief Defines the error codes returned.
+ *
+ * @since 20
+ */
+enum TEEC_ReturnCode {
+ /** The operation is successful. */
+ TEEC_SUCCESS = 0x0,
+ /** Invalid command. The command is not supported by the TA. */
+ TEEC_ERROR_INVALID_CMD,
+ /** The TA does not exist. */
+ TEEC_ERROR_SERVICE_NOT_EXIST,
+ /** The session between the CA and TA does not exist. */
+ TEEC_ERROR_SESSION_NOT_EXIST,
+ /** The number of connections to the TA has reached the limit. */
+ TEEC_ERROR_SESSION_MAXIMUM,
+ /** The TA to be registered already exists. */
+ TEEC_ERROR_REGISTER_EXIST_SERVICE,
+ /** Secure OS framework error. */
+ TEEC_ERROR_TAGET_DEAD_FATAL,
+ /** Failed to read the file. */
+ TEEC_ERROR_READ_DATA,
+ /** Failed to write the file. */
+ TEEC_ERROR_WRITE_DATA,
+ /** Failed to truncate the file. */
+ TEEC_ERROR_TRUNCATE_OBJECT,
+ /** Failed to seek data. */
+ TEEC_ERROR_SEEK_DATA,
+ /** File synchronization error. */
+ TEEC_ERROR_FSYNC_DATA,
+ /** Failed to rename the file. */
+ TEEC_ERROR_RENAME_OBJECT,
+ /** Failed to load the TA when opening a session. */
+ TEEC_ERROR_TRUSTED_APP_LOAD_ERROR,
+ /** Failed to initialize the TA. */
+ TEEC_ERROR_GENERIC = 0xFFFF0000,
+ /** Permission verification failed. Permission verification is performed before a TEE or session is opened or
+ a command is sent. */
+ TEEC_ERROR_ACCESS_DENIED = 0xFFFF0001,
+ /** The operation is canceled. This error code is returned when you operate the parameter with
+ the cancallation flag. */
+ TEEC_ERROR_CANCEL = 0xFFFF0002,
+ /** Concurrent access causes permission conflict. Concurrent access to files in the trusted storage
+ service may cause this error. */
+ TEEC_ERROR_ACCESS_CONFLICT = 0xFFFF0003,
+ /** Too much data is passed in the requested operation for the TA to parse. */
+ TEEC_ERROR_EXCESS_DATA = 0xFFFF0004,
+ /** Incorrect data format. The TA failed to parse the parameters sent from the CA. */
+ TEEC_ERROR_BAD_FORMAT = 0xFFFF0005,
+ /** Invalid parameter. The input parameter is null or invalid. */
+ TEEC_ERROR_BAD_PARAMETERS = 0xFFFF0006,
+ /** The operation in the current state is invalid. This error code is returned if the trusted storage service is not
+ initialized when a trusted storage service operation is requested. */
+ TEEC_ERROR_BAD_STATE = 0xFFFF0007,
+ /** The requested data is not found. */
+ TEEC_ERROR_ITEM_NOT_FOUND = 0xFFFF0008,
+ /** The requested operation has not been implemented yet. This error code is returned when
+ TEEC_RequestCancellation is called. */
+ TEEC_ERROR_NOT_IMPLEMENTED = 0xFFFF0009,
+ /** The requested operation is valid but is not supported in this implementation. This error code is returned
+ when certain algorithms of the secure encryption and decryption service, such as DSA, are requested. */
+ TEEC_ERROR_NOT_SUPPORTED = 0xFFFF000A,
+ /** Expected data for the requested operation is not found. */
+ TEEC_ERROR_NO_DATA = 0xFFFF000B,
+ /** The available system resources are insufficient. */
+ TEEC_ERROR_OUT_OF_MEMORY = 0xFFFF000C,
+ /** The system is busy. Some resources are exclusively used by the system. */
+ TEEC_ERROR_BUSY = 0xFFFF000D,
+ /** Communication between an application in the REE and a TA failed. */
+ TEEC_ERROR_COMMUNICATION = 0xFFFF000E,
+ /** A security fault is detected in the TEE. */
+ TEEC_ERROR_SECURITY = 0xFFFF000F,
+ /** The supplied buffer is too short for the output generated.
+ This error may occur when {@code TEEC_MEMREF_TEMP_OUTPUT} is used. */
+ TEEC_ERROR_SHORT_BUFFER = 0xFFFF0010,
+ /** MAC value check error. */
+ TEEC_ERROR_MAC_INVALID = 0xFFFF3071,
+ /** The TA crashed. */
+ TEEC_ERROR_TARGET_DEAD = 0xFFFF3024,
+ /** Common error. */
+ TEEC_FAIL = 0xFFFF5002
+};
+
+/**
+ * @brief Defines the sources of the error codes returned.
+ *
+ * @since 20
+ */
+enum TEEC_ReturnCodeOrigin {
+ /** The error code indicates an error originated from the client API. */
+ TEEC_ORIGIN_API = 0x1,
+ /** The error code indicates an error originated from the communication between the REE and TEE. */
+ TEEC_ORIGIN_COMMS = 0x2,
+ /** The error code indicates an error originated within the TEE code. */
+ TEEC_ORIGIN_TEE = 0x3,
+ /** The error code indicates an error originated within the TA code. */
+ TEEC_ORIGIN_TRUSTED_APP = 0x4,
+};
+
+/**
+ * @brief Defines the identifiers of the shared memory.
+ *
+ * @since 20
+ */
+enum TEEC_SharedMemCtl {
+ /** The shared memory can carry data from CAs to TAs. */
+ TEEC_MEM_INPUT = 0x1,
+ /** The shared memory can carry data from TAs to CAs. */
+ TEEC_MEM_OUTPUT = 0x2,
+ /** The shared memory can carry data transmitted between CAs and TAs. */
+ TEEC_MEM_INOUT = 0x3,
+};
+
+/**
+ * @brief Defines the parameter types.
+ *
+ * @since 20
+ */
+enum TEEC_ParamType {
+ /** The parameter is not used. */
+ TEEC_NONE = 0x0,
+ /** The parameter is a {@code TEEC_Value} tagged as input. Data flows from a CA to a TA. */
+ TEEC_VALUE_INPUT = 0x01,
+ /** The parameter is a {@code TEEC_Value} tagged as output. Data flows from a TA to a CA. */
+ TEEC_VALUE_OUTPUT = 0x02,
+ /** The parameter is a {@code TEEC_Value} tagged as both input and output. */
+ TEEC_VALUE_INOUT = 0x03,
+ /** The parameter is a {@code TEEC_TempMemoryReference} tagged as input. Data flows from a CA to a TA. */
+ TEEC_MEMREF_TEMP_INPUT = 0x05,
+ /** The parameter is a {@code TEEC_TempMemoryReference} tagged as output. Data flows from a TA to a CA. */
+ TEEC_MEMREF_TEMP_OUTPUT = 0x06,
+ /** The parameter is a {@code TEEC_TempMemoryReference} tagged as both input and output.
+ Data is transmitted between a TA and a CA. */
+ TEEC_MEMREF_TEMP_INOUT = 0x07,
+ /** The parameter is a {@code TEEC_IonReference} tagged as input. Data flows from a CA to a TA**/
+ TEEC_ION_INPUT = 0x08,
+ /** The parameter is a {@code TEEC_IonSglistReference} tagged as input. Data flows from a CA to a TA**/
+ TEEC_ION_SGLIST_INPUT = 0x09,
+ /** The parameter is a {@code TEEC_RegisteredMemoryReference} that refers to the entire memory block.
+ The data flow is the same as that of {@code TEEC_SharedMemCtl}. */
+ TEEC_MEMREF_WHOLE = 0xc,
+ /** The parameter is a {@code TEEC_RegisteredMemoryReference} tagged as input. Data flows from a CA to a TA. */
+ TEEC_MEMREF_PARTIAL_INPUT = 0xd,
+ /** The parameter is a {@code TEEC_RegisteredMemoryReference} tagged as output. Data flows from a TA to a CA. */
+ TEEC_MEMREF_PARTIAL_OUTPUT = 0xe,
+ /** The parameter is a {@code TEEC_RegisteredMemoryReference} tagged as both input and output.
+ Data is transmitted between a TA and a CA. */
+ TEEC_MEMREF_PARTIAL_INOUT = 0xf
+};
+
+/**
+ * @brief Defines the login methods.
+ *
+ * @since 20
+ */
+enum TEEC_LoginMethod {
+ /** No login data is provided. */
+ TEEC_LOGIN_PUBLIC = 0x0,
+ /** The login data about the user running the CA process is provided. */
+ TEEC_LOGIN_USER,
+ /** The login data about the group running the CA process is provided. */
+ TEEC_LOGIN_GROUP,
+ /** The login data about the running CA is provided. */
+ TEEC_LOGIN_APPLICATION = 0x4,
+ /** The login data about the user running the CA process and about the CA are provided. */
+ TEEC_LOGIN_USER_APPLICATION = 0x5,
+ /** The login data about the group running the CA process and about the CA are provided. */
+ TEEC_LOGIN_GROUP_APPLICATION = 0x6,
+ /** Login method reserved for TEEOS. */
+ TEEC_LOGIN_IDENTIFY = 0x7,
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/include/tee_client/tee_client_type.h b/TEEKit/include/tee_client/tee_client_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..ed0bf105dd7581ddaf0146ce3328f4c8145c7825
--- /dev/null
+++ b/TEEKit/include/tee_client/tee_client_type.h
@@ -0,0 +1,296 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup TeeClient
+ * @{
+ *
+ * @brief Provides APIs for the client applications (CAs) in the Rich Execution Environment (normal mode) to
+ * access the trusted applications (TAs) in a Trusted Execution Environment (TEE).
+ *
+ * @since 20
+ */
+
+/**
+ * @file tee_client_type.h
+ *
+ * @brief Defines basic data types and data structures.
+ *
+ * @library libteec.so
+ * @kit TEEKit
+ * @syscap SystemCapability.Tee.TeeClient
+ * @since 20
+ */
+
+#ifndef TEE_CLIENT_TYPE_H
+#define TEE_CLIENT_TYPE_H
+
+#include
+#include
+#include
+#include
+#include
+#include "tee_client_constants.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines the linked list type.
+ *
+ * @since 20
+ */
+struct ListNode {
+ /** Pointer to the next node in the list. */
+ struct ListNode *next;
+ /** Pointer to the previous node in the list. */
+ struct ListNode *prev;
+};
+
+/**
+ * @brief Defines the return values.
+ *
+ * @since 20
+ */
+typedef enum TEEC_ReturnCode TEEC_Result;
+
+/**
+ * @brief Defines the universally unique identifier (UUID) as defined in RFC4122 [2].
+ * The UUIDs are used to identify TAs.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** The low part of the time field. */
+ uint32_t timeLow;
+ /** The middle part of the time field. */
+ uint16_t timeMid;
+ /** The high part of the time field and version information. */
+ uint16_t timeHiAndVersion;
+ /** The clock sequence and node field (8 bytes). */
+ uint8_t clockSeqAndNode[8];
+} TEEC_UUID;
+
+/**
+ * @brief Defines the context, a logical connection between a CA and a TEE.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** File descriptor for the TA. */
+ int32_t fd;
+ /** Path to the Trusted Application (TA). */
+ uint8_t *ta_path;
+ /** Linked list of sessions associated with the context. */
+ struct ListNode session_list;
+ /** Linked list of shared memory regions associated with the context. */
+ struct ListNode shrd_mem_list;
+ /**
+ * @brief Union for either shared buffer or implementation data.
+ *
+ * @since 20
+ */
+ union {
+ /**
+ * @brief Shared buffer used for data exchange and synchronization.
+ *
+ * @since 20
+ */
+ struct {
+ /** Pointer to the shared buffer. */
+ void *buffer;
+ /** Semaphore for synchronization of the shared buffer. */
+ sem_t buffer_barrier;
+ } share_buffer;
+ /** Implementation-specific data. */
+ uint64_t imp;
+ };
+} TEEC_Context;
+
+/**
+ * @brief Defines the session between a CA and a TA.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Session ID for the session. */
+ uint32_t session_id;
+ /** UUID representing the service associated with the session. */
+ TEEC_UUID service_id;
+ /** The number of operations associated with the session. */
+ uint32_t ops_cnt;
+ /**
+ * @brief Union for either a linked list head or implementation-specific data.
+ *
+ * @since 20
+ */
+ union {
+ /** Linked list head for session-related data. */
+ struct ListNode head;
+ /** Implementation-specific data. */
+ uint64_t imp;
+ };
+ /** Pointer to the TEEC context associated with the session. */
+ TEEC_Context *context;
+} TEEC_Session;
+
+/**
+ * @brief Defines a shared memory block, which can be registered or allocated.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Pointer to the shared memory buffer. */
+ void *buffer;
+ /** Size of the shared memory buffer. */
+ uint32_t size;
+ /** Flags associated with the shared memory. */
+ uint32_t flags;
+ /** The number of operations associated with the shared memory. */
+ uint32_t ops_cnt;
+ /** Indicates whether the memory has been allocated. */
+ bool is_allocated;
+ /**
+ * @brief Union for either a linked list head or implementation-specific data.
+ *
+ * @since 20
+ */
+ union {
+ /** Linked list head for shared memory-related data. */
+ struct ListNode head;
+ /** Implementation-specific data. */
+ void* imp;
+ };
+ /** Pointer to the TEEC context associated with the shared memory. */
+ TEEC_Context *context;
+} TEEC_SharedMemory;
+
+/**
+ * @brief Defines a pointer to a temporary buffer.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Pointer to the temporary memory buffer. */
+ void *buffer;
+ /** Size of the temporary memory buffer. */
+ uint32_t size;
+} TEEC_TempMemoryReference;
+
+/**
+ * @brief Defines a pointer to the shared memory that is registered or allocated.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** Pointer to the parent shared memory. */
+ TEEC_SharedMemory *parent;
+ /** Size of the registered memory reference. */
+ uint32_t size;
+ /** Offset within the parent shared memory. */
+ uint32_t offset;
+} TEEC_RegisteredMemoryReference;
+
+/**
+ * @brief Describes a parameter that carries small raw data passed by value.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** The first value. */
+ uint32_t a;
+ /** The second value. */
+ uint32_t b;
+} TEEC_Value;
+
+/**
+ * @brief Describes the size and handle of the ION memory.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** File descriptor for the shared ion memory. */
+ int ion_share_fd;
+ /** Size of the ion memory. */
+ uint32_t ion_size;
+} TEEC_IonReference;
+
+/**
+ * @brief Defines a parameter of {@code TEEC_Operation}.
+ *
+ * @since 20
+ */
+typedef union {
+ /** Temporary memory reference. */
+ TEEC_TempMemoryReference tmpref;
+ /** Registered memory reference. */
+ TEEC_RegisteredMemoryReference memref;
+ /** A value containing two 32-bit values. */
+ TEEC_Value value;
+ /** Ion memory reference. */
+ TEEC_IonReference ionref;
+} TEEC_Parameter;
+
+/**
+ * @brief Defines the parameters for the Trusted User Interface (TUI).
+ *
+ * @since 20
+ */
+typedef struct {
+ /** TUI event type. */
+ uint32_t event_type;
+ /** Return value, is keycode if TUI event is getKeycode. */
+ uint32_t value;
+ /** Notch size of the screen for the TUI. */
+ uint32_t notch;
+ /** Width of the foldable screen for the TUI. */
+ uint32_t width;
+ /** Height of the foldable screen for the TUI. */
+ uint32_t height;
+ /** State of the foldable screen for the TUI. */
+ uint32_t fold_state;
+ /** One state of the folded screen for the TUI. */
+ uint32_t display_state;
+ /** Real width of the mobile device for the TUI. */
+ uint32_t phy_width;
+ /** Real height of the mobile device for the TUI. */
+ uint32_t phy_height;
+} TEEC_TUI_Parameter;
+
+/**
+ * @brief Defines the parameters for opening a session or sending a command.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** The value 0 means to cancel the command, and other values mean to execute the command. */
+ uint32_t started;
+ /** Use {@code TEEC_PARAM_TYPES} to create this parameter. */
+ uint32_t paramTypes;
+ /** Array of parameters for the operation. */
+ TEEC_Parameter params[TEEC_PARAM_NUM];
+ /** Pointer to the session associated with the operation. */
+ TEEC_Session *session;
+ /** Flag indicating whether the operation is canceled. */
+ bool cancel_flag;
+} TEEC_Operation;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
\ No newline at end of file
diff --git a/TEEKit/libteec.ndk.json b/TEEKit/libteec.ndk.json
new file mode 100644
index 0000000000000000000000000000000000000000..68c534dd68ec47a01a3ea8d9479c13db8f569e83
--- /dev/null
+++ b/TEEKit/libteec.ndk.json
@@ -0,0 +1,38 @@
+[
+ {
+ "first_introduced": "20",
+ "name": "TEEC_InitializeContext"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_FinalizeContext"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_OpenSession"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_CloseSession"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TTEEC_InvokeCommand"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_RegisterSharedMemory"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_AllocateSharedMemory"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_ReleaseSharedMemory"
+ },
+ {
+ "first_introduced": "20",
+ "name": "TEEC_RequestCancellation"
+ }
+]
\ No newline at end of file
diff --git a/ability/ability_runtime/child_process/libchild_process.ndk.json b/ability/ability_runtime/child_process/libchild_process.ndk.json
index d812f5a08bc7ac6471ed7a2a96290acdc0faec5e..60cf2b93d475ae34e9eea9c1b247b2e625e6643a 100644
--- a/ability/ability_runtime/child_process/libchild_process.ndk.json
+++ b/ability/ability_runtime/child_process/libchild_process.ndk.json
@@ -8,7 +8,39 @@
"name": "OH_Ability_StartNativeChildProcess"
},
{
- "first_introduced": "16",
+ "first_introduced": "17",
"name": "OH_Ability_GetCurrentChildProcessArgs"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_RegisterNativeChildProcessExitCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_UnregisterNativeChildProcessExitCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_CreateChildProcessConfigs"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_DestroyChildProcessConfigs"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_ChildProcessConfigs_SetIsolationMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_ChildProcessConfigs_SetProcessName"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_CreateNativeChildProcessWithConfigs"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Ability_StartNativeChildProcessWithConfigs"
}
-]
\ No newline at end of file
+]
diff --git a/ability/ability_runtime/child_process/native_child_process.h b/ability/ability_runtime/child_process/native_child_process.h
index 2837104000d588409635bf594b085559ed1da42c..ce59adf740bd17bd4832cc76d0e6ef13fddae81c 100644
--- a/ability/ability_runtime/child_process/native_child_process.h
+++ b/ability/ability_runtime/child_process/native_child_process.h
@@ -111,8 +111,85 @@ typedef enum Ability_NativeChildProcess_ErrCode {
* An invalid IPC object pointer may be returned.
*/
NCP_ERR_CONNECTION_FAILED = 16010008,
+
+ /**
+ * @error The callback does not exist; it may not have been registered or has already been unregistered.
+ * @since 20
+ */
+ NCP_ERR_CALLBACK_NOT_EXIST = 16010009,
} Ability_NativeChildProcess_ErrCode;
+/**
+ * @brief Enumerates the isolation modes used by the native child process module.
+ * @since 13
+ */
+typedef enum NativeChildProcess_IsolationMode {
+ /**
+ * Normal isolation mode, parent process shares the same sandbox or internet with the child process.
+ */
+ NCP_ISOLATION_MODE_NORMAL = 0,
+
+ /**
+ * Isolated mode, parent process does not share the same sandbox or internet with the child process.
+ */
+ NCP_ISOLATION_MODE_ISOLATED = 1,
+} NativeChildProcess_IsolationMode;
+
+/**
+ * @brief Defines a struct for the child process configs.
+ * @since 20
+ */
+typedef struct Ability_ChildProcessConfigs Ability_ChildProcessConfigs;
+
+/**
+ * @brief Creates a new child process configs object.
+ * The caller is responsible for destroying the returned object by calling
+ * {@link OH_Ability_DestroyChildProcessConfigs} to avoid memory leaks.
+ * @return Returns a pointer to the newly created {@link Ability_ChildProcessConfigs} object if successful.
+ * Returns nullptr if an internal error occurs or memory allocation fails.
+ * @since 20
+ */
+Ability_ChildProcessConfigs* OH_Ability_CreateChildProcessConfigs();
+
+/**
+ * @brief Destroys a child process configs object and releases associated rescources.
+ *
+ * @param configs Pointer to the child process configs object to be destroyed.
+ * After this call, the pointer becomes invalid and must not be used.
+ * Passing nullptr is allowed and will be ignored.
+ * @return Returns {@link NCP_NO_ERROR} if the operation is successful or if the input is nullptr.
+ * Returns {@link NCP_NO_ERR_INVALID_PARAM} if the input parameters are invalid.
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_DestroyChildProcessConfigs(Ability_ChildProcessConfigs* configs);
+
+/**
+ * @brief Sets the isolation mode for the specified child process configs.
+ * The isolationMode only takes effect in {@link OH_Ability_StartNativeChildProcessWithConfigs}.
+ *
+ * @param configs Pointer to the child process configs object. Must not be nullptr.
+ * @param isolationMode The isolation mode to set. See {@link NativeChildProcess_IsolationMode} for details.
+ * @return Returns {@link NCP_NO_ERROR} if the isolation mode is set successful.
+ * Returns {@link NCP_NO_ERR_INVALID_PARAM} if the input parameters are invalid.
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_ChildProcessConfigs_SetIsolationMode(
+ Ability_ChildProcessConfigs* configs, NativeChildProcess_IsolationMode isolationMode);
+
+/**
+ * @brief Sets the process name for the specified child process configs.
+ *
+ * @param configs Pointer to the child process configs object. Must not be nullptr.
+ * @param processName The process name to set.
+ * Must be a non-empty string containing only letters, digits, or underscores.
+ * Maximum length is 64 characters.
+ * The name ultimately assigned to the process is {bundleName}:{processName}.
+ * @return Returns {@link NCP_NO_ERROR} if the process name is set successful.
+ * Returns {@link NCP_NO_ERR_INVALID_PARAM} if the input parameters are invalid.
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_ChildProcessConfigs_SetProcessName(Ability_ChildProcessConfigs* configs,
+ const char* processName);
/**
* @brief Defines a callback function for notifying the child process startup result.
@@ -173,6 +250,48 @@ typedef void (*OH_Ability_OnNativeChildProcessStarted)(int errCode, OHIPCRemoteP
int OH_Ability_CreateNativeChildProcess(const char* libName,
OH_Ability_OnNativeChildProcessStarted onProcessStarted);
+/**
+ * @brief Creates a child process, loads the specified dynamic library file, and returns the startup result
+ * asynchronously through a callback parameter.
+ * The callback notification is an independent thread. When implementing the callback function,
+ * pay attention to thread synchronization and do not perform time-consuming operations to avoid long-time blocking.
+ *
+ * The dynamic library specified must implement and export the following functions:
+ * 1. OHIPCRemoteStub* NativeChildProcess_OnConnect()
+ * 2. void NativeChildProcess_MainProc()
+ *
+ * The processing logic sequence is shown in the following pseudocode:
+ * Main process:
+ * 1. OH_Ability_CreateNativeChildProcessWithConfigs(libName, configs, onProcessStartedCallback)
+ * Child process:
+ * 2. dlopen(libName)
+ * 3. dlsym("NativeChildProcess_OnConnect")
+ * 4. dlsym("NativeChildProcess_MainProc")
+ * 5. ipcRemote = NativeChildProcess_OnConnect()
+ * 6. NativeChildProcess_MainProc()
+ * Main process:
+ * 7. onProcessStartedCallback(ipcRemote, errCode)
+ * Child process:
+ * 8. The child process exits after the NativeChildProcess_MainProc() function is returned.
+ *
+ * @param libName Name of the dynamic library file loaded in the child process. The value cannot be nullptr.
+ * @param configs Pointer to the child process configs object. The value cannot be nullptr.
+ * @param onProcessStarted Pointer to the callback function for notifying the child process startup result.
+ * The value cannot be nullptr. For details, see {@link OH_Ability_OnNativeChildProcessStarted}.
+ * @return Returns {@link NCP_NO_ERROR} if the call is successful, but the actual startup result is notified by the
+ * callback function.
+ * Returns {@link NCP_ERR_INVALID_PARAM} if the dynamic library name or callback function pointer is invalid.
+ * Returns {@link NCP_ERR_NOT_SUPPORTED} if the device does not support the creation of native child processes.
+ * Returns {@link NCP_ERR_MULTI_PROCESS_DISABLED} if the multi-process mode is disabled on the device.
+ * Returns {@link NCP_ERR_ALREADY_IN_CHILD} if it is not allowed to create another child process in the child process.
+ * Returns {@link NCP_ERR_MAX_CHILD_PROCESSES_REACHED} if the maximum number of native child processes is reached.
+ * For details, see {@link Ability_NativeChildProcess_ErrCode}.
+ * @see OH_Ability_OnNativeChildProcessStarted
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_CreateNativeChildProcessWithConfigs(const char* libName,
+ Ability_ChildProcessConfigs* configs, OH_Ability_OnNativeChildProcessStarted onProcessStarted);
+
/**
* @brief The info of the file descriptors passed to child process.
* @since 13
@@ -199,22 +318,6 @@ typedef struct NativeChildProcess_FdList {
struct NativeChildProcess_Fd* head;
} NativeChildProcess_FdList;
-/**
- * @brief Enumerates the isolation modes used by the native child process module.
- * @since 13
- */
-typedef enum NativeChildProcess_IsolationMode {
- /**
- * Normal isolation mode, parent process shares the same sandbox or internet with the child process.
- */
- NCP_ISOLATION_MODE_NORMAL = 0,
-
- /**
- * Isolated mode, parent process does not share the same sandbox or internet with the child process.
- */
- NCP_ISOLATION_MODE_ISOLATED = 1,
-} NativeChildProcess_IsolationMode;
-
/**
* @brief The options used by the child process.
* @since 13
@@ -279,15 +382,88 @@ Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcess(
const char* entry, NativeChildProcess_Args args,
NativeChildProcess_Options options, int32_t *pid);
+/**
+ * @brief Starts a child process, loads the specified dynamic library file.
+ *
+ * The dynamic library specified must implement a function with NativeChildProcess_Args as a
+ * pamameter(function name can be customized), and export the function, such as:
+ * 1. void Main(NativeChildProcess_Args args);
+ *
+ * The processing logic sequence is shown in the following pseudocode:
+ * Main process:
+ * 1. OH_Ability_StartNativeChildProcessWithConfigs(entryPoint, args, configs, &pid)
+ * Child process:
+ * 2. dlopen(libName)
+ * 3. dlsym("Main")
+ * 4. Main(args)
+ * 5. The child process exits after the Main(args) function is returned
+ *
+ * @param entry Dynamic library and entry function loaded in child process, such as "libEntry.so:Main".
+ * The value cannot be nullptr.
+ * @param args The arguments passed to the child process.
+ * For details, see {@link NativeChildProcess_Args}.
+ * @param configs Pointer to the child process configs object. The value cannot be null.
+ * For details, see {@link Ability_ChildProcessConfigs}.
+ * @param pid The started child process id.
+ * @return Returns {@link NCP_NO_ERROR} if the call is successful.
+ * Returns {@link NCP_ERR_INVALID_PARAM} if the dynamic library name or callback function pointer is invalid.
+ * Returns {@link NCP_ERR_NOT_SUPPORTED} if the device does not support the creation of native child processes.
+ * Returns {@link NCP_ERR_ALREADY_IN_CHILD} if it is not allowed to create another child process in the child process.
+ * Returns {@link NCP_ERR_MAX_CHILD_PROCESSES_REACHED} if the maximum number of native child processes is reached.
+ * For details, see {@link Ability_NativeChildProcess_ErrCode}.
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcessWithConfigs(
+ const char* entry, NativeChildProcess_Args args, Ability_ChildProcessConfigs* configs, int32_t *pid);
+
/**
* @brief Child process get self NativeChildProcess_Args.
*
* @return Returns a pointer to the arguments passed to current child process.\n
* For details, see {@link NativeChildProcess_Args}.
- * @since 16
+ * @since 17
*/
NativeChildProcess_Args* OH_Ability_GetCurrentChildProcessArgs();
+/**
+ * @brief Define a callback function to handle the exit of a native child process.
+ *
+ * @param pid The pid of the exited native child process.
+ * @param signal The signal of the exited native child process.
+ * @since 20
+ */
+typedef void (*OH_Ability_OnNativeChildProcessExit)(int32_t pid, int32_t signal);
+
+/**
+ * @brief Register a native child process exit callback.
+ * Registering the same callback repeatedly will only keep one.
+ *
+ * @param onProcessExit Pointer to the callback function to handle the exit of a native child process.
+ * For details, see {@link OH_Ability_OnNativeChildProcessExit}.
+ * @return Returns {@link NCP_NO_ERROR} if the call is successful.
+ * Returns {@link NCP_ERR_INVALID_PARAM} if the param is invalid.
+ * Returns {@link NCP_ERR_INTERNAL} if internal error occurs.
+ * For details, see {@link Ability_NativeChildProcess_ErrCode}.
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_RegisterNativeChildProcessExitCallback(
+ OH_Ability_OnNativeChildProcessExit onProcessExit);
+
+/**
+ * @brief Unregister a native child process exit callback.
+ *
+ * @param onProcessExit Pointer to the callback function to handle the exit of a native child process.
+ * For details, see {@link OH_Ability_OnNativeChildProcessExit}.
+ * @return Returns {@link NCP_NO_ERROR} if the call is successful.
+ * Returns {@link NCP_ERR_INVALID_PARAM} if the param is invalid.
+ * Returns {@link NCP_ERR_INTERNAL} if internal error occurs.
+ * Returns {@link NCP_ERR_CALLBACK_NOT_EXIST} if the callback is not exist.
+ * For details, see {@link Ability_NativeChildProcess_ErrCode}.
+ * @since 20
+ */
+Ability_NativeChildProcess_ErrCode OH_Ability_UnregisterNativeChildProcessExitCallback(
+ OH_Ability_OnNativeChildProcessExit onProcessExit);
+
#ifdef __cplusplus
} // extern "C"
#endif
diff --git a/ai/neural_network_runtime/BUILD.gn b/ai/neural_network_runtime/BUILD.gn
index 66b4fa143d26723c5859c3d30f14adc5965bbaff..25323444ca49b4df78a5e0a76d807100a10a71b2 100644
--- a/ai/neural_network_runtime/BUILD.gn
+++ b/ai/neural_network_runtime/BUILD.gn
@@ -20,8 +20,8 @@ ohos_ndk_library("libneural_network_core_ndk") {
min_compact_version = "11"
system_capability = "SystemCapability.AI.NeuralNetworkRuntime"
system_capability_headers = [
- "neural_network_core.h",
- "neural_network_runtime_type.h",
+ "neural_network_runtime/neural_network_core.h",
+ "neural_network_runtime/neural_network_runtime_type.h",
]
}
@@ -32,8 +32,8 @@ ohos_ndk_library("libneural_network_runtime_ndk") {
min_compact_version = "9"
system_capability = "SystemCapability.AI.NeuralNetworkRuntime"
system_capability_headers = [
- "neural_network_runtime.h",
- "neural_network_runtime_type.h",
+ "neural_network_runtime/neural_network_runtime.h",
+ "neural_network_runtime/neural_network_runtime_type.h",
]
}
diff --git a/ai/neural_network_runtime/neural_network_core.h b/ai/neural_network_runtime/neural_network_core.h
index c3485d5c59c119bc6da15af8cb2c79f3e26d4dfe..f70a4e2c1a2e00103d3adaacb14caec909464135 100644
--- a/ai/neural_network_runtime/neural_network_core.h
+++ b/ai/neural_network_runtime/neural_network_core.h
@@ -34,7 +34,7 @@
* include "neural_network_runtime/neural_network_core.h"
* @library libneural_network_core.so
* @kit NeuralNetworkRuntimeKit
- * @syscap SystemCapability.Ai.NeuralNetworkRuntime
+ * @syscap SystemCapability.AI.NeuralNetworkRuntime
* @since 11
* @version 1.0
*/
diff --git a/ai/neural_network_runtime/neural_network_runtime.h b/ai/neural_network_runtime/neural_network_runtime.h
index a92a27d830ea5e6bcdc7f35aa8843cd040300fd9..226f48e8c8c063e00eb28cd50aba2a105090579f 100644
--- a/ai/neural_network_runtime/neural_network_runtime.h
+++ b/ai/neural_network_runtime/neural_network_runtime.h
@@ -34,7 +34,7 @@
* include "neural_network_runtime/neural_network_runtime.h"
* @library libneural_network_runtime.so
* @kit NeuralNetworkRuntimeKit
- * @syscap SystemCapability.Ai.NeuralNetworkRuntime
+ * @syscap SystemCapability.AI.NeuralNetworkRuntime
* @since 9
* @version 2.0
*/
diff --git a/ai/neural_network_runtime/neural_network_runtime_type.h b/ai/neural_network_runtime/neural_network_runtime_type.h
index 5c003b0a850080af5cc11974cac90ed914028b64..b5c5700f1a4b3cb8d4428ea40ffc7668f53376a9 100644
--- a/ai/neural_network_runtime/neural_network_runtime_type.h
+++ b/ai/neural_network_runtime/neural_network_runtime_type.h
@@ -31,7 +31,7 @@
* include "neural_network_runtime/neural_network_runtime_type.h"
* @library libneural_network_runtime.so
* @kit NeuralNetworkRuntimeKit
- * @syscap SystemCapability.Ai.NeuralNetworkRuntime
+ * @syscap SystemCapability.AI.NeuralNetworkRuntime
* @since 9
* @version 2.0
*/
diff --git a/ark_runtime/jsvm/jsvm.h b/ark_runtime/jsvm/jsvm.h
index 06f4ce767cee3e901a6101e9491a48d11a278d97..d211f329fc60b83e87e3558600f402c6fc38f061 100644
--- a/ark_runtime/jsvm/jsvm.h
+++ b/ark_runtime/jsvm/jsvm.h
@@ -3567,6 +3567,20 @@ JSVM_EXTERN JSVM_Status OH_JSVM_TraceStop(JSVM_OutputStream stream, void* stream
JSVM_EXTERN JSVM_Status OH_JSVM_SetHandlerForOOMError(JSVM_VM vm,
JSVM_HandlerForOOMError handler);
+/**
+ * @brief This API is used to enable/disable the given debug option for a certain JSVM_Env.
+ *
+ * @param env The environment that the API is invoked under.
+ * @param debugOption The debug option to be changed.
+ * @param isEnabled Whether to enable or disable the debug option.
+ * @return Returns JSVM funtions result code.
+ * {@link JSVM_OK } if the function executed successfully.\n
+ * {@link JSVM_INVALID_ARG } if env is NULL.\n
+ *
+ * @since 20
+ */
+JSVM_EXTERN JSVM_Status OH_JSVM_SetDebugOption(JSVM_Env env, JSVM_DebugOption debugOption, bool isEnabled);
+
/**
* @brief Set Handler For Fatal Error. If this function is invoked repeatedly,
* only the last time takes effect. When handler is null, the previous setting is canceled.
diff --git a/ark_runtime/jsvm/jsvm_types.h b/ark_runtime/jsvm/jsvm_types.h
index 999214b1ad1f53a5be04f435ac360ad842bba08d..7971438d3d88dbaf3357de8a388d40dab4935485 100644
--- a/ark_runtime/jsvm/jsvm_types.h
+++ b/ark_runtime/jsvm/jsvm_types.h
@@ -332,7 +332,7 @@ typedef enum {
*/
JSVM_INVALID_TYPE,
/** jit mode expected status.
- * @since 15
+ * @since 18
*/
JSVM_JIT_MODE_EXPECTED,
} JSVM_Status;
@@ -1015,6 +1015,16 @@ typedef void(JSVM_CDECL* JSVM_HandlerForGC)(JSVM_VM vm,
* @since 18
*/
typedef struct JSVM_Data__* JSVM_Data;
+
+/**
+ * @brief Debug options.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Scope check. */
+ JSVM_SCOPE_CHECK,
+} JSVM_DebugOption;
/** @} */
#endif /* ARK_RUNTIME_JSVM_JSVM_TYPE_H */
diff --git a/arkui/ace_engine/native/BUILD.gn b/arkui/ace_engine/native/BUILD.gn
index b48b73ada3d60b5a9903bbb79167cbdd0c55399d..f95643daaba96ced38373ce25f0f802bf6d2d131 100644
--- a/arkui/ace_engine/native/BUILD.gn
+++ b/arkui/ace_engine/native/BUILD.gn
@@ -37,6 +37,7 @@ if (!is_arkui_x) {
"native_key_event.h",
"native_node.h",
"native_node_napi.h",
+ "native_render.h",
"native_type.h",
"styled_string.h",
"ui_input_event.h",
@@ -47,5 +48,25 @@ if (!is_arkui_x) {
ndk_description_file = "./libace.ndk.json"
min_compact_version = "7"
output_name = "ace_ndk"
+ system_capability = "SystemCapability.ArkUI.ArkUI.Full"
+ system_capability_headers = [
+ "arkui/drag_and_drop.h",
+ "arkui/drawable_descriptor.h",
+ "arkui/native_animate.h",
+ "arkui/native_dialog.h",
+ "arkui/native_gesture.h",
+ "arkui/native_interface.h",
+ "arkui/native_interface_accessibility.h",
+ "arkui/native_interface_focus.h",
+ "arkui/native_key_event.h",
+ "arkui/native_node.h",
+ "arkui/native_node_napi.h",
+ "arkui/native_render.h",
+ "arkui/native_type.h",
+ "arkui/styled_string.h",
+ "arkui/ui_input_event.h",
+ "ace/xcomponent/native_interface_xcomponent.h",
+ "ace/xcomponent/native_xcomponent_key_event.h",
+ ]
}
}
diff --git a/arkui/ace_engine/native/drag_and_drop.h b/arkui/ace_engine/native/drag_and_drop.h
index 38e49caad1f19bd895f11cf455359a9c4ea2cf44..15f4de6214044b0b2438c78488e6640e01ba0218 100644
--- a/arkui/ace_engine/native/drag_and_drop.h
+++ b/arkui/ace_engine/native/drag_and_drop.h
@@ -244,6 +244,28 @@ int32_t OH_ArkUI_DragEvent_SetDragResult(ArkUI_DragEvent* event, ArkUI_DragResul
*/
int32_t OH_ArkUI_DragEvent_SetData(ArkUI_DragEvent* event, OH_UdmfData* data);
+/**
+* @brief Use this method to provide a data loading parameter to the system instead of providing
+* a complete data object directly. When the user drags and drops to the target application,
+* the system will use this parameter to request data from you. This can greatly improve the efficiency
+* of the dragging operation for large amounts of data and the effectiveness of the drop data handling
+* in the target application.
+*
+* This method should be always prioritized over using {@link OH_ArkUI_DragEvent_SetData}.
+* See {@link OH_UdmfDataLoadParams_Create} in udmf.h for how to create and prepare the data loading parameter.
+*
+* [Note]: Please be awared this method is conflict with {@link OH_ArkUI_DragEvent_SetData}, and the system always use
+* the last called method as the final result.
+*
+* @param event Indicates the pointer to an ArkUI_DragEvent object.
+* @param dataLoadParams Indicates the data loading parameters which will be used when dropping.
+* @return Returns the result code.
+* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+* @since 20
+*/
+ArkUI_ErrorCode OH_ArkUI_DragEvent_SetDataLoadParams(ArkUI_DragEvent* event, OH_UdmfDataLoadParams* dataLoadParams);
+
/**
* @brief Obtains the default drag data from a drag event.
*
@@ -391,6 +413,26 @@ float OH_ArkUI_DragEvent_GetTouchPointXToDisplay(ArkUI_DragEvent* event);
*/
float OH_ArkUI_DragEvent_GetTouchPointYToDisplay(ArkUI_DragEvent* event);
+/**
+ * @brief Obtains the global display X coordinate of the touch point from an ArkUI_DragEvent object.
+ *
+ * @param event Pointer to an ArkUI_DragEvent object.
+ * @return float Global display X coordinate of the touch point, in px.
+ * If the input parameter is invalid, the default value 0 is returned.
+ * @since 20
+ */
+float OH_ArkUI_DragEvent_GetTouchPointXToGlobalDisplay(ArkUI_DragEvent* event);
+
+/**
+ * @brief Obtains the global display Y coordinate of the touch point from an ArkUI_DragEvent object.
+ *
+ * @param event Pointer to an ArkUI_DragEvent object.
+ * @return float Global display Y coordinate of the touch point, in px.
+ * If the input parameter is invalid, the default value 0 is returned.
+ * @since 20
+ */
+float OH_ArkUI_DragEvent_GetTouchPointYToGlobalDisplay(ArkUI_DragEvent* event);
+
/**
* @brief Obtains the dragging velocity along the x-axis.
*
@@ -425,7 +467,7 @@ float OH_ArkUI_DragEvent_GetVelocity(ArkUI_DragEvent* event);
* @brief Obtains the pressed status of modifier keys from a drag event.
*
* @param event Indicates the pointer to an ArkUI_DragEvent object.
- * @param keys Indicates the returned combination of modifier keys that are currently pressed.
+ * @param keys {@link ArkUI_ModifierKeyName} Indicates the returned combination of modifier keys that are currently pressed.
* The application can determine the pressed modifier keys through bitwise operations.
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
@@ -434,6 +476,18 @@ float OH_ArkUI_DragEvent_GetVelocity(ArkUI_DragEvent* event);
*/
int32_t OH_ArkUI_DragEvent_GetModifierKeyStates(ArkUI_DragEvent* event, uint64_t* keys);
+/**
+ * @brief Obtains the display ID of the screen for the specified drag event.
+ *
+ * @param event Pointer to an ArkUI_DragEvent object.
+ * @param displayId Display ID of the event occurs in.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_DragEvent_GetDisplayId(ArkUI_DragEvent *event, int32_t *displayId);
+
/**
* @brief Request to start the data sync process with the sync option.
*
@@ -559,7 +613,7 @@ int32_t OH_ArkUI_AllowNodeAllDropDataTypes(ArkUI_NodeHandle node);
* @brief Sets whether the specified component is draggable.
*
* @param node Indicates the pointer to a component node.
- * @param bool Indicates whether the component is draggable.
+ * @param enabled Indicates whether the component is draggable.
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
@@ -773,6 +827,29 @@ int32_t OH_ArkUI_DragAction_SetTouchPointY(ArkUI_DragAction* dragAction, float y
*/
int32_t OH_ArkUI_DragAction_SetData(ArkUI_DragAction* dragAction, OH_UdmfData* data);
+/**
+ * @brief Use this method to provide a data loading parameter to the system instead of providing
+ * a complete data object directly. When the user drags and drops to the target application,
+ * the system will use this parameter to request data from you. This can greatly improve the efficiency
+ * of the dragging operation for large amounts of data and the effectiveness of the drop data handling
+ * in the target application.
+ *
+ * It's recommanded to use this method instead of using {@link OH_ArkUI_DragAction_SetData}.
+ * See {@link OH_UdmfDataLoadParams_Create} in udmf.h for how to create and prepare the data loading parameter.
+ *
+ * [Note]: Please be awared this method is conflict with {@link OH_ArkUI_DragAction_SetData}, and the system always use
+ * the last called method as the final result.
+ *
+ * @param dragAction Indicates the pointer to the target drag action object.
+ * @param dataLoadParams Indicates the data loading parameters which will be used when dropping.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_DragAction_SetDataLoadParams(ArkUI_DragAction* dragAction,
+ OH_UdmfDataLoadParams* dataLoadParams);
+
/**
* @brief Sets an ArkUI_DragPreviewOption object for the specified drag action object.
*
@@ -855,7 +932,7 @@ int32_t OH_ArkUI_StartDrag(ArkUI_DragAction* dragAction);
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
* Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_DragEvent_RequestDragEndPending(ArkUI_DragEvent* event, int32_t* requestIdentify);
@@ -869,7 +946,8 @@ int32_t OH_ArkUI_DragEvent_RequestDragEndPending(ArkUI_DragEvent* event, int32_t
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing.
+ * @since 19
*/
int32_t OH_ArkUI_NotifyDragResult(int32_t requestIdentify, ArkUI_DragResult result);
@@ -880,10 +958,65 @@ int32_t OH_ArkUI_NotifyDragResult(int32_t requestIdentify, ArkUI_DragResult resu
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing.
+ * @since 19
*/
int32_t OH_ArkUI_NotifyDragEndPendingDone(int32_t requestIdentify);
+/**
+ * @brief Use this method to obtain the application bundle name of the drag-and-drop initiator, you need
+ * to pass a character array for receiving the string and explicitly specify the array length. It is
+ * recommended that the array length be no less than 128 characters. If the length cannot accommodate
+ * the actual bundle name length, the ERROR result will be returned.
+ *
+ * @param event Indicates the pointer to an ArkUI_DragEvent object.
+ * @param bundleName A string array used to receive the source application's bundle name.
+ * @param length Use this to explicitly specify the length of the incoming string array.
+ * It is recommended to be bigger than 128.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_DragEvent_GetDragSource(ArkUI_DragEvent* event, char *bundleName, int32_t length);
+
+/**
+ * @brief Call this method to determine whether the current drag and drop operation is cross-device.
+ *
+ * @param event Indicates the pointer to an ArkUI_DragEvent object.
+ * @param isRemote Boolean pointer to receive the result.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_DragEvent_IsRemote(ArkUI_DragEvent* event, bool* isRemote);
+
+/**
+ * @brief Sets whether to enable the display of a disallow status icon.
+ *
+ * Typically, when a component can receive or process data dragged by the user, or when it declares to the
+ * system that data should be processed in COPY way by setting ARKUI_DROP_OPERATION_COPY through
+ * {@link OH_ArkUI_DragEvent_SetSuggestedDropOperation}, the system will display
+ * a plus sign together with the data number on the upper-left corner of the dragged object; if setting
+ * ARKUI_DROP_OPERATION_MOVE to the system to declare that data should be processed in CUT way, the system will only
+ * display the data number on the upper-left corner of the dragged object.
+ *
+ * In some cases, when the system determines or the component explicitly declares that it cannot handle the
+ * data that the user is dragging, the system displays a badge icon in the same way as it does for DragBehavior.MOVE.
+ * So if you want to show the more clearly status, you can call this method on the UI instance in advance to force
+ * the system to display a clear prohibition icon on the upper left corner in such cases, and the user can clearly
+ * know that data cannot be dropped here.
+ *
+ * @param uiContext Pointer to a UI instance.
+ * @param enabled Whether to enable the display of the disallow badge icon.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_EnableDropDisallowedBadge(ArkUI_ContextHandle uiContext, bool enabled);
+
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json
index c80fc0750649e90dbc180d82275ce63ba87c42dc..3c739a283d083bc3ec54e71cbce89094a70bce10 100644
--- a/arkui/ace_engine/native/libace.ndk.json
+++ b/arkui/ace_engine/native/libace.ndk.json
@@ -252,15 +252,15 @@
"name": "OH_ArkUI_GestureInterruptInfo_GetSystemRecognizerType"
},
{
- "first_introduced": "18",
+ "first_introduced": "15",
"name": "OH_ArkUI_GestureInterruptInfo_GetTouchRecognizers"
},
{
- "first_introduced": "18",
+ "first_introduced": "15",
"name": "OH_ArkUI_TouchRecognizer_GetNodeHandle"
},
{
- "first_introduced": "18",
+ "first_introduced": "15",
"name": "OH_ArkUI_TouchRecognizer_CancelTouch"
},
{
@@ -508,7 +508,7 @@
"name": "OH_ArkUI_PointerEvent_GetTiltY"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_PointerEvent_GetRollAngle"
},
{
@@ -1160,171 +1160,171 @@
"name": "OH_ArkUI_SwiperIndicator_GetMaxDisplayCount"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperIndicator_SetSpace"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperIndicator_GetSpace"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetStartPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetStartPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetTopPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetTopPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetEndPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetEndPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetBottomPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetBottomPosition"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetFontColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetFontColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetFontSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetFontSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetFontWeight"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetFontWeight"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetSelectedFontWeight"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_Destroy"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_SetShowBackground"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_GetShowBackground"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_SetBackgroundSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_GetBackgroundSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_SetBackgroundColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_GetBackgroundColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_SetArrowSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_GetArrowSize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_SetArrowColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_GetArrowColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SwiperArrowStyle_Destroy"
},
{
@@ -2239,6 +2239,10 @@
"first_introduced": "12",
"name": "OH_ArkUI_DragEvent_GetModifierKeyStates"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragEvent_GetDisplayId"
+ },
{
"first_introduced": "12",
"name": "OH_ArkUI_SetDragEventStrictReportWithNode"
@@ -2359,6 +2363,30 @@
"first_introduced": "12",
"name": "OH_ArkUI_StartDrag"
},
+ {
+ "first_introduced": "12",
+ "name": "OH_ArkUI_RegisterSystemColorModeChangeEvent"
+ },
+ {
+ "first_introduced": "12",
+ "name": "OH_ArkUI_UnregisterSystemColorModeChangeEvent"
+ },
+ {
+ "first_introduced": "12",
+ "name": "OH_ArkUI_RegisterSystemFontStyleChangeEvent"
+ },
+ {
+ "first_introduced": "12",
+ "name": "OH_ArkUI_UnregisterSystemFontStyleChangeEvent"
+ },
+ {
+ "first_introduced": "12",
+ "name": "OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale"
+ },
+ {
+ "first_introduced": "12",
+ "name": "OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale"
+ },
{
"first_introduced": "12",
"name": "OH_ArkUI_DialogDismissEvent_SetShouldBlockDismiss"
@@ -2435,30 +2463,6 @@
"first_introduced": "12",
"name": "OH_ArkUI_CustomSpanDrawInfo_GetBaseline"
},
- {
- "first_introduced": "12",
- "name": "OH_ArkUI_RegisterSystemColorModeChangeEvent"
- },
- {
- "first_introduced": "12",
- "name": "OH_ArkUI_UnregisterSystemColorModeChangeEvent"
- },
- {
- "first_introduced": "12",
- "name": "OH_ArkUI_RegisterSystemFontStyleChangeEvent"
- },
- {
- "first_introduced": "12",
- "name": "OH_ArkUI_UnregisterSystemFontStyleChangeEvent"
- },
- {
- "first_introduced": "12",
- "name": "OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale"
- },
- {
- "first_introduced": "12",
- "name": "OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale"
- },
{
"first_introduced": "13",
"name": "OH_ArkUI_AccessibilityProviderRegisterCallback"
@@ -2847,6 +2851,10 @@
"first_introduced": "18",
"name": "OH_ArkUI_PostFrameCallback"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PostIdleCallback"
+ },
{
"first_introduced": "15",
"name": "OH_ArkUI_HostWindowInfo_GetName"
@@ -2944,89 +2952,101 @@
"name": "OH_ArkUI_XComponent_StopImageAnalyzer"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_KeyframeAnimateOption_SetExpectedFrameRate"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_KeyframeAnimateOption_GetExpectedFrameRate"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_VisibleAreaEventOptions_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_VisibleAreaEventOptions_Dispose"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_VisibleAreaEventOptions_SetRatios"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_VisibleAreaEventOptions_SetExpectedUpdateInterval"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_VisibleAreaEventOptions_GetRatios"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_VisibleAreaEventOptions_GetExpectedUpdateInterval"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetEventTargetWidth"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetEventTargetHeight"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetEventTargetPositionX"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetEventTargetPositionY"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetEventTargetGlobalPositionX"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetEventTargetGlobalPositionY"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_HoverEvent_IsHovered"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_UIInputEvent_GetModifierKeyStates"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_AxisEvent_SetPropagation"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_ArkUI_AxisEvent_GetScrollStep"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_DragEvent_RequestDragEndPending"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_NotifyDragResult"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_NotifyDragEndPendingDone"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_EnableDropDisallowedBadge"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragEvent_SetDataLoadParams"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragAction_SetDataLoadParams"
+ },
{
"first_introduced": "18",
"name": "OH_ArkUI_GestureInterrupter_GetUserData"
@@ -3072,223 +3092,975 @@
"name": "OH_ArkUI_NodeUtils_GetPositionToParent"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_CreateOptions"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_DisposeOptions"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetLevelMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetLevelUniqueId"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetImmersiveMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_OpenDialog"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_UpdateDialog"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_CloseDialog"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetBackgroundColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetCornerRadius"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetBorderWidth"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetBorderColor"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetBorderStyle"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetWidth"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetHeight"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetShadow"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetCustomShadow"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetBackgroundBlurStyle"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetAlignment"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetModalMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetAutoCancel"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetSubwindowMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetMask"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetKeyboardAvoidMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetHoverModeEnabled"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_SetHoverModeArea"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
+ "name": "OH_ArkUI_CustomDialog_SetBackgroundBlurStyleOptions"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_ArkUI_CustomDialog_SetBackgroundEffect"
+ },
+ {
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_RegisterOnWillDismissCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_RegisterOnWillAppearCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_RegisterOnDidAppearCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_RegisterOnWillDisappearCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
+ "name": "OH_ArkUI_CustomDialog_GetState"
+ },
+ {
+ "first_introduced": "19",
"name": "OH_ArkUI_TextPickerRangeContentArray_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextPickerRangeContentArray_SetIconAtIndex"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextPickerRangeContentArray_SetTextAtIndex"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextPickerRangeContentArray_Destroy"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextCascadePickerRangeContentArray_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextCascadePickerRangeContentArray_SetTextAtIndex"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextCascadePickerRangeContentArray_SetChildAtIndex"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_TextCascadePickerRangeContentArray_Destroy"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceHolder_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceHolder_Dispose"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceHolder_SetUserData"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceHolder_GetUserData"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceCallback_Create"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceCallback_Dispose"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceCallback_SetSurfaceCreatedEvent"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceCallback_SetSurfaceDestroyedEvent"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceHolder_AddSurfaceCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_SurfaceHolder_RemoveSurfaceCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_XComponent_GetNativeWindow"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_XComponent_SetAutoInitialize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_XComponent_Initialize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_XComponent_Finalize"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_ArkUI_XComponent_IsInitialized"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_ArkUI_KeyEvent_IsNumLockOn"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_ArkUI_KeyEvent_IsCapsLockOn"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_ArkUI_KeyEvent_IsScrollLockOn"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_ArkUI_PanGesture_SetDistanceMap"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_ArkUI_PanGesture_GetDistanceByToolType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_EmbeddedComponentOption_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_EmbeddedComponentOption_Dispose"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_EmbeddedComponentOption_SetOnError"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RunTaskInScope"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_EmbeddedComponentOption_SetOnTerminated"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_AddSupportedUIStates"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RemoveSupportedUIStates"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragEvent_GetDragSource"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragEvent_IsRemote"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeXComponent_GetExtraMouseEventInfo"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeXComponent_GetMouseEventModifierKeyStates"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeXComponent_GetKeyEventModifierKeyStates"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeXComponent_GetKeyEventNumLockState"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeXComponent_GetKeyEventCapsLockState"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeXComponent_GetKeyEventScrollLockState"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_XComponent_SetExpectedFrameRateRange"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_XComponent_RegisterOnFrameCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_XComponent_UnregisterOnFrameCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_XComponent_SetNeedSoftKeyboard"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_AccessibilityProvider_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_AccessibilityProvider_Dispose"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_SurfaceCallback_SetSurfaceShowEvent"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragEvent_GetTouchPointXToGlobalDisplay"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_DragEvent_GetTouchPointYToGlobalDisplay"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PointerEvent_GetGlobalDisplayX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PointerEvent_GetGlobalDisplayY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PointerEvent_GetGlobalDisplayXByIndex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PointerEvent_GetGlobalDisplayYByIndex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PointerEvent_GetHistoryGlobalDisplayX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PointerEvent_GetHistoryGlobalDisplayY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_NodeUtils_GetLayoutPositionInGlobalDisplay"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_InitModuleForArkTSEnv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_NotifyArkTSEnvDestroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_SurfaceCallback_SetSurfaceHideEvent"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_UIInputEvent_GetLatestStatus"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_NodeUtils_GetNodeHandleByUniqueId"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_NodeUtils_GetNodeUniqueId"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PreventGestureRecognizerBegin"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_SetTouchTestDoneCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_SetForceDarkConfig"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AddRenderNode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_RemoveRenderNode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_ClearRenderNodeChildren"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_Invalidate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateNode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeNode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AddChild"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_InsertChildAfter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_RemoveChild"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_ClearChildren"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetChild"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetFirstChild"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetNextSibling"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetPreviousSibling"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetChildren"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetChildrenCount"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetBackgroundColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetBackgroundColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetClipToFrame"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetClipToFrame"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetClipToBounds"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetClipToBounds"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetOpacity"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetOpacity"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetSize"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetSize"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetPosition"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetPosition"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetPivot"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetPivot"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetScale"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetScale"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetTranslation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetTranslation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRotation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetRotation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetTransform"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetShadowColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetShadowColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetShadowOffset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetShadowOffset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetShadowAlpha"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetShadowAlpha"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetShadowElevation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetShadowElevation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetShadowRadius"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetShadowRadius"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetBorderStyle"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetBorderStyle"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetBorderWidth"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetBorderWidth"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetBorderColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetBorderColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetBorderRadius"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetBorderRadius"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetMask"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetClip"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetMarkNodeGroup"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetBounds"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetBounds"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetDrawRegion"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachContentModifier"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateContentModifier"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeContentModifier"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachFloatProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachVector2Property"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachColorProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachFloatAnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachVector2AnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_AttachColorAnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateFloatProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetFloatPropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetFloatPropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeFloatProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateVector2Property"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetVector2PropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetVector2PropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeVector2Property"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateColorProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetColorPropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetColorPropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeColorProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateFloatAnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetFloatAnimatablePropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetFloatAnimatablePropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeFloatAnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateVector2AnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetVector2AnimatablePropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetVector2AnimatablePropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeVector2AnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateColorAnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetColorAnimatablePropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_GetColorAnimatablePropertyValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeColorAnimatableProperty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetContentModifierOnDraw"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRectShapeOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeRectShapeOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRectShapeOptionEdgeValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateNodeBorderStyleOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeNodeBorderStyleOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetNodeBorderStyleOptionEdgeStyle"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateNodeBorderWidthOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeNodeBorderWidthOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetNodeBorderWidthOptionEdgeWidth"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateNodeBorderColorOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeNodeBorderColorOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetNodeBorderColorOptionEdgeColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateNodeBorderRadiusOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeNodeBorderRadiusOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetNodeBorderRadiusOptionCornerRadius"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateCircleShapeOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeCircleShapeOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetCircleShapeOptionCenterX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetCircleShapeOptionCenterY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetCircleShapeOptionRadius"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRoundRectShapeOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeRoundRectShapeOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRoundRectShapeOptionEdgeValue"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRoundRectShapeOptionCornerXY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateCommandPathOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeCommandPathOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetCommandPathOptionCommands"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromRectShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromRoundRectShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromCircleShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromOvalShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromCommandPath"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeRenderNodeMaskOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRenderNodeMaskOptionFillColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRenderNodeMaskOptionStrokeColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_SetRenderNodeMaskOptionStrokeWidth"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromRectShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromRoundRectShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromCircleShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromOvalShape"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromCommandPath"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_RenderNodeUtils_DisposeRenderNodeClipOption"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PostAsyncUITask"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PostUITask"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkUI_PostUITaskAndWait"
}
]
\ No newline at end of file
diff --git a/arkui/ace_engine/native/native_animate.h b/arkui/ace_engine/native/native_animate.h
index 0fbbe8c88d8b89165117856812868a993c6d4c08..efd745d5d151c6ab54196b2874e9274f01fa9b6a 100644
--- a/arkui/ace_engine/native/native_animate.h
+++ b/arkui/ace_engine/native/native_animate.h
@@ -421,7 +421,7 @@ int32_t OH_ArkUI_KeyframeAnimateOption_RegisterOnFinishCallback(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_KeyframeAnimateOption_SetExpectedFrameRate(
ArkUI_KeyframeAnimateOption* option, ArkUI_ExpectedFrameRateRange* frameRate);
@@ -494,7 +494,7 @@ int32_t OH_ArkUI_KeyframeAnimateOption_GetIterations(ArkUI_KeyframeAnimateOption
*
* @param option Indicates the pointer to a keyframe animation configuration.
* @return Returns the expected frame rate range of the keyframe animation.
- * @since 18
+ * @since 19
*/
ArkUI_ExpectedFrameRateRange* OH_ArkUI_KeyframeAnimateOption_GetExpectedFrameRate(ArkUI_KeyframeAnimateOption* option);
diff --git a/arkui/ace_engine/native/native_dialog.h b/arkui/ace_engine/native/native_dialog.h
index 5de204ab42866f32ea1afae3fbb04128333ff732..a59f1afcb526077fab851017e77ac29abe4d2e8d 100644
--- a/arkui/ace_engine/native/native_dialog.h
+++ b/arkui/ace_engine/native/native_dialog.h
@@ -61,6 +61,52 @@ typedef enum {
DIALOG_DISMISS_SLIDE_DOWN,
} ArkUI_DismissReason;
+/**
+* @brief Enumerates the state of dialog.
+*
+* @syscap SystemCapability.ArkUI.ArkUI.Full
+*
+* @since 20
+*/
+typedef enum {
+ /**
+ * @brief Uninitialized.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ DIALOG_UNINITIALIZED = 0,
+ /**
+ * @brief Initialized.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ DIALOG_INITIALIZED,
+ /**
+ * @brief Appearing.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ DIALOG_APPEARING,
+ /**
+ * @brief Appeared.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ DIALOG_APPEARED,
+ /**
+ * @brief Disappearing.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ DIALOG_DISAPPEARING,
+ /**
+ * @brief Disappeared.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ DIALOG_DISAPPEARED,
+} ArkUI_DialogState;
+
/**
* @brief Enumerates the level mode.
*
@@ -102,7 +148,7 @@ typedef struct ArkUI_DialogDismissEvent ArkUI_DialogDismissEvent;
/**
* @brief Defines a struct for the content object of a custom dialog box.
*
- * @since 18
+ * @since 19
*/
typedef struct ArkUI_CustomDialogOptions ArkUI_CustomDialogOptions;
@@ -389,19 +435,19 @@ typedef struct {
* @brief Provides the custom dialog box APIs for the native side.
*
* @version 3
- * @since 18
+ * @since 19
*/
typedef struct {
/**
* @brief Provides the custom dialog box APIs for the native side. The API scope is {@link ArkUI_NativeDialogAPI_1}
*
- * @since 18
+ * @since 19
*/
ArkUI_NativeDialogAPI_1 nativeDialogAPI1;
/**
* @brief Provides the custom dialog box APIs for the native side. The API scope is {@link ArkUI_NativeDialogAPI_2}
*
- * @since 18
+ * @since 19
*/
ArkUI_NativeDialogAPI_2 nativeDialogAPI2;
/**
@@ -413,7 +459,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t (*setLevelOrder)(ArkUI_NativeDialogHandle handle, double levelOrder);
/**
@@ -425,7 +471,7 @@ typedef struct {
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t (*registerOnWillAppear)(
@@ -440,7 +486,7 @@ typedef struct {
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t (*registerOnDidAppear)(
ArkUI_NativeDialogHandle handle, void* userData, void (*callback)(void* userData));
@@ -454,7 +500,7 @@ typedef struct {
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t (*registerOnWillDisappear)(
ArkUI_NativeDialogHandle handle, void* userData, void (*callback)(void* userData));
@@ -468,7 +514,7 @@ typedef struct {
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t (*registerOnDidDisappear)(
ArkUI_NativeDialogHandle handle, void* userData, void (*callback)(void* userData));
@@ -486,7 +532,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setBorderWidth)(
ArkUI_NativeDialogHandle handle, float top, float right, float bottom, float left, ArkUI_LengthMetricUnit unit);
@@ -503,7 +549,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setBorderColor)(
ArkUI_NativeDialogHandle handle, uint32_t top, uint32_t right, uint32_t bottom, uint32_t left);
@@ -520,7 +566,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setBorderStyle)(
ArkUI_NativeDialogHandle handle, int32_t top, int32_t right, int32_t bottom, int32_t left);
@@ -535,7 +581,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setWidth)(ArkUI_NativeDialogHandle handle, float width, ArkUI_LengthMetricUnit unit);
@@ -549,7 +595,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setHeight)(ArkUI_NativeDialogHandle handle, float height, ArkUI_LengthMetricUnit unit);
@@ -562,7 +608,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setShadow)(ArkUI_NativeDialogHandle handle, ArkUI_ShadowStyle shadow);
@@ -575,7 +621,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setCustomShadow)(ArkUI_NativeDialogHandle handle, const ArkUI_AttributeItem* customShadow);
@@ -588,7 +634,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setBackgroundBlurStyle)(ArkUI_NativeDialogHandle handle, ArkUI_BlurStyle blurStyle);
@@ -601,7 +647,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*setKeyboardAvoidMode)(ArkUI_NativeDialogHandle handle, ArkUI_KeyboardAvoidMode keyboardAvoidMode);
@@ -614,7 +660,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur..
- * @since 18
+ * @since 19
*/
int32_t (*enableHoverMode)(ArkUI_NativeDialogHandle handle, bool enableHoverMode);
@@ -627,7 +673,7 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occur.
- * @since 18
+ * @since 19
*/
int32_t (*setHoverModeArea)(ArkUI_NativeDialogHandle handle, ArkUI_HoverModeAreaType hoverModeAreaType);
@@ -639,9 +685,58 @@ typedef struct {
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t (*setFocusable)(ArkUI_NativeDialogHandle handle, bool focusable);
+
+ /**
+ * @brief Sets the background blur effect for a custom dialog box.
+ *
+ * @note This method must be called before the show method.
+ * @param handle Indicates the pointer to the custom dialog box controller.
+ * @param backgroundBlurStyleOptions Background blur effect options.
+ * Format of the {@link ArkUI_AttributeItem} parameter: \n
+ * .value[0].i32: color mode. The value is an enum of {@link ArkUI_ColorMode}. \n
+ * .value[1]?.i32: adaptive color mode. The value is an enum of {@link ArkUI_AdaptiveColor}. \n
+ * .value[2]?.f32: blur degree. The value range is [0.0, 1.0]. \n
+ * .value[3]?.u32: brightness of black in the grayscale blur. The value range is [0, 127]. \n
+ * .value[4]?.u32: degree of darkening the white color in the grayscale blur. The value range is [0, 127]. \n
+ * .value[5]?.i32: blur activation policy. The value is an enum of {@link ArkUI_BlurStyleActivePolicy}. \n
+ * .value[6]?.u32: background color, in 0xARGB format, of the components within the window after the window
+ * loses focus (in which case, the blur effect on the components within the window is
+ * removed). \n
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+ int32_t (*setBackgroundBlurStyleOptions)(
+ ArkUI_NativeDialogHandle handle, const ArkUI_AttributeItem* backgroundBlurStyleOptions);
+
+ /**
+ * @brief Sets the background effect parameters for a custom dialog box.
+ *
+ * @note This method must be called before the show method.
+ * @param handle Indicates the pointer to the custom dialog box controller.
+ * @param backgroundEffect Background effect.
+ * Format of the {@link ArkUI_AttributeItem} parameter: \n
+ * .value[0].f32: blur radius, in vp. \n
+ * .value[1]?.f32: saturation. \n
+ * .value[2]?.f32: brightness. \n
+ * .value[3]?.u32: color, in 0xARGB format. \n
+ * .value[4]?.i32: adaptive color mode. The value is an enum of {@link ArkUI_AdaptiveColor}. \n
+ * .value[5]?.u32: brightness of black in the grayscale blur. The value range is [0, 127]. \n
+ * .value[6]?.u32: degree of darkening the white color in the grayscale blur. The value range is [0, 127]. \n
+ * .value[7]?.i32: blur activation policy. The value is an enum of {@link ArkUI_BlurStyleActivePolicy}. \n
+ * .value[8]?.u32: background color, in 0xARGB format, of the components within the window after the window
+ * loses focus (in which case, the blur effect on the components within the window is
+ * removed). \n
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+ int32_t (*setBackgroundEffect)(ArkUI_NativeDialogHandle handle, const ArkUI_AttributeItem* backgroundEffect);
} ArkUI_NativeDialogAPI_3;
/**
@@ -687,7 +782,7 @@ int32_t OH_ArkUI_DialogDismissEvent_GetDismissReason(ArkUI_DialogDismissEvent* e
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_OpenDialog(ArkUI_CustomDialogOptions* options, void (*callback)(int32_t dialogId));
@@ -699,7 +794,7 @@ int32_t OH_ArkUI_CustomDialog_OpenDialog(ArkUI_CustomDialogOptions* options, voi
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_UpdateDialog(ArkUI_CustomDialogOptions* options, void (*callback)(int32_t dialogId));
@@ -710,7 +805,7 @@ int32_t OH_ArkUI_CustomDialog_UpdateDialog(ArkUI_CustomDialogOptions* options, v
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_CloseDialog(int32_t dialogId);
@@ -719,7 +814,7 @@ int32_t OH_ArkUI_CustomDialog_CloseDialog(int32_t dialogId);
*
* @param content Content of the custom dialog box.
* @return Returns the pointer to the custom dialog box options.
- * @since 18
+ * @since 19
*/
ArkUI_CustomDialogOptions* OH_ArkUI_CustomDialog_CreateOptions(ArkUI_NodeHandle content);
@@ -727,7 +822,7 @@ ArkUI_CustomDialogOptions* OH_ArkUI_CustomDialog_CreateOptions(ArkUI_NodeHandle
* @brief Destroys the custom dialog box options.
*
* @param options The pointer to the custom dialog box options.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_CustomDialog_DisposeOptions(ArkUI_CustomDialogOptions* options);
@@ -740,7 +835,7 @@ void OH_ArkUI_CustomDialog_DisposeOptions(ArkUI_CustomDialogOptions* options);
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetLevelMode(ArkUI_CustomDialogOptions* options, ArkUI_LevelMode levelMode);
@@ -752,7 +847,7 @@ int32_t OH_ArkUI_CustomDialog_SetLevelMode(ArkUI_CustomDialogOptions* options, A
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetLevelUniqueId(ArkUI_CustomDialogOptions* options, int32_t uniqueId);
@@ -765,7 +860,7 @@ int32_t OH_ArkUI_CustomDialog_SetLevelUniqueId(ArkUI_CustomDialogOptions* option
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetImmersiveMode(ArkUI_CustomDialogOptions* options, ArkUI_ImmersiveMode immersiveMode);
@@ -777,7 +872,7 @@ int32_t OH_ArkUI_CustomDialog_SetImmersiveMode(ArkUI_CustomDialogOptions* option
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetBackgroundColor(ArkUI_CustomDialogOptions* options, uint32_t backgroundColor);
@@ -792,7 +887,7 @@ int32_t OH_ArkUI_CustomDialog_SetBackgroundColor(ArkUI_CustomDialogOptions* opti
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetCornerRadius(
ArkUI_CustomDialogOptions* options, float topLeft, float topRight, float bottomLeft, float bottomRight);
@@ -809,7 +904,7 @@ int32_t OH_ArkUI_CustomDialog_SetCornerRadius(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetBorderWidth(
ArkUI_CustomDialogOptions* options, float top, float right, float bottom, float left, ArkUI_LengthMetricUnit unit);
@@ -825,7 +920,7 @@ int32_t OH_ArkUI_CustomDialog_SetBorderWidth(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetBorderColor(
ArkUI_CustomDialogOptions* options, uint32_t top, uint32_t right, uint32_t bottom, uint32_t left);
@@ -841,7 +936,7 @@ int32_t OH_ArkUI_CustomDialog_SetBorderColor(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetBorderStyle(
ArkUI_CustomDialogOptions* options, int32_t top, int32_t right, int32_t bottom, int32_t left);
@@ -855,7 +950,7 @@ int32_t OH_ArkUI_CustomDialog_SetBorderStyle(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetWidth(ArkUI_CustomDialogOptions* options, float width, ArkUI_LengthMetricUnit unit);
@@ -868,7 +963,7 @@ int32_t OH_ArkUI_CustomDialog_SetWidth(ArkUI_CustomDialogOptions* options, float
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetHeight(ArkUI_CustomDialogOptions* options, float height, ArkUI_LengthMetricUnit unit);
@@ -880,7 +975,7 @@ int32_t OH_ArkUI_CustomDialog_SetHeight(ArkUI_CustomDialogOptions* options, floa
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetShadow(ArkUI_CustomDialogOptions* options, ArkUI_ShadowStyle shadow);
@@ -888,11 +983,12 @@ int32_t OH_ArkUI_CustomDialog_SetShadow(ArkUI_CustomDialogOptions* options, ArkU
* @brief Sets the custom shadow of the dialog box background.
*
* @param options Dialog box parameters.
- * @param customShadow Custom shadow parameter. The format is the same as that of the NODE_SHADOW property.
+ * @param customShadow Custom shadow parameter. The format is the same as that of
+ * the NODE_CUSTOM_SHADOW property.
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetCustomShadow(
ArkUI_CustomDialogOptions* options, const ArkUI_AttributeItem* customShadow);
@@ -905,7 +1001,7 @@ int32_t OH_ArkUI_CustomDialog_SetCustomShadow(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetBackgroundBlurStyle(ArkUI_CustomDialogOptions* options, ArkUI_BlurStyle blurStyle);
@@ -919,7 +1015,7 @@ int32_t OH_ArkUI_CustomDialog_SetBackgroundBlurStyle(ArkUI_CustomDialogOptions*
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetAlignment(
ArkUI_CustomDialogOptions* options, int32_t alignment, float offsetX, float offsetY);
@@ -933,7 +1029,7 @@ int32_t OH_ArkUI_CustomDialog_SetAlignment(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetModalMode(ArkUI_CustomDialogOptions* options, bool isModal);
@@ -946,7 +1042,7 @@ int32_t OH_ArkUI_CustomDialog_SetModalMode(ArkUI_CustomDialogOptions* options, b
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetAutoCancel(ArkUI_CustomDialogOptions* options, bool autoCancel);
@@ -960,7 +1056,7 @@ int32_t OH_ArkUI_CustomDialog_SetAutoCancel(ArkUI_CustomDialogOptions* options,
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetSubwindowMode(ArkUI_CustomDialogOptions* options, bool showInSubwindow);
@@ -974,7 +1070,7 @@ int32_t OH_ArkUI_CustomDialog_SetSubwindowMode(ArkUI_CustomDialogOptions* option
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetMask(
ArkUI_CustomDialogOptions* options, uint32_t maskColor, const ArkUI_Rect* maskRect);
@@ -987,7 +1083,7 @@ int32_t OH_ArkUI_CustomDialog_SetMask(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetKeyboardAvoidMode(
ArkUI_CustomDialogOptions* options, ArkUI_KeyboardAvoidMode keyboardAvoidMode);
@@ -1000,7 +1096,7 @@ int32_t OH_ArkUI_CustomDialog_SetKeyboardAvoidMode(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetHoverModeEnabled(ArkUI_CustomDialogOptions* options, bool enabled);
@@ -1012,7 +1108,7 @@ int32_t OH_ArkUI_CustomDialog_SetHoverModeEnabled(ArkUI_CustomDialogOptions* opt
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_SetHoverModeArea(
ArkUI_CustomDialogOptions* options, ArkUI_HoverModeAreaType hoverModeAreaType);
@@ -1026,7 +1122,7 @@ int32_t OH_ArkUI_CustomDialog_SetHoverModeArea(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_RegisterOnWillDismissCallback(
ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(ArkUI_DialogDismissEvent* event));
@@ -1040,7 +1136,7 @@ int32_t OH_ArkUI_CustomDialog_RegisterOnWillDismissCallback(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_RegisterOnWillAppearCallback(
ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(void* userData));
@@ -1054,7 +1150,7 @@ int32_t OH_ArkUI_CustomDialog_RegisterOnWillAppearCallback(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_RegisterOnDidAppearCallback(
ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(void* userData));
@@ -1068,7 +1164,7 @@ int32_t OH_ArkUI_CustomDialog_RegisterOnDidAppearCallback(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_RegisterOnWillDisappearCallback(
ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(void* userData));
@@ -1082,11 +1178,69 @@ int32_t OH_ArkUI_CustomDialog_RegisterOnWillDisappearCallback(
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback(
ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(void* userData));
+/**
+ * @brief Get state of dialog.
+ *
+ * @param handle Indicates the pointer to the custom dialog box controller.
+ * @param state Dialog state object.
+ * @return Returns the error code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+int32_t OH_ArkUI_CustomDialog_GetState(ArkUI_NativeDialogHandle handle, ArkUI_DialogState* state);
+
+/**
+ * @brief Sets the background blur effect for a dialog box.
+ *
+ * @param options Dialog box parameters.
+ * @param backgroundBlurStyleOptions Background blur effect options of the dialog box.
+ * Format of the {@link ArkUI_AttributeItem} parameter: \n
+ * .value[0].i32: color mode. The value is an enum of {@link ArkUI_ColorMode}. \n
+ * .value[1]?.i32: adaptive color mode. The value is an enum of {@link ArkUI_AdaptiveColor}. \n
+ * .value[2]?.f32: blur degree. The value range is [0.0, 1.0]. \n
+ * .value[3]?.u32: brightness of black in the grayscale blur. The value range is [0, 127]. \n
+ * .value[4]?.u32: degree of darkening the white color in the grayscale blur. The value range is [0, 127]. \n
+ * .value[5]?.i32: blur activation policy. The value is an enum of {@link ArkUI_BlurStyleActivePolicy}. \n
+ * .value[6]?.u32: background color, in 0xARGB format, of the components within the window after the window loses
+ * focus (in which case, the blur effect on the components within the window is removed). \n
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+int32_t OH_ArkUI_CustomDialog_SetBackgroundBlurStyleOptions(
+ ArkUI_CustomDialogOptions* options, const ArkUI_AttributeItem* backgroundBlurStyleOptions);
+
+/**
+ * @brief Sets the background effect parameters for a dialog box.
+ *
+ * @param options Dialog box parameters.
+ * @param backgroundEffect Background effect of the dialog box.
+ * Format of the {@link ArkUI_AttributeItem} parameter: \n
+ * .value[0].f32: blur radius, in vp. \n
+ * .value[1]?.f32: saturation. \n
+ * .value[2]?.f32: brightness. \n
+ * .value[3]?.u32: color, in 0xARGB format. \n
+ * .value[4]?.i32: adaptive color mode. The value is an enum of {@link ArkUI_AdaptiveColor}. \n
+ * .value[5]?.u32: brightness of black in the grayscale blur. The value range is [0, 127]. \n
+ * .value[6]?.u32: degree of darkening the white color in the grayscale blur. The value range is [0, 127]. \n
+ * .value[7]?.i32: blur activation policy. The value is an enum of {@link ArkUI_BlurStyleActivePolicy}. \n
+ * .value[8]?.u32: background color, in 0xARGB format, of the components within the window after the window loses
+ * focus (in which case, the blur effect on the components within the window is removed). \n
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+int32_t OH_ArkUI_CustomDialog_SetBackgroundEffect(
+ ArkUI_CustomDialogOptions* options, const ArkUI_AttributeItem* backgroundEffect);
+
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/native_gesture.h b/arkui/ace_engine/native/native_gesture.h
index edfafda42cb3b8c2621de52af32ec4c27f44edc0..f7cee1c2c3d62f83f547de3a27a841a7401e02db 100644
--- a/arkui/ace_engine/native/native_gesture.h
+++ b/arkui/ace_engine/native/native_gesture.h
@@ -209,6 +209,20 @@ typedef enum {
/** A group of gestures. */
GROUP_GESTURE,
+
+ /**
+ * The click gesture registed through onClick.
+ *
+ * @since 20
+ */
+ CLICK_GESTURE,
+
+ /**
+ * Drag gesture used for drag and drop.
+ *
+ * @since 20
+ */
+ DRAG_DROP,
} ArkUI_GestureRecognizerType;
/**
@@ -835,6 +849,67 @@ int32_t OH_ArkUI_GetGestureParam_angle(ArkUI_GestureRecognizer* recognizer, doub
*/
int32_t OH_ArkUI_GetGestureParam_distanceThreshold(ArkUI_GestureRecognizer* recognizer, double* distanceThreshold);
+/**
+* @brief Sets the minimum movement distance thresholds for gestures to be recognized by a gesture recognizer.
+*
+* @param recognizer Indicates the pointer to a gesture recognizer.
+* @param size Size of the array of minimum movement distance thresholds.
+* @param toolTypeArray Pointer to the array of tool types for which thresholds are set.
+* @param distanceArray Pointer to the array of minimum movement distances, in px.
+* @return Returns the result code.
+* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+* Returns {@link ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED} if the gesture recognizer type is
+* not supported.
+* @since 19
+*/
+ArkUI_ErrorCode OH_ArkUI_PanGesture_SetDistanceMap(
+ ArkUI_GestureRecognizer* recognizer, int size, int* toolTypeArray, double* distanceArray);
+
+/**
+* @brief Obtains the movement threshold for gestures to be recognized by a gesture recognizer for a specific tool type.
+*
+* @param recognizer Indicates the pointer to a gesture recognizer.
+* @param toolType Tool type for which you want to obtain the threshold.
+* @param distance Gesture movement threshold of the gesture recognizer, in px.
+* @return Returns the result code.
+* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter exception occurs.
+* Returns {@link ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED} if the gesture recognizer type is
+* not supported.
+* @since 19
+*/
+ArkUI_ErrorCode OH_ArkUI_PanGesture_GetDistanceByToolType(
+ ArkUI_GestureRecognizer* recognizer, int toolType, double* distance);
+
+/**
+ * @brief Registers a callback that is executed after all gesture recognizers are collected.
+ * When the user begins touching the screen, the system performs hit testing and collects gesture recognizers
+ * based on the touch location. Subsequently, before processing any move events, the component can use this API
+ * to determine the gesture recognizers that will participate in and compete for recognition.
+ *
+ * @param node Handle to the node on which the callback is to be set.
+ * @param userData Custom data.
+ * @param touchTestDone Callback for completion of gesture recognizer collection.
+ * - event: Basic information of the gesture.
+ * - recognizers: Array of gesture recognizers.
+ * - count: Number of gesture recognizers.
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR}: The operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID}: A parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_SetTouchTestDoneCallback(
+ ArkUI_NodeHandle node,
+ void* userData,
+ void (*touchTestDone)(
+ ArkUI_GestureEvent* event,
+ ArkUI_GestureRecognizerHandleArray recognizers,
+ int32_t count,
+ void* userData
+ )
+);
+
/**
* @brief Defines the gesture APIs.
*
@@ -1129,6 +1204,20 @@ typedef struct {
*/
void* OH_ArkUI_GestureInterrupter_GetUserData(ArkUI_GestureInterruptInfo* event);
+/**
+ * @brief Prevents a gesture recognizer from participating in the current gesture recognition before all fingers are
+ * lifted.
+ * If the system has already determined the result of the gesture recognizer (regardless of success or failure),
+ * calling this API will be ineffective.
+ *
+ * @param recognizer Pointer to a gesture recognizer.
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR}: The operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID}: A parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_PreventGestureRecognizerBegin(ArkUI_GestureRecognizer* recognizer);
+
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/native_interface.h b/arkui/ace_engine/native/native_interface.h
index 64cae7e06ea74db39542281356b42f0bcb425b82..4c3405779511912c2b8b668c24e7ba5990028b62 100644
--- a/arkui/ace_engine/native/native_interface.h
+++ b/arkui/ace_engine/native/native_interface.h
@@ -57,6 +57,12 @@ typedef enum {
ARKUI_NATIVE_GESTURE,
/** API related to animations. For details, see the struct definition in .*/
ARKUI_NATIVE_ANIMATE,
+ /**
+ * API related to supported multi thread UI components.
+ * For details, see the struct definition in .
+ * @since 20
+ */
+ ARKUI_MULTI_THREAD_NATIVE_NODE,
} ArkUI_NativeAPIVariantKind;
/**
diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h
index 851520486679499a38d2f774d4c45995fa4fc5c7..23bcc6da548fa93cb6104462002a051d0b7da2b5 100644
--- a/arkui/ace_engine/native/native_interface_xcomponent.h
+++ b/arkui/ace_engine/native/native_interface_xcomponent.h
@@ -326,7 +326,21 @@ typedef struct OH_NativeXComponent OH_NativeXComponent;
* @version 1.0
*/
typedef struct OH_NativeXComponent_Callback {
- /** Called when the surface is created. */
+ /**
+ * @brief Called when the surface is created.
+ *
+ * API Note
+ *
+ * Performance Note
+ *
By default, the window buffer in the current operating system is accessed via the CPU. If an application
+ * does not need to access the window buffer data using the CPU, it can proactively disable CPU access to
+ * enhance energy efficiency and reduce power consumption.
+ *
+ * For details about how to optimize power consumption for data read/write operations in data buffers,
+ * see [How do I proactively disable CPU access to window buffers to reduce power consumption?]{@link https://developer.huawei.com/consumer/en/doc/harmonyos-faqs/faqs-arkgraphics-2d-14}.
+ *
+ *
+ */
void (*OnSurfaceCreated)(OH_NativeXComponent* component, void* window);
/** Called when the surface is changed. */
void (*OnSurfaceChanged)(OH_NativeXComponent* component, void* window);
@@ -583,6 +597,43 @@ int32_t OH_NativeXComponent_RegisterCallback(OH_NativeXComponent* component, OH_
int32_t OH_NativeXComponent_RegisterMouseEventCallback(
OH_NativeXComponent* component, OH_NativeXComponent_MouseEvent_Callback* callback);
+/**
+ * @brief Provides an encapsulated OH_NativeXComponent_ExtraMouseEventInfo
+ * instance which has extra info compared to OH_NativeXComponent_MouseEvent.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef struct OH_NativeXComponent_ExtraMouseEventInfo OH_NativeXComponent_ExtraMouseEventInfo;
+
+/**
+ * @brief Obtains the extra mouse event dispatched by the ArkUI XComponent.
+ *
+ * @param component Indicates the pointer to this OH_NativeXComponent instance.
+ * @param extraMouseEventInfo Indicates the pointer to pointer of OH_NativeXComponent_ExtraMouseEventInfo instance.
+ * @return Returns the status code of the execution.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_NativeXComponent_GetExtraMouseEventInfo(OH_NativeXComponent* component, OH_NativeXComponent_ExtraMouseEventInfo** extraMouseEventInfo);
+
+/**
+ * @brief Obtains the state of the modifier keys of the mouse event.
+ *
+ * @param ExtraMouseEventInfo Indicates the pointer to this OH_NativeXComponent_ExtraMouseEventInfo instance.
+ * @param keys Pointer to a variable where the current combination of pressed modifier keys will be returned.
+ * The application can use bitwise operations to determine the state of each modifier key.
+ * Modifier keys can be referred to {@link ArkUI_ModifierKeyName}.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_NativeXComponent_GetMouseEventModifierKeyStates(OH_NativeXComponent_ExtraMouseEventInfo* ExtraMouseEventInfo, uint64_t* keys);
+
/**
* @brief Registers a callback for this OH_NativeXComponent instance.
*
@@ -687,6 +738,60 @@ int32_t OH_NativeXComponent_GetKeyEventDeviceId(OH_NativeXComponent_KeyEvent* ke
*/
int32_t OH_NativeXComponent_GetKeyEventTimestamp(OH_NativeXComponent_KeyEvent* keyEvent, int64_t* timestamp);
+/**
+ * @brief Obtains the state of the modifier keys of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param keys Pointer to a variable where the current combination of pressed modifier keys will be returned.
+ * The application can use bitwise operations to determine the state of each modifier key.
+ * Modifier keys can be referred to {@link ArkUI_ModifierKeyName}.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_NativeXComponent_GetKeyEventModifierKeyStates(OH_NativeXComponent_KeyEvent* keyEvent, uint64_t* keys);
+
+/**
+ * @brief Obtains the Num Lock state of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param isNumLockOn Return whether the Num Lock is on.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_NativeXComponent_GetKeyEventNumLockState(OH_NativeXComponent_KeyEvent* keyEvent, bool* isNumLockOn);
+
+/**
+ * @brief Obtains the Caps Lock state of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param isCapsLockOn Return whether the Caps Lock is on.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_NativeXComponent_GetKeyEventCapsLockState(OH_NativeXComponent_KeyEvent* keyEvent, bool* isCapsLockOn);
+
+/**
+ * @brief Obtains the Scroll Lock state of the key event.
+ *
+ * @param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.
+ * @param isScrollLockOn Return whether the Scroll Lock is on.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_NativeXComponent_GetKeyEventScrollLockState(OH_NativeXComponent_KeyEvent* keyEvent, bool* isScrollLockOn);
+
/**
* @brief Set the Expected FrameRateRange.
*
@@ -731,6 +836,8 @@ int32_t OH_NativeXComponent_UnregisterOnFrameCallback(OH_NativeXComponent* compo
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
*
* @since 12
+ * @deprecated since 20
+ * @useinstead OH_ArkUI_NodeContent_AddNode
*/
int32_t OH_NativeXComponent_AttachNativeRootNode(OH_NativeXComponent* component, ArkUI_NodeHandle root);
@@ -744,6 +851,8 @@ int32_t OH_NativeXComponent_AttachNativeRootNode(OH_NativeXComponent* component,
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
*
* @since 12
+ * @deprecated since 20
+ * @useinstead OH_ArkUI_NodeContent_RemoveNode
*/
int32_t OH_NativeXComponent_DetachNativeRootNode(OH_NativeXComponent* component, ArkUI_NodeHandle root);
@@ -772,8 +881,8 @@ int32_t OH_NativeXComponent_RegisterSurfaceHideCallback(
OH_NativeXComponent* component, void (*callback)(OH_NativeXComponent* component, void* window));
/**
- * @brief Registers a UI input event callback for this OH_NativeXComponent instance and enables the callback to
- * be invoked when a UI input event is received.
+ * @brief Registers a UI input event callback for an OH_NativeXComponent instance and enables the callback to be
+ * invoked when a UI input event is received. Currently, only axis events are supported.
*
* @param component Indicates the pointer to the OH_NativeXComponent instance.
* @param callback Indicates the pointer to the UI input event callback.
@@ -801,8 +910,10 @@ int32_t OH_NativeXComponent_RegisterUIInputEventCallback(
int32_t OH_NativeXComponent_SetNeedSoftKeyboard(OH_NativeXComponent* component, bool needSoftKeyboard);
/**
- * @brief Registers a custom event intercept callback for this OH_NativeXComponent and enables the callback
- * during the hit test.
+ * @brief Registers a custom event intercept callback for an OH_NativeXComponent instance.
+ * This enables the specified during hit testing.
+ * UI input-related operations are not supported on event objects received through this callback.
+ * For full functionality, use the NODE_ON_TOUCH_INTERCEPT event on native nodes instead.
*
* @param component Indicates the pointer to the OH_NativeXComponent instance.
* @param callback Indicates the pointer to the custom event intercept callback.
@@ -898,7 +1009,7 @@ int32_t OH_ArkUI_XComponent_StopImageAnalyzer(ArkUI_NodeHandle node);
/**
* @brief Provides an encapsulated OH_ArkUI_SurfaceHolder instance.
*
- * @since 18
+ * @since 19
*/
typedef struct OH_ArkUI_SurfaceHolder OH_ArkUI_SurfaceHolder;
@@ -907,7 +1018,7 @@ typedef struct OH_ArkUI_SurfaceHolder OH_ArkUI_SurfaceHolder;
*
* @param node Indicates the pointer to the XComponent node.
* @return Returns the created OH_ArkUI_SurfaceHolder object's pointer.
- * @since 18
+ * @since 19
*/
OH_ArkUI_SurfaceHolder* OH_ArkUI_SurfaceHolder_Create(ArkUI_NodeHandle node);
@@ -915,7 +1026,7 @@ OH_ArkUI_SurfaceHolder* OH_ArkUI_SurfaceHolder_Create(ArkUI_NodeHandle node);
* @brief Disposes of a OH_ArkUI_SurfaceHolder object.
*
* @param node Indicates the pointer to OH_ArkUI_SurfaceHolder object needed to dispose.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SurfaceHolder_Dispose(OH_ArkUI_SurfaceHolder* surfaceHolder);
@@ -928,7 +1039,7 @@ void OH_ArkUI_SurfaceHolder_Dispose(OH_ArkUI_SurfaceHolder* surfaceHolder);
* @return Returns the error code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SurfaceHolder_SetUserData(OH_ArkUI_SurfaceHolder* surfaceHolder, void* userData);
@@ -937,14 +1048,14 @@ int32_t OH_ArkUI_SurfaceHolder_SetUserData(OH_ArkUI_SurfaceHolder* surfaceHolder
*
* @param surfaceHolder Indicates the target OH_ArkUI_SurfaceHolder instance.
* @return Returns the custom data.
- * @since 18
+ * @since 19
*/
void* OH_ArkUI_SurfaceHolder_GetUserData(OH_ArkUI_SurfaceHolder* surfaceHolder);
/**
* @brief Define the surface lifecycle callback.
*
- * @since 18
+ * @since 19
*/
typedef struct OH_ArkUI_SurfaceCallback OH_ArkUI_SurfaceCallback;
@@ -952,7 +1063,7 @@ typedef struct OH_ArkUI_SurfaceCallback OH_ArkUI_SurfaceCallback;
* @brief Create a OH_ArkUI_SurfaceCallback object.
*
* @return Returns the created OH_ArkUI_SurfaceCallback object's pointer.
- * @since 18
+ * @since 19
*/
OH_ArkUI_SurfaceCallback* OH_ArkUI_SurfaceCallback_Create();
@@ -960,7 +1071,7 @@ OH_ArkUI_SurfaceCallback* OH_ArkUI_SurfaceCallback_Create();
* @brief Disposes of a OH_ArkUI_SurfaceCallback object.
*
* @param callback Indicates the pointer to OH_ArkUI_SurfaceCallback object needed to dispose.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SurfaceCallback_Dispose(OH_ArkUI_SurfaceCallback* callback);
@@ -970,7 +1081,7 @@ void OH_ArkUI_SurfaceCallback_Dispose(OH_ArkUI_SurfaceCallback* callback);
* @param callback Indicated the pointer to the surface callback.
* @param onSurfaceCreated Indicates the surface created callback event
* which will called when the surface is created.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SurfaceCallback_SetSurfaceCreatedEvent(
OH_ArkUI_SurfaceCallback* callback,
@@ -982,7 +1093,7 @@ void OH_ArkUI_SurfaceCallback_SetSurfaceCreatedEvent(
* @param callback Indicated the pointer to the surface callback.
* @param onSurfaceChanged Indicates the surface changed callback event
* which will called when the surface is changed.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent(
OH_ArkUI_SurfaceCallback* callback,
@@ -994,7 +1105,7 @@ void OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent(
* @param callback Indicated the pointer to the surface callback.
* @param onSurfaceDestroyed Indicates the surface destroyed callback event
* which will called when the surface is destroyed.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SurfaceCallback_SetSurfaceDestroyedEvent(
OH_ArkUI_SurfaceCallback* callback,
@@ -1008,7 +1119,7 @@ void OH_ArkUI_SurfaceCallback_SetSurfaceDestroyedEvent(
* @return Returns the status code of the execution.
* {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SurfaceHolder_AddSurfaceCallback(
OH_ArkUI_SurfaceHolder* surfaceHolder,
@@ -1023,7 +1134,7 @@ int32_t OH_ArkUI_SurfaceHolder_AddSurfaceCallback(
* @return Returns the status code of the execution.
* {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SurfaceHolder_RemoveSurfaceCallback(
OH_ArkUI_SurfaceHolder* surfaceHolder,
@@ -1032,7 +1143,7 @@ int32_t OH_ArkUI_SurfaceHolder_RemoveSurfaceCallback(
/**
* @brief Forward declaration of OHNativeWindow.
*
- * @since 18
+ * @since 19
*/
typedef struct NativeWindow OHNativeWindow;
@@ -1041,7 +1152,7 @@ typedef struct NativeWindow OHNativeWindow;
*
* @param surfaceHolder Indicates the pointer to this OH_ArkUI_SurfaceHolder instance.
* @return Returns the nativeWindow associated with this OH_ArkUI_SurfaceHolder instance.
- * @since 18
+ * @since 19
*/
OHNativeWindow* OH_ArkUI_XComponent_GetNativeWindow(OH_ArkUI_SurfaceHolder* surfaceHolder);
@@ -1056,7 +1167,7 @@ OHNativeWindow* OH_ArkUI_XComponent_GetNativeWindow(OH_ArkUI_SurfaceHolder* surf
* @return Returns the status code of the execution.
* {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} if the node is invalid.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_XComponent_SetAutoInitialize(ArkUI_NodeHandle node, bool autoInitialize);
@@ -1068,7 +1179,7 @@ int32_t OH_ArkUI_XComponent_SetAutoInitialize(ArkUI_NodeHandle node, bool autoIn
* {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} if the node is invalid.
* {@link ARKUI_ERROR_CODE_XCOMPONENT_STATE_INVALID} if the node has initialized.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_XComponent_Initialize(ArkUI_NodeHandle node);
@@ -1080,7 +1191,7 @@ int32_t OH_ArkUI_XComponent_Initialize(ArkUI_NodeHandle node);
* {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} if the node is invalid.
* {@link ARKUI_ERROR_CODE_XCOMPONENT_STATE_INVALID} if the node has finalized.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_XComponent_Finalize(ArkUI_NodeHandle node);
@@ -1092,10 +1203,100 @@ int32_t OH_ArkUI_XComponent_Finalize(ArkUI_NodeHandle node);
* @return Returns the status code of the execution.
* {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} if the node is invalid.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_XComponent_IsInitialized(ArkUI_NodeHandle node, bool* isInitialized);
+/**
+ * @brief Set the Expected FrameRateRange for the XComponent node.
+ *
+ * @param node Indicates the pointer to the XComponent node.
+ * @param range Indicates the expected rate range.
+ * @return Returns the status code of the execution.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_ArkUI_XComponent_SetExpectedFrameRateRange(
+ ArkUI_NodeHandle node, OH_NativeXComponent_ExpectedRateRange range);
+
+/**
+ * @brief Registers an onFrame callback for the XComponent node.
+ *
+ * @param node Indicates the pointer to the XComponent node.
+ * @param callback Indicates the pointer to an onFrame callback.
+ * @return Returns the status code of the execution.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_ArkUI_XComponent_RegisterOnFrameCallback(ArkUI_NodeHandle node,
+ void (*callback)(ArkUI_NodeHandle node, uint64_t timestamp, uint64_t targetTimestamp));
+
+/**
+ * @brief UnRegister the onFrame callback for the XComponent node.
+ *
+ * @param node Indicates the pointer to the XComponent node.
+ * @return Returns the status code of the execution.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_ArkUI_XComponent_UnregisterOnFrameCallback(ArkUI_NodeHandle node);
+
+/**
+ * @brief Set whether the XComponent node needs soft keyboard when focused.
+ * @param node Indicates the pointer to the XComponent node.
+ * @param needSoftKeyboard Indicates whether the XComponent node needs soft keyboard or not.
+ * Default value is false.
+ * @return Returns the status code of the execution.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+int32_t OH_ArkUI_XComponent_SetNeedSoftKeyboard(ArkUI_NodeHandle node, bool needSoftKeyboard);
+
+/**
+ * @brief Create a ArkUI_AccessibilityProvider object from an XComponent node.
+ *
+ * @param node Indicates the pointer to the XComponent node.
+ * @return Returns the created ArkUI_AccessibilityProvider object's pointer.
+ * @since 20
+ */
+ArkUI_AccessibilityProvider* OH_ArkUI_AccessibilityProvider_Create(ArkUI_NodeHandle node);
+
+/**
+ * @brief Disposes of an ArkUI_AccessibilityProvider object.
+ *
+ * @param provider Indicates the pointer to ArkUI_AccessibilityProvider object needed to dispose.
+ * @since 20
+ */
+void OH_ArkUI_AccessibilityProvider_Dispose(ArkUI_AccessibilityProvider* provider);
+
+/**
+ * @brief Set the surface show event of the surface callback.
+ *
+ * @param callback Indicated the pointer to the surface callback.
+ * @param onSurfaceShow Indicates the surface show callback event which will called when the surface is shown.
+ * @since 20
+ */
+void OH_ArkUI_SurfaceCallback_SetSurfaceShowEvent(
+ OH_ArkUI_SurfaceCallback* callback,
+ void (*onSurfaceShow)(OH_ArkUI_SurfaceHolder* surfaceHolder));
+
+/**
+ * @brief Set the surface hide event of the surface callback.
+ *
+ * @param callback Indicated the pointer to the surface callback.
+ * @param onSurfaceHide Indicates the surface hide callback event which will called when the surface is hide.
+ * @since 20
+ */
+void OH_ArkUI_SurfaceCallback_SetSurfaceHideEvent(
+ OH_ArkUI_SurfaceCallback* callback,
+ void (*onSurfaceHide)(OH_ArkUI_SurfaceHolder* surfaceHolder));
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/native_key_event.h b/arkui/ace_engine/native/native_key_event.h
index a20f0e9b5f75e9ca329d42efdf748b49375ab77b..c18b311d392a3e2df4ee4faadf0f6a1c11c35271 100644
--- a/arkui/ace_engine/native/native_key_event.h
+++ b/arkui/ace_engine/native/native_key_event.h
@@ -565,6 +565,42 @@ void OH_ArkUI_KeyEvent_SetConsumed(const ArkUI_UIInputEvent* event, bool isConsu
* @since 15
*/
void OH_ArkUI_KeyEvent_Dispatch(ArkUI_NodeHandle node, const ArkUI_UIInputEvent* event);
+
+/**
+ * @brief Get the Num Lock state of the key event.
+ *
+ * @param event Pointer to an ArkUI_UIInputEvent object.
+ * @param state Return whether the Num Lock is on.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+ArkUI_ErrorCode OH_ArkUI_KeyEvent_IsNumLockOn(const ArkUI_UIInputEvent* event, bool* state);
+
+/**
+ * @brief Get the Caps Lock state of the key event.
+ *
+ * @param event Pointer to an ArkUI_UIInputEvent object.
+ * @param state Return whether the Caps Lock is on.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+ArkUI_ErrorCode OH_ArkUI_KeyEvent_IsCapsLockOn(const ArkUI_UIInputEvent* event, bool* state);
+
+/**
+ * @brief Get the Scroll Lock state of the key event.
+ *
+ * @param event Pointer to an ArkUI_UIInputEvent object.
+ * @param state Return whether the Scroll Lock is on.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 19
+ */
+ArkUI_ErrorCode OH_ArkUI_KeyEvent_IsScrollLockOn(const ArkUI_UIInputEvent* event, bool* state);
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h
index 68e03458616775fbe8bbef56770b4b4334f26cdb..cd08b26e86659d12bcd26bdfafc1614895755127 100644
--- a/arkui/ace_engine/native/native_node.h
+++ b/arkui/ace_engine/native/native_node.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -138,6 +138,16 @@ typedef enum {
ARKUI_NODE_GRID_ITEM,
/** Custom span. */
ARKUI_NODE_CUSTOM_SPAN,
+ /**
+ * EmbeddedComponent.
+ * @since 20
+ */
+ ARKUI_NODE_EMBEDDED_COMPONENT,
+ /**
+ * Undefined.
+ * @since 20
+ */
+ ARKUI_NODE_UNDEFINED,
} ArkUI_NodeType;
/**
@@ -1891,7 +1901,7 @@ typedef enum {
* .value[2].f32: width of the right edge. The unit is vp. \n
* .value[3].f32: width of the bottom edge. The unit is vp. \n
*
- * @since 18
+ * @since 19
*/
NODE_BACKGROUND_IMAGE_RESIZABLE_WITH_SLICE = 100,
@@ -1925,10 +1935,63 @@ typedef enum {
* .object: parameters for visible area change events.
* The parameter type is {@link ArkUI_VisibleAreaEventOptions}. \n
*
- * @since 18
+ * @since 17
*/
NODE_VISIBLE_AREA_APPROXIMATE_CHANGE_RATIO = 102,
+ /**
+ * @brief Defines the translate attribute, which supports for percentile translation input, and can be set, reset,
+ * and obtained as required through APIs.\n
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: distance to translate along the x-axis. The default unit is percentage.
+ * The unit is vp only if value[3] exists and value[3] is 0. The default value of value[0] is 0.\n
+ * .value[1].f32: distance to translate along the y-axis. The default unit is percentage.
+ * The unit is vp only if value[4] exists and value[4] is 0. The default value of value[1] is 0.\n
+ * .value[2].f32: distance to translate along the z-axis, in vp. The default value is 0.\n
+ * .value[3]?.i32: Whether the translation distance along the x-axis is specified as a percentage.
+ * The value can be 0 or 1. When the value is 1, it is specified as a percentage.
+ * For example, value[0].f32=0.1 and value[3].i32=1 indicates a 10% shift in the x direction.
+ * The default value is 1.\n
+ * .value[4]?.i32: Whether the translation distance along the y-axis is specified as a percentage.
+ * The value can be 0 or 1. When the value is 1, it is specified as a percentage.
+ * For example, value[1].f32=0.1 and value[4].i32=1 indicates a 10% shift in the y direction.
+ * The default value is 1.\n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: distance to translate along the x-axis. The unit depends on value[3].\n
+ * .value[1].f32: distance to translate along the y-axis. The unit depends on value[4].\n
+ * .value[2].f32: distance to translate along the z-axis. The unit is vp.\n
+ * .value[3].i32: Whether the unit of the X-axis translation distance is in percentage. When value[3].i32 is 0,
+ * the unit of the X-axis translation distance is vp; when value[3].i32 is 1, the unit of the X-axis translation
+ * distance is percentage;\n
+ * .value[4].i32: Whether the unit of the Y-axis translation distance is in percentage. When value[4].i32 is 0,
+ * the unit of the Y-axis translation distance is vp; when value[4].i32 is 1, the unit of the Y-axis translation
+ * distance is percentage;\n
+ *
+ * @since 20
+ */
+ NODE_TRANSLATE_WITH_PERCENT = 103,
+
+ /**
+ * @brief Sets component rotation with multi-axis angle control. This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: x-axis rotation angle. The default value is 0. \n
+ * .value[1].f32: y-axis rotation angle. The default value is 0. \n
+ * .value[2].f32: z-axis rotation angle. The default value is 0. \n
+ * .value[3].f32: perspective distance from the viewpoint to the z=0 plane, in px. The default value is 0. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: x-axis rotation angle. The default value is 0.
+ * .value[1].f32: y-axis rotation angle. The default value is 0. \n
+ * .value[2].f32: z-axis rotation angle. The default value is 0. \n
+ * .value[3].f32: perspective distance from the viewpoint to the z=0 plane, in px. The default value is 0. \n
+ *
+ * @since 20
+ */
+ NODE_ROTATE_ANGLE = 104,
+
/**
* @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs.
*
@@ -2316,6 +2379,111 @@ typedef enum {
*/
NODE_IMMUTABLE_FONT_WEIGHT = 1030,
+ /**
+ * @brief Defines the text line count attribute, which can only be obtained as required through APIs.
+ *
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: line count of the node.
+ *
+ * @since 20
+ */
+ NODE_TEXT_LINE_COUNT = 1031,
+
+ /**
+ * @brief Sets whether to optimize the trailing spaces at the end of each line during text layout.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * value[0].i32: whether to optimize trailing spaces at the end of each line during text layout.
+ * The default value is false. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * value[0].i32: whether to optimize trailing spaces at the end of each line during text layout. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_OPTIMIZE_TRAILING_SPACE = 1032,
+ /**
+ * @brief Sets a linear gradient effect for text.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: start angle of the linear gradient.
+ * The setting takes effect only when direction is set to ARKUI_LINEAR_GRADIENT_DIRECTION_CUSTOM.
+ * A positive value indicates a clockwise rotation from the origin, (0, 0). The default value is 180. \n
+ * .value[1].i32: direction of the linear gradient. When a direction other than
+ * ARKUI_LINEAR_GRADIENT_DIRECTION_CUSTOM is set, the angle property is ignored.
+ * The parameter type is {@link ArkUI_LinearGradientDirection}. \n
+ * .value[2].i32: whether the colors are repeated. The default value is false.
+ * .object: array of color stops, each of which consists of a color and its stop position.
+ * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n \n
+ * colors: colors of the color stops. \n
+ * stops: stop positions of the color stops. \n
+ * size: number of colors. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: start angle of the linear gradient.
+ * When direction is set to ARKUI_LINEAR_GRADIENT_DIRECTION_CUSTOM, angle at the set value;
+ * otherwise, it is at default value. \n
+ * .value[1].i32: direction of the linear gradient. \n
+ * .value[2].i32: whether the colors are repeated. \n
+ * .object: array of color stops, each of which consists of a color and its stop position.
+ * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n \n
+ * colors: colors of the color stops. \n
+ * stops: stop positions of the color stops. \n
+ * size: number of colors. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_LINEAR_GRADIENT = 1033,
+
+ /**
+ * @brief Sets a radial gradient effect for text. This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0]?.f32: X-coordinate of the radial gradient center relative to the upper left corner of the text. \n
+ * .value[1]?.f32: Y-coordinate of the radial gradient center relative to the upper left corner of the text. \n
+ * .value[2]?.f32: radius of the radial gradient. The default value is 0. \n
+ * .value[3]?.i32: whether the colors are repeated.
+ * The value 1 means that the colors are repeated, and 0 means the opposite.\n \n
+ * .object: array of color stops, each of which consists of a color and its stop position.
+ * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n
+ * colors: colors of the color stops. \n
+ * stops: stop positions of the color stops. \n
+ * size: number of colors. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: X-coordinate of the radial gradient center relative to the upper left corner of the text. \n
+ * .value[1].f32: Y-coordinate of the radial gradient center relative to the upper left corner of the text. \n
+ * .value[2].f32: radius of the radial gradient. The default value is 0. \n
+ * .value[3].i32: whether the colors are repeated.
+ * The value 1 means that the colors are repeated, and 0 means the opposite. \n
+ * .object: array of color stops, each of which consists of a color and its stop position.
+ * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n
+ * colors: colors of the color stops. \n
+ * stops: stop positions of the color stops. \n
+ * size: number of colors. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_RADIAL_GRADIENT = 1034,
+
+ /**
+ * @brief Sets the vertical alignment of the text content.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: vertical alignment of the text content, specified using the {@link ArkUI_TextVerticalAlignment}
+ * enum. The default value is ARKUI_TEXT_VERTICAL_ALIGNMENT_BASELINE. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: vertical alignment of the text content, specified using the {@link ArkUI_TextVerticalAlignment}
+ * enum. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_VERTICAL_ALIGN = 1035,
+
/**
* @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs.
*
@@ -2573,6 +2741,19 @@ typedef enum {
*
*/
NODE_IMAGE_RESIZABLE,
+ /**
+ * @brief Defines the synchronous image loading attribute.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether to load the image synchronously. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: whether to load the image synchronously. \n
+ *
+ * @since 20
+ */
+ NODE_IMAGE_SYNC_LOAD = 4012,
/**
* @brief Defines the color of the component when it is selected.
* This attribute can be set, reset, and obtained as required through APIs.
@@ -3123,6 +3304,33 @@ typedef enum {
*/
NODE_TEXT_INPUT_KEYBOARD_APPEARANCE = 7035,
+ /**
+ * @brief Set whether to enable the auto fill animation or not.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: Whether to enable the auto fill animation.\n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}: \n
+ * .value[0].i32: Get the flag of whether the auto fill animation is enabled.\n
+ *
+ * @since 20
+ */
+ NODE_TEXT_INPUT_ENABLE_FILL_ANIMATION = 7036,
+
+ /**
+ * @brief Set the line height of the input node.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: line height value. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}: \n
+ * .value[0].i32: line height value. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_INPUT_LINE_HEIGHT = 7037,
+
/**
* @brief Defines the default placeholder text for the multi-line text box.
* This attribute can be set, reset, and obtained as required through APIs.
@@ -3471,6 +3679,73 @@ typedef enum {
*/
NODE_TEXT_AREA_KEYBOARD_APPEARANCE = 8026,
+ /**
+ * @brief Set the max lines of the node. This attrilbute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: max lines count. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: max lines count. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_AREA_MAX_LINES = 8027,
+
+ /**
+ * @brief Set line spacing of the node. This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: line spacing value. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: line spacing value. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_AREA_LINE_SPACING = 8028,
+
+ /**
+ * @brief Set the min lines of the node. This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: min lines count.
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}: \n
+ * .value[0].i32: min line count.\n
+ *
+ * @since 20
+ *
+ */
+ NODE_TEXT_AREA_MIN_LINES = 8029,
+
+ /**
+ * @brief Set the max lines of the node with scroll. This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: max lines count with scroll.
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}: \n
+ * .value[0].i32: max line count with scroll.\n
+ *
+ * @since 20
+ *
+ */
+ NODE_TEXT_AREA_MAX_LINES_WITH_SCROLL = 8030,
+
+ /**
+ * @brief Set the line height of the node. This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: line height value. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}: \n
+ * .value[0].i32: line height value. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_AREA_LINE_HEIGHT = 8031,
+
/**
* @brief Defines the button text content. This attribute can be set, reset, and obtained as required through APIs.
*
@@ -3489,12 +3764,10 @@ typedef enum {
* Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
* .value[0].i32: button type. The parameter type is {@link ArkUI_ButtonType}.
* The default value is ARKUI_BUTTON_TYPE_CAPSULE. \n
- * After api 16 the default value change to ARKUI_BUTTON_ROUNDED_RECTANGLE.
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .value[0].i32: button type. The parameter type is {@link ArkUI_ButtonType}.
* The default value is ARKUI_BUTTON_TYPE_CAPSULE. \n
- * After api 16 the default value change to ARKUI_BUTTON_ROUNDED_RECTANGLE.
*
*/
NODE_BUTTON_TYPE,
@@ -3904,6 +4177,20 @@ typedef enum {
* @since 18
*/
NODE_DATE_PICKER_ENABLE_HAPTIC_FEEDBACK = 13008,
+ /**
+ * @brief Defines whether to support scroll looping for the date picker.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether to support scroll looping. The value true means to support scroll looping, and
+ * false means the opposite.\n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * value[0].i32: The value 1 means to support scroll looping, and 0 means the opposite. \n
+ *
+ * @since 20
+ */
+ NODE_DATE_PICKER_CAN_LOOP = 13009,
/**
* @brief Defines the time of the selected item. in the timer picker.
* This attribute can be set, reset, and obtained as required through APIs.
@@ -4214,6 +4501,28 @@ typedef enum {
* @since 18
*/
NODE_TEXT_PICKER_ENABLE_HAPTIC_FEEDBACK = 15010,
+ /**
+ * @brief Defines the background color and border radius of the selected items.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].u32: background color, in 0xARGB format, for example, 0xFF1122FF. \n
+ * 1: .value[1].f32: radius of the four corners. \n
+ * 2: .value[1].f32: radius of the upper left corner. \n
+ * .value[2].f32: radius of the upper right corner. \n
+ * .value[3].f32: radius of the lower left corner. \n
+ * .value[4].f32: radius of the lower right corner. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].u32: background color, in 0xARGB format, for example, 0xFF1122FF. \n *
+ * .value[1].f32: radius of the upper left corner. \n
+ * .value[2].f32: radius of the upper right corner. \n
+ * .value[3].f32: radius of the lower left corner. \n
+ * .value[4].f32: radius of the lower right corner. \n
+ *
+ * @since 20
+ */
+ NODE_TEXT_PICKER_SELECTED_BACKGROUND_STYLE = 15011,
/**
* @brief Defines the style of the background in the selected state of the calendar picker.
* This attribute can be set, reset, and obtained as required through APIs.
@@ -4546,11 +4855,39 @@ typedef enum {
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* value[0].i32: whether to feedback.\n
+ * When enabling haptic feedback, you need to add "ohos.permission.VIBRATE" in the
+ * requestPermissions field of the module.json5 file to enable vibration permission.\n
*
* @since 18
*/
NODE_SLIDER_ENABLE_HAPTIC_FEEDBACK = 17013,
+ /**
+ * @brief Sets a custom component on the leading side of the Slider component.
+ *
+ * Attribute setting method {@link ArkUI_AttributeItem} parameter format:\n
+ * .object: Parameter type {@link ArkUI_NodeHandle}.
+ *
+ * The prefix component will be placed at the start position of the Slider,
+ * typically on the left side in LTR layouts.
+ *
+ * @since 20
+ */
+ NODE_SLIDER_PREFIX,
+
+ /**
+ * @brief Sets a custom component on the trailing side of the Slider component.
+ *
+ * Attribute setting method {@link link ArkUI_AttributeItem} parameter format:\n
+ * .object: Parameter type {@link ArkUI_NodeHandle}.
+ *
+ * The suffix component will be placed at the end position of the Slider,
+ * typically on the right side in LTR layouts.
+ *
+ * @since 20
+ */
+ NODE_SLIDER_SUFFIX,
+
/**
* @brief Set the selection status of an option button. Attribute setting,
* attribute resetting, and attribute obtaining are supported.
@@ -4610,11 +4947,11 @@ typedef enum {
*
* Attribute setting method {@Link ArkUI_AttributeItem} Parameter format:\n
* .size: number of the images.\n
- * .object: array of the images, the type is {@ArkUI_ImageAnimatorFrameInfo} array.\n
+ * .object: array of the images, the type is {@Link ArkUI_ImageAnimatorFrameInfo} array.\n
* \n
* Attribute obtaining method return value {@Link ArkUI_AttributeItem} format:\n
* .size: number of the images.\n
- * .object: array of the images, the type is {@ArkUI_ImageAnimatorFrameInfo} array.\n
+ * .object: array of the images, the type is {@Link ArkUI_ImageAnimatorFrameInfo} array.\n
*
*/
NODE_IMAGE_ANIMATOR_IMAGES = ARKUI_NODE_IMAGE_ANIMATOR * MAX_NODE_SCOPE_NUM,
@@ -4864,7 +5201,8 @@ typedef enum {
* The parameter type is {@link ArkUI_EdgeEffect}. The default value is ARKUI_EDGE_EFFECT_NONE.\n
* .value[1]?.i32: whether to enable the scroll effect when the component content size is smaller than the
* component itself. Optional. The value 1 means to enable the scroll effect, and 0 means the
- * opposite. The default value is 1. \n
+ * opposite. The default value for the List/Grid/WaterFlow component is 0, and the default value for the
+ * Scroll component is 1. \n
* .value[2]?.i32: direction in which the effect takes effect. The parameter type is {@link ArkUI_EffectEdge}.
* The default value is ARKUI_EFFECT_EDGE_START | ARKUI_EFFECT_EDGE_END. This parameter is supported since
* API version 16. \n
@@ -4962,10 +5300,13 @@ typedef enum {
* .value[1].f32: vertical scrolling offset, in vp. \n
* .value[2]?.i32: scrolling duration, in milliseconds. Optional. \n
* .value[3]?.i32: scrolling curve. Optional. The parameter type is {@link ArkUI_AnimationCurve}.
- * The default value is ARKUI_CURVE_EASE. \n
- * .value[4]?.i32: whether to enable the default spring animation. Optional. The default value 0 means not
- * to enable the default spring animation. \n
- * .value[5]?.i32: Optional value, sets whether scrolling can cross the boundary. \n
+ * The default value is ARKUI_CURVE_EASE. \n
+ * .value[4]?.i32: whether to enable the default spring animation. Optional.
+ * The default value 0 means not to enable the default spring animation. \n
+ * .value[5]?.i32: whether to convert the scroll animation to an overshoot animation when the boundary is reached.
+ * Optional. \n
+ * .value[6]?.i32: whether the component can stop at an overscrolled position.
+ * This parameter is supported since API version 20. \n
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .value[0].f32: horizontal scrolling offset, in vp. \n
@@ -5139,8 +5480,78 @@ typedef enum {
NODE_SCROLL_BACK_TO_TOP = 1002021,
/**
- * @brief Defines the direction in which the list items are arranged. This attribute can be set, reset, and
- * obtained as required through APIs.
+ * @brief Defines the margin of the scrollbar.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: start margin of the scrollbar, in vp. The default value is 0. \n
+ * .value[1].f32: end margin of the scrollbar, in vp. The default value is 0. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: start margin of the scrollbar, in vp. \n
+ * .value[1].f32: end margin of the scrollbar, in vp. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_BAR_MARGIN = 1002022,
+
+ /**
+ * @brief Sets the maximum zoom scale for scrollable content.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: maximum zoom scale to set. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: current maximum zoom scale. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_MAX_ZOOM_SCALE = 1002023,
+
+ /**
+ * @brief Sets the minimum zoom scale for scrollable content.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: minimum zoom scale to set. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: current minimum zoom scale. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_MIN_ZOOM_SCALE = 1002024,
+
+ /**
+ * @brief Sets the zoom scale for scrollable content.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: zoom scale to set. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: current zoom scale. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_ZOOM_SCALE = 1002025,
+
+ /**
+ * @brief Sets whether to enable the zoom bounce effect when the scaling exceeds the limits.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether to enable the zoom bounce effect when the scaling exceeds the limits.
+ * The value 1 means to enable the effect, and 0 means the opposite. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: whether to enable the zoom bounce effect when the scaling exceeds the limits.
+ * The value 1 means to enable the effect, and 0 means the opposite. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_ENABLE_BOUNCES_ZOOM = 1002026,
+
+ /**
+ * @brief Sets the direction in which the list items are arranged.
+ * This attribute can be set, reset, and obtained as required through APIs.
*
* Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
* .value[0].i32: direction in which the list items are arranged. The parameter type is {@link ArkUI_Axis}.
@@ -5217,6 +5628,7 @@ typedef enum {
* .value[2]?.i32:Specify the alignment of the sliding element with the current container,The parameter type is
* {@link ArkUI_ScrollAlignment}, default value is ARKUI_SCROLL_ALIGNMENT_START. \n
* .value[3]?.f32: extra offset, in vp. The default value is 0.
+ * This parameter is supported since API version 15. \n
*
*/
NODE_LIST_SCROLL_TO_INDEX,
@@ -5361,9 +5773,41 @@ typedef enum {
* .value[0].i32: whether the List component starts layout from the end. The value 0 means layout
* starts from the top, and 1 means layout starts from the end. The default value is 0. \n
*
- * @since 18
+ * @since 19
*/
NODE_LIST_STACK_FROM_END = 1003014,
+
+ /**
+ * @brief Defines the focus wrap mode for the List component.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: focus wrap mode of the List component.
+ * The parameter type is {@link ArkUI_FocusWrapMode}. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: focus wrap mode of the List component.
+ * The parameter type is {@link ArkUI_FocusWrapMode}. \n
+ *
+ * @since 20
+ */
+ NODE_LIST_FOCUS_WRAP_MODE = 1003015,
+
+ /**
+ * @brief Defines whether the List component loads child nodes synchronously.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether the List component synchronously loads child nodes.
+ * The value 0 means loading by frames, and 1 means synchronous loading. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: whether the List component synchronously loads child nodes.
+ * The value 0 means loading by frames, and 1 means synchronous loading. \n
+ *
+ * @since 20
+ */
+ NODE_LIST_SYNC_LOAD = 1003016,
/**
* @brief Defines whether to enable loop playback for the swiper.
@@ -5506,13 +5950,13 @@ typedef enum {
* Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
* .value[0].i32: number of elements to display per page. \n
* .value[1]?.i32: whether to turn pages by group. The value 0 means to turn pages by child element,
- * and 1 means to turn pages by group. This parameter is supported since API version 16. \n
+ * and 1 means to turn pages by group. This parameter is supported since API version 19. \n
* .string?: this parameter can only be set to 'auto'. When 'auto' is set, the value[] parameters are ignored.
- * This parameter is supported since API version 16. \n
+ * This parameter is supported since API version 19. \n
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .value[0].i32: number of elements to display per page. \n
- * .value[1].i32: whether to turn pages by group. This parameter is supported since API version 16. \n
+ * .value[1].i32: whether to turn pages by group. This parameter is supported since API version 19. \n
* .string: 'auto' or empty string.
*
*/
@@ -5542,14 +5986,14 @@ typedef enum {
* The parameter type is {@link ArkUI_SwiperArrow}.\n
* The default value is ARKUI_SWIPER_ARROW_HIDE. \n
* .?object: arrow style. The parameter type is {@link ArkUI_SwiperArrowStyle}. \n
- * This parameter is supported since API version 16. \n
+ * This parameter is supported since API version 19. \n
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .value[0].i32: whether to show the arrow when the mouse pointer hovers over the navigation point indicator.
* The parameter type is {@link ArkUI_SwiperArrow}.\n
* The default value is ARKUI_SWIPER_ARROW_HIDE. \n
* .object: arrow style. The parameter type is {@link ArkUI_SwiperArrowStyle}. \n
- * This parameter is supported since API version 16. \n
+ * This parameter is supported since API version 19. \n
*
*/
NODE_SWIPER_SHOW_DISPLAY_ARROW,
@@ -5587,11 +6031,11 @@ typedef enum {
* .value[1]?.i32: whether the cached items will be displayed. \n
* The value 0 indicates that cached items will not be displayed, \n
* and 1 indicates that cached nodes will be displayed. The default value is 0. \n
- * This parameter is supported from API version 16. \n
+ * This parameter is supported from API version 19. \n
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .value[0].i32: number of cached items in the swiper adapter. \n
- * .value[1].i32: whether the cached items will be displayed. This parameter is supported from API version 16. \n
+ * .value[1].i32: whether the cached items will be displayed. This parameter is supported from API version 19. \n
*/
NODE_SWIPER_CACHED_COUNT,
@@ -5634,14 +6078,14 @@ typedef enum {
* .object: The parameter type is {@link ArkUI_SwiperIndicator} when the indicator type \n
* is ARKUI_SWIPER_INDICATOR_TYPE_DOT. The parameter type is {@link ArkUI_SwiperDigitIndicator}
* when the indicator type is ARKUI_SWIPER_INDICATOR_TYPE_DIGIT. \n
- * {@link ArkUI_SwiperDigitIndicator} is supported since API version 16. \n
+ * {@link ArkUI_SwiperDigitIndicator} is supported since API version 19. \n
* \n
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .value[0].i32: navigation indicator type, the parameter type is {@link ArkUI_SwiperIndicatorType}.\n
* .object: The parameter type is {@link ArkUI_SwiperIndicator} when the indicator type \n
* is ARKUI_SWIPER_INDICATOR_TYPE_DOT. The parameter type is {@link ArkUI_SwiperDigitIndicator}
* when the indicator type is ARKUI_SWIPER_INDICATOR_TYPE_DIGIT. \n
- * {@link ArkUI_SwiperDigitIndicator} is supported since API version 16. \n
+ * {@link ArkUI_SwiperDigitIndicator} is supported since API version 19. \n
*
*/
NODE_SWIPER_INDICATOR,
@@ -5707,10 +6151,28 @@ typedef enum {
* .value[0].f32: minimum main axis size of the child element, Unit: vp. \n
* .value[1].i32: whether to turn pages by group. \n
*
- * @since 18
+ * @since 19
*/
NODE_SWIPER_AUTO_FILL,
+ /**
+ * @brief Sets whether to maintain the visible content's position when data is inserted or deleted outside
+ * the display area of the Swiper component.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether to maintain the visible content's position when data is inserted or deleted outside
+ * the display area of the Swiper component. The value 0 means not to maintain the visible content's
+ * position, and 1 means the opposite. The default value is 0. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: whether to maintain the visible content's position when data is inserted or deleted outside
+ * the display area of the Swiper component. The value 0 means not to maintain the visible content's
+ * position, and 1 means the opposite. The default value is 0. \n
+ *
+ * @since 20
+ */
+ NODE_SWIPER_MAINTAIN_VISIBLE_CONTENT_POSITION = 1001023,
+
/**
* @brief: Set the delineation component of the ListItem, supporting property settings, property resets, and
* property acquisition interfaces.
@@ -5936,6 +6398,19 @@ typedef enum {
*
*/
NODE_REFRESH_PULL_TO_REFRESH = 1009004,
+ /**
+ * @brief Sets the maximum pull-down distance for refreshing.
+ * This attribute can be set, reset, and obtained through the API as required.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].f32: maximum pull-down distance, in vp.
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].f32: maximum pull-down distance, in vp.
+ *
+ * @since 20
+ */
+ NODE_REFRESH_MAX_PULL_DOWN_DISTANCE = 1009005,
/**
* @brief Defines the main axis direction of the component layout.
@@ -6110,6 +6585,22 @@ typedef enum {
*/
NODE_WATER_FLOW_LAYOUT_MODE,
+ /**
+ * @brief Defines whether the WaterFlow component loads child nodes synchronously.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether the WaterFlow component synchronously loads child nodes.
+ * The value 0 means loading by frames, and 1 means synchronous loading. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: whether the WaterFlow component synchronously loads child nodes.
+ * The value 0 means loading by frames, and 1 means synchronous loading. \n
+ *
+ * @since 20
+ */
+ NODE_WATER_FLOW_SYNC_LOAD = 1010012,
+
/**
* @brief Set the auxiliary line in the RelativeContaine container, supporting property setting,
* property reset and property acquisition interfaces.
@@ -6215,6 +6706,38 @@ typedef enum {
*/
NODE_GRID_CACHED_COUNT,
+ /**
+ * @brief Defines the focus wrap mode for the Grid component.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: focus wrap mode of the Grid component.
+ * The parameter type is {@link ArkUI_FocusWrapMode}. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: focus wrap mode of the Grid component.
+ * The parameter type is {@link ArkUI_FocusWrapMode}. \n
+ *
+ * @since 20
+ */
+ NODE_GRID_FOCUS_WRAP_MODE = 1013006,
+
+ /**
+ * @brief Defines whether the Grid component loads child nodes synchronously.
+ * This attribute can be set, reset, and obtained as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .value[0].i32: whether the Grid component synchronously loads child nodes.
+ * The value 0 means loading by frames, and 1 means synchronous loading. \n
+ * \n
+ * Format of the return value {@link ArkUI_AttributeItem}:\n
+ * .value[0].i32: whether the Grid component synchronously loads child nodes.
+ * The value 0 means loading by frames, and 1 means synchronous loading. \n
+ *
+ * @since 20
+ */
+ NODE_GRID_SYNC_LOAD = 1013007,
+
/**
* @brief Defines the column width of the text picker.
* This attribute can be set, reset, and obtained as required through APIs.
@@ -6248,7 +6771,7 @@ typedef enum {
* Format of the return value {@link ArkUI_AttributeItem}:\n
* .string: A string of dates.\n
*
- * @since 18
+ * @since 19
*/
NODE_CALENDAR_PICKER_DISABLED_DATE_RANGE = 16006,
@@ -6262,9 +6785,32 @@ typedef enum {
* Format of the return value {@link ArkUI_AttributeItem}:\n
* value[0].i32: whether the calendar picker marks today.\n
*
- * @since 18
+ * @since 19
*/
NODE_CALENDAR_PICKER_MARK_TODAY = 16007,
+
+ /**
+ * @brief Defines the want used to start EmbeddedAbility.
+ * This attribute can be set as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .object: The want of EmbeddedComponent, with parameter type {@AbilityBase_Want}.
+ * The default value is nullptr.\n
+ *
+ * @since 20
+ */
+ NODE_EMBEDDED_COMPONENT_WANT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_EMBEDDED_COMPONENT,
+
+ /**
+ * @brief Set onError and onTerminated callbacks for EMBEDDED_COMPONENT.
+ * This attribute can be set as required through APIs.
+ *
+ * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
+ * .object: The option for EmbeddedComponent, with parameter type {@ArkUI_EmbeddedComponentOption}.\n
+ *
+ * @since 20
+ */
+ NODE_EMBEDDED_COMPONENT_OPTION,
} ArkUI_NodeAttributeType;
#define MAX_COMPONENT_EVENT_ARG_NUM 12
@@ -6601,7 +7147,7 @@ typedef enum {
* When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
* {@link ArkUI_UIInputEvent}. \n
*
- * @since 18
+ * @since 17
*/
NODE_ON_AXIS = 25,
@@ -6622,7 +7168,7 @@ typedef enum {
* When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
* {@link ArkUI_UIInputEvent}. \n
*
- *@since 18
+ *@since 17
*/
NODE_ON_HOVER_EVENT = 27,
@@ -6641,7 +7187,7 @@ typedef enum {
* ArkUI_NodeComponentEvent.data[1].f32: ratio of the component's visible area to its total area
* when this callback is invoked. \n
*
- * @since 18
+ * @since 17
*/
NODE_VISIBLE_AREA_APPROXIMATE_CHANGE_EVENT = 28,
@@ -6668,6 +7214,15 @@ typedef enum {
*
*/
NODE_TEXT_ON_DETECT_RESULT_UPDATE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT,
+ /**
+ * @brief Defines the long press event for span
+ *
+ * The event is triggered when the span is long pressed.
+ * When the event callback occurs, the {@link ArkUI_NodeEvent} object can be obtained from the
+ * {@link ArkUI_UIInputEvent} object.\n
+ * @since 20
+ */
+ NODE_TEXT_SPAN_ON_LONG_PRESS = 1001,
/**
* @brief Defines the image loading success event.
*
@@ -6911,6 +7466,19 @@ typedef enum {
*/
NODE_TEXT_INPUT_ON_CHANGE_WITH_PREVIEW_TEXT = 7013,
+ /**
+ * @brief Defines the event triggered before content changes.
+ *
+ * When the event callback occurs, the union type {@link ArkUI_NodeEvent} is {@link ArkUI_TextChangeEvent}. \n
+ * {@link ArkUI_TextChangeEvent} contains the following parameters: \n
+ * ArkUI_TextChangeEvent.pStr: content in the TextInput component.
+ * ArkUI_TextChangeEvent.pExtendStr: content of the preview text in the TextInput component.
+ * ArkUI_TextChangeEvent.number: start position of the preview text in the TextInput component.
+ *
+ * @since 20
+ */
+ NODE_TEXT_INPUT_ON_WILL_CHANGE = 7014,
+
/**
* @brief Defines the event triggered when the input in the text box changes.
*
@@ -7077,6 +7645,19 @@ typedef enum {
*/
NODE_TEXT_AREA_ON_CHANGE_WITH_PREVIEW_TEXT = 8012,
+ /**
+ * @brief Defines the event triggered before content changes
+ *
+ * When the event callback occurs, the union type {@link ArkUI_NodeEvent} is {@link ArkUI_TextChangeEvent}. \n
+ * {@link ArkUI_TextChangeEvent} contains the following parameters: \n
+ * ArkUI_TextChangeEvent.pStr: content in the TextArea component.
+ * ArkUI_TextChangeEvent.pExtendStr: content of the preview text in the TextArea component.
+ * ArkUI_TextChangeEvent.number: start position of the preview text in the TextArea component.
+ *
+ * @since 20
+ */
+ NODE_TEXT_AREA_ON_WILL_CHANGE = 8013,
+
/**
* @brief Defines the event triggered when the selected status of the ARKUI_NODE_CHECKBOX component changes.
*
@@ -7357,6 +7938,20 @@ typedef enum {
*/
NODE_SWIPER_EVENT_ON_CONTENT_WILL_SCROLL = 1001007,
+ /**
+ * @brief Defines the ARKUI_NODE_SWIPER scroll state change event.
+ * This event is triggered when the scroll state of the Swiper component changes during user dragging,
+ * during the animation phase after the user lifts their finger, or upon stopping of scrolling.
+ * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
+ * {@link ArkUI_NodeComponentEvent}. \n
+ * {@link ArkUI_NodeComponentEvent} contains one parameter:\n
+ * ArkUI_NodeComponentEvent.data[0].i32: current scroll state. The parameter type is
+ * {@link ArkUI_ScrollState}. \n
+ *
+ * @since 20
+ */
+ NODE_SWIPER_EVENT_ON_SCROLL_STATE_CHANGED = 1001008,
+
/**
* @brief Defines the event triggered when the ARKUI_NODE_SCROLL component scrolls.
*
@@ -7490,6 +8085,49 @@ typedef enum {
* {@Link ArkUI_NodeComponentEvent} contains no parameters. \n
*/
NODE_SCROLL_EVENT_ON_REACH_END,
+ /**
+ * @brief Defines the callback for when the user is about to release the drag on the scrollable container component.
+ *
+ * This event is triggered when the user is about to release the drag on the scrollable container component. \n
+ * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is
+ * {@link ArkUI_NodeComponentEvent}. \n
+ * {@link ArkUI_NodeComponentEvent} contains one parameter: \n
+ * ArkUI_NodeComponentEvent.data[0].f32: speed at which the user releases the drag, in vp. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_EVENT_ON_WILL_STOP_DRAGGING,
+ /**
+ * @brief Defines the callback for the Scroll component's zoom event,
+ * triggered at the end of each frame during zooming. \n
+ * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object
+ * is {@link ArkUI_NodeComponentEvent}. \n
+ * {@link ArkUI_NodeComponentEvent} contains one parameter:\n
+ * ArkUI_NodeComponentEvent.data[0].f32: current zoom scale. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_EVENT_ON_DID_ZOOM,
+ /**
+ * @brief Defines the callback for the Scroll component's zoom start event,
+ * triggered when zooming begins. \n
+ * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object
+ * is {@link ArkUI_NodeComponentEvent}. \n
+ * {@link ArkUI_NodeComponentEvent} does not contain parameters. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_EVENT_ON_ZOOM_START,
+ /**
+ * @brief Defines the callback for the Scroll component's zoom end event,
+ * triggered when zooming ends. \n
+ * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object
+ * is {@link ArkUI_NodeComponentEvent}. \n
+ * {@link ArkUI_NodeComponentEvent} does not contain parameters. \n
+ *
+ * @since 20
+ */
+ NODE_SCROLL_EVENT_ON_ZOOM_STOP,
/**
* @brief Defines the enumerated values of the event triggered, \n
* when a subcomponent of ARKUI_NODE_LIST is moved into or out of the list display area. \n
@@ -7820,6 +8458,16 @@ typedef enum {
ARKUI_NODE_CUSTOM_EVENT_ON_FOREGROUND_DRAW = 1 << 3,
/** Overlay type. */
ARKUI_NODE_CUSTOM_EVENT_ON_OVERLAY_DRAW = 1 << 4,
+ /**
+ * Draw front type.
+ * @since 20
+ */
+ ARKUI_NODE_CUSTOM_EVENT_ON_DRAW_FRONT = 1 << 5,
+ /**
+ * Draw behind type.
+ * @since 20
+ */
+ ARKUI_NODE_CUSTOM_EVENT_ON_DRAW_BEHIND = 1 << 6,
} ArkUI_NodeCustomEventType;
/**
@@ -8837,6 +9485,19 @@ int32_t OH_ArkUI_NodeUtils_GetLayoutPositionInWindow(ArkUI_NodeHandle node, ArkU
*/
int32_t OH_ArkUI_NodeUtils_GetLayoutPositionInScreen(ArkUI_NodeHandle node, ArkUI_IntOffset* screenOffset);
+/**
+ * @brief Obtains the offset of a component relative to the global display.
+ * The relative position does not count in transformation attributes, such as translate.
+ *
+ * @param node Pointer to the ArkUI_NodeHandle representing the component.
+ * @param offset Offset of the component relative to the global display, in px.
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+int32_t OH_ArkUI_NodeUtils_GetLayoutPositionInGlobalDisplay(ArkUI_NodeHandle node, ArkUI_IntOffset* offset);
+
/**
* @brief Obtain the position of the component in the window, including the properties of graphic translation changes.
*
@@ -9219,6 +9880,152 @@ int32_t OH_ArkUI_GetNodeSnapshot(ArkUI_NodeHandle node, ArkUI_SnapshotOptions* s
*/
int32_t OH_ArkUI_NodeUtils_GetPositionToParent(ArkUI_NodeHandle node, ArkUI_IntOffset* globalOffset);
+/**
+ * @brief Adds the UI state style supported by the component. To handle states change efficiently, need to specify the
+ * states of interest and the corresponding handler. When a state of interest occurs, the handler will be executed.
+ * - You can adjust the UI style based on the current state within the callback. If this API is called multiple
+ * times on the same node, the last set of states and handler will take precedence.
+ * - Some component types have default system handling for certain states. For example, the Button
+ * component has a default style effect for the PRESSED state. When custom state handling is implemented on such
+ * components, the default style effect will be applied first, followed by the custom style changes, resulting in
+ * a combined effect. To disable the default style effects, set excludeInner to true, if this is allowed
+ * by the system implementation.
+ * - And when this API is called, the provided handler function will be executed immediately.
+ * - There is no need to explicitly register a listener for the NORMAL state. Once a non-NORMAL state is registered,
+ * the system will automatically notify your application when the state changes back to NORMAL.
+ *
+ * @param node Target node.
+ * @param uiStates Target UI states to be handled on the node.
+ * The combined result of all target UI states can be calculated using the | operator.
+ * Example: targetUIStates = ArkUI_UIState::PRESSED | ArkUI_UIState::FOCUSED.
+ * @param statesChangeHandler Handler for UI state changes.
+ * It rturns the current UI status. The value is the result of combining all current state enum values using the
+ * | operator. You can determine the state using the & operator.
+ * Example: if (currentStates & ArkUI_UIState::PRESSED == ArkUI_UIState::PRESSED).
+ * However, for checking the normal state, use the equality operator directly.
+ * Example: if (currentStates == ArkUI_UIState::NORMAL).
+ * @param excludeInner Whether to disable the default state styles.
+ * @param userData Custom data used in the statesChangeHandler callback.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_AddSupportedUIStates(ArkUI_NodeHandle node, int32_t uiStates,
+ void (statesChangeHandler)(int32_t currentStates, void* userData), bool excludeInner, void* userData);
+
+/**
+ * @brief Removes registered UI states. When all states registered using OH_ArkUI_AddSupportedUIStates
+ * are removed, the registered stateChangeHandler will no longer be executed.
+ *
+ * @param node Target node.
+ * @param uiStates Target UI states to be removed.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_RemoveSupportedUIStates(ArkUI_NodeHandle node, int32_t uiStates);
+
+/**
+ * @brief Run a custom function inside the UIContext scope.
+ *
+ * @param uiContext Indicates the pointer to a UI instance.
+ * @param userData Indicates the pointer to the custom data.
+ * @param callback The custom function.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if the CAPI init error.
+ * Returns {@link ARKUI_ERROR_CODE_UI_CONTEXT_INVALID} if the uiContext is invalid.
+ * Returns {@link ARKUI_ERROR_CODE_CALLBACK_INVALID} if the callback function is invalid.
+ * @since 20
+ */
+int32_t OH_ArkUI_RunTaskInScope(ArkUI_ContextHandle uiContext, void* userData, void(*callback)(void* userData));
+
+/**
+ * @brief Get the node handle by uniqueId.
+ *
+ * @param uniqueId The uniqueId of the target node handle.
+ * @param node The handle of target node handle.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if the CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_NodeUtils_GetNodeHandleByUniqueId(const uint32_t uniqueId, ArkUI_NodeHandle* node);
+
+/**
+ * @brief Get the uniqueId of the target node handle.
+ *
+ * @param node The ArkUI-NodeHandle pointer.
+ * @param uniqueId The uniqueId of the target node handle, default value is -1.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if the CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_NodeUtils_GetNodeUniqueId(ArkUI_NodeHandle node, int32_t* uniqueId);
+
+/**
+ * @brief Sets the inverse color algorithm for components and instances.
+ *
+ * @param uiContext Indicates the context in which the inverse color feature should take effect. If the value is null,
+ * the feature applies to the entire application process.
+ * @param forceDark Indicates whether the inverse color feature is enabled.
+ * @param nodeType Indicates the component type for which to enable the inverse color feature. If the value is null,
+ * enabling the feature for all components.
+ * @param colorInvertFunc Indicates the user-defined inverse color algorithm.
+ * @return Returns the error code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ Returns {@link ARKUI_ERROR_CODE_FORCE_DARK_CONFIG_INVALID} if force dark config is invalid.
+ * @since 20
+ */
+int32_t OH_ArkUI_SetForceDarkConfig(ArkUI_ContextHandle uiContext, bool forceDark, ArkUI_NodeType nodeType,
+ uint32_t (*colorInvertFunc)(uint32_t color));
+
+/**
+ * @brief Post UI task to background threads.
+ *
+ * @param context UIContext pointer of the page where the UI task located.
+ * @param asyncUITaskData Parameter of asyncUITask and onFinish.
+ * @param asyncUITask Function executed by a background thread.
+ * @param onFinish Function executed by UI thread after async UI task is executed.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if context or asyncUITask is nullptr.
+ * @since 20
+ */
+int32_t OH_ArkUI_PostAsyncUITask(ArkUI_ContextHandle context, void* asyncUITaskData,
+ void (*asyncUITask)(void* asyncUITaskData), void (*onFinish)(void* asyncUITaskData));
+
+/**
+ * @brief Post UI task to UI thread.
+ *
+ * @param context UIContext pointer of the page where the UI task located.
+ * @param taskData Parameter of task.
+ * @param task Function executed by UI thread.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if context or task is nullptr.
+ * @since 20
+ */
+int32_t OH_ArkUI_PostUITask(ArkUI_ContextHandle context, void* taskData, void (*task)(void* taskData));
+
+/**
+ * @brief Post UI task to UI thread and wait until UI task finished.
+ *
+ * @param context UIContext pointer of the page where the UI task located.
+ * @param taskData Parameter of task.
+ * @param task Function executed by UI thread.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if context or task is nullptr.
+ * @since 20
+ */
+int32_t OH_ArkUI_PostUITaskAndWait(ArkUI_ContextHandle context, void* taskData, void (*task)(void* taskData));
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/native_node_napi.h b/arkui/ace_engine/native/native_node_napi.h
index 8070149fa3245b42b6568ca73fe1194cfa10a075..ef6d68fee3e786589eaa1f331eb592a086591e89 100644
--- a/arkui/ace_engine/native/native_node_napi.h
+++ b/arkui/ace_engine/native/native_node_napi.h
@@ -374,6 +374,46 @@ ArkUI_ErrorCode OH_ArkUI_GetRouterPageId(
int32_t OH_ArkUI_PostFrameCallback(ArkUI_ContextHandle uiContext, void* userData,
void (*callback)(uint64_t nanoTimestamp, uint32_t frameCount, void* userData));
+/**
+ * @brief Initialize the ArkTS method for the specified env environment. Cannot be called on
+ * the non-UI thread. Checking for non-UI thread calls will abort.
+ *
+ * @param env napi environment pointer.
+ * @return The error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if env is null or failed to set the whitelist.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if the CAPI init error.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_InitModuleForArkTSEnv(napi_env env);
+
+/**
+ * @brief Notify the specified env environment is invalid. Cannot be called on
+ * the non-UI thread. Checking for non-UI thread calls will abort.
+ *
+ * @param env napi environment pointer.
+ * @since 20
+ */
+void OH_ArkUI_NotifyArkTSEnvDestroy(napi_env env);
+
+/**
+ * @brief Register a callback to be executed at the end of the next idle frame.If there is no next frame, will request one automatically.
+ *
+ * @param uiContext ArkUI_ContextHandle.
+ * @param userData Indicates the custom data to be saved.
+ * @param callback Custom callback function.
+ * @param nanoTimeLeft The remaining time from the deadline for this frame.
+ * @param frameCount Frame count.
+ * @return Returns the result code.
+ * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * Returns {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if the CAPI init error.
+ * Returns {@link ARKUI_ERROR_CODE_UI_CONTEXT_INVALID} if the uiContext is invalid.
+ * Returns {@link ARKUI_ERROR_CODE_CALLBACK_INVALID} if the callback function is invalid.
+ * @since 20
+ */
+ int32_t OH_ArkUI_PostIdleCallback(ArkUI_ContextHandle uiContext, void* userData,
+ void (*callback)(uint64_t nanoTimeLeft, uint32_t frameCount, void* userData));
+
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/native_render.h b/arkui/ace_engine/native/native_render.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e6991b4e85b78044c851d6e68ee99f9cd173818
--- /dev/null
+++ b/arkui/ace_engine/native/native_render.h
@@ -0,0 +1,1876 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup ArkUI_RenderNodeUtils
+ * @{
+ *
+ * @brief Provides RenderNode capabilities of ArkUI on the native side, such as RenderNode creation and destruction,
+ * tree node operations, and attribute setting.
+ *
+ * @since 20
+ */
+
+/**
+ * @file native_render.h
+ *
+ * @brief Provides type definitions for NativeRenderNode APIs.
+ *
+ * @library libace_ndk.z.so
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @kit ArkUI
+ * @since 20
+ */
+
+#ifndef ARKUI_NATIVE_RENDER_H
+#define ARKUI_NATIVE_RENDER_H
+
+#ifdef __cplusplus
+#include
+#else
+#include
+#endif
+
+#include "native_type.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Handle to ArkUI native render node object.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_RenderNode* ArkUI_RenderNodeHandle;
+
+/**
+ * @brief Handle to ArkUI native render content modifier.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_RenderContentModifier* ArkUI_RenderContentModifierHandle;
+
+/**
+ * @brief Handle to the ArkUI native float render property.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_FloatProperty* ArkUI_FloatPropertyHandle;
+
+/**
+ * @brief Handle to the ArkUI native vector2 render property.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_Vector2Property* ArkUI_Vector2PropertyHandle;
+
+/**
+ * @brief Handle to the ArkUI native color render property.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_ColorProperty* ArkUI_ColorPropertyHandle;
+
+/**
+ * @brief Handle to the ArkUI native animatable float render property.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_FloatAnimatableProperty* ArkUI_FloatAnimatablePropertyHandle;
+
+/**
+ * @brief Handle to the ArkUI native animatable vector2 render property.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_Vector2AnimatableProperty* ArkUI_Vector2AnimatablePropertyHandle;
+
+/**
+ * @brief Handle to the ArkUI native animatable color render property.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_ColorAnimatableProperty* ArkUI_ColorAnimatablePropertyHandle;
+
+/**
+ * @brief Rectangle shape option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_RectShape ArkUI_RectShapeOption;
+
+/**
+ * @brief Node border style option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_NodeBorderStyle ArkUI_NodeBorderStyleOption;
+
+/**
+ * @brief Node border width option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_NodeBorderWidth ArkUI_NodeBorderWidthOption;
+
+/**
+ * @brief Node border color option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_NodeBorderColor ArkUI_NodeBorderColorOption;
+
+/**
+ * @brief Node border radius option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_NodeBorderRadius ArkUI_NodeBorderRadiusOption;
+
+/**
+ * @brief Circle shape option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_CircleShape ArkUI_CircleShapeOption;
+
+/**
+ * @brief Round rect shape option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_RoundRectShape ArkUI_RoundRectShapeOption;
+
+/**
+ * @brief Command path option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_CommandPath ArkUI_CommandPathOption;
+
+/**
+ * @brief Render node mask option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_RenderNodeMaskOption ArkUI_RenderNodeMaskOption;
+
+/**
+ * @brief Render node clip option.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_RenderNodeClipOption ArkUI_RenderNodeClipOption;
+
+/**
+ * @brief Adds a child render node to a parent node.
+ *
+ * @param node the target parent node.
+ * - Only customNode type parent nodes are supported.
+ * - Each customNode can mount only one ArkUI_RenderNodeHandle.
+ * - customNode cannot mount other ArkUI_NodeHandle.
+ * @param child the child RenderNode to add.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_NOT_CUSTOM_NODE} The node is not a customNode.
+ * {@link ARKUI_ERROR_CODE_CHILD_EXISTED} The node already has a child.
+ * {@link ARKUI_ERROR_CODE_RENDER_PARENT_EXISTED} The child already has a parent node.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AddRenderNode(ArkUI_NodeHandle node, ArkUI_RenderNodeHandle child);
+
+/**
+ * @brief Remove the specified child node from its parent node.
+ *
+ * @param node the parent node.
+ * @param child the child RenderNode to remove.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_NOT_CUSTOM_NODE} The node is not a customNode.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_RemoveRenderNode(ArkUI_NodeHandle node, ArkUI_RenderNodeHandle child);
+
+/**
+ * @brief Clear all child render nodes from the specified parent node.
+ *
+ * @param node the target parent node.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_NOT_CUSTOM_NODE} The node is not a customNode.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_ClearRenderNodeChildren(ArkUI_NodeHandle node);
+
+/**
+ * @brief Mark dirty the node handle. Invalidate the specified node, causing its lifecycle and triggering a
+ * rerender of its child render nodes.
+ *
+ * @param node Target node.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_Invalidate(ArkUI_NodeHandle node);
+
+/**
+ * @brief Create a new RenderNode handle.
+ *
+ * @return ArkUI_RenderNodeHandle pointer to receive the new node handle.
+ * @since 20
+ */
+ArkUI_RenderNodeHandle OH_ArkUI_RenderNodeUtils_CreateNode();
+
+/**
+ * @brief Dispose a RenderNode handle.
+ *
+ * @param node Handle to the render node to dispose.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_DisposeNode(ArkUI_RenderNodeHandle node);
+
+/**
+ * @brief Add a child node to the specified RenderNode.
+ *
+ * @param node the parent RenderNode.
+ * @param child the child RenderNode to add.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AddChild(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle child);
+
+/**
+ * @brief Insert a child node after the specified sibling node in RenderNode.
+ *
+ * @param node the parent RenderNode.
+ * @param child the child RenderNode to insert.
+ * @param sibling the reference sibling node.
+ * If the sibling node does not exist in the children, the child component will be added to the end.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_InsertChildAfter(
+ ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle child, ArkUI_RenderNodeHandle sibling);
+
+/**
+ * @brief Remove a child node from the specified RenderNode.
+ *
+ * @param node the parent RenderNode.
+ * @param child the child RenderNode to remove.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_RemoveChild(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle child);
+
+/**
+ * @brief Clear all children from the specified RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_ClearChildren(ArkUI_RenderNodeHandle node);
+
+/**
+ * @brief Get a child node at the specified index position.
+ *
+ * @param node the parent RenderNode.
+ * @param index Zero-based index of the child node.
+ * @param child ArkUI_RenderNodeHandle pointer to receive the child node.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_CHILD_RENDER_NOT_EXIST} The child does not exist.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetChild(ArkUI_RenderNodeHandle node, int32_t index, ArkUI_RenderNodeHandle* child);
+
+/**
+ * @brief Get the first child node of the specified RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param child ArkUI_RenderNodeHandle pointer to receive the first child.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_CHILD_RENDER_NOT_EXIST} The child does not exist.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetFirstChild(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle* child);
+
+/**
+ * @brief Get the next sibling node of the specified node.
+ *
+ * @param node the reference node.
+ * @param sibling ArkUI_RenderNodeHandle pointer to receive the next sibling.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_CHILD_RENDER_NOT_EXIST} The child does not exist.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetNextSibling(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle* sibling);
+
+/**
+ * @brief Get the previous sibling node of the specified node.
+ *
+ * @param node the reference node.
+ * @param sibling ArkUI_RenderNodeHandle pointer to receive the previous sibling.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_CHILD_RENDER_NOT_EXIST} The child does not exist.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetPreviousSibling(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle* sibling);
+
+/**
+ * @brief Retrieve all child render nodes of a parent render node.
+ * This function populates a list of child render nodes for the specified parent node.
+ * The caller is responsible for freeing the allocated child node array.
+ *
+ * @param node Handle to the target parent render node.
+ * @param children Pointer to an array of child render node handles.
+ * @param count Pointer to store the number of child nodes retrieved.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetChildren(
+ ArkUI_RenderNodeHandle node, ArkUI_RenderNodeHandle** children, int32_t* count);
+
+/**
+ * @brief Retrieve render child nodes count of a render node.
+ *
+ * @param node Handle to the target parent render node.
+ * @param count Pointer to store the number of child nodes retrieved.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetChildrenCount(ArkUI_RenderNodeHandle node, int32_t* count);
+
+/**
+ * @brief Set the background color for a RenderNode.
+ *
+ * @param node Handle to the target render node
+ * @param color Packed ARGB color value (32-bit unsigned integer)
+ * Color byte layout:
+ * - Bits 24-31: Alpha channel (0x00 fully transparent, 0xFF fully opaque)
+ * - Bits 16-23: Red channel
+ * - Bits 8-15: Green channel
+ * - Bits 0-7: Blue channel
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetBackgroundColor(ArkUI_RenderNodeHandle node, uint32_t color);
+
+/**
+ * @brief Get the background color of a RenderNode.
+ *
+ * @param node Handle to the target render node
+ * @param color Integer pointer to store the retrieved RGBA color value.
+ * The retrieved color is a packed 32-bit value with the following byte layout:
+ * - Bits 24-31: Alpha channel (0x00 fully transparent, 0xFF fully opaque)
+ * - Bits 16-23: Red channel
+ * - Bits 8-15: Green channel
+ * - Bits 0-7: Blue channel
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetBackgroundColor(ArkUI_RenderNodeHandle node, uint32_t* color);
+
+/**
+ * @brief Set whether to clip content to the node's frame.
+ *
+ * @param node Handle to the target render node.
+ * @param clipToFrame Integer (1 = clip to frame, 0 = do not clip).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetClipToFrame(ArkUI_RenderNodeHandle node, int32_t clipToFrame);
+
+/**
+ * @brief Get the clip-to-frame status of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param clipToFrame Integer pointer to receive clip status (1 or 0).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetClipToFrame(ArkUI_RenderNodeHandle node, int32_t* clipToFrame);
+
+/**
+ * @brief Set whether to clip content to the node's Bounds.
+ *
+ * @param node Handle to the target render node.
+ * @param clipToBounds Clipping flag (1: clip to bounds, 0: do not clip)
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetClipToBounds(ArkUI_RenderNodeHandle node, int32_t clipToBounds);
+
+/**
+ * @brief Get whether to clip content to the node's Bounds.
+ *
+ * @param node Handle to the target render node.
+ * @param clipToBounds Integer pointer (1 = clip to bounds, 0 = do not clip).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetClipToBounds(ArkUI_RenderNodeHandle node, int32_t* clipToBounds);
+
+/**
+ * @brief Set the opacity value for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param opacity Opacity value (0.0-1.0).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetOpacity(ArkUI_RenderNodeHandle node, float opacity);
+
+/**
+ * @brief Get the opacity value of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param opacity Pointer to receive opacity value (0.0-1.0).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetOpacity(ArkUI_RenderNodeHandle node, float* opacity);
+
+/**
+ * @brief Set the dimensions for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param width Width value in pixels.
+ * @param height Height value in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetSize(ArkUI_RenderNodeHandle node, int32_t width, int32_t height);
+
+/**
+ * @brief Get the dimensions of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param width Pointer to receive width value in pixels.
+ * @param height Pointer to receive height value in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetSize(ArkUI_RenderNodeHandle node, int32_t* width, int32_t* height);
+
+/**
+ * @brief Set the position coordinates for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x X-coordinate value in pixels.
+ * @param y Y-coordinate value in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetPosition(ArkUI_RenderNodeHandle node, int32_t x, int32_t y);
+
+/**
+ * @brief Get the position coordinates of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive X-coordinate value in pixels.
+ * @param y Pointer to receive Y-coordinate value in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetPosition(ArkUI_RenderNodeHandle node, int32_t* x, int32_t* y);
+
+/**
+ * @brief Set the pivot point for transformations of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x The X-coordinate of pivot (normalized 0.0-1.0).
+ * @param y The Y-coordinate of pivot (normalized 0.0-1.0).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetPivot(ArkUI_RenderNodeHandle node, float x, float y);
+
+/**
+ * @brief Get the pivot point coordinates of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive the X-coordinate of pivot.
+ * @param y Pointer to receive the Y-coordinate of pivot.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetPivot(ArkUI_RenderNodeHandle node, float* x, float* y);
+
+/**
+ * @brief Set the scaling factors for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Horizontal scale factor.
+ * @param y Vertical scale factor.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetScale(ArkUI_RenderNodeHandle node, float x, float y);
+
+/**
+ * @brief Get the scaling factors of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive horizontal scale factor.
+ * @param y Pointer to receive vertical scale factor.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetScale(ArkUI_RenderNodeHandle node, float* x, float* y);
+
+/**
+ * @brief Set the translation offset for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Horizontal translation in pixels.
+ * @param y Vertical translation in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetTranslation(ArkUI_RenderNodeHandle node, float x, float y);
+
+/**
+ * @brief Get the translation offset of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive horizontal translation.
+ * @param y Pointer to receive vertical translation.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetTranslation(ArkUI_RenderNodeHandle node, float* x, float* y);
+
+/**
+ * @brief Set the rotation angles for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Rotation angle around X-axis in degrees.
+ * @param y Rotation angle around Y-axis in degrees.
+ * @param z Rotation angle around Z-axis in degrees.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetRotation(ArkUI_RenderNodeHandle node, float x, float y, float z);
+
+/**
+ * @brief Get the rotation angles of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive X-axis rotation angle in degrees.
+ * @param y Pointer to receive Y-axis rotation angle in degrees.
+ * @param z Pointer to receive Z-axis rotation angle in degrees.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetRotation(ArkUI_RenderNodeHandle node, float* x, float* y, float* z);
+
+/**
+ * @brief Set the transformation matrix for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param matrix Pointer to a 4x4 transformation matrix (16 consecutive values).
+ * The transformation matrix should be provided as 16 consecutive floating-point values in row-major order:
+ * [m00, m01, m02, m03,
+ * m10, m11, m12, m13,
+ * m20, m21, m22, m23,
+ * m30, m31, m32, m33]
+ * Where the matrix represents:
+ * | m00 m01 m02 m03 |
+ * | m10 m11 m12 m13 |
+ * | m20 m21 m22 m23 |
+ * | m30 m31 m32 m33 |
+ * Matrix components:
+ * | m00 | Scaling value of the x-axis. The default value is **1** for the identity matrix. |
+ * | m01 | The second value, which is affected by the rotation or tilt of the x, y, and z axes. |
+ * | m02 | The third value, which is affected by the rotation of the x, y, and z axes. |
+ * | m03 | The fourth value, which is affected by perspective projection. |
+ * | m10 | The fifth value, which is affected by the rotation or tilt of the x, y, and z axes. |
+ * | m11 | Scaling value of the y-axis. The default value is **1** for the identity matrix. |
+ * | m12 | The seventh value, which is affected by the rotation of the x, y, and z axes. |
+ * | m13 | The eighth value, which is affected by perspective projection. |
+ * | m20 | The ninth value, which is affected by the rotation of the x, y, and z axes. |
+ * | m21 | The tenth value, which is affected by the rotation of the x, y, and z axes. |
+ * | m22 | Scaling value of the z-axis. The default value is **1** for the identity matrix. |
+ * | m23 | The 12th value, which is affected by perspective projection. |
+ * | m30 | Translation value of the x-axis, in px. The default value is **0** for the identity matrix.|
+ * | m31 | Translation value of the y-axis, in px. The default value is **0** for the identity matrix.|
+ * | m32 | Translation value of the z-axis, in px. The default value is **0** for the identity matrix.|
+ * | m33 | Valid in homogeneous coordinates, presenting the perspective projection effect. |
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetTransform(ArkUI_RenderNodeHandle node, float* matrix);
+
+/**
+ * @brief Set the shadow color for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param color Packed ARGB color value (32-bit unsigned integer)
+ * Color byte layout:
+ * - Bits 24-31: Alpha channel (0x00 fully transparent, 0xFF fully opaque)
+ * - Bits 16-23: Red channel
+ * - Bits 8-15: Green channel
+ * - Bits 0-7: Blue channel
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetShadowColor(ArkUI_RenderNodeHandle node, uint32_t color);
+
+/**
+ * @brief Get the shadow color of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param color Integer pointer to store the retrieved RGBA color value.
+ * The retrieved color is a packed 32-bit value with the following byte layout:
+ * - Bits 24-31: Alpha channel (0x00 fully transparent, 0xFF fully opaque)
+ * - Bits 16-23: Red channel
+ * - Bits 8-15: Green channel
+ * - Bits 0-7: Blue channel
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetShadowColor(ArkUI_RenderNodeHandle node, uint32_t* color);
+
+/**
+ * @brief Set the shadow offset for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Horizontal offset value in pixels.
+ * @param y Vertical offset value in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetShadowOffset(ArkUI_RenderNodeHandle node, int32_t x, int32_t y);
+
+/**
+ * @brief Get the shadow offset of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive horizontal offset value.
+ * @param y Pointer to receive vertical offset value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetShadowOffset(ArkUI_RenderNodeHandle node, int32_t* x, int32_t* y);
+
+/**
+ * @brief Set the shadow transparency for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param alpha Shadow alpha value (0.0-1.0).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetShadowAlpha(ArkUI_RenderNodeHandle node, float alpha);
+
+/**
+ * @brief Get the shadow transparency of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param alpha Pointer to receive shadow alpha value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetShadowAlpha(ArkUI_RenderNodeHandle node, float* alpha);
+
+/**
+ * @brief Set the shadow elevation for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param elevation Elevation value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetShadowElevation(ArkUI_RenderNodeHandle node, float elevation);
+
+/**
+ * @brief Get the shadow elevation of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param elevation Pointer to receive elevation value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetShadowElevation(ArkUI_RenderNodeHandle node, float* elevation);
+
+/**
+ * @brief Set the shadow radius of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param radius Radius value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetShadowRadius(ArkUI_RenderNodeHandle node, float radius);
+
+/**
+ * @brief Get the shadow radius of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param radius Pointer to receive radius value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetShadowRadius(ArkUI_RenderNodeHandle node, float* radius);
+
+/**
+ * @brief Set the border style for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderStyle Handle to border style option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetBorderStyle(ArkUI_RenderNodeHandle node, ArkUI_NodeBorderStyleOption* borderStyle);
+
+/**
+ * @brief Get the border style of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderStyle Pointer to receive border style option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetBorderStyle(ArkUI_RenderNodeHandle node, ArkUI_NodeBorderStyleOption** borderStyle);
+
+/**
+ * @brief Set the border widths for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderWidth Handle to border width option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetBorderWidth(ArkUI_RenderNodeHandle node, ArkUI_NodeBorderWidthOption* borderWidth);
+
+/**
+ * @brief Get the border widths of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderWidth Pointer to receive border width option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetBorderWidth(ArkUI_RenderNodeHandle node, ArkUI_NodeBorderWidthOption** borderWidth);
+
+/**
+ * @brief Set the border colors for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderColor Handle to border color option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetBorderColor(ArkUI_RenderNodeHandle node, ArkUI_NodeBorderColorOption* borderColor);
+
+/**
+ * @brief Get the border colors of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderColor Pointer to receive border color option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetBorderColor(ArkUI_RenderNodeHandle node, ArkUI_NodeBorderColorOption** borderColor);
+
+/**
+ * @brief Set the border corner radius for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderRadius Handle to border radius option.
+ * @r eturn Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetBorderRadius(
+ ArkUI_RenderNodeHandle node, ArkUI_NodeBorderRadiusOption* borderRadius);
+
+/**
+ * @brief Get the border corner radius of a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param borderRadius Pointer to receive border radius option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetBorderRadius(
+ ArkUI_RenderNodeHandle node, ArkUI_NodeBorderRadiusOption** borderRadius);
+
+/**
+ * @brief Apply a mask to a render node using the mask option.
+ *
+ * @param node Handle to the target render node.
+ * @param mask Handle to the mask option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetMask(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeMaskOption* mask);
+
+/**
+ * @brief Apply a clip to a render node using the clip option.
+ *
+ * @param node Handle to the target render node.
+ * @param clip Handle to the clip option.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetClip(ArkUI_RenderNodeHandle node, ArkUI_RenderNodeClipOption* clip);
+
+/**
+ * @brief Mark whether to preferentially draw the node and its children.
+ *
+ * @param node Handle to the target render node.
+ * @param markNodeGroup Boolean flag indicates whether to preferentially draw the node and its children.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetMarkNodeGroup(ArkUI_RenderNodeHandle node, bool markNodeGroup);
+
+/**
+ * @brief Set the bounds for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x X-coordinate of the bounds's top-left corner (in pixels)
+ * @param y Y-coordinate of the bounds's top-left corner (in pixels)
+ * @param width Width of the bounds (in pixels).
+ * @param height Height of the bounds (in pixels).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * {@link ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE} Parameter out of range.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetBounds(
+ ArkUI_RenderNodeHandle node, int32_t x, int32_t y, int32_t width, int32_t height);
+
+/**
+ * @brief Get the bounds for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x Pointer to receive x-coordinate value of the bounds's top-left corner (in pixels)
+ * @param y Pointer to receive y-coordinate value of the bounds's top-left corner (in pixels)
+ * @param width Pointer to receive width value in pixels.
+ * @param height Pointer to receive height value in pixels.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetBounds(
+ ArkUI_RenderNodeHandle node, int32_t* x, int32_t* y, int32_t* width, int32_t* height);
+
+/**
+ * @brief Set the draw region for a RenderNode.
+ *
+ * @param node Handle to the target render node.
+ * @param x X-coordinate of the bounds's top-left corner (in pixels).
+ * @param y Y-coordinate of the bounds's top-left corner (in pixels).
+ * @param w Width of the bounds (in pixels).
+ * @param h Height of the bounds (in pixels).
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetDrawRegion(ArkUI_RenderNodeHandle node, float x, float y, float w, float h);
+
+/**
+ * @brief Attach a content modifier for the render node.
+ *
+ * @param node Handle to the target render node.
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} The content modifier handle.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachContentModifier(
+ ArkUI_RenderNodeHandle node, ArkUI_RenderContentModifierHandle modifier);
+
+/**
+ * @brief Create a content modifier handle.
+ *
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+ArkUI_RenderContentModifierHandle OH_ArkUI_RenderNodeUtils_CreateContentModifier();
+
+/**
+ * @brief Dispose the content modifier handle.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Handle to the content modifier.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeContentModifier(ArkUI_RenderContentModifierHandle modifier);
+
+/**
+ * @brief Attach a float property to the target content modifier.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Set float property to the target content modifier.
+ * @param property {@link ArkUI_FloatPropertyHandle} Handle to the float property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachFloatProperty(
+ ArkUI_RenderContentModifierHandle modifier, ArkUI_FloatPropertyHandle property);
+
+/**
+ * @brief Attach a vector2 property to the target content modifier.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Set vector2 property to the target content modifier.
+ * @param property {@link ArkUI_Vector2PropertyHandle} Handle to the vector2 property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachVector2Property(
+ ArkUI_RenderContentModifierHandle modifier, ArkUI_Vector2PropertyHandle property);
+
+/**
+ * @brief Attach a color property to the target content modifier.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Set color property to the target content modifier.
+ * @param property {@link ArkUI_ColorPropertyHandle} Handle to the color property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachColorProperty(
+ ArkUI_RenderContentModifierHandle modifier, ArkUI_ColorPropertyHandle property);
+
+/**
+ * @brief Attach a float animatable property to the target content modifier.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Set float animatable property to the target content
+ * modifier.
+ * @param property {@link ArkUI_FloatAnimatablePropertyHandle} Handle to the float animatable property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachFloatAnimatableProperty(
+ ArkUI_RenderContentModifierHandle modifier, ArkUI_FloatAnimatablePropertyHandle property);
+
+/**
+ * @brief Attach a vector2 animatable property to the target content modifier.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Set vector2 animatable property to the target content
+ * modifier.
+ * @param property {@link ArkUI_Vector2AnimatablePropertyHandle} Handle to the vector2 animatable property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachVector2AnimatableProperty(
+ ArkUI_RenderContentModifierHandle modifier, ArkUI_Vector2AnimatablePropertyHandle property);
+
+/**
+ * @brief Attach a color property to the target content modifier.
+ *
+ * @param modifier {@link ArkUI_RenderContentModifierHandle} Set color animatable property to the target content
+ * modifier.
+ * @param property {@link ArkUI_ColorAnimatablePropertyHandle} Handle to the color animatable property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_AttachColorAnimatableProperty(
+ ArkUI_RenderContentModifierHandle modifier, ArkUI_ColorAnimatablePropertyHandle property);
+
+/**
+ * @brief Create a float property handle.
+ *
+ * @param value The property value.
+ * @return Handle to the float property.
+ * @since 20
+ */
+ArkUI_FloatPropertyHandle OH_ArkUI_RenderNodeUtils_CreateFloatProperty(float value);
+
+/**
+ * @brief Set value of the float property.
+ *
+ * @param property {@link ArkUI_FloatPropertyHandle} The float property handle.
+ * @param value The property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetFloatPropertyValue(ArkUI_FloatPropertyHandle property, float value);
+
+/**
+ * @brief Get value of the float property.
+ *
+ * @param property {@link ArkUI_FloatPropertyHandle} The float property handle.
+ * @param value The pointer to receive property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetFloatPropertyValue(ArkUI_FloatPropertyHandle property, float* value);
+
+/**
+ * @brief Dispose the float property handle.
+ *
+ * @param property {@link ArkUI_FloatPropertyHandle} Handle to the float property.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeFloatProperty(ArkUI_FloatPropertyHandle property);
+
+/**
+ * @brief Create a vector2 property handle.
+ *
+ * @param x X-coordinate value of the property.
+ * @param y Y-coordinate value of the property.
+ * @return Handle to the vector2 property.
+ * @since 20
+ */
+ArkUI_Vector2PropertyHandle OH_ArkUI_RenderNodeUtils_CreateVector2Property(float x, float y);
+
+/**
+ * @brief Set value of the vector2 property.
+ *
+ * @param property {@link ArkUI_Vector2PropertyHandle} The vector2 property handle.
+ * @param x X-coordinate value of the property.
+ * @param y Y-coordinate value of the property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetVector2PropertyValue(ArkUI_Vector2PropertyHandle property, float x, float y);
+
+/**
+ * @brief Get value of the vector2 property.
+ *
+ * @param property {@link ArkUI_Vector2PropertyHandle} The Vector2 property handle.
+ * @param x The pointer to receive x-coordinate value of the property.
+ * @param y The pointer to receive y-coordinate value of the property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetVector2PropertyValue(ArkUI_Vector2PropertyHandle property, float* x, float* y);
+
+/**
+ * @brief Dispose the vector2 property handle.
+ *
+ * @param property {@link ArkUI_Vector2PropertyHandle} Handle to the vector2 property.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeVector2Property(ArkUI_Vector2PropertyHandle property);
+
+/**
+ * @brief Create a color property handle.
+ *
+ * @param value The property value.
+ * @return Handle to the color property.
+ * @since 20
+ */
+ArkUI_ColorPropertyHandle OH_ArkUI_RenderNodeUtils_CreateColorProperty(uint32_t value);
+
+/**
+ * @brief Set value of the color property.
+ *
+ * @param property {@link ArkUI_ColorPropertyHandle} The color property handle.
+ * @param value The property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetColorPropertyValue(ArkUI_ColorPropertyHandle property, uint32_t value);
+
+/**
+ * @brief Get value of the color property.
+ *
+ * @param property {@link ArkUI_ColorPropertyHandle} The color property handle.
+ * @param value The pointer to receive property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetColorPropertyValue(ArkUI_ColorPropertyHandle property, uint32_t* value);
+
+/**
+ * @brief Dispose the color property handle.
+ *
+ * @param property {@link ArkUI_ColorPropertyHandle} Handle to the color property.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeColorProperty(ArkUI_ColorPropertyHandle property);
+
+/**
+ * @brief Create a float animatable property handle.
+ *
+ * @param value The property value.
+ * @return Handle to the float animatable property.
+ * @since 20
+ */
+ArkUI_FloatAnimatablePropertyHandle OH_ArkUI_RenderNodeUtils_CreateFloatAnimatableProperty(float value);
+
+/**
+ * @brief Set value of the float animatable property.
+ *
+ * @param property {@link ArkUI_FloatAnimatablePropertyHandle} The float animatable property handle.
+ * @param value The property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetFloatAnimatablePropertyValue(
+ ArkUI_FloatAnimatablePropertyHandle property, float value);
+
+/**
+ * @brief Get value of the float animatable property.
+ *
+ * @param property {@link ArkUI_FloatAnimatablePropertyHandle} The float animatable property handle.
+ * @param value The pointer to receive property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetFloatAnimatablePropertyValue(
+ ArkUI_FloatAnimatablePropertyHandle property, float* value);
+
+/**
+ * @brief Dispose the float animatable property handle.
+ *
+ * @param property {@link ArkUI_FloatAnimatablePropertyHandle} Handle to the float animatable property.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeFloatAnimatableProperty(ArkUI_FloatAnimatablePropertyHandle property);
+
+/**
+ * @brief Create a vector2 animatable property handle.
+ *
+ * @param x X-coordinate value of the property.
+ * @param y Y-coordinate value of the property.
+ * @return Handle to the vector2 animatable property.
+ * @since 20
+ */
+ArkUI_Vector2AnimatablePropertyHandle OH_ArkUI_RenderNodeUtils_CreateVector2AnimatableProperty(float x, float y);
+
+/**
+ * @brief Set value of the vector2 animatable property.
+ *
+ * @param property {@link ArkUI_Vector2AnimatablePropertyHandle} The vector2 animatable property handle.
+ * @param x X-coordinate value of the property.
+ * @param y Y-coordinate value of the property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetVector2AnimatablePropertyValue(
+ ArkUI_Vector2AnimatablePropertyHandle property, float x, float y);
+
+/**
+ * @brief Get value of the vector2 animatable property.
+ *
+ * @param property {@link ArkUI_Vector2AnimatablePropertyHandle} The Vector2 animatable property handle.
+ * @param x The pointer to receive x-coordinate value of the property.
+ * @param y The pointer to receive y-coordinate value of the property.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetVector2AnimatablePropertyValue(
+ ArkUI_Vector2AnimatablePropertyHandle property, float* x, float* y);
+
+/**
+ * @brief Dispose the vector2 animatable property handle.
+ *
+ * @param property {@link ArkUI_Vector2AnimatablePropertyHandle} Handle to the vector2 animatable property.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeVector2AnimatableProperty(ArkUI_Vector2AnimatablePropertyHandle property);
+
+/**
+ * @brief Create a color animatable property handle.
+ *
+ * @param value The property value.
+ * @return Handle to the color animatable property.
+ * @since 20
+ */
+ArkUI_ColorAnimatablePropertyHandle OH_ArkUI_RenderNodeUtils_CreateColorAnimatableProperty(uint32_t value);
+
+/**
+ * @brief Set value of the color animatable property.
+ *
+ * @param property {@link ArkUI_ColorAnimatablePropertyHandle} The color animatable property handle.
+ * @param value The property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetColorAnimatablePropertyValue(
+ ArkUI_ColorAnimatablePropertyHandle property, uint32_t value);
+
+/**
+ * @brief Get value of the color animatable property.
+ *
+ * @param property {@link ArkUI_ColorAnimatablePropertyHandle} The color animatable property handle.
+ * @param value The pointer to receive property value.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_GetColorAnimatablePropertyValue(
+ ArkUI_ColorAnimatablePropertyHandle property, uint32_t* value);
+
+/**
+ * @brief Dispose the color animatable property handle.
+ *
+ * @param property {@link ArkUI_ColorAnimatablePropertyHandle} Handle to the color animatable property.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeColorAnimatableProperty(ArkUI_ColorAnimatablePropertyHandle property);
+
+/**
+ * @brief Set the onDraw function of the content modifier.
+ *
+ * @param modifier The target content modifier handle.
+ * @param userData Custom data to be passed to the callback.
+ * @param callback The draw event receiver callback.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+int32_t OH_ArkUI_RenderNodeUtils_SetContentModifierOnDraw(ArkUI_RenderContentModifierHandle modifier, void* userData,
+ void (*callback)(ArkUI_DrawContext* context, void* userData));
+
+/**
+ * @brief Create a RectShape option.
+ *
+ * @return A pointer to the RectShape option.
+ * @since 20
+ */
+ArkUI_RectShapeOption* OH_ArkUI_RenderNodeUtils_CreateRectShapeOption();
+
+/**
+ * @brief Dispose the RectShape option.
+ *
+ * @param option Pointer to the RectShape option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeRectShapeOption(ArkUI_RectShapeOption* option);
+
+/**
+ * @brief Set the edge value of RectShape option.
+ *
+ * @param option Pointer to the RectShape option.
+ * @param edgeValue The edge value of the RectShape.
+ * @param direction {@Link ArkUI_EdgeDirection} The direction of the edge.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetRectShapeOptionEdgeValue(
+ ArkUI_RectShapeOption* option, float edgeValue, ArkUI_EdgeDirection direction);
+
+/**
+ * @brief Create a NodeBorderStyle option.
+ *
+ * @return A pointer to the NodeBorderStyle option.
+ * @since 20
+ */
+ArkUI_NodeBorderStyleOption* OH_ArkUI_RenderNodeUtils_CreateNodeBorderStyleOption();
+
+/**
+ * @brief Dispose the NodeBorderStyle option.
+ *
+ * @param option Pointer to the NodeBorderStyle option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeNodeBorderStyleOption(ArkUI_NodeBorderStyleOption* option);
+
+/**
+ * @brief Set the edge value of NodeBorderStyle option.
+ *
+ * @param option Pointer to the NodeBorderStyle option.
+ * @param edgeStyle {@Link ArkUI_BorderStyle} The edge border style value of the NodeBorderStyle option.
+ * @param direction {@Link ArkUI_EdgeDirection} The direction of the edge.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetNodeBorderStyleOptionEdgeStyle(
+ ArkUI_NodeBorderStyleOption* option, ArkUI_BorderStyle edgeStyle, ArkUI_EdgeDirection direction);
+
+/**
+ * @brief Create a NodeBorderWidth option.
+ *
+ * @return A pointer to the NodeBorderWidth option.
+ * @since 20
+ */
+ArkUI_NodeBorderWidthOption* OH_ArkUI_RenderNodeUtils_CreateNodeBorderWidthOption();
+
+/**
+ * @brief Dispose the NodeBorderWidth option.
+ *
+ * @param option Pointer to the NodeBorderWidth option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeNodeBorderWidthOption(ArkUI_NodeBorderWidthOption* option);
+
+/**
+ * @brief Set the edge value of NodeBorderWidth option.
+ *
+ * @param option Pointer to the NodeBorderWidth option.
+ * @param edgeWidth The edge width value of the NodeBorderWidth option.
+ * @param direction {@Link ArkUI_EdgeDirection} The direction of the edge.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetNodeBorderWidthOptionEdgeWidth(
+ ArkUI_NodeBorderWidthOption* option, float edgeWidth, ArkUI_EdgeDirection direction);
+
+/**
+ * @brief Create a NodeBorderColor option.
+ *
+ * @return A pointer to the NodeBorderColor option.
+ * @since 20
+ */
+ArkUI_NodeBorderColorOption* OH_ArkUI_RenderNodeUtils_CreateNodeBorderColorOption();
+
+/**
+ * @brief Dispose the NodeBorderColor option.
+ *
+ * @param option Pointer to the NodeBorderColor option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeNodeBorderColorOption(ArkUI_NodeBorderColorOption* option);
+
+/**
+ * @brief Set the edge value of NodeBorderColor option.
+ *
+ * @param option Pointer to the NodeBorderColor option.
+ * @param edgeColor The edge color value of the NodeBorderColor option.
+ * @param direction {@Link ArkUI_EdgeDirection} The direction of the edge.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetNodeBorderColorOptionEdgeColor(
+ ArkUI_NodeBorderColorOption* option, uint32_t edgeColor, ArkUI_EdgeDirection direction);
+
+/**
+ * @brief Create a NodeBorderRadius option.
+ *
+ * @return A pointer to the NodeBorderRadius option.
+ * @since 20
+ */
+ArkUI_NodeBorderRadiusOption* OH_ArkUI_RenderNodeUtils_CreateNodeBorderRadiusOption();
+
+/**
+ * @brief Dispose the NodeBorderRadius option.
+ *
+ * @param option Pointer to the NodeBorderRadius option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeNodeBorderRadiusOption(ArkUI_NodeBorderRadiusOption* option);
+
+/**
+ * @brief Set the corner value of NodeBorderRadius option.
+ *
+ * @param option Pointer to the NodeBorderRadius option.
+ * @param cornerRadius The corner radius value of the NodeBorderRadius option.
+ * @param direction {@Link ArkUI_CornerDirection} The direction of the corner.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetNodeBorderRadiusOptionCornerRadius(
+ ArkUI_NodeBorderRadiusOption* option, uint32_t cornerRadius, ArkUI_CornerDirection direction);
+
+/**
+ * @brief Create a CircleShape option.
+ *
+ * @return A pointer to the CircleShape option.
+ * @since 20
+ */
+ArkUI_CircleShapeOption* OH_ArkUI_RenderNodeUtils_CreateCircleShapeOption();
+
+/**
+ * @brief Dispose the CircleShape option.
+ *
+ * @param option Pointer to the CircleShape option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeCircleShapeOption(ArkUI_CircleShapeOption* option);
+
+/**
+ * @brief Set the centerX value of CircleShape option.
+ *
+ * @param option Pointer to the CircleShape option.
+ * @param centerX The centerX value.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetCircleShapeOptionCenterX(ArkUI_CircleShapeOption* option, float centerX);
+
+/**
+ * @brief Set the centerY value of CircleShape option.
+ *
+ * @param option Pointer to the CircleShape option.
+ * @param centerY The centerY value.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetCircleShapeOptionCenterY(ArkUI_CircleShapeOption* option, float centerY);
+
+/**
+ * @brief Set the radius value of CircleShape option.
+ *
+ * @param option Pointer to the CircleShape option.
+ * @param radius The radius value.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetCircleShapeOptionRadius(ArkUI_CircleShapeOption* option, float radius);
+
+/**
+ * @brief Create a RoundRectShape option.
+ *
+ * @return A pointer to the RoundRectShape option.
+ * @since 20
+ */
+ArkUI_RoundRectShapeOption* OH_ArkUI_RenderNodeUtils_CreateRoundRectShapeOption();
+
+/**
+ * @brief Dispose the RoundRectShape option.
+ *
+ * @param option Pointer to the RoundRectShape option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeRoundRectShapeOption(ArkUI_RoundRectShapeOption* option);
+
+/**
+ * @brief Set the edge value of RoundRectShape option.
+ *
+ * @param option Pointer to the RoundRectShape option.
+ * @param edgeValue The edge value of the RoundRectShape.
+ * @param direction {@Link ArkUI_EdgeDirection} The direction of the edge.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetRoundRectShapeOptionEdgeValue(
+ ArkUI_RoundRectShapeOption* option, float edgeValue, ArkUI_EdgeDirection direction);
+
+/**
+ * @brief Set the coordinate value of the target corner.
+ *
+ * @param option Pointer to the RoundRectShape option.
+ * @param x X-coordinate of the target corner (in pixels).
+ * @param y Y-coordinate of the target corner (in pixels).
+ * @param direction {@Link ArkUI_CornerDirection} The direction of the corner.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetRoundRectShapeOptionCornerXY(
+ ArkUI_RoundRectShapeOption* option, float x, float y, ArkUI_CornerDirection direction);
+
+/**
+ * @brief Create a CommandPath option.
+ *
+ * @return A pointer to the CommandPath option.
+ * @since 20
+ */
+ArkUI_CommandPathOption* OH_ArkUI_RenderNodeUtils_CreateCommandPathOption();
+
+/**
+ * @brief Dispose the CommandPath option.
+ *
+ * @param option Pointer to the CommandPath option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeCommandPathOption(ArkUI_CommandPathOption* option);
+
+/**
+ * @brief Set the commands value of CommandPath option.
+ *
+ * @param option Pointer to the CommandPath option.
+ * @param commands The commands value.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetCommandPathOptionCommands(ArkUI_CommandPathOption* option, char* commands);
+
+/**
+ * @brief Create a mask option from a RectShape option.
+ *
+ * @param shape {@link ArkUI_RectShapeOption} Pointer to the RectShape option.
+ * @return A pointer to the RenderNodeMask option.
+ * @since 20
+ */
+ArkUI_RenderNodeMaskOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromRectShape(
+ ArkUI_RectShapeOption* shape);
+
+/**
+ * @brief Create a mask option from a RoundRectShape option.
+ *
+ * @param shape {@link ArkUI_RoundRectShapeOption} Pointer to the RoundRectShape option.
+ * @return A pointer to the RenderNodeMask option.
+ * @since 20
+ */
+ArkUI_RenderNodeMaskOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromRoundRectShape(
+ ArkUI_RoundRectShapeOption* shape);
+
+/**
+ * @brief Create a mask option from a CircleShape option.
+ *
+ * @param shape {@link ArkUI_CircleShapeOption} Pointer to the CircleShape option.
+ * @return A pointer to the RenderNodeMask option.
+ * @since 20
+ */
+ArkUI_RenderNodeMaskOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromCircleShape(
+ ArkUI_CircleShapeOption* shape);
+
+/**
+ * @brief Create a mask option from a OvalShape option.
+ *
+ * @param shape {@link ArkUI_RectShapeOption} Pointer to the OvalShape option.
+ * @return A pointer to the RenderNodeMask option.
+ * @since 20
+ */
+ArkUI_RenderNodeMaskOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromOvalShape(
+ ArkUI_RectShapeOption* shape);
+
+/**
+ * @brief Create a mask option from a CommandPath option.
+ *
+ * @param path {@link ArkUI_CommandPathOption} Pointer to the CommandPath option.
+ * @return A pointer to the RenderNodeMask option.
+ * @since 20
+ */
+ArkUI_RenderNodeMaskOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeMaskOptionFromCommandPath(
+ ArkUI_CommandPathOption* path);
+
+/**
+ * @brief Dispose the RenderNodeMask option.
+ *
+ * @param option Pointer to the RenderNodeMask option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeRenderNodeMaskOption(ArkUI_RenderNodeMaskOption* option);
+
+/**
+ * @brief Set the fill color of RenderNodeMask option.
+ *
+ * @param mask Pointer to the RenderNodeMask option.
+ * @param fillColor The fill color of the mask.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetRenderNodeMaskOptionFillColor(ArkUI_RenderNodeMaskOption* mask, uint32_t fillColor);
+
+/**
+ * @brief Set the stroke color of RenderNodeMask option.
+ *
+ * @param mask Pointer to the RenderNodeMask option.
+ * @param strokeColor The stroke color of the mask.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetRenderNodeMaskOptionStrokeColor(
+ ArkUI_RenderNodeMaskOption* mask, uint32_t strokeColor);
+
+/**
+ * @brief Set the stroke width of RenderNodeMask option.
+ *
+ * @param mask Pointer to the RenderNodeMask option.
+ * @param strokeWidth The stroke width of the mask.
+ * @return Error code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception.
+ * {@link ARKUI_ERROR_CODE_CAPI_INIT_ERROR} if CAPI init error.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_SetRenderNodeMaskOptionStrokeWidth(ArkUI_RenderNodeMaskOption* mask, float strokeWidth);
+
+/**
+ * @brief Create a clip option from a RectShape option.
+ *
+ * @param shape {@link ArkUI_RectShapeOption} Pointer to the RectShape option.
+ * @return A pointer to the RenderNodeClip option.
+ * @since 20
+ */
+ArkUI_RenderNodeClipOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromRectShape(
+ ArkUI_RectShapeOption* shape);
+
+/**
+ * @brief Create a clip option from a RoundRectShape option.
+ *
+ * @param shape {@link ArkUI_RoundRectShapeOption} Pointer to the RoundRectShape option.
+ * @return A pointer to the RenderNodeClip option.
+ * @since 20
+ */
+ArkUI_RenderNodeClipOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromRoundRectShape(
+ ArkUI_RoundRectShapeOption* shape);
+
+/**
+ * @brief Create a clip option from a CircleShape option.
+ *
+ * @param shape {@link ArkUI_CircleShapeOption} Pointer to the CircleShape option.
+ * @return A pointer to the RenderNodeClip option.
+ * @since 20
+ */
+ArkUI_RenderNodeClipOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromCircleShape(
+ ArkUI_CircleShapeOption* shape);
+
+/**
+ * @brief Create a clip option from a OvalShape option.
+ *
+ * @param shape {@link ArkUI_RectShapeOption} Pointer to the OvalShape option.
+ * @return A pointer to the RenderNodeClip option.
+ * @since 20
+ */
+ArkUI_RenderNodeClipOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromOvalShape(
+ ArkUI_RectShapeOption* shape);
+
+/**
+ * @brief Create a clip option from a CommandPath option.
+ *
+ * @param path {@link ArkUI_CommandPathOption} Pointer to the CommandPath option.
+ * @return A pointer to the RenderNodeClip option.
+ * @since 20
+ */
+ArkUI_RenderNodeClipOption* OH_ArkUI_RenderNodeUtils_CreateRenderNodeClipOptionFromCommandPath(
+ ArkUI_CommandPathOption* path);
+
+/**
+ * @brief Dispose the RenderNodeClip option.
+ *
+ * @param option Pointer to the RenderNodeClip option.
+ * @since 20
+ */
+void OH_ArkUI_RenderNodeUtils_DisposeRenderNodeClipOption(ArkUI_RenderNodeClipOption* option);
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif // ARKUI_NATIVE_RENDER_H
+/** @} */
diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h
index 64676cb956567bca6b4a76e163dd7889c41599f8..3bfa0c36dc25d8298fcc4a207a499250e009a8f4 100644
--- a/arkui/ace_engine/native/native_type.h
+++ b/arkui/ace_engine/native/native_type.h
@@ -139,14 +139,14 @@ typedef struct ArkUI_SwiperIndicator ArkUI_SwiperIndicator;
/**
* @brief Defines the digital indicator style for the swiper.
*
- * @since 18
+ * @since 19
*/
typedef struct ArkUI_SwiperDigitIndicator ArkUI_SwiperDigitIndicator;
/**
* @brief Defines the arrow style for the swiper.
*
- * @since 18
+ * @since 19
*/
typedef struct ArkUI_SwiperArrowStyle ArkUI_SwiperArrowStyle;
@@ -242,6 +242,20 @@ typedef struct ArkUI_ProgressLinearStyleOption ArkUI_ProgressLinearStyleOption;
*/
typedef struct ArkUI_CrossLanguageOption ArkUI_CrossLanguageOption;
+/**
+ * @brief Declares the Ability base want.
+ *
+ * @since 20
+ */
+typedef struct AbilityBase_Want AbilityBase_Want;
+
+/**
+ * @brief Define the EmbeddedComponentOption for the EmbeddedComponent.
+ *
+ * @since 20
+ */
+typedef struct ArkUI_EmbeddedComponentOption ArkUI_EmbeddedComponentOption;
+
/**
* @brief Defines the event callback type.
*
@@ -375,6 +389,22 @@ typedef enum {
ARKUI_TEXT_ALIGNMENT_JUSTIFY,
} ArkUI_TextAlignment;
+/**
+ * @brief Enumerates text vertical alignment styles.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Aligned to the baseline. */
+ ARKUI_TEXT_VERTICAL_ALIGNMENT_BASELINE = 0,
+ /** Bottom aligned. */
+ ARKUI_TEXT_VERTICAL_ALIGNMENT_BOTTOM,
+ /** Center aligned. */
+ ARKUI_TEXT_VERTICAL_ALIGNMENT_CENTER,
+ /** Top aligned. */
+ ARKUI_TEXT_VERTICAL_ALIGNMENT_TOP,
+} ArkUI_TextVerticalAlignment;
+
/**
* @brief Enumerates the types of the Enter key for a single-line text box.
*
@@ -423,6 +453,11 @@ typedef enum {
ARKUI_TEXTINPUT_TYPE_NEW_PASSWORD = 11,
/** Number input mode with a decimal point. */
ARKUI_TEXTINPUT_TYPE_NUMBER_DECIMAL = 12,
+ /**
+ * One time code input mode.
+ * @since 20
+ */
+ ARKUI_TEXTINPUT_TYPE_ONE_TIME_CODE = 14,
} ArkUI_TextInputType;
/**
@@ -439,6 +474,11 @@ typedef enum {
ARKUI_TEXTAREA_TYPE_PHONE_NUMBER = 3,
/** Email address input mode. */
ARKUI_TEXTAREA_TYPE_EMAIL = 5,
+ /**
+ * One time code input mode.
+ * @since 20
+ */
+ ARKUI_TEXTAREA_TYPE_ONE_TIME_CODE = 14,
} ArkUI_TextAreaType;
/**
@@ -647,6 +687,18 @@ typedef enum {
ARKUI_EFFECT_EDGE_END = 2,
} ArkUI_EffectEdge;
+/**
+ * @brief Enumerates the focus wrap mode of components.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Default mode, where focus does not wrap when arrow keys are used. */
+ ARKUI_FOCUS_WRAP_MODE_DEFAULT = 0,
+ /** Focus wraps automatically when arrow keys are used. */
+ ARKUI_FOCUS_WRAP_WITH_ARROW = 1,
+} ArkUI_FocusWrapMode;
+
/**
* @brief Enumerates the scroll directions for the component.
*
@@ -659,6 +711,12 @@ typedef enum {
ARKUI_SCROLL_DIRECTION_HORIZONTAL,
/** Scrolling is not allowed. */
ARKUI_SCROLL_DIRECTION_NONE = 3,
+ /**
+ * Free scrolling in both directions.
+ *
+ * @since 20
+ */
+ ARKUI_SCROLL_DIRECTION_FREE = 4,
} ArkUI_ScrollDirection;
/**
@@ -775,7 +833,21 @@ typedef enum {
* considered during the hit test. */
ARKUI_HIT_TEST_MODE_TRANSPARENT,
/** The node does not respond to the hit test of a touch event. */
- ARKUI_HIT_TEST_MODE_NONE
+ ARKUI_HIT_TEST_MODE_NONE,
+ /**
+ * The node and its child nodes participate in hit tests, while blocking hit tests for all sibling nodes and
+ * parent nodes with lower priority.
+ *
+ * @since 20
+ */
+ ARKUI_HIT_TEST_MODE_BLOCK_HIERARCHY,
+ /**
+ * The node does not respond to hit tests, and none of its descendants (including children and grandchildren)
+ * participate in hit tests either.
+ *
+ * @since 20
+ */
+ ARKUI_HIT_TEST_MODE_BLOCK_DESCENDANTS,
} ArkUI_HitTestMode;
/**
@@ -1084,7 +1156,7 @@ typedef enum {
typedef enum {
/** The original image aspect ratio is retained. */
ARKUI_IMAGE_SIZE_AUTO = 0,
- /** Default value. The image is scaled with its aspect ratio retained for both sides to be greater than or equal
+ /** The image is scaled with its aspect ratio retained for both sides to be greater than or equal
* to the display boundaries. */
ARKUI_IMAGE_SIZE_COVER,
/** The image is scaled with its aspect ratio retained for the content to be completely displayed within the display
@@ -1164,6 +1236,21 @@ typedef enum {
ARKUI_BLUR_STYLE_COMPONENT_ULTRA_THICK,
} ArkUI_BlurStyle;
+/**
+ * @brief Enumerates the activation policies for the background blur effect.
+ *
+ * @since 19
+ */
+typedef enum {
+ /** The blur effect changes according to the window's focus state;
+ * it is inactive when the window is not in focus and active when the window is in focus. */
+ ARKUI_BLUR_STYLE_ACTIVE_POLICY_FOLLOWS_WINDOW_ACTIVE_STATE = 0,
+ /** The blur effect is always active. */
+ ARKUI_BLUR_STYLE_ACTIVE_POLICY_ALWAYS_ACTIVE,
+ /** The blur effect is always inactive. */
+ ARKUI_BLUR_STYLE_ACTIVE_POLICY_ALWAYS_INACTIVE,
+} ArkUI_BlurStyleActivePolicy;
+
/**
* @brief Enumerates the vertical alignment modes.
*
@@ -1222,6 +1309,12 @@ typedef enum {
ARKUI_IMAGE_SPAN_ALIGNMENT_CENTER,
/** The image is top aligned with the text. */
ARKUI_IMAGE_SPAN_ALIGNMENT_TOP,
+ /**
+ * The image alignment mode follows the text component's alignment mode.
+ *
+ * @since 20
+ */
+ ARKUI_IMAGE_SPAN_ALIGNMENT_FOLLOW_PARAGRAPH,
} ArkUI_ImageSpanAlignment;
/**
@@ -1885,7 +1978,7 @@ typedef enum {
ARKUI_BUTTON_TYPE_CIRCLE,
/**
* Rounded rectangle button.
- * @since 18
+ * @since 19
*/
ARKUI_BUTTON_ROUNDED_RECTANGLE = 8
} ArkUI_ButtonType;
@@ -2143,7 +2236,7 @@ typedef enum {
ARKUI_ERROR_CODE_INTERNAL_ERROR = 100001,
/**
* @error The XComponent is in invalid state.
- * @since 18
+ * @since 19
*/
ARKUI_ERROR_CODE_XCOMPONENT_STATE_INVALID = 103501,
/** @error The component does not support specific properties or events. */
@@ -2173,6 +2266,41 @@ typedef enum {
* @since 15
*/
ARKUI_ERROR_CODE_NODE_NOT_ON_MAIN_TREE = 106203,
+ /**
+ * @error The node is running on invalid thread.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_NODE_ON_INVALID_THREAD = 106204,
+ /**
+ * @error Force dark config is invalid.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_FORCE_DARK_CONFIG_INVALID = 106205,
+ /**
+ * @error The node type is not custom node.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_NOT_CUSTOM_NODE = 106401,
+ /**
+ * @error Node already has children.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_CHILD_EXISTED = 106402,
+ /**
+ * @error RenderNode parent is existed.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_RENDER_PARENT_EXISTED = 106403,
+ /**
+ * @error RenderNode child is not exist.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_RENDER_CHILD_NOT_EXIST = 106404,
+ /**
+ * @error Param is out of range.
+ * @since 20
+ */
+ ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE = 106405,
/**
* @error The node requesting focus is not focusable.
* @since 15
@@ -2212,6 +2340,11 @@ typedef enum {
* @since 15
*/
ARKUI_ERROR_CODE_POST_CLONED_NO_COMPONENT_HIT_TO_RESPOND_TO_THE_EVENT = 180005,
+ /**
+ * @error Input event type not supported.
+ * @since 20
+ */
+ ARKUI_ERROR_INPUT_EVENT_TYPE_NOT_SUPPORTED = 180006,
/**
* @error invalid styled string.
* @since 14
@@ -2234,7 +2367,7 @@ typedef enum {
ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED = 180102,
/**
* @error operation is not allowed for current drag drop pharse.
- * @since 18
+ * @since 19
*/
ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED = 190004,
} ArkUI_ErrorCode;
@@ -2576,6 +2709,64 @@ typedef enum {
ARKUI_LAZY_EXPAND = 2,
} ArkUI_ExpandMode;
+/**
+ * @brief Defines the navigation point indicator style of the component.
+ * @brief Enumerates the UI states of a component, used for handling state-specific styles.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Normal state. */
+ UI_STATE_NORMAL = 0,
+ /** Pressed state. */
+ UI_STATE_PRESSED = 1 << 0,
+ /** Focused state. */
+ UI_STATE_FOCUSED = 1 << 1,
+ /** Disabled state. */
+ UI_STATE_DISABLED = 1 << 2,
+ /**
+ * Selected state. This state is supported only by specific component types:
+ * Checkbox, Radio, Toggle, List, Grid, and MenuItem.
+ */
+ UI_STATE_SELECTED = 1 << 3,
+} ArkUI_UIState;
+
+/**
+ * @brief Enumerates the edge derection.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Set all edge derection. */
+ ARKUI_EDGE_DIRECTION_ALL = 0,
+ /** Set left edge derection. */
+ ARKUI_EDGE_DIRECTION_LEFT,
+ /** Set right edge derection. */
+ ARKUI_EDGE_DIRECTION_RIGHT,
+ /** Set top edge derection. */
+ ARKUI_EDGE_DIRECTION_TOP,
+ /** Set bottom edge derection. */
+ ARKUI_EDGE_DIRECTION_BOTTOM,
+} ArkUI_EdgeDirection;
+
+/**
+ * @brief Enumerates the corner derection.
+ *
+ * @since 20
+ */
+typedef enum {
+ /** Set all corner derection. */
+ ARKUI_CORNER_DIRECTION_ALL = 0,
+ /** Set top left corner derection. */
+ ARKUI_CORNER_DIRECTION_TOP_LEFT,
+ /** Set top right corner derection. */
+ ARKUI_CORNER_DIRECTION_TOP_RIGHT,
+ /** Set bottom left corner derection. */
+ ARKUI_CORNER_DIRECTION_BOTTOM_LEFT,
+ /** Set bottom right corner derection. */
+ ARKUI_CORNER_DIRECTION_BOTTOM_RIGHT,
+} ArkUI_CornerDirection;
+
/**
* @brief Defines parameter used by the system font style callback event.
*
@@ -2593,14 +2784,14 @@ typedef struct ArkUI_SnapshotOptions ArkUI_SnapshotOptions;
/**
* @brief TextPicker single column selector, supports mixing text and images.
*
- * @since 18
+ * @since 19
*/
typedef struct ArkUI_TextPickerRangeContentArray ArkUI_TextPickerRangeContentArray;
/**
* @brief TextPicker multi column selector, supports mixing text and images.
*
- * @since 18
+ * @since 19
*/
typedef struct ArkUI_TextCascadePickerRangeContentArray ArkUI_TextCascadePickerRangeContentArray;
@@ -3168,7 +3359,7 @@ int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indic
* @param indicator Indicates the pointer to the indicator.
* @param ignoreSize Whether to ignore the size of the indicator. The value 1 means to ignore, and 0 means the opposite.
* The default value is 0.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator, int32_t ignoreSize);
@@ -3177,7 +3368,7 @@ void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indic
*
* @param indicator Indicates the pointer to the indicator.
* @return Returns whether to ignore the size of the indicator.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator);
@@ -3186,7 +3377,7 @@ int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* in
*
* @param indicator Indicates the pointer to the indicator.
* @param space the space between the dots of the navigation indicator, the default value is 8vp.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float space);
@@ -3195,7 +3386,7 @@ void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float s
*
* @param indicator Indicates the pointer to the indicator.
* @return the space between the dots of the navigation indicator
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator);
@@ -3203,7 +3394,7 @@ float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator);
* @brief Creates a digital indicator.
*
* @return Returns the pointer to the new indicator.
- * @since 18
+ * @since 19
*/
ArkUI_SwiperDigitIndicator *OH_ArkUI_SwiperDigitIndicator_Create();
@@ -3212,7 +3403,7 @@ ArkUI_SwiperDigitIndicator *OH_ArkUI_SwiperDigitIndicator_Create();
*
* @param indicator The pointer to the digital indicator.
* @param value Indicates the distance between the digital indicator and the start of the swiper.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetStartPosition(ArkUI_SwiperDigitIndicator* indicator, float value);
@@ -3221,7 +3412,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetStartPosition(ArkUI_SwiperDigitIndicator*
*
* @param indicator The pointer to the digital indicator.
* @return Returns the distance between the digital indicator and the start of the swiper.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperDigitIndicator_GetStartPosition(ArkUI_SwiperDigitIndicator* indicator);
@@ -3230,7 +3421,7 @@ float OH_ArkUI_SwiperDigitIndicator_GetStartPosition(ArkUI_SwiperDigitIndicator*
*
* @param indicator The pointer to the digital indicator.
* @param value Indicates the distance between the digital indicator and the top of the swiper.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetTopPosition(ArkUI_SwiperDigitIndicator* indicator, float value);
@@ -3239,7 +3430,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetTopPosition(ArkUI_SwiperDigitIndicator* in
*
* @param indicator The pointer to the digital indicator.
* @return Returns the distance between the digital indicator and the top of the swiper.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperDigitIndicator_GetTopPosition(ArkUI_SwiperDigitIndicator* indicator);
@@ -3248,7 +3439,7 @@ float OH_ArkUI_SwiperDigitIndicator_GetTopPosition(ArkUI_SwiperDigitIndicator* i
*
* @param indicator The pointer to the digital indicator.
* @param value Indicates the distance between the digital indicator and the end of the swiper.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetEndPosition(ArkUI_SwiperDigitIndicator* indicator, float value);
@@ -3257,7 +3448,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetEndPosition(ArkUI_SwiperDigitIndicator* in
*
* @param indicator The pointer to the digital indicator.
* @return Returns the distance between the digital indicator and the end of the swiper.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperDigitIndicator_GetEndPosition(ArkUI_SwiperDigitIndicator* indicator);
@@ -3266,7 +3457,7 @@ float OH_ArkUI_SwiperDigitIndicator_GetEndPosition(ArkUI_SwiperDigitIndicator* i
*
* @param indicator The pointer to the digital indicator.
* @param value Returns the distance between the digital indicator and the bottom of the swiper.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetBottomPosition(ArkUI_SwiperDigitIndicator* indicator, float value);
@@ -3275,7 +3466,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetBottomPosition(ArkUI_SwiperDigitIndicator*
*
* @param indicator The pointer to the digital indicator.
* @return Returns the distance between the digital indicator and the bottom of the swiper.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperDigitIndicator_GetBottomPosition(ArkUI_SwiperDigitIndicator* indicator);
@@ -3284,7 +3475,7 @@ float OH_ArkUI_SwiperDigitIndicator_GetBottomPosition(ArkUI_SwiperDigitIndicator
*
* @param indicator The pointer to the digital indicator.
* @param color font color, in 0xARGB format. Default value: 0xFF182431.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t color);
@@ -3293,7 +3484,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetFontColor(ArkUI_SwiperDigitIndicator* indi
*
* @param indicator The pointer to the digital indicator.
* @return font color, in 0xARGB format.
- * @since 18
+ * @since 19
*/
uint32_t OH_ArkUI_SwiperDigitIndicator_GetFontColor(ArkUI_SwiperDigitIndicator* indicator);
@@ -3302,7 +3493,7 @@ uint32_t OH_ArkUI_SwiperDigitIndicator_GetFontColor(ArkUI_SwiperDigitIndicator*
*
* @param indicator The pointer to the digital indicator.
* @param selectedColor font color, in 0xARGB format. Default value: 0xFF182431.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t selectedColor);
@@ -3311,7 +3502,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor(ArkUI_SwiperDigitIndicat
*
* @param indicator The pointer to the digital indicator.
* @return font color, in 0xARGB format.
- * @since 18
+ * @since 19
*/
uint32_t OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator);
@@ -3320,7 +3511,7 @@ uint32_t OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor(ArkUI_SwiperDigitInd
*
* @param indicator The pointer to the digital indicator.
* @param size font size, in fp.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetFontSize(ArkUI_SwiperDigitIndicator* indicator, float size);
@@ -3329,7 +3520,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetFontSize(ArkUI_SwiperDigitIndicator* indic
*
* @param indicator The pointer to the digital indicator.
* @return font size, in fp.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperDigitIndicator_GetFontSize(ArkUI_SwiperDigitIndicator* indicator);
@@ -3338,7 +3529,7 @@ float OH_ArkUI_SwiperDigitIndicator_GetFontSize(ArkUI_SwiperDigitIndicator* indi
*
* @param indicator The pointer to the digital indicator.
* @param size font size, in fp.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator, float size);
@@ -3347,7 +3538,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize(ArkUI_SwiperDigitIndicato
*
* @param indicator The pointer to the digital indicator.
* @return font size, in fp.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator);
@@ -3356,7 +3547,7 @@ float OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize(ArkUI_SwiperDigitIndicat
*
* @param indicator The pointer to the digital indicator.
* @param fontWeight font weight {@link ArkUI_FontWeight}. The default value is ARKUI_FONT_WEIGHT_NORMAL.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetFontWeight(ArkUI_SwiperDigitIndicator *indicator, ArkUI_FontWeight fontWeight);
@@ -3365,7 +3556,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetFontWeight(ArkUI_SwiperDigitIndicator *ind
*
* @param indicator The pointer to the digital indicator.
* @return font weight {@link ArkUI_FontWeight}.
- * @since 18
+ * @since 19
*/
ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetFontWeight(ArkUI_SwiperDigitIndicator* indicator);
@@ -3374,7 +3565,7 @@ ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetFontWeight(ArkUI_SwiperDigitIn
*
* @param indicator The pointer to the digital indicator.
* @param selectedFontWeight font weight {@link ArkUI_FontWeight}. The default value is ARKUI_FONT_WEIGHT_NORMAL.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontWeight(
ArkUI_SwiperDigitIndicator *indicator, ArkUI_FontWeight selectedFontWeight);
@@ -3384,7 +3575,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontWeight(
*
* @param indicator The pointer to the digital indicator.
* @return font weight {@link ArkUI_FontWeight}.
- * @since 18
+ * @since 19
*/
ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight(ArkUI_SwiperDigitIndicator* indicator);
@@ -3392,7 +3583,7 @@ ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight(ArkUI_Swipe
* @brief Destroys the digital indicator.
*
* @param indicator The pointer to the digital indicator.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator *indicator);
@@ -3402,7 +3593,7 @@ void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator *indicator
* @param indicator The pointer to the digital indicator.
* @param ignoreSize Whether to ignore the size of the indicator. The value 1 means to ignore, and 0 means the opposite.
* The default value is 0.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator, int32_t ignoreSize);
@@ -3411,7 +3602,7 @@ void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndica
*
* @param indicator The pointer to the digital indicator.
* @return Returns whether to ignore the size of the indicator.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator);
@@ -3419,7 +3610,7 @@ int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitInd
* @brief Creates a arrow style for swiper.
*
* @return Returns the pointer to the new arrow style.
- * @since 18
+ * @since 19
*/
ArkUI_SwiperArrowStyle *OH_ArkUI_SwiperArrowStyle_Create();
@@ -3430,7 +3621,7 @@ ArkUI_SwiperArrowStyle *OH_ArkUI_SwiperArrowStyle_Create();
* @param showBackground whether to show the background for the arrow.
* The value 1 means to show the background, and 0 means the opposite.
* The default value is 0.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_SetShowBackground(ArkUI_SwiperArrowStyle *arrowStyle, int32_t showBackground);
@@ -3440,7 +3631,7 @@ void OH_ArkUI_SwiperArrowStyle_SetShowBackground(ArkUI_SwiperArrowStyle *arrowSt
* @param arrowStyle The pointer to the arrow style.
* @return whether to show the background for the arrow.
* The value 1 means to show the background, and 0 means the opposite.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SwiperArrowStyle_GetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle);
@@ -3452,7 +3643,7 @@ int32_t OH_ArkUI_SwiperArrowStyle_GetShowBackground(ArkUI_SwiperArrowStyle* arro
* The value 1 means to display on boths sides of the swiper,
* and 0 means display on boths sides of the swiper indicator.
* The default value is 0.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showSidebarMiddle);
@@ -3462,7 +3653,7 @@ void OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arro
* @param arrowStyle The pointer to the arrow style.
* @return the display position of the arrow. The value 1 means to display on boths sides of the swiper,
* and 0 means display on boths sides of the swiper indicator.
- * @since 18
+ * @since 19
*/
int32_t OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle);
@@ -3473,7 +3664,7 @@ int32_t OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle(ArkUI_SwiperArrowStyle* a
* @param backgroundSize the background size of the arrow. The unit is vp.
* The default value is 24 when the arrow displays on both sides of the swiper indicator.
* The default value is 32 when the arrow displays on both sides of the swiper.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_SetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle, float backgroundSize);
@@ -3482,7 +3673,7 @@ void OH_ArkUI_SwiperArrowStyle_SetBackgroundSize(ArkUI_SwiperArrowStyle* arrowSt
*
* @param arrowStyle The pointer to the arrow style.
* @return Returns the background size of the arrow. The unit is vp.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperArrowStyle_GetBackgroundSize(ArkUI_SwiperArrowStyle *arrowStyle);
@@ -3490,7 +3681,7 @@ float OH_ArkUI_SwiperArrowStyle_GetBackgroundSize(ArkUI_SwiperArrowStyle *arrowS
* @brief Destroys the arrow style.
*
* @param arrowStyle The pointer to the arrow style.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_Destroy(ArkUI_SwiperArrowStyle *arrowStyle);
@@ -3501,7 +3692,7 @@ void OH_ArkUI_SwiperArrowStyle_Destroy(ArkUI_SwiperArrowStyle *arrowStyle);
* @param backgroundColor the background color of the arrow, in 0xARGB format.
* The default value is 0x00000000 when the arrow displays on both sides of the swiper indicator.
* The default value is 0x19182431 when the arrow displays on both sides of the swiper.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_SetBackgroundColor(ArkUI_SwiperArrowStyle *arrowStyle, uint32_t backgroundColor);
@@ -3510,7 +3701,7 @@ void OH_ArkUI_SwiperArrowStyle_SetBackgroundColor(ArkUI_SwiperArrowStyle *arrowS
*
* @param arrowStyle The pointer to the arrow style.
* @return Returns the background color of the arrow, in 0xARGB format.
- * @since 18
+ * @since 19
*/
uint32_t OH_ArkUI_SwiperArrowStyle_GetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle);
@@ -3522,7 +3713,7 @@ uint32_t OH_ArkUI_SwiperArrowStyle_GetBackgroundColor(ArkUI_SwiperArrowStyle* ar
* The default value is 18 when the arrow displays on both sides of the swiper indicator.
* The default value is 24 when the arrow displays on both sides of the swiper.
* The arrow size is fixed to 3/4 of the background size when the background is shown.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_SetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle, float arrowSize);
@@ -3531,7 +3722,7 @@ void OH_ArkUI_SwiperArrowStyle_SetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle,
*
* @param arrowStyle The pointer to the arrow style.
* @return the size of the arrow. The unit is vp.
- * @since 18
+ * @since 19
*/
float OH_ArkUI_SwiperArrowStyle_GetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle);
@@ -3540,7 +3731,7 @@ float OH_ArkUI_SwiperArrowStyle_GetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle)
*
* @param arrowStyle The pointer to the arrow style.
* @param arrowColor the color of the arrow, in 0xARGB format. The default value is 0x00182431.
- * @since 18
+ * @since 19
*/
void OH_ArkUI_SwiperArrowStyle_SetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t arrowColor);
@@ -3549,7 +3740,7 @@ void OH_ArkUI_SwiperArrowStyle_SetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle,
*
* @param arrowStyle The pointer to the arrow style.
* @return Returns the color of the arrow, in 0xARGB format.
- * @since 18
+ * @since 19
*/
uint32_t OH_ArkUI_SwiperArrowStyle_GetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle);
@@ -4265,7 +4456,7 @@ float OH_ArkUI_ListChildrenMainSizeOption_GetMainSize(ArkUI_ListChildrenMainSize
*
If the result returns nullptr, there may be out of memory.
* @since 12
*/
-ArkUI_CustomSpanMeasureInfo* OH_ArkUI_CustomSpanMeasureInfo_Create();
+ArkUI_CustomSpanMeasureInfo* OH_ArkUI_CustomSpanMeasureInfo_Create(void);
/**
* @brief Disposes of measurement information of this custom span.
@@ -4292,7 +4483,7 @@ float OH_ArkUI_CustomSpanMeasureInfo_GetFontSize(ArkUI_CustomSpanMeasureInfo* in
*
If the result returns nullptr, there may be out of memory.
* @since 12
*/
-ArkUI_CustomSpanMetrics* OH_ArkUI_CustomSpanMetrics_Create();
+ArkUI_CustomSpanMetrics* OH_ArkUI_CustomSpanMetrics_Create(void);
/**
* @brief Disposes of measurement metrics of this custom span.
@@ -4335,7 +4526,7 @@ int32_t OH_ArkUI_CustomSpanMetrics_SetHeight(ArkUI_CustomSpanMetrics* metrics, f
*
If the result returns nullptr, there may be out of memory.
* @since 12
*/
-ArkUI_CustomSpanDrawInfo* OH_ArkUI_CustomSpanDrawInfo_Create();
+ArkUI_CustomSpanDrawInfo* OH_ArkUI_CustomSpanDrawInfo_Create(void);
/**
* @brief Disposes of drawing information for this custom span.
@@ -4958,7 +5149,7 @@ bool OH_ArkUI_CrossLanguageOption_GetAttributeSettingStatus(ArkUI_CrossLanguageO
/**
* @brief Defines the parameters for visible area change events.
*
- * @since 18
+ * @since 17
*/
typedef struct ArkUI_VisibleAreaEventOptions ArkUI_VisibleAreaEventOptions;
@@ -4966,7 +5157,7 @@ typedef struct ArkUI_VisibleAreaEventOptions ArkUI_VisibleAreaEventOptions;
* @brief Creates an instance of visible area change event parameters
*
* @return Returns the created instance of visible area change event parameters.
-* @since 18
+* @since 17
*/
ArkUI_VisibleAreaEventOptions* OH_ArkUI_VisibleAreaEventOptions_Create();
@@ -4974,7 +5165,7 @@ ArkUI_VisibleAreaEventOptions* OH_ArkUI_VisibleAreaEventOptions_Create();
* @brief Disposes of an instance of visible area change event parameters.
*
* @param option Instance to be destroyed.
-* @since 18
+* @since 17
*/
void OH_ArkUI_VisibleAreaEventOptions_Dispose(ArkUI_VisibleAreaEventOptions* option);
@@ -4992,7 +5183,7 @@ void OH_ArkUI_VisibleAreaEventOptions_Dispose(ArkUI_VisibleAreaEventOptions* opt
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
* If an error code is returned, it may be due to a failure in parameter validation;
* the parameter must not be null.
-* @since 18
+* @since 17
*/
int32_t OH_ArkUI_VisibleAreaEventOptions_SetRatios(ArkUI_VisibleAreaEventOptions* option, float* value, int32_t size);
@@ -5006,7 +5197,7 @@ int32_t OH_ArkUI_VisibleAreaEventOptions_SetRatios(ArkUI_VisibleAreaEventOptions
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
* If an error code is returned, it may be due to a failure in parameter validation;
* the parameter must not be null.
-* @since 18
+* @since 17
*/
int32_t OH_ArkUI_VisibleAreaEventOptions_SetExpectedUpdateInterval(
ArkUI_VisibleAreaEventOptions *option, int32_t value);
@@ -5023,7 +5214,7 @@ int32_t OH_ArkUI_VisibleAreaEventOptions_SetExpectedUpdateInterval(
* Returns {@link ARKUI_ERROR_CODE_BUFFER_SIZE_ERROR} if the provided buffer size is insufficient.
* If an error code is returned, it may be due to a failure in parameter validation;
* the parameter must not be null.
- * @since 18
+ * @since 17
*/
int32_t OH_ArkUI_VisibleAreaEventOptions_GetRatios(ArkUI_VisibleAreaEventOptions* option, float* value, int32_t* size);
@@ -5032,7 +5223,7 @@ int32_t OH_ArkUI_VisibleAreaEventOptions_GetRatios(ArkUI_VisibleAreaEventOptions
*
* @param option Instance of visible area change event parameters.
* @return Returns the expected update interval, in ms. Default value: 1000.
- * @since 18
+ * @since 17
*/
int32_t OH_ArkUI_VisibleAreaEventOptions_GetExpectedUpdateInterval(ArkUI_VisibleAreaEventOptions* option);
@@ -5041,7 +5232,7 @@ int32_t OH_ArkUI_VisibleAreaEventOptions_GetExpectedUpdateInterval(ArkUI_Visible
*
*@param length The length of the picker array.
*@return Returns a TextPickerRangeContent instance.
- *@since 18
+ *@since 19
*/
ArkUI_TextPickerRangeContentArray* OH_ArkUI_TextPickerRangeContentArray_Create(int32_t length);
@@ -5051,7 +5242,7 @@ ArkUI_TextPickerRangeContentArray* OH_ArkUI_TextPickerRangeContentArray_Create(i
*@param handle The TextPickerRangeContent instance for obtaining information.
*@param icon Icon addreass.
*@param index The index position of the value to be obtained.
- *@since 18
+ *@since 19
*/
void OH_ArkUI_TextPickerRangeContentArray_SetIconAtIndex(
ArkUI_TextPickerRangeContentArray* handle, char* icon, int32_t index);
@@ -5062,7 +5253,7 @@ void OH_ArkUI_TextPickerRangeContentArray_SetIconAtIndex(
*@param handle The TextPickerRangeContent instance for obtaining information.
*@param text Text content
*@param index The index position of the value to be obtained.
- *@since 18
+ *@since 19
*/
void OH_ArkUI_TextPickerRangeContentArray_SetTextAtIndex(
ArkUI_TextPickerRangeContentArray* handle, char* text, int32_t index);
@@ -5071,7 +5262,7 @@ void OH_ArkUI_TextPickerRangeContentArray_SetTextAtIndex(
*@brief Destroy the TextPickerRangeContent instance.
*
*@param handle The TextPickerRangeContent instance for obtaining information.
- *@since 18
+ *@since 19
*/
void OH_ArkUI_TextPickerRangeContentArray_Destroy(ArkUI_TextPickerRangeContentArray* handle);
@@ -5080,7 +5271,7 @@ void OH_ArkUI_TextPickerRangeContentArray_Destroy(ArkUI_TextPickerRangeContentAr
*
*@param length The length of the picker array.
*@return Returns a TextCascadePickerRangeContent instance.
- *@since 18
+ *@since 19
*/
ArkUI_TextCascadePickerRangeContentArray* OH_ArkUI_TextCascadePickerRangeContentArray_Create(int32_t length);
@@ -5090,7 +5281,7 @@ ArkUI_TextCascadePickerRangeContentArray* OH_ArkUI_TextCascadePickerRangeContent
*@param handle The TextCascadePickerRangeContent instance for obtaining information.
*@param text text content
*@param index The index position of the value to be obtained.
- *@since 18
+ *@since 19
*/
void OH_ArkUI_TextCascadePickerRangeContentArray_SetTextAtIndex(
ArkUI_TextCascadePickerRangeContentArray* handle, char* text, int32_t index);
@@ -5101,7 +5292,7 @@ void OH_ArkUI_TextCascadePickerRangeContentArray_SetTextAtIndex(
*@param handle The TextCascadePickerRangeContent instance for obtaining information.
*@param child The child instance.
*@param index The index position of the value to be obtained.
- *@since 18
+ *@since 19
*/
void OH_ArkUI_TextCascadePickerRangeContentArray_SetChildAtIndex(
ArkUI_TextCascadePickerRangeContentArray* handle, ArkUI_TextCascadePickerRangeContentArray* child, int32_t index);
@@ -5110,9 +5301,48 @@ void OH_ArkUI_TextCascadePickerRangeContentArray_SetChildAtIndex(
*@brief Destroy the TextCascadePickerRangeContent instance.
*
*@param handle The TextCascadePickerRangeContent instance for obtaining information.
- *@since 18
+ *@since 19
*/
void OH_ArkUI_TextCascadePickerRangeContentArray_Destroy(ArkUI_TextCascadePickerRangeContentArray* handle);
+
+/**
+ * @brief Create an object for the EmbeddedComponent option.
+ *
+ * @return A pointer to the object of the EmbeddedComponent option.
+ * @since 20
+ */
+ArkUI_EmbeddedComponentOption* OH_ArkUI_EmbeddedComponentOption_Create();
+
+/**
+ * @brief Destroy the object by EmbeddedComponent option.
+ *
+ * @param option Pointer to the object by the EmbeddeComponent to be destroyed.
+ * @since 20
+ */
+void OH_ArkUI_EmbeddedComponentOption_Dispose(ArkUI_EmbeddedComponentOption* option);
+
+/**
+ * @brief Set the onError of EmbeddedComponent.
+ *
+ * @param option Pointer to the object option by the EmbeddedComponent.
+ * @param code Common error information about the API invoking failure.
+ * @param name Common error name information about the API invoking failure.
+ * @param message Common error message information about the API invoking failure.
+ * @since 20
+ */
+void OH_ArkUI_EmbeddedComponentOption_SetOnError(
+ ArkUI_EmbeddedComponentOption* option, void (*callback)(int32_t code, const char* name, const char* message));
+
+/**
+ * @brief Set the onTerminated of EmbeddedComponent.
+ *
+ * @param option Pointer to the object option by the EmbeddedComponent.
+ * @param code Result code returned when the EmbeddedUIExtensionAbility exits.
+ * @param want Data returned when the EmbeddedUIExtensionAbility exits.
+ * @since 20
+ */
+void OH_ArkUI_EmbeddedComponentOption_SetOnTerminated(
+ ArkUI_EmbeddedComponentOption* option, void (*callback)(int32_t code, AbilityBase_Want* want));
#ifdef __cplusplus
};
#endif
diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h
index 37497b2315d3a27099a8fbddd2551d8fb622b934..9e4c31d859f43d5f68403598db38f7e3cf621dca 100644
--- a/arkui/ace_engine/native/ui_input_event.h
+++ b/arkui/ace_engine/native/ui_input_event.h
@@ -61,6 +61,12 @@ typedef enum {
ARKUI_UIINPUTEVENT_TYPE_AXIS = 2,
/** Mouse event. */
ARKUI_UIINPUTEVENT_TYPE_MOUSE = 3,
+ /**
+ * @brief key event.
+ *
+ * @since 20
+ */
+ ARKUI_UIINPUTEVENT_TYPE_KEY = 4,
} ArkUI_UIInputEvent_Type;
/**
@@ -143,6 +149,22 @@ typedef enum {
* during the hit test.
*/
HTM_NONE,
+
+ /**
+ * The node and its child nodes participate in hit tests, while blocking hit tests for all sibling nodes and parent
+ * nodes with lower priority.
+ *
+ * @since 20
+ */
+ HTM_BLOCK_HIERARCHY,
+
+ /**
+ * The node does not respond to hit tests, and none of its descendants (including children and grandchildren)
+ * participate in hit tests either.
+ *
+ * @since 20
+ */
+ HTM_BLOCK_DESCENDANTS,
} HitTestMode;
/**
@@ -258,9 +280,17 @@ enum {
};
/**
- * @brief Obtains the type of this UI input event.
+ * @brief Obtains the type of a UI input event.
*
- * @param event Indicates the pointer to the current UI input event.
+ * Before accessing an ArkUI_UIInputEvent pointer, use this API to determine the type of the input event.
+ * This API returns a value from the {@link ArkUI_UIInputEvent_Type} enum. It helps ensure compatibility with subsequent
+ * accessors. For example, if the event is a touch event,
+ * which is directional, you can use OH_ArkUI_UIInputEvent_GetXXX or OH_ArkUI_PointerEvent_GetXXX for access.
+ * Using OH_ArkUI_KeyEvent_GetXXX to access the event may produce undefined behavior.
+ *
+ * For unsupported event types, this API returns the default value 0.
+ *
+ * @param event Pointer to the current UI input event.
* @return Returns the type of the current UI input event; returns 0 if any parameter error occurs.
* @since 12
*/
@@ -269,25 +299,50 @@ int32_t OH_ArkUI_UIInputEvent_GetType(const ArkUI_UIInputEvent* event);
/**
* @brief Obtains the action type of this UI input event.
*
- * @param event Indicates the pointer to the current UI input event.
+ * The action type defines the phase of a basic event (for example, start or end) and characterizes its behavior,
+ * such as touch down or touch up Action types are specific to the event category:
+ * UI_TOUCH_EVENT_ACTION_XXX for touch events and UI_MOUSE_EVENT_ACTION_XXX for mouse events.
+ *
+ * @note
+ * 1. For axis events, use {@link OH_ArkUI_AxisEvent_GetAxisAction} to obtain the action type,
+ * which returns UI_AXIS_EVENT_ACTION_XXX.
+ * 2. For key events, use {@link OH_ArkUI_KeyEvent_GetType} instead.
+ *
+ * @param event Pointer to the current UI input event.
* @return Returns the action type of the current UI input event; returns 0 if any parameter error occurs.
* @since 12
*/
int32_t OH_ArkUI_UIInputEvent_GetAction(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the source type of this UI input event.
+ * @brief Obtains the source type of a UI input event.
*
- * @param event Indicates the pointer to the current UI input event.
+ * The source represents the physical device, such as a touchscreen or mouse device, that generates the event.
+ * It is defined by the UI_INPUT_EVENT_SOURCE_TYPE_XXX enum.
+ * This is different from the input tool, which is the device used to interact with the source, for example,
+ * a finger or stylus. However, in certain cases, the input source and the input tool can be the same.
+ * For example, a mouse device acts as both the source and tool for click events.
+ *
+ * @note For key events, obtaining the source type is not supported, and in such cases,
+ * the API will return an unknown value.
+ *
+ * @param event Pointer to the current UI input event.
* @return Returns the source type of the current UI input event.
* @since 12
*/
int32_t OH_ArkUI_UIInputEvent_GetSourceType(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the tool type of this UI input event.
+ * @brief Obtains the tool type of a UI input event.
+ *
+ * The input tool is the device used to interact with the input source, such as a finger or stylus.
+ * It is defined by the UI_INPUT_EVENT_TOOL_TYPE_XXX enum.
+ * These tools do not produce events directly but drive the input source to generate them.
*
- * @param event Indicates the pointer to the current UI input event.
+ * @note For key events, obtaining the tool type is not supported, and in such cases,
+ * the API will return an unknown value.
+ *
+ * @param event Pointer to the current UI input event.
* @return Returns the tool type of the current UI input event.
* @since 12
*/
@@ -303,22 +358,31 @@ int32_t OH_ArkUI_UIInputEvent_GetToolType(const ArkUI_UIInputEvent* event);
int64_t OH_ArkUI_UIInputEvent_GetEventTime(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the number of touch points from a directional input event (such as a touch event, mouse event,
- * or axis event).
+ * @brief Obtains the number of contact points from a pointer event (such as a touch, mouse, or axis event).
*
- * @param event Indicates the pointer to the current UI input event.
- * @return Returns the number of touch points for the directional input event.
+ * Pointer events are typically events that carry position information, such as touch events,
+ * where the location of the event can be determined.
+ * Non-pointer events, such as key events, do not have position information and do not involve contact points,
+ * so this API is not applicable to key events.
+ *
+ * For touch events, this API returns the number of active touch points, for example, fingers on the screen.
+ * For mouse and axis events, this API always returns 1, as they are single-pointer interactions.
+ *
+ * @param event Pointer to the current UI input event.
+ * @return Number of contact points for the current pointer event.
* @since 12
*/
uint32_t OH_ArkUI_PointerEvent_GetPointerCount(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the ID of a touch point from a directional input event (such as a touch event, mouse event,
- * or axis event).
+ * @brief Obtains the unique ID of a contact point from a pointer event (such as a touch, mouse, or axis event).
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
- * @return Returns the ID of the corresponding touch point.
+ * The ID distinguishes between multiple contact points from the same input device. The return value itself does not
+ * have any other meaning beyond identifying the contact point.
+ *
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
+ * @return Unique ID of the specified contact point.
* @since 12
*/
int32_t OH_ArkUI_PointerEvent_GetPointerId(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
@@ -347,11 +411,12 @@ int32_t OH_ArkUI_PointerEvent_GetChangedPointerId(const ArkUI_UIInputEvent* even
float OH_ArkUI_PointerEvent_GetX(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the X coordinate of a specific touch point relative to the upper left corner of the current component
- * from a directional input event (such as a touch event, mouse event, or axis event).
+ * @brief Obtains the X coordinate of a specific contact point relative to the upper left corner of the current
+ * component from a pointer event (such as a touch, mouse, or axis event).
+ * For mouse and axis events, this API returns the default value of 0.0f if the given index is greater than 0.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the X coordinate relative to the upper left corner of the current component;
* returns 0.0f if any parameter error occurs.
* @since 12
@@ -370,13 +435,14 @@ float OH_ArkUI_PointerEvent_GetXByIndex(const ArkUI_UIInputEvent* event, uint32_
float OH_ArkUI_PointerEvent_GetY(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the Y coordinate of a specific touch point relative to the upper left corner of the current component
- * from a directional input event (such as a touch event, mouse event, or axis event).
+ * @brief Obtains the Y coordinate of a specific contact point relative to the upper left corner of the current
+ * component from a pointer event (such as a touch, mouse, or axis event).
+ * For mouse and axis events, this API returns the default value of 0.0f if the given index is greater than 0.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
- * @return Returns the Y coordinate relative to the upper left corner of the current component;
- * returns 0.0f if any parameter error occurs.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
+ * @return Y coordinate relative to the upper left corner of the current component;
+ * 0.0f if any parameter error occurs.
* @since 12
*/
float OH_ArkUI_PointerEvent_GetYByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
@@ -393,13 +459,14 @@ float OH_ArkUI_PointerEvent_GetYByIndex(const ArkUI_UIInputEvent* event, uint32_
float OH_ArkUI_PointerEvent_GetWindowX(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the X coordinate of a specific touch point relative to the upper left corner of the current
- * application window from a directional input event (such as a touch event, mouse event, or axis event).
+ * @brief Obtains the X coordinate of a specific contact point relative to the upper left corner of the current
+ * application window from a pointer event (such as a touch, mouse, or axis event).
+ * For mouse and axis events, this API returns the default value of 0.0f if the given index is greater than 0.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
- * @return Returns the X coordinate relative to the upper left corner of the current application window;
- * returns 0.0f if any parameter error occurs.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
+ * @return X coordinate relative to the upper left corner of the current application window;
+ * 0.0f if any parameter error occurs.
* @since 12
*/
float OH_ArkUI_PointerEvent_GetWindowXByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
@@ -416,11 +483,12 @@ float OH_ArkUI_PointerEvent_GetWindowXByIndex(const ArkUI_UIInputEvent* event, u
float OH_ArkUI_PointerEvent_GetWindowY(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the Y coordinate of a specific touch point relative to the upper left corner of the current
- * application window from a directional input event (such as a touch event, mouse event, or axis event).
+ * @brief Obtains the Y coordinate of a specific contact point relative to the upper left corner of the current
+ * application window from a pointer event (such as a touch, mouse, or axis event).
+ * For mouse and axis events, this API returns the default value of 0.0f if the given index is greater than 0.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the Y coordinate relative to the upper left corner of the current application window;
* returns 0.0f if any parameter error occurs.
* @since 12
@@ -439,11 +507,12 @@ float OH_ArkUI_PointerEvent_GetWindowYByIndex(const ArkUI_UIInputEvent* event, u
float OH_ArkUI_PointerEvent_GetDisplayX(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the X coordinate of a specific touch point relative to the upper left corner of the current screen
- * from a directional input event (such as a touch event, mouse event, or axis event).
+ * @brief Obtains the X coordinate of a specific contact point relative to the upper left corner of the current screen
+ * from a pointer event (such as a touch, mouse, or axis event).
+ * For mouse and axis events, this API returns the default value of 0.0f if the given index is greater than 0.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the X coordinate relative to the upper left corner of the current screen;
* returns 0.0f if any parameter error occurs.
* @since 12
@@ -463,16 +532,68 @@ float OH_ArkUI_PointerEvent_GetDisplayY(const ArkUI_UIInputEvent* event);
/**
* @brief Obtains the Y coordinate of a specific touch point relative to the upper left corner of the current screen
- * from a directional input event (such as a touch event, mouse event, or axis event).
+ * from a pointer event (such as a touch event, mouse event, or axis event).
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the Y coordinate relative to the upper left corner of the current screen;
* returns 0.0f if any parameter error occurs.
* @since 12
*/
float OH_ArkUI_PointerEvent_GetDisplayYByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
+/**
+ * @brief Obtains the X coordinate relative to global display from a pointer event (such as a touch, mouse,
+ * or axis event).
+ * Position information can only be obtained from UI input events.
+ *
+ * @param event Pointer to the current UI input event.
+ * @return float X coordinate relative to the global display. 0 is returned if any parameter error occurs
+ * (for example, if the event does not contain position information).
+ * @since 20
+ */
+float OH_ArkUI_PointerEvent_GetGlobalDisplayX(const ArkUI_UIInputEvent* event);
+
+/**
+ * @brief Obtains the X coordinate of a specific contact point relative to global display from a pointer event
+ * (such as a touch, mouse, or axis event).
+ * Position information can only be obtained from UI input events. For mouse and axis events, if the provided
+ * pointerIndex is greater than 0, this API always returns the default value 0.0f.
+ *
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target touch point in the multi-touch data list.
+ *Value range: [0, @link OH_ArkUI_PointerEvent_GetPointerCount() - 1]
+ * @return float X coordinate relative to the global display; 0.0f if any parameter error occurs.
+ * @since 20
+ */
+float OH_ArkUI_PointerEvent_GetGlobalDisplayXByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
+
+/**
+ * @brief Obtains the Y coordinate relative to global display from a pointer event (such as a touch, mouse,
+ * or axis event).
+ * Position information can only be obtained from pointer-like events.
+ *
+ * @param event Pointer to the current UI input event.
+ * @return float Y coordinate relative to the global display; 0 if any parameter error occurs
+ * (for example, if the event does not contain position information).
+ * @since 20
+ */
+float OH_ArkUI_PointerEvent_GetGlobalDisplayY(const ArkUI_UIInputEvent* event);
+
+/**
+ * @brief Obtains the Y coordinate of a specific contact point relative to global display from a pointer event
+ * (such as a touch, mouse, or axis event).
+ * Position information can only be obtained from UI input events. For mouse and axis events, if the provided
+ * pointerIndex is greater than 0, this API always returns the default value 0.0f.
+ *
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target touch point in the multi-touch data list.
+ *Value range: [0, @link OH_ArkUI_PointerEvent_GetPointerCount() - 1]
+ * @return float Y coordinate relative to the global display; 0.0f if any parameter error occurs.
+ * @since 20
+ */
+float OH_ArkUI_PointerEvent_GetGlobalDisplayYByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
+
/**
* @brief Obtains the pressure applied to the touchscreen from a directional input event (for example, a touch event).
*
@@ -484,22 +605,24 @@ float OH_ArkUI_PointerEvent_GetDisplayYByIndex(const ArkUI_UIInputEvent* event,
float OH_ArkUI_PointerEvent_GetPressure(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
/**
- * @brief Obtains the angle relative to the YZ plane from a directional input event (for example, a touch event).
- * The value range is [-90, 90]. A positive value indicates a rightward tilt.
+ * @brief Obtains the tilt angle relative to the YZ plane from a pointer event.
+ * The value range is [-90, 90], where positive values indicate a rightward tilt.
+ * This API is applicable only to stylus-based touch events from devices that support tilt angle reporting.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the angle relative to the YZ plane.
* @since 12
*/
float OH_ArkUI_PointerEvent_GetTiltX(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
/**
- * @brief Obtains the angle relative to the XZ plane from a directional input event (for example, a touch event).
- * The value range is [-90, 90]. A positive value indicates a downward tilt.
+ * @brief Obtains the tilt angle relative to the XZ plane from a pointer event.
+ * The value range is [-90, 90], where positive values indicate a rightward tilt.
+ * This API is applicable only to stylus-based touch events from devices that support tilt angle reporting.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the angle relative to the XZ plane.
* @since 12
*/
@@ -513,61 +636,72 @@ float OH_ArkUI_PointerEvent_GetTiltY(const ArkUI_UIInputEvent* event, uint32_t p
* @return Returns the result code.
* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @since 17
*/
int32_t OH_ArkUI_PointerEvent_GetRollAngle(const ArkUI_UIInputEvent* event, double* rollAngle);
/**
- * @brief Obtains the width of the touch area from a directional input event (for example, a touch event).
+ * @brief Obtains the width of the contact area for a pointer event. This API is applicable only to finger-based touch
+ * events, and the return value typically represents the radius of a circular touch area.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the width of the touch area.
* @since 12
*/
float OH_ArkUI_PointerEvent_GetTouchAreaWidth(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
/**
- * @brief Obtains the height of the touch area from a directional input event (for example, a touch event).
+ * @brief Obtains the height of the contact area for a pointer event. This API is applicable only to finger-based touch
+ * events, and the return value typically represents the radius of a circular touch area.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
* @return Returns the height of the touch area.
* @since 12
*/
float OH_ArkUI_PointerEvent_GetTouchAreaHeight(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
/**
- * @brief Obtains whether the current touch event is from the left or right hand.
+ * @brief Checks whether an event is triggered by the user's left or right hand.
+ * This API is only effective on some touch devices.
+ *
+ * @note The value is not available immediately upon press. Until the system infers the result, this API will return
+ * NONE. Do not rely on the return value for critical functionality.
*
* @param event Pointer to the current UI input event.
* @param hand Whether the touch point is from the left or right hand.
- * @return Returns the result code.
- * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
- * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
* @since 15
*/
int32_t OH_ArkUI_PointerEvent_GetInteractionHand(const ArkUI_UIInputEvent *event, ArkUI_InteractionHand *hand);
/**
- * @brief Obtains whether the current touch event is from the left or right hand.
+ * @brief Checks whether an event is triggered by the user's left or right hand.
+ * This API is only effective on some touch devices.
+ *
+ * @note The value is not available immediately upon press. Until the system infers the result,
+ * this API will return NONE. Do not rely on the return value for critical functionality.
*
* @param event Pointer to the current UI input event.
* @param pointerIndex Index of the target touch point in the multi-touch data list.
* @param hand Whether the touch point is from the left or right hand.
- * @return Returns the result code.
- * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
- * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
* @since 15
*/
int32_t OH_ArkUI_PointerEvent_GetInteractionHandByIndex(
const ArkUI_UIInputEvent *event, int32_t pointerIndex, ArkUI_InteractionHand *hand);
/**
- * @brief Obtains the number of historical events from a directional input event (such as a touch event, mouse event,
- * or axis event).
+ * @brief Obtains the number of historical events from a pointer event (such as a touch event).
+ * Historical events are the raw events that occur between the current event and the previous event.
+ * This API is applicable only to move events.
*
- * @param event Indicates the pointer to the current UI input event.
+ * @param event Pointer to the current UI input event.
* @return Returns the number of historical events.
* @since 12
*/
@@ -596,12 +730,14 @@ int64_t OH_ArkUI_PointerEvent_GetHistoryEventTime(const ArkUI_UIInputEvent* even
uint32_t OH_ArkUI_PointerEvent_GetHistoryPointerCount(const ArkUI_UIInputEvent* event, uint32_t historyIndex);
/**
- * @brief Obtains the ID of a touch point in a specific historical event from a directional input event (such as
- * a touch event, mouse event, or axis event).
+ * @brief Obtains the unique ID of a contact point from a historical event of a pointer event (such as a touch event).
*
- * @param event Indicates the pointer to the current UI input event.
- * @param pointerIndex Indicates the index of the target touch point in the multi-touch data list.
- * @param historyIndex Indicates the index of the target historical event.
+ * The ID distinguishes between multiple contact points from the same input device.
+ * The return value itself does not have any other meaning beyond identifying the contact point.
+ *
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target contact point in the contact point list.
+ * @param historyIndex Index of the target historical event.
* @return Returns the ID of the corresponding touch point in the specified historical event.
* @since 12
*/
@@ -690,6 +826,40 @@ float OH_ArkUI_PointerEvent_GetHistoryDisplayX(
float OH_ArkUI_PointerEvent_GetHistoryDisplayY(
const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
+/**
+ * @brief Obtains the X coordinate relative to the global display for a specific touch point from historical events,
+ * based on the given pointer index and history index of an input event (such as a touch, mouse, or axis event).
+ * Position information can only be obtained from UI input events. For mouse and axis events, if the provided
+ * pointerIndex is greater than 0, this API always returns the default value 0.0f.
+ *
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target touch point in the multi-touch data list.
+ *Value range: [0, @link OH_ArkUI_PointerEvent_GetPointerCount() - 1]
+ * @param historyIndex Index of the historical value to return. It must be less than
+ * {@link #OH_ArkUI_PointerEvent_GetHistorySize}.
+ * @return float X coordinate relative to the global display; 0.0f if any parameter error occurs.
+ * @since 20
+ */
+float OH_ArkUI_PointerEvent_GetHistoryGlobalDisplayX(
+ const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
+
+/**
+ * @brief Obtains the Y coordinate relative to the global display for a specific touch point from historical events,
+ * based on the given pointer index and history index of an input event (such as a touch, mouse, or axis event).
+ * Position information can only be obtained from UI input events. For mouse and axis events, if the provided
+ * pointerIndex is greater than 0, this API always returns the default value 0.0f.
+ *
+ * @param event Pointer to the current UI input event.
+ * @param pointerIndex Index of the target touch point in the multi-touch data list.
+ *Value range: [0, @link OH_ArkUI_PointerEvent_GetPointerCount() - 1]
+ * @param historyIndex Index of the historical value to return. It must be less than
+ * {@link #OH_ArkUI_PointerEvent_GetHistorySize}.
+ * @return float Y coordinate relative to the global display; 0.0f if any parameter error occurs.
+ * @since 20
+ */
+float OH_ArkUI_PointerEvent_GetHistoryGlobalDisplayY(
+ const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
+
/**
* @brief Obtains the pressure applied to the touchscreen in a specific historical event from a directional input event
* (for example, a touch event)..
@@ -757,18 +927,42 @@ float OH_ArkUI_PointerEvent_GetHistoryTouchAreaHeight(
/**
* @brief Obtains the value of the vertical scroll axis for this axis event.
+ * This value is typically generated by mouse wheel scrolling or two-finger vertical swiping on a touchpad.
*
- * @param event Indicates the pointer to the UI input event.
- * @return Returns the value of the vertical scroll axis of the current axis event;
- * returns 0 if any parameter error occurs.
+ * If the value is generated by mouse wheel scrolling:
+ * 1. The reported value is in degrees and represents the incremental angle of a single scroll,
+ * not the total scroll amount.
+ * 2. The reported value includes the user's scroll step configuration (see {@link OH_ArkUI_AxisEvent_GetScrollStep}).
+ * 3. The sign of the value indicates the direction: positive for forward scrolling and negative for backward scrolling.
+ *
+ * If the value is generated by two-finger vertical swiping on a touchpad:
+ * 1. The reported value is in px and represents the incremental scroll amount, not the total scroll amount.
+ * 2. The reported value does not include the user's scroll step configuration.
+ * 3. The sign of the value indicates the direction: positive for swiping down and negative for swiping up.
+ * 4. The direction is affected by the system settings for natural scrolling.
+ *
+ * Under normal circumstances, vertical scroll axis events only drive vertical swipe gestures. However,
+ * if the mouse pointer is over a scrollable area where the scrollable directions are consistent,
+ * the vertical scroll axis event can drive the swipe gestures in this scrollable area, even if they are defined
+ * as horizontal.
+ *
+ * @param event Pointer to the current UI input event.
+ * @return Value of the vertical scroll axis of the current axis event; 0.0 if any parameter error occurs.
* @since 12
*/
double OH_ArkUI_AxisEvent_GetVerticalAxisValue(const ArkUI_UIInputEvent* event);
/**
* @brief Obtains the value of the horizontal scroll axis for this axis event.
+ * This value is generated by two-finger horizontal swiping on a touchpad.
*
- * @param event Indicates the pointer to the UI input event.
+ * @note
+ * 1. The reported value is in px and represents the incremental scroll amount, not the total scroll amount.
+ * 2. The reported value does not include the user's scroll step configuration.
+ * 3. The sign of the value indicates the direction: positive for swiping right and negative for swiping left.
+ * 4. The direction is affected by the system settings for natural scrolling.
+ *
+ * @param event Pointer to the current UI input event.
* @return Returns the value of the horizontal scroll axis of the current axis event;
* returns 0 if any parameter error occurs.
* @since 12
@@ -776,11 +970,15 @@ double OH_ArkUI_AxisEvent_GetVerticalAxisValue(const ArkUI_UIInputEvent* event);
double OH_ArkUI_AxisEvent_GetHorizontalAxisValue(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the scale value of the pinch axis for this axis event.
+ * This value is generated by a two-finger pinch gesture on a touchpad.
+ * The reported scale value is relative to the initial state
*
- * @param event Indicates the pointer to the UI input event.
- * @return Returns the scale value of the pinch axis of the current axis event;
- * returns 0 if any parameter error occurs.
+ * when the system first detects the pinch gesture, with an initial scale value of 1.0.
+ * During the pinch operation, the scale value decreases from 1.0 towards 0.0 when the user pinches inward
+ * and increases from 1.0 when the user spreads fingers outward.
+ *
+ * @param event Pointer to the current UI input event.
+ * @return Scale value of the pinch axis of the current axis event; 0.0 if any parameter error occurs.
* @since 12
*/
double OH_ArkUI_AxisEvent_GetPinchAxisScaleValue(const ArkUI_UIInputEvent* event);
@@ -795,11 +993,15 @@ double OH_ArkUI_AxisEvent_GetPinchAxisScaleValue(const ArkUI_UIInputEvent* event
int32_t OH_ArkUI_AxisEvent_GetAxisAction(const ArkUI_UIInputEvent* event);
/**
- * @brief Sets how the component behaves during hit testing.
+ * @brief Sets the hit testing mode, that is, how the component behaves during hit testing.
+ * This API only applies to scenarios raw input events are received, such as when {@link NODE_ON_TOUCH} is used for
+ * touch event handling.
+ * It cannot be used with ArkUI_UIInputEvent objects obtained from gesture events through
+ * {@link OH_ArkUI_GestureEvent_GetRawInputEvent}.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param mode Indicates how the component behaves during hit testing. The parameter type is {@link HitTestMode}.
- * @return Returns the status code of the execution.
+ * @param event Pointer to the current UI input event.
+ * @param mode Hit testing mode, of type {@link HitTestMode}.
+ * @return Result code.
* @since 12
*/
int32_t OH_ArkUI_PointerEvent_SetInterceptHitTestMode(const ArkUI_UIInputEvent* event, HitTestMode mode);
@@ -825,10 +1027,13 @@ int32_t OH_ArkUI_MouseEvent_GetMouseButton(const ArkUI_UIInputEvent* event);
int32_t OH_ArkUI_MouseEvent_GetMouseAction(const ArkUI_UIInputEvent* event);
/**
- * @brief Sets whether to prevent event bubbling.
+ * @brief Sets whether to stop event propagation. This API only applies to scenarios raw input events are received,
+ * such as when {@link NODE_ON_TOUCH} is used for touch event handling.
+ * It cannot be used with ArkUI_UIInputEvent objects obtained from gesture events
+ * through {@link OH_ArkUI_GestureEvent_GetRawInputEvent}.
*
- * @param event Indicates the pointer to the current UI input event.
- * @param stopPropagation Indicates whether the event is prevented from bubbling.
+ * @param event Pointer to the current UI input event.
+ * @param stopPropagation Whether to stop event propagation.
* @return Returns the status code of the execution. If 0 is returned, the setting is successful.
* If 401 is returned, the execution fails.
* The possible cause of the failure is that the event parameter is abnormal, such as a null pointer.
@@ -888,7 +1093,7 @@ int32_t OH_ArkUI_FocusAxisEvent_SetStopPropagation(const ArkUI_UIInputEvent* eve
*
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns the width of the component hit by the event; returns 0.0f if any parameter error occurs.
-* @since 18
+* @since 17
*/
float OH_ArkUI_UIInputEvent_GetEventTargetWidth(const ArkUI_UIInputEvent* event);
@@ -897,7 +1102,7 @@ float OH_ArkUI_UIInputEvent_GetEventTargetWidth(const ArkUI_UIInputEvent* event)
*
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns the height of the component hit by the event; returns 0.0f if any parameter error occurs.
-* @since 18
+* @since 17
*/
float OH_ArkUI_UIInputEvent_GetEventTargetHeight(const ArkUI_UIInputEvent* event);
@@ -906,7 +1111,7 @@ float OH_ArkUI_UIInputEvent_GetEventTargetHeight(const ArkUI_UIInputEvent* event
*
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns the X coordinate of the component hit by the event; returns 0.0f if any parameter error occurs.
-* @since 18
+* @since 17
*/
float OH_ArkUI_UIInputEvent_GetEventTargetPositionX(const ArkUI_UIInputEvent* event);
@@ -916,7 +1121,7 @@ float OH_ArkUI_UIInputEvent_GetEventTargetPositionX(const ArkUI_UIInputEvent* ev
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns the Y coordinate of the component hit by the event;
* returns 0.0f if any parameter error occurs.
-* @since 18
+* @since 17
*/
float OH_ArkUI_UIInputEvent_GetEventTargetPositionY(const ArkUI_UIInputEvent* event);
@@ -926,7 +1131,7 @@ float OH_ArkUI_UIInputEvent_GetEventTargetPositionY(const ArkUI_UIInputEvent* ev
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns the global X coordinate of the component hit by the event;
* returns 0.0f if any parameter error occurs.
-* @since 18
+* @since 17
*/
float OH_ArkUI_UIInputEvent_GetEventTargetGlobalPositionX(const ArkUI_UIInputEvent* event);
@@ -936,7 +1141,7 @@ float OH_ArkUI_UIInputEvent_GetEventTargetGlobalPositionX(const ArkUI_UIInputEve
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns the global Y coordinate of the component hit by the event;
* returns 0.0f if any parameter error occurs.
-* @since 18
+* @since 17
*/
float OH_ArkUI_UIInputEvent_GetEventTargetGlobalPositionY(const ArkUI_UIInputEvent* event);
@@ -946,25 +1151,28 @@ float OH_ArkUI_UIInputEvent_GetEventTargetGlobalPositionY(const ArkUI_UIInputEve
* @param event Pointer to an ArkUI_UIInputEvent object.
* @return Returns true if the cursor is hovering over the current component.
* Returns false if the cursor is not hovering over the current component.
-* @since 18
+* @since 17
*/
bool OH_ArkUI_HoverEvent_IsHovered(const ArkUI_UIInputEvent* event);
/**
- * @brief Obtains the state of the modifier keys in a UI input event.
+ * @brief Obtains the modifier key states for a UI input event.
+ * This API outputs the state of all modifier keys at the time of the event through the keys parameter.
+ * You can determine which keys are pressed by performing bitwise operations with the modifier key types defined
+ * in {@link ArkUI_ModifierKeyName}.
*
* @param event Pointer to an ArkUI_UIInputEvent object.
* @param keys Pointer to a variable where the current combination of pressed modifier keys will be returned.
* The application can use bitwise operations to determine the state of each modifier key.
- * @return Returns the result code.
- * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
- * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 17
*/
int32_t OH_ArkUI_UIInputEvent_GetModifierKeyStates(const ArkUI_UIInputEvent* event, uint64_t* keys);
/**
- * @brief Obtains the press time of a specific touch point.
+* @brief Obtains the press time of a specified touch point. This API is effective only for touch events.
*
* @param event Pointer to an ArkUI_UIInputEvent object.
* @param pointerIndex Index of the target touch point in the multi-touch data list.
@@ -1021,34 +1229,39 @@ int32_t OH_ArkUI_MouseEvent_GetPressedButtons(
int32_t OH_ArkUI_UIInputEvent_GetTargetDisplayId(const ArkUI_UIInputEvent* event);
/**
- * @brief Sets whether to enable axis event propagation.
+ * @brief Sets whether to enable axis event propagation (bubbling). By default, axis events do not bubble and are
+ * only sent to the first component that can respond to axis events. You can enable axis event bubbling
+ * to allow the current event to be passed to the next ancestor component in the response chain
+ * that can handle axis events.
+ * This API cannot be used on axis events obtained from gesture events.
*
* @param event Pointer to the UI input event.
* @param propagation Whether to enable event propagation.
- * @return Returns the result code.
- * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
- * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
- * @since 18
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @since 17
*/
int32_t OH_ArkUI_AxisEvent_SetPropagation(const ArkUI_UIInputEvent* event, bool propagation);
/**
- * @brief Obtains the scroll step configuration of the mouse wheel axis event.
+ * @brief Obtains the scroll step coefficient for a wheel-based axis event.
+ * This API returns the user-configured scroll scale factor factor.
*
* @param event Pointer to the UI input event.
- * @return Returns the scroll step configuration of the mouse wheel axis event.
- * @since 18
+ * @return Scroll step configuration of the mouse wheel axis event.
+ * @since 17
*/
int32_t OH_ArkUI_AxisEvent_GetScrollStep(const ArkUI_UIInputEvent* event);
/**
- * @brief Creates a cloned event pointer based on an event pointer.
+ * @brief Creates a cloned event pointer based on an event pointer. This API is effective only for touch events.
*
* @param event Pointer to an ArkUI_UIInputEvent object.
* @param clonedEvent Pointer to the cloned ArkUI_UIInputEvent object.
- * @return Returns the result code.
- * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
- * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
+ * @return Result code.
+ * {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful.
+ * {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.
* @since 15
*/
int32_t OH_ArkUI_PointerEvent_CreateClonedEvent(const ArkUI_UIInputEvent* event, ArkUI_UIInputEvent** clonedEvent);
@@ -1161,6 +1374,25 @@ int32_t OH_ArkUI_PointerEvent_SetClonedEventFingerIdByIndex(
*/
int32_t OH_ArkUI_PointerEvent_PostClonedEvent(ArkUI_NodeHandle node, const ArkUI_UIInputEvent* event);
+/**
+ * @brief Use this method to obtain the execution status of the latest UI input related method.
+ *
+ * In most cases, this method is unnecessary unless you need to determine if the return value indicates an error.
+ * Here's an example of usage: For return values like float (where 0.0 doesn't indicate an error), use GetLatestStatus
+ * to confirm if an error occurred.
+ * float x = OH_ArkUI_PointerEvent_GetX(event);
+ * if (ARKUI_ERROR_CODE_NO_ERROR != OH_ArkUI_UIInputEvent_GetLatestStatus()) {
+ * // error
+ * return;
+ * }
+ * Note: The system clears the status of the previous function call each time a UIInput-related function is executed,
+ * ensuring you always get the latest status.
+ *
+ * @return Returns the ArkUI_ErrorCode.
+ * @since 20
+ */
+ArkUI_ErrorCode OH_ArkUI_UIInputEvent_GetLatestStatus();
+
#ifdef __cplusplus
};
#endif
diff --git a/arkui/display_manager/BUILD.gn b/arkui/display_manager/BUILD.gn
index ba052e0a375ab34f32e1e43c3952fcf931ad1bd3..bebc3417314e04c24dcf9fe8f748991c786da7c2 100644
--- a/arkui/display_manager/BUILD.gn
+++ b/arkui/display_manager/BUILD.gn
@@ -27,11 +27,11 @@ ohos_ndk_library("native_display_manager") {
output_name = "native_display_manager"
output_extension = "so"
ndk_description_file = "./libdm.ndk.json"
- system_capability = "SystemCapability.Window.SessionManager"
+ system_capability = "SystemCapability.WindowManager.WindowManager.Core"
system_capability_headers = [
- "oh_display_capture.h",
- "oh_display_info.h",
- "oh_display_manager.h",
+ "window_manager/oh_display_capture.h",
+ "window_manager/oh_display_info.h",
+ "window_manager/oh_display_manager.h",
]
min_compact_version = "12"
}
diff --git a/arkui/display_manager/libdm.ndk.json b/arkui/display_manager/libdm.ndk.json
index c86ff6a93d8d24d1d5f2f63ebdd5d8da7feca174..73f2204c2e22eeac47be7f42abe9b5ec38996b33 100644
--- a/arkui/display_manager/libdm.ndk.json
+++ b/arkui/display_manager/libdm.ndk.json
@@ -102,5 +102,45 @@
{
"first_instroduced":"14",
"name":"OH_NativeDisplayManager_CaptureScreenPixelmap"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_RegisterAvailableAreaChangeListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_UnregisterAvailableAreaChangeListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_CreateAvailableArea"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_DestroyAvailableArea"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_RegisterDisplayAddListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_UnregisterDisplayAddListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_RegisterDisplayRemoveListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_UnregisterDisplayRemoveListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_GetDisplaySourceMode"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_NativeDisplayManager_GetDisplayPosition"
}
]
\ No newline at end of file
diff --git a/arkui/display_manager/oh_display_capture.h b/arkui/display_manager/oh_display_capture.h
index 0e150db686cd5c4cf64fb5b12b8904352725c7ff..258794193e225fdfb0308ec264b971cfbfe0d3e9 100644
--- a/arkui/display_manager/oh_display_capture.h
+++ b/arkui/display_manager/oh_display_capture.h
@@ -57,7 +57,6 @@ extern "C" {
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } If device not support.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.Window.SessionManager.Core
* @since 14
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CaptureScreenPixelmap(uint32_t displayId,
diff --git a/arkui/display_manager/oh_display_info.h b/arkui/display_manager/oh_display_info.h
index 82b38a098a0f8cb1d432206cead97a07f1bbaa4a..641a72486c76bce540d5d469a83682e51370d0fc 100644
--- a/arkui/display_manager/oh_display_info.h
+++ b/arkui/display_manager/oh_display_info.h
@@ -126,6 +126,9 @@ typedef enum {
/** @error Operation system abnormal */
DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL = 1400003,
+
+ /** @error Operation illegal param */
+ DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM = 1400004,
} NativeDisplayManager_ErrorCode;
/**
@@ -234,6 +237,29 @@ typedef enum {
DISPLAY_MANAGER_DISPLAY_STATE_ON_SUSPEND = 6,
} NativeDisplayManager_DisplayState;
+/**
+ * @brief Enumerates of the display source mode.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef enum {
+ /** display is not in use */
+ DISPLAY_SOURCE_MODE_NONE = 0,
+
+ /** display is in main mode */
+ DISPLAY_SOURCE_MODE_MAIN = 1,
+
+ /** display is in mirror mode */
+ DISPLAY_SOURCE_MODE_MIRROR = 2,
+
+ /** display is in extend mode */
+ DISPLAY_SOURCE_MODE_EXTEND = 3,
+
+ /** display stands alone */
+ DISPLAY_SOURCE_MODE_ALONE = 4,
+} NativeDisplayManager_SourceMode;
+
/**
* @brief Defines the display hdr structure.
*
diff --git a/arkui/display_manager/oh_display_manager.h b/arkui/display_manager/oh_display_manager.h
index 7f8e45c2b2c36a941c732a87c3a013c50db0eea8..176f9c9cd3b16d6eca484a5842e71a57dc67f24b 100644
--- a/arkui/display_manager/oh_display_manager.h
+++ b/arkui/display_manager/oh_display_manager.h
@@ -53,7 +53,6 @@ extern "C" {
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayId(uint64_t *displayId);
@@ -65,7 +64,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayId(uint6
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayWidth(int32_t *displayWidth);
@@ -77,7 +75,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayWidth(in
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayHeight(int32_t *displayHeight);
@@ -89,7 +86,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayHeight(i
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayRotation(
@@ -102,7 +98,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayRotation
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayOrientation(
@@ -115,7 +110,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayOrientat
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayVirtualPixelRatio(float *virtualPixels);
@@ -127,7 +121,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayVirtualP
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayRefreshRate(uint32_t *refreshRate);
@@ -139,7 +132,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayRefreshR
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityDpi(int32_t *densityDpi);
@@ -151,7 +143,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityD
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityPixels(float *densityPixels);
@@ -163,7 +154,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityP
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayScaledDensity(float *scaledDensity);
@@ -175,7 +165,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayScaledDe
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityXdpi(float *xDpi);
@@ -187,7 +176,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityX
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityYdpi(float *yDpi);
@@ -199,7 +187,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDefaultDisplayDensityY
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateDefaultDisplayCutoutInfo(
@@ -211,7 +198,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateDefaultDisplayCutou
* @param cutoutInfo Indicates the pointer to an NativeDisplayManager_CutoutInfo object.
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_DestroyDefaultDisplayCutoutInfo(
@@ -221,7 +207,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_DestroyDefaultDisplayCuto
* @brief Check whether the device is foldable.
*
* @return { bool } true means the device is foldable.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
bool OH_NativeDisplayManager_IsFoldable();
@@ -233,7 +218,6 @@ bool OH_NativeDisplayManager_IsFoldable();
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
- * @syscap SystemCapability.Window.SessionManager
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetFoldDisplayMode(
@@ -243,7 +227,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetFoldDisplayMode(
* @brief the callback function type when display change.
*
* @param displayId change display id.
- * @syscap SystemCapability.Window.SessionManager
* @since 12
*/
typedef void (*OH_NativeDisplayManager_DisplayChangeCallback)(uint64_t displayId);
@@ -256,7 +239,6 @@ typedef void (*OH_NativeDisplayManager_DisplayChangeCallback)(uint64_t displayId
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterDisplayChangeListener(
@@ -269,7 +251,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterDisplayChangeList
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.WindowManager.WindowManager.Core
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterDisplayChangeListener(uint32_t listenerIndex);
@@ -278,7 +259,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterDisplayChangeLi
* @brief the callback function type when display fold change.
*
* @param displayMode current fold display mode.
- * @syscap SystemCapability.Window.SessionManager
* @since 12
*/
typedef void (*OH_NativeDisplayManager_FoldDisplayModeChangeCallback)(
@@ -293,7 +273,6 @@ typedef void (*OH_NativeDisplayManager_FoldDisplayModeChangeCallback)(
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.Window.SessionManager
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterFoldDisplayModeChangeListener(
@@ -307,7 +286,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterFoldDisplayModeCh
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.Window.SessionManager
* @since 12
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterFoldDisplayModeChangeListener(uint32_t listenerIndex);
@@ -319,7 +297,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterFoldDisplayMode
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful.
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.Window.SessionManager.Core
* @since 14
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateAllDisplays(
@@ -329,7 +306,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateAllDisplays(
* @brief Destroy all displays.
*
* @param allDisplays all displays to be free.
- * @syscap SystemCapability.Window.SessionManager.Core
* @since 14
*/
void OH_NativeDisplayManager_DestroyAllDisplays(NativeDisplayManager_DisplaysInfo *allDisplays);
@@ -342,7 +318,6 @@ void OH_NativeDisplayManager_DestroyAllDisplays(NativeDisplayManager_DisplaysInf
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful.
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.Window.SessionManager.Core
* @since 14
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateDisplayById(uint32_t displayId,
@@ -352,7 +327,6 @@ NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateDisplayById(uint32_
* @brief Destroy the display information.
*
* @param displayInfo the target display to be free.
- * @syscap SystemCapability.Window.SessionManager.Core
* @since 14
*/
void OH_NativeDisplayManager_DestroyDisplay(NativeDisplayManager_DisplayInfo *displayInfo);
@@ -364,12 +338,163 @@ void OH_NativeDisplayManager_DestroyDisplay(NativeDisplayManager_DisplayInfo *di
* @return { @link DISPLAY_MANAGER_OK } If the operation is successful.
* { @link DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
* { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
- * @syscap SystemCapability.Window.SessionManager.Core
* @since 14
*/
NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreatePrimaryDisplay(
NativeDisplayManager_DisplayInfo **displayInfo);
+/**
+ * @brief the callback function type when available area change.
+ *
+ * @param displayId The changed display id.
+ * @since 20
+ */
+typedef void (*OH_NativeDisplayManager_AvailableAreaChangeCallback)(uint64_t displayId);
+
+/**
+ * @brief Register the callback for available area change listener.
+ *
+ * @param availableAreaChangeCallback Available area change callback.
+ * @param listenerIndex Indicates the pointer to an uint32_t object. used in unregister call.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterAvailableAreaChangeListener(
+ OH_NativeDisplayManager_AvailableAreaChangeCallback availableAreaChangeCallback, uint32_t *listenerIndex);
+
+/**
+ * @brief Unregister the callback for available area changes listener.
+ *
+ * @param listenerIndex The display changed listener index.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterAvailableAreaChangeListener(uint32_t listenerIndex);
+
+/**
+ * @brief Create the available area.
+ *
+ * @param displayId The display id.
+ * @param availableArea Indicates the pointer to an NativeDisplayManager_Rect object.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_INVALID_SCREEN } Invalid screen.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_CreateAvailableArea(uint64_t displayId, NativeDisplayManager_Rect **availableArea);
+
+/**
+ * @brief Destroy an NativeDisplayManager_Rect object and reclaims the memory occupied by the object.
+ *
+ * @param availableArea Indicates the pointer to an NativeDisplayManager_Rect object.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_DestroyAvailableArea(NativeDisplayManager_Rect *availableArea);
+
+/**
+ * @brief the callback function type when display connect.
+ *
+ * @param displayId The added display id.
+ * @since 20
+ */
+typedef void (*OH_NativeDisplayManager_DisplayAddCallback)(uint64_t displayId);
+
+/**
+ * @brief Register the callback for display connect listener.
+ *
+ * @param displayAddCallback display add callback.
+ * @param listenerIndex Indicates the pointer to an uint32_t object. used in unregister call.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterDisplayAddListener(
+ OH_NativeDisplayManager_DisplayAddCallback displayAddCallback, uint32_t *listenerIndex);
+
+/**
+ * @brief Unregister the callback for display connect listener.
+ *
+ * @param listenerIndex The display add listener index.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterDisplayAddListener(uint32_t listenerIndex);
+
+/**
+ * @brief the callback function type when display disconnect.
+ *
+ * @param displayId The removed display id.
+ * @since 20
+ */
+typedef void (*OH_NativeDisplayManager_DisplayRemoveCallback)(uint64_t displayId);
+
+/**
+ * @brief Register the callback for display disconnect listener.
+ *
+ * @param displayRemoveCallback display remove callback.
+ * @param listenerIndex Indicates the pointer to an uint32_t object. used in unregister call.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_RegisterDisplayRemoveListener(
+ OH_NativeDisplayManager_DisplayRemoveCallback displayRemoveCallback, uint32_t *listenerIndex);
+
+/**
+ * @brief Unregister the callback for display disconnect listener.
+ *
+ * @param listenerIndex The display remove listener index.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_ILLEGAL_PARAM } If Parameter illegal.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_UnregisterDisplayRemoveListener(uint32_t listenerIndex);
+
+/**
+ * @brief Get the source mode of the device.
+ *
+ * @param displayId The display id.
+ * @param sourceMode Indicates the pointer to an NativeDisplayManager_SourceMode object.
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_INVALID_SCREEN } Invalid screen.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDisplaySourceMode(uint64_t displayId, NativeDisplayManager_SourceMode *sourceMode);
+
+/**
+ * @brief Get the position of the device.
+ *
+ * @param displayId The display id.
+ * @param x The x-coordinate of the screen's top-left corner relative to the primary screen's origin (in px).
+ * @param y The y-coordinate of the screen's top-left corner relative to the primary screen's origin (in px).
+ * @return { @link DISPLAY_MANAGER_OK } If the operation is successful
+ * { @link DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } device not support.
+ * { @link DISPLAY_MANAGER_ERROR_INVALID_SCREEN } Invalid screen.
+ * { @link DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
+ * @since 20
+ */
+NativeDisplayManager_ErrorCode OH_NativeDisplayManager_GetDisplayPosition(uint64_t displayId, int32_t *x, int32_t *y);
+
#ifdef __cplusplus
}
#endif
diff --git a/arkui/napi/BUILD.gn b/arkui/napi/BUILD.gn
index eea7bc4512e1bcc3fb6dfc06bac9da94e855a452..f5867f115e32091bb11194dc9e4b2fcfd0c27603 100644
--- a/arkui/napi/BUILD.gn
+++ b/arkui/napi/BUILD.gn
@@ -19,6 +19,11 @@ ohos_ndk_library("libnapi_ndk") {
ndk_description_file = "./libnapi.ndk.json"
min_compact_version = "1"
output_name = "ace_napi"
+ system_capability = "SystemCapability.ArkUI.ArkUI.Napi"
+ system_capability_headers = [
+ "napi/common.h",
+ "napi/native_api.h",
+ ]
}
ohos_ndk_headers("napi_header") {
diff --git a/arkui/napi/libnapi.ndk.json b/arkui/napi/libnapi.ndk.json
index 04e3cc6d4824ab762c9ae1baddff5036dff0d61b..5bdd52c3319ed72b1336febe33d107efccf6a98d 100644
--- a/arkui/napi/libnapi.ndk.json
+++ b/arkui/napi/libnapi.ndk.json
@@ -242,5 +242,17 @@
{
"first_introduced": "18",
"name": "napi_wrap_enhance"
+ },
+ {
+ "first_introduced": "20",
+ "name": "napi_create_ark_context"
+ },
+ {
+ "first_introduced": "20",
+ "name": "napi_switch_ark_context"
+ },
+ {
+ "first_introduced": "20",
+ "name": "napi_destroy_ark_context"
}
]
diff --git a/arkui/napi/native_api.h b/arkui/napi/native_api.h
index c1dd962f8acbcc1955df6dfd7c64abaf9a727415..2d462ee88f035c87cd6f7d429c86b309852a1649 100644
--- a/arkui/napi/native_api.h
+++ b/arkui/napi/native_api.h
@@ -64,6 +64,10 @@
#endif // __WIN32
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
NAPI_EXTERN napi_status napi_create_string_utf16(napi_env env,
const char16_t* str,
size_t length,
@@ -88,10 +92,6 @@ NAPI_INNER_EXTERN napi_status napi_adjust_external_memory(napi_env env,
int64_t change_in_bytes,
int64_t* adjusted_value);
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* @brief Native detach callback of napi_coerce_to_native_binding_object that can be used to
* detach the ArkTS object and the native object.
@@ -316,7 +316,7 @@ NAPI_EXTERN napi_status napi_create_object_with_named_properties(napi_env env,
* @brief This API sets native properties to a object and converts this ArkTS object to native binding object.
*
* @param env Current running virtual machine context.
- * @param js_object The JavaScript value to coerce.
+ * @param js_object The ArkTS value to coerce.
* @param detach_cb Native callback that can be used to detach the ArkTS object and the native object.
* @param attach_cb Native callback that can be used to bind the ArkTS object and the native object.
* @param native_object User-provided native instance to pass to thr detach callback and attach callback.
@@ -338,8 +338,8 @@ NAPI_EXTERN napi_status napi_coerce_to_native_binding_object(napi_env env,
* @param env Current running virtual machine context.
* @param js_object The ArkTS object value.
* @param native_object Native object to bind with the ArkTS object.
- * @param finalize_cb Native callback that can be used to free the native object when the ArkTS object is
- garbage-collected.
+ * @param finalize_cb Native callback that can be used to free the native object
+ * when the ArkTS object is garbage-collected.
* @param finalize_hint Optional contextual hint that is passed to the finalize callback.
* @param result Optional reference of the ArkTS object.
*
@@ -399,7 +399,7 @@ NAPI_EXTERN napi_status napi_destroy_ark_runtime(napi_env* env);
* @param data Optional data to be passed to the constructor callback as the data property of the callback info.
* @param property_count Number of items in the properties array argument.
* @param properties Array of property descriptors describing static and instance data properties, accessors, and
- * methods on the class. See napi_property_descriptor.
+ * methods on the class. See napi_property_descriptor.
* @param parent A napi_value representing the Superclass.
* @param result A napi_value representing the constructor function for the class.
*
@@ -445,36 +445,9 @@ NAPI_EXTERN napi_status napi_create_sendable_object_with_properties(napi_env env
size_t property_count,
const napi_property_descriptor* properties,
napi_value* result);
-/**
- * @brief Wraps a native instance in a ArkTS object.
- * @param env The environment that the API is invoked under.
- * @param js_object The ArkTS object that will be the wrapper for the native object.
- * @param native_object The native instance that will be wrapped in the ArkTS object.
- * @param finalize_cb Optional native callback that can be used to free the native instance when the ArkTS object
- * has been garbage-collected.
- * @param async_finalizer A bool value to determine that finalize_cb execute async or not.
- * @param finalize_hint Optional contextual hint that is passed to the finalize callback.
- * @param native_binding_size The size of native binding.
- * @param result Optional reference to the wrapped object.
- *
- * @return Returns the function execution status.
- * {@link napi_ok } If the function executedd successfully.\n
- * {@link napi_invalid_arg } If the param env, js_object or native_object is nullptr.\n
- * {@link napi_object_expected } If the param js_object is not an ArkTS Object or Function.\n
- * {@link napi_pending_exception } If have uncaught exception, or exception occured in execution.\n
- * @since 18
- */
-NAPI_EXTERN napi_status napi_wrap_enhance(napi_env env,
- napi_value js_object,
- void* native_object,
- napi_finalize finalize_cb,
- bool async_finalizer,
- void* finalize_hint,
- size_t native_binding_size,
- napi_ref* result);
/**
- * @brief Wraps a native instance in a ArkTS object.
+ * @brief Wraps a native instance in an ArkTS object.
*
* @param env The environment that the API is invoked under.
* @param js_object The ArkTS object that will be the wrapper for the native object.
@@ -493,7 +466,7 @@ NAPI_EXTERN napi_status napi_wrap_sendable(napi_env env,
void* finalize_hint);
/**
- * @brief Wraps a native instance in a ArkTS object.
+ * @brief Wraps a native instance in an ArkTS object.
*
* @param env The environment that the API is invoked under.
* @param js_object The ArkTS object that will be the wrapper for the native object.
@@ -514,7 +487,7 @@ NAPI_EXTERN napi_status napi_wrap_sendable_with_size(napi_env env,
size_t native_binding_size);
/**
- * @brief Retrieves a native instance that was previously wrapped in a ArkTS object.
+ * @brief Retrieves a native instance that was previously wrapped in an ArkTS object.
*
* @param env The environment that the API is invoked under.
* @param js_object The object associated with the native instance.
@@ -528,7 +501,7 @@ NAPI_EXTERN napi_status napi_unwrap_sendable(napi_env env,
void** result);
/**
- * @brief Retrieves a native instance that was previously wrapped in a ArkTS object and removes the wrapping.
+ * @brief Retrieves a native instance that was previously wrapped in an ArkTS object and removes the wrapping.
*
* @param env The environment that the API is invoked under.
* @param js_object The object associated with the native instance.
@@ -631,7 +604,7 @@ NAPI_EXTERN napi_status napi_run_event_loop(napi_env env,
NAPI_EXTERN napi_status napi_stop_event_loop(napi_env env);
/**
- * @brief Serialize a ArkTS object.
+ * @brief Serialize an ArkTS object.
*
* @param env Current running virtual machine context.
* @param object The ArkTS object to serialize.
@@ -649,7 +622,7 @@ NAPI_EXTERN napi_status napi_serialize(napi_env env,
void** result);
/**
- * @brief Restore serialization data to a ArkTS object.
+ * @brief Restore serialization data to an ArkTS object.
*
* @param env Current running virtual machine context.
* @param buffer Data to deserialize.
@@ -682,8 +655,8 @@ NAPI_EXTERN napi_status napi_delete_serialization_data(napi_env env,
* @param data Indicates the data anticipated to be transferred to the ArkTS thread.
* @param priority Indicates the priority of the task dispatched.
* @param isTail Indicates the way of the task dispatched into the native event queue. When "isTail" is true,
- * the task will be dispatched to the tail of the native event queue. Conversely, when "isTail" is false, the
- * tasks will be dispatched to the head of the native event queue.
+ * the task will be dispatched to the tail of the native event queue. Conversely, when "isTail" is
+ * false, the tasks will be dispatched to the head of the native event queue.
*
* @return Return the function execution status.
* @since 12
@@ -699,13 +672,17 @@ NAPI_EXTERN napi_status napi_call_threadsafe_function_with_priority(napi_threads
* @param err Error object which is passed to 'UncaughtException'.
*
* @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) err is nullptr;\n
+ * If the param err is not an ArkTS Error value.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before execution.\n
* @since 12
*/
NAPI_EXTERN napi_status napi_fatal_exception(napi_env env,
napi_value err);
/**
- * @brief Allows a ArkTS function to be called in the asynchronous context. The capabilities related to 'async_hook'
+ * @brief Allows an ArkTS function to be called in the asynchronous context. The capabilities related to 'async_hook'
* are not supported currently.
* @param env Current running virtual machine context.
* @param async_context The context environment for the async operation.
@@ -716,6 +693,12 @@ NAPI_EXTERN napi_status napi_fatal_exception(napi_env env,
* @param result Result returned by the ArkTS function.
*
* @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, func and(or) recv is nullptr;\n
+ * If the param argc is greater than 0 but argv is nullptr.\n
+ * {@link napi_object_expected } If the param recv is not an ArkTS Object.\n
+ * {@link napi_function_expected } If the param func is not an ArkTS Function.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
* @since 11
*/
NAPI_EXTERN napi_status napi_make_callback(napi_env env,
@@ -753,7 +736,7 @@ NAPI_EXTERN napi_status napi_create_buffer(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, deferred or resolution is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* {@link napi_generic_failure } If create promise failed.\n
* @since 10
*/
@@ -769,7 +752,7 @@ NAPI_EXTERN napi_status napi_create_promise(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, deferred or resolution is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_resolve_deferred(napi_env env,
@@ -784,7 +767,7 @@ NAPI_EXTERN napi_status napi_resolve_deferred(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, deferred or rejection is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_reject_deferred(napi_env env,
@@ -947,7 +930,7 @@ NAPI_EXTERN napi_status napi_ref_threadsafe_function(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or result is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_create_date(napi_env env,
@@ -978,7 +961,7 @@ NAPI_EXTERN napi_status napi_is_date(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, value or result is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* {@link napi_date_expected } If the 'value' is not a 'Date' object.\n
* @since 10
*/
@@ -987,7 +970,7 @@ NAPI_EXTERN napi_status napi_get_date_value(napi_env env,
double* result);
/**
- * @brief Creates a ArkTS BigInt from C int64 data.
+ * @brief Creates an ArkTS BigInt from C int64 data.
*
* @param env Current running virtual machine context.
* @param value C int64 data.
@@ -1002,7 +985,7 @@ NAPI_EXTERN napi_status napi_create_bigint_int64(napi_env env,
napi_value* result);
/**
- * @brief Creates a ArkTS BigInt from C int64 data.
+ * @brief Creates an ArkTS BigInt from C int64 data.
*
* @param env Current running virtual machine context.
* @param value C int64 data.
@@ -1027,7 +1010,7 @@ NAPI_EXTERN napi_status napi_create_bigint_uint64(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, words or result is nullptr or word_count is larger than 2147483647.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_create_bigint_words(napi_env env,
@@ -1110,7 +1093,7 @@ NAPI_EXTERN napi_status napi_get_value_bigint_words(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, data or result is nullptr, or length is larger than 2097152,
* or length is less than or equal to zero.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_create_external_buffer(napi_env env,
@@ -1181,7 +1164,7 @@ NAPI_EXTERN napi_status napi_get_buffer_info(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or object is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_object_freeze(napi_env env,
@@ -1196,7 +1179,7 @@ NAPI_EXTERN napi_status napi_object_freeze(napi_env env,
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or object is nullptr.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* @since 10
*/
NAPI_EXTERN napi_status napi_object_seal(napi_env env,
@@ -1250,7 +1233,7 @@ NAPI_EXTERN napi_status napi_is_detached_arraybuffer(napi_env env,
* {@link napi_invalid_arg } If env, object or result is nullptr;\n
* key_mode is not enumeration value of napi_key_collection_mode;\n
* key_conversion is not enumeration value of napi_key_conversion.\n
- * {@link napi_pending_exception } If a ArkTS exception existed when the function was called.\n
+ * {@link napi_pending_exception } If an ArkTS exception existed when the function was called.\n
* {@link napi_object_expected } If object is not object type and function type.\n
* @since 10
*/
@@ -1266,7 +1249,7 @@ NAPI_EXTERN napi_status napi_get_all_property_names(napi_env env,
*
* @param mod Native module of type 'napi_module' to be registered.
* @since 10
-*/
+ */
NAPI_EXTERN void napi_module_register(napi_module* mod);
/**
@@ -1279,12 +1262,12 @@ NAPI_EXTERN void napi_module_register(napi_module* mod);
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_get_last_error_info(napi_env env,
const napi_extended_error_info** result);
/**
- * @brief Throws a ArkTS error.
+ * @brief Throws an ArkTS error.
* @param env Current running virtual machine context.
* @param error The ArkTS error to be thrown.
*
@@ -1292,11 +1275,11 @@ NAPI_EXTERN napi_status napi_get_last_error_info(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or error is nullptr, or error is not an error object.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_throw(napi_env env, napi_value error);
/**
- * @brief Throws a ArkTS Error with text information.
+ * @brief Throws an ArkTS Error with text information.
* @param env Current running virtual machine context.
* @param code Optional error code to set on the error.
* @param msg C string representing the text to be associated with the error.
@@ -1305,13 +1288,13 @@ NAPI_EXTERN napi_status napi_throw(napi_env env, napi_value error);
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or msg is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_throw_error(napi_env env,
const char* code,
const char* msg);
/**
- * @brief Throws a ArkTS TypeError with text information.
+ * @brief Throws an ArkTS TypeError with text information.
* @param env Current running virtual machine context.
* @param code Optional error code to set on the error.
* @param msg C string representing the text to be associated with the error.
@@ -1320,13 +1303,13 @@ NAPI_EXTERN napi_status napi_throw_error(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or msg is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_throw_type_error(napi_env env,
const char* code,
const char* msg);
/**
- * @brief Throws a ArkTS RangeError with text information.
+ * @brief Throws an ArkTS RangeError with text information.
* @param env Current running virtual machine context.
* @param code Optional error code to set on the error.
* @param msg C string representing the text to be associated with the error.
@@ -1335,7 +1318,7 @@ NAPI_EXTERN napi_status napi_throw_type_error(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or msg is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_throw_range_error(napi_env env,
const char* code,
const char* msg);
@@ -1350,13 +1333,13 @@ NAPI_EXTERN napi_status napi_throw_range_error(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, value or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_is_error(napi_env env,
napi_value value,
bool* result);
/**
- * @brief Creates a ArkTS Error with text information.
+ * @brief Creates an ArkTS Error with text information.
* @param env Current running virtual machine context.
* @param code Optional error code to set on the error.
* @param msg napi_value representing the EcmaScript string to be associated with the error.
@@ -1364,17 +1347,17 @@ NAPI_EXTERN napi_status napi_is_error(napi_env env,
*
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
- * {@link napi_invalid_arg } If env, msg or result is nullptr, code is not string and number type or msg is
+ * {@link napi_invalid_arg } If env, msg or result is nullptr, code is not string and number type or msg is\n
* not a string type.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_create_error(napi_env env,
napi_value code,
napi_value msg,
napi_value* result);
/**
- * @brief Creates a ArkTS TypeError with text information.
+ * @brief Creates an ArkTS TypeError with text information.
* @param env Current running virtual machine context.
* @param code Optional error code to set on the error.
* @param msg napi_value representing the EcmaScript string to be associated with the error.
@@ -1382,17 +1365,17 @@ NAPI_EXTERN napi_status napi_create_error(napi_env env,
*
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
- * {@link napi_invalid_arg } If env, msg or result is nullptr, code is not string and number type or msg is
+ * {@link napi_invalid_arg } If env, msg or result is nullptr, code is not string and number type or msg is\n
* not a string type.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_create_type_error(napi_env env,
napi_value code,
napi_value msg,
napi_value* result);
/**
- * @brief Creates a ArkTS RangeError with text information.
+ * @brief Creates an ArkTS RangeError with text information.
* @param env Current running virtual machine context.
* @param code Optional error code to set on the error.
* @param msg napi_value representing the EcmaScript string to be associated with the error.
@@ -1400,10 +1383,10 @@ NAPI_EXTERN napi_status napi_create_type_error(napi_env env,
*
* @return Returns the function execution status.
* {@link napi_ok } If the function executed successfully.\n
- * {@link napi_invalid_arg } If env, msg or result is nullptr, code is not string and number type or msg is
+ * {@link napi_invalid_arg } If env, msg or result is nullptr, code is not string and number type or msg is\n
* not a string type.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_create_range_error(napi_env env,
napi_value code,
napi_value msg,
@@ -1418,7 +1401,7 @@ NAPI_EXTERN napi_status napi_create_range_error(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_is_exception_pending(napi_env env, bool* result);
/**
@@ -1430,7 +1413,7 @@ NAPI_EXTERN napi_status napi_is_exception_pending(napi_env env, bool* result);
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_get_and_clear_last_exception(napi_env env,
napi_value* result);
@@ -1442,7 +1425,7 @@ NAPI_EXTERN napi_status napi_get_and_clear_last_exception(napi_env env,
* @param message_len The byte length of the message, or NAPI_AUTO_LENGTH if it is terminated by a null character.
*
* @since 10
-*/
+ */
NAPI_EXTERN NAPI_NO_RETURN void napi_fatal_error(const char* location,
size_t location_len,
const char* message,
@@ -1457,7 +1440,7 @@ NAPI_EXTERN NAPI_NO_RETURN void napi_fatal_error(const char* location,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_open_handle_scope(napi_env env,
napi_handle_scope* result);
@@ -1471,7 +1454,7 @@ NAPI_EXTERN napi_status napi_open_handle_scope(napi_env env,
* {@link napi_invalid_arg } If env or scope is nullptr.\n
* {@link napi_handle_scope_mismatch } If there is no scope still existed.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_close_handle_scope(napi_env env,
napi_handle_scope scope);
@@ -1484,7 +1467,7 @@ NAPI_EXTERN napi_status napi_close_handle_scope(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_open_escapable_handle_scope(napi_env env,
napi_escapable_handle_scope* result);
@@ -1498,7 +1481,7 @@ NAPI_EXTERN napi_status napi_open_escapable_handle_scope(napi_env env,
* {@link napi_invalid_arg } If env or scope is nullptr.\n
* {@link napi_handle_scope_mismatch } If there is no scope still existed.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_close_escapable_handle_scope(napi_env env,
napi_escapable_handle_scope scope);
@@ -1513,7 +1496,7 @@ NAPI_EXTERN napi_status napi_close_escapable_handle_scope(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, scope, escapee or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_escape_handle(napi_env env,
napi_escapable_handle_scope scope,
napi_value escapee,
@@ -1530,7 +1513,7 @@ NAPI_EXTERN napi_status napi_escape_handle(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, value or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_create_reference(napi_env env,
napi_value value,
uint32_t initial_refcount,
@@ -1545,7 +1528,7 @@ NAPI_EXTERN napi_status napi_create_reference(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or ref is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_delete_reference(napi_env env, napi_ref ref);
/**
@@ -1558,7 +1541,7 @@ NAPI_EXTERN napi_status napi_delete_reference(napi_env env, napi_ref ref);
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or ref is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_reference_ref(napi_env env,
napi_ref ref,
uint32_t* result);
@@ -1573,7 +1556,7 @@ NAPI_EXTERN napi_status napi_reference_ref(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env or ref is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_reference_unref(napi_env env,
napi_ref ref,
uint32_t* result);
@@ -1588,7 +1571,7 @@ NAPI_EXTERN napi_status napi_reference_unref(napi_env env,
* {@link napi_ok } If the function executed successfully.\n
* {@link napi_invalid_arg } If env, ref or result is nullptr.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_get_reference_value(napi_env env,
napi_ref ref,
napi_value* result);
@@ -1606,7 +1589,7 @@ NAPI_EXTERN napi_status napi_get_reference_value(napi_env env,
* {@link napi_object_expected } If the param object is not an ArkTS Object.\n
* {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_has_own_property(napi_env env,
napi_value object,
napi_value key,
@@ -1630,7 +1613,7 @@ NAPI_EXTERN napi_status napi_has_own_property(napi_env env,
* {@link napi_function_expected } If the param func is not an ArkTS Function.\n
* {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n
* @since 10
-*/
+ */
NAPI_EXTERN napi_status napi_define_class(napi_env env,
const char* utf8name,
size_t length,
@@ -1639,6 +1622,1266 @@ NAPI_EXTERN napi_status napi_define_class(napi_env env,
size_t property_count,
const napi_property_descriptor* properties,
napi_value* result);
+
+/**
+ * @brief Creates an ArkTS symbol.
+ * @param env Current running virtual machine context.
+ * @param description Optional napi_value representing an ArkTS string to describe the symbol.
+ * @param result A napi_value representing an ArkTS symbol.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr;\n
+ * If the param description is not nullptr and is not an ArkTS String.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_symbol(napi_env env,
+ napi_value description,
+ napi_value* result);
+
+/**
+ * @brief Create an ArkTS function. This is the primary mechanism to call back into native code from ArkTS.
+ * @param env Current running virtual machine context.
+ * @param utf8name The visible within ArkTS as the new function's name property.
+ * @param length The length oh the utf8name, or NAPI_AUTO_LENGTH if it is null-terminated.
+ * @param cb The native function which should be called when this function object is called.
+ * @param data User-provided data context. This will be passed back into the function when invoked.
+ * @param result The newly created ArkTS function.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, cb and(or) result is nullptr.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_function(napi_env env,
+ const char* utf8name,
+ size_t length,
+ napi_callback cb,
+ void* data,
+ napi_value* result);
+
+/**
+ * @brief Similar to typeof operation, support external value, detects null as a separate type.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value whose type expects to query.
+ * @param result The type of ArkTS value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_typeof(napi_env env,
+ napi_value value,
+ napi_valuetype* result);
+
+/**
+ * @brief Obtains the double value corresponding to the given ArkTS value.
+ * @param env Current running virtual machine context.
+ * @param value ArkTS number.
+ * @param result The C primitive equivalent of ArkTS value as double.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * {@link napi_number_expected } If a non-number ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_double(napi_env env,
+ napi_value value,
+ double* result);
+
+/**
+ * @brief Obtains the int32_t value corresponding to the given ArkTS value.
+ * @param env Current running virtual machine context.
+ * @param value ArkTS number.
+ * @param result The C primitive equivalent of ArkTS value as int32_t.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * {@link napi_number_expected } If a non-number ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_int32(napi_env env,
+ napi_value value,
+ int32_t* result);
+
+/**
+ * @brief Obtains the uint32_t value corresponding to the given ArkTS value.
+ * @param env Current running virtual machine context.
+ * @param value ArkTS number.
+ * @param result The C primitive equivalent of ArkTS value as uint32_t.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * {@link napi_number_expected } If a non-number ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_uint32(napi_env env,
+ napi_value value,
+ uint32_t* result);
+
+/**
+ * @brief Obtains the int64_t value corresponding to the given ArkTS value.
+ * @param env Current running virtual machine context.
+ * @param value ArkTS number.
+ * @param result The C primitive equivalent of ArkTS value as int64_t.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * {@link napi_number_expected } If a non-number ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_int64(napi_env env,
+ napi_value value,
+ int64_t* result);
+
+/**
+ * @brief Obtains the C Boolean equivalent of an ArkTS Boolean value.
+ * @param env Current running virtual machine context.
+ * @param value A napi_value representing ArkTS Boolean.
+ * @param result The C boolean equivalent of the ArkTS Boolean.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * {@link napi_boolean_expected } If a non-boolean ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_bool(napi_env env,
+ napi_value value,
+ bool* result);
+
+/**
+ * @brief Obtains the ISO-8859-1-encoded string corresponding to the given ArkTS value.
+ * @param env Current running virtual machine context.
+ * @param value ArkTS string.
+ * @param buf Destination buffer that will be filled with the provided ISO-8859-1-encoded string.
+ * @param bufsize The size of the buffer 'buf'.
+ * @param result The length of the string in ISO-8859-1-encoded format.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) value is nullptr;\n
+ * If the param buf and result both are nullptr.\n
+ * {@link napi_string_expected } If a non-string ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_string_latin1(napi_env env,
+ napi_value value,
+ char* buf,
+ size_t bufsize,
+ size_t* result);
+
+/**
+ * @brief Obtains the UTF8-encoded string corresponding to the given ArkTS value.
+ * @param env Current running virtual machine context.
+ * @param value ArkTS string.
+ * @param buf Destination buffer that will be filled with the provided UTF8-encoded string.
+ * @param bufsize The size of the buffer 'buf'.
+ * @param result The length of the string in UTF8-encoded format.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) value is nullptr;\n
+ * If the param buf and result both are nullptr.\n
+ * {@link napi_string_expected } If a non-string ArkTS value passed in it.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_string_utf8(napi_env env,
+ napi_value value,
+ char* buf,
+ size_t bufsize,
+ size_t* result);
+
+/**
+ * @brief Obtains the ArkTS undefined value.
+ * @param env Current running virtual machine context.
+ * @param result The ArkTS undefined value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the parameter env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_undefined(napi_env env, napi_value* result);
+
+/**
+ * @brief Obtains the ArkTS null value.
+ * @param env Current running virtual machine context.
+ * @param result The ArkTS null value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_null(napi_env env, napi_value* result);
+
+/**
+ * @brief Obtains the ArkTS global object.
+ * @param env Current running virtual machine context.
+ * @param result The ArkTS global Object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_global(napi_env env, napi_value* result);
+
+/**
+ * @brief Obtains the ArkTS singleton value corresponding to given C primitive boolean value.
+ * @param env Current running virtual machine context.
+ * @param value C primitive boolean value.
+ * @param result The ArkTS singleton value equivalent of C primitive boolean value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_boolean(napi_env env,
+ bool value,
+ napi_value* result);
+
+// Methods to create Primitive types/Objects
+
+/**
+ * @brief Creates a default ArkTS object.
+ * @param env Current running virtual machine context.
+ * @param result napi_value representing an ArkTS object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_object(napi_env env, napi_value* result);
+
+/**
+ * @brief Creates an ArkTS array.
+ * @param env Current running virtual machine context.
+ * @param result napi_value representing an ArkTS Array.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_array(napi_env env, napi_value* result);
+
+/**
+ * @brief Creates an ArkTS array of the specified length.
+ * @param env Current running virtual machine context.
+ * @param length The length of the Array.
+ * @param result napi_value representing an ArkTS Array.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_array_with_length(napi_env env,
+ size_t length,
+ napi_value* result);
+
+/**
+ * @brief Creates an ArkTS number from C double data.
+ * @param env Current running virtual machine context.
+ * @param value The double value to be represented in ArkTS.
+ * @param result A napi_value representing an ArkTS number.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_double(napi_env env,
+ double value,
+ napi_value* result);
+
+/**
+ * @brief Creates an ArkTS number from C int32_t data.
+ * @param env Current running virtual machine context.
+ * @param value The int32 value to be represented in ArkTS.
+ * @param result A napi_value representing an ArkTS number.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_int32(napi_env env,
+ int32_t value,
+ napi_value* result);
+
+/**
+ * @brief Creates an ArkTS number from C uint32_t data.
+ * @param env Current running virtual machine context.
+ * @param value The uint32 value to be represented in ArkTS.
+ * @param result A napi_value representing an ArkTS number.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_uint32(napi_env env,
+ uint32_t value,
+ napi_value* result);
+
+/**
+ * @brief Creates an ArkTS number from C int64_t data.
+ * @param env Current running virtual machine context.
+ * @param value The int64 value to be represented in ArkTS.
+ * @param result A napi_value representing an ArkTS number.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_int64(napi_env env,
+ int64_t value,
+ napi_value* result);
+
+/**
+ * @brief Creates an ArkTS string from an ISO-8859-1-encoded C string.
+ * @param env Current running virtual machine context.
+ * @param str C string encoded in ISO-8859-1-encoded format.
+ * @param length The length of the C string 'str'.
+ * @param result Result of the ArkTS string from the ISO-8859-1-encoded C string.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, str and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_string_latin1(napi_env env,
+ const char* str,
+ size_t length,
+ napi_value* result);
+
+/**
+ * @brief Creates an ArkTS string from a UTF8-encoded C string.
+ * @param env Current running virtual machine context.
+ * @param str C string encoded in UTF8 format.
+ * @param length The length of the C string 'str'.
+ * @param result Result of the ArkTS string from the UTF8-encoded C string.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, str and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_string_utf8(napi_env env,
+ const char* str,
+ size_t length,
+ napi_value* result);
+
+/**
+ * @brief Checks if the ArkTS value is an ArkTS ArrayBuffer.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to check.
+ * @param result Whether the given ArkTS value is an ArkTS ArrayBuffer.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_is_arraybuffer(napi_env env,
+ napi_value value,
+ bool* result);
+/**
+ * @brief Creates an ArkTS ArrayBuffer of the specified size.
+ * @param env Current running virtual machine context.
+ * @param byte_length The length in bytes of the array buffer.
+ * @param data The byte buffer of the ArrayBuffer.
+ * @param result A napi_value representing an ArkTS ArrayBuffer.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, data and(or) result is nullptr.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_arraybuffer(napi_env env,
+ size_t byte_length,
+ void** data,
+ napi_value* result);
+
+/**
+ * @brief Allocates a JS value with external data.
+ * @param env Current running virtual machine context.
+ * @param data Allocates a JS value that references external data.
+ * @param finalize_cb Optional callback to call when the external value is being collected.
+ * @param finalize_hint Optional hint that can be passed to the finalize callback function during the garbage
+ * collection process.
+ * @param result A napi_value representing an external value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env or result is nullptr.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_external(napi_env env,
+ void* data,
+ napi_finalize finalize_cb,
+ void* finalize_hint,
+ napi_value* result);
+
+/**
+ * @brief The underlying data that ArrayBuffer point to.
+ * @param env Current running virtual machine context.
+ * @param external_data Allocates an ArkTS value that references external data.
+ * @param byte_length The length in bytes of the underlying buffer.
+ * @param finalize_cb Optional callback to call when the ArrayBuffer is being collected.
+ * @param finalize_hint Optional hint that can be passed to the finalize callback function during the garbage
+ * collection process.
+ * @param result A napi_value representing an ArkTS ArrayBuffer.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, external_data, finalize_cb and(or) result is nullptr.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_external_arraybuffer(napi_env env,
+ void* external_data,
+ size_t byte_length,
+ napi_finalize finalize_cb,
+ void* finalize_hint,
+ napi_value* result);
+
+/**
+ * @brief Obtains the underlying data buffer of ArrayBuffer and its length.
+ * @param env Current running virtual machine context.
+ * @param arraybuffer The napi_value representing the ArrayBuffer being queried.
+ * @param data The underlying data buffer of the ArrayBuffer.
+ * @param byte_length Length in bytes of the underlying data buffer.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, arraybuffer and(or) byte_length is nullptr.\n
+ * {@link napi_arraybuffer_expected } If the param is neither ArkTS TypedArray nor SendableArrayBuffer.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_arraybuffer_info(napi_env env,
+ napi_value arraybuffer,
+ void** data,
+ size_t* byte_length);
+
+/**
+ * @brief Checks if the ArkTS value is an ArkTS TypedArray.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to check.
+ * @param result Whether the given ArkTS value is an ArkTS TypedArray.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_is_typedarray(napi_env env,
+ napi_value value,
+ bool* result);
+/**
+ * @brief Creates an ArkTS TypeArray from an existing ArrayBuffer.
+ * @param env Current running virtual machine context.
+ * @param type The element datatype of the TypedArray.
+ * @param length Number of elements in the TypedArray.
+ * @param arraybuffer The underlying ArrayBuffer that supports the TypedArray.
+ * @param byte_offset The byte offset within the ArrayBuffer from which to start projecting the TypedArray.
+ * @param result A napi_value representing an ArkTS TypedArray.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, arraybuffer and(or) result is nullptr;\n
+ * If param type is not a valid napi_typedarray_type.\n
+ * {@link napi_arraybuffer_expected } If a non-arraybuffer ArkTS value passed in it.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_typedarray(napi_env env,
+ napi_typedarray_type type,
+ size_t length,
+ napi_value arraybuffer,
+ size_t byte_offset,
+ napi_value* result);
+
+/**
+ * @brief Obtains properties of a TypedArray.
+ * @param env Current running virtual machine context.
+ * @param typedarray The napi_value for the TypedArray whose properties are being checked.
+ * @param type The datatype of elements in the TypedArray.
+ * @param length The number of elements in the TypedArray.
+ * @param data The data buffer underlying the TypedArray adjusted by the byte_offset.
+ * @param arraybuffer The ArrayBuffer underlying the TypedArray.
+ * @param byte_offset The byte offset within the underlying arraybuffer
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) typedarray is nullptr;\n
+ * If the param typedarray is neither ArkTS TypedArray nor SendableTypedArray.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_typedarray_info(napi_env env,
+ napi_value typedarray,
+ napi_typedarray_type* type,
+ size_t* length,
+ void** data,
+ napi_value* arraybuffer,
+ size_t* byte_offset);
+
+/**
+ * @brief Creates an ArkTS DataView from an existing ArrayBuffer.
+ * @param env Current running virtual machine context.
+ * @param length Number of elements in the DataView.
+ * @param arraybuffer The underlying ArrayBuffer that supports the DataView.
+ * @param byte_offset The byte offset within the ArrayBuffer from which to start projecting the DataView.
+ * @param result A napi_value representing an ArkTS DataView.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, arraybuffer and(or) result is nullptr.\n
+ * {@link napi_arraybuffer_expected } If a non-arraybuffer ArkTS value passed in it.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * If the sum of byte_length and length is greater than the byte length of\n
+ * the arraybuffer.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_dataview(napi_env env,
+ size_t length,
+ napi_value arraybuffer,
+ size_t byte_offset,
+ napi_value* result);
+
+/**
+ * @brief Checks if the ArkTS value is an ArkTS DataView.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to check.
+ * @param result Whether the given ArkTS value is an ArkTS DataView.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_is_dataview(napi_env env,
+ napi_value value,
+ bool* result);
+
+/**
+ * @brief Obtains properties of a DataView.
+ * @param env Current running virtual machine context.
+ * @param dataview The napi_value for the DataView whose properties are being checked.
+ * @param bytelength The number of elements in the DataView.
+ * @param data The data buffer underlying the DataView.
+ * @param arraybuffer The ArrayBuffer underlying the DataView.
+ * @param byte_offset The byte offset within the underlying arraybuffer
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) dataview is nullptr;\n
+ * If non-dataview ArkTS value passed in.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_dataview_info(napi_env env,
+ napi_value dataview,
+ size_t* bytelength,
+ void** data,
+ napi_value* arraybuffer,
+ size_t* byte_offset);
+
+/**
+ * @brief Obtains the array length.
+ * @param env Current running virtual machine context.
+ * @param value The napi_value representing the ArkTS Array being queried.
+ * @param result The length of the array.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr;\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_array_length(napi_env env,
+ napi_value value,
+ uint32_t* result);
+/**
+ * @brief Obtains the prototype of an ArkTS object.
+ * @param env Current running virtual machine context.
+ * @param object The napi_value representing an ArkTS Object whose prototype to return.
+ * @param result A napi_value representing prototype of the object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object or result is nullptr;\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_prototype(napi_env env,
+ napi_value object,
+ napi_value* result);
+
+/**
+ * @brief Obtains the external data pointer previously passed through napi_create_external().
+ * @param env Current running virtual machine context.
+ * @param value JavaScript external value.
+ * @param result The data wrapped by the JavaScript external value.
+
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value or result is nullptr;\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_value_external(napi_env env,
+ napi_value value,
+ void** result);
+
+/**
+ * @brief Coerce the given ArkTS value to an ArkTS boolean value.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to coerce.
+ * @param result The coerced ArkTS boolean value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_coerce_to_bool(napi_env env,
+ napi_value value,
+ napi_value* result);
+
+/**
+ * @brief Coerce the given ArkTS value to an ArkTS number value.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to coerce.
+ * @param result The coerced ArkTS number value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_coerce_to_number(napi_env env,
+ napi_value value,
+ napi_value* result);
+
+/**
+ * @brief Coerce the given ArkTS value to an ArkTS object value.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to coerce.
+ * @param result The coerced ArkTS object value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_coerce_to_object(napi_env env,
+ napi_value value,
+ napi_value* result);
+
+/**
+ * @brief Coerce the given ArkTS value to an ArkTS string value.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to coerce.
+ * @param result The coerced ArkTS string value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_coerce_to_string(napi_env env,
+ napi_value value,
+ napi_value* result);
+
+/**
+ * @brief Invoke instanceof operation on the object.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object to check.
+ * @param constructor The ArkTS constructor function to check against.
+ * @param result Set to true if the given ArkTS object instanceof constructor.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, constructor and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS object value.\n
+ * {@link napi_function_expected } If the param constructor is not an ArkTS function value.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_instanceof(napi_env env,
+ napi_value object,
+ napi_value constructor,
+ bool* result);
+
+/**
+ * @brief Checks if the ArkTS value is an ArkTS Array.
+ * @param env Current running virtual machine context.
+ * @param value The ArkTS value to check.
+ * @param result Whether the given ArkTS value is an ArkTS Array.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_is_array(napi_env env,
+ napi_value value,
+ bool* result);
+
+/**
+ * @brief Checks if the two ArkTS values are equal.
+ * @param env Current running virtual machine context.
+ * @param lhs The ArkTS value to check.
+ * @param rhs The ArkTS value to check against.
+ * @param result Whether the two given ArkTS values are equal.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_strict_equals(napi_env env,
+ napi_value lhs,
+ napi_value rhs,
+ bool* result);
+
+/**
+ * @brief Obtains the names of the enumerable properties of object as an Array of Strings. The keys that are symbols
+ * will not be included.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object from which the property is retrieved.
+ * @param result An ArkTS Array that contains the attribute names of the object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, value and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_property_names(napi_env env,
+ napi_value object,
+ napi_value* result);
+
+/**
+ * @brief Set a property on the given ArkTS Object.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param key The name of the property to set.
+ * @param value The property value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, key and(or) value is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_set_property(napi_env env,
+ napi_value object,
+ napi_value key,
+ napi_value value);
+
+/**
+ * @brief Get the requests property of the given ArkTS Object.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param key The name of the property to get.
+ * @param result The value of the property.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, key and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_property(napi_env env,
+ napi_value object,
+ napi_value key,
+ napi_value* result);
+
+/**
+ * @brief Check if the given ArkTS Object has the named property or not.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param key The name of the property to check.
+ * @param result Whether the property exists on the object or not.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, key and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_has_property(napi_env env,
+ napi_value object,
+ napi_value key,
+ bool* result);
+/**
+ * @brief Delete the named property of the given ArkTS Object.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param key The name of the property to delete.
+ * @param result Whether the execution is succeed or not. Can optionally be ignored by passing nullptr.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object and(or) key is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_delete_property(napi_env env,
+ napi_value object,
+ napi_value key,
+ bool* result);
+
+/**
+ * @brief Set a property on the given ArkTS Object.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param utf8name The name of the property to set.
+ * @param value The property value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, utf8name and(or) value is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_set_named_property(napi_env env,
+ napi_value object,
+ const char* utf8name,
+ napi_value value);
+
+/**
+ * @brief Get the requests property of the given ArkTS Object.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param utf8name The name of the property to get.
+ * @param result The value of the property.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, utf8name and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_named_property(napi_env env,
+ napi_value object,
+ const char* utf8name,
+ napi_value* result);
+
+/**
+ * @brief Check if the given ArkTS Object has the named property or not.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS object.
+ * @param utf8name The name of the property to check.
+ * @param result Whether the property exists on the object or not.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object, utf8name and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_has_named_property(napi_env env,
+ napi_value object,
+ const char* utf8name,
+ bool* result);
+
+/**
+ * @brief Set a element on the given ArkTS Array.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS Array.
+ * @param index The index of the element to set.
+ * @param value The element value.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object and(or) value is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_set_element(napi_env env,
+ napi_value object,
+ uint32_t index,
+ napi_value value);
+
+/**
+ * @brief Get the requests element of the given ArkTS Array.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS Array.
+ * @param index The index of the element to get.
+ * @param result The value of the element.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_element(napi_env env,
+ napi_value object,
+ uint32_t index,
+ napi_value* result);
+
+/**
+ * @brief Check if the given ArkTS Array has an element at the requested index.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS Array.
+ * @param index The name of the property to check.
+ * @param result Whether the property exists on the Array or not.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_has_element(napi_env env,
+ napi_value object,
+ uint32_t index,
+ bool* result);
+
+/**
+ * @brief Delete the special index from the given ArkTS Array.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS Array.
+ * @param index The index of the element to delete.
+ * @param result Whether the execution is succeed or not. Can optionally be ignored by passing nullptr.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object and(or) key is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_delete_element(napi_env env,
+ napi_value object,
+ uint32_t index,
+ bool* result);
+
+/**
+ * @brief Efficient define multiple properties on the given ArkTS Object by napi_property_descriptor.
+ * @param env Current running virtual machine context.
+ * @param object The ArkTS Object.
+ * @param property_count The count of elements in the properties array.
+ * @param properties The properties array.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, object and(or) properties is nullptr.\n
+ * {@link napi_object_expected } If the param object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_define_properties(napi_env env,
+ napi_value object,
+ size_t property_count,
+ const napi_property_descriptor* properties);
+
+/**
+ * @brief Invoke an ArkTS function. This is the primary mechanism to call back into JavaScript.
+ * @param env Current running virtual machine context.
+ * @param recv The this value passed to the called function
+ * @param func The ArkTS function to be invoked.
+ * @param argc The count of elements in the argv array.
+ * @param argv ArkTS values passed in as arguments to the function.
+ * @param result Whether the provided 'type_tag' is matched with the tag on the ArkTS object 'value'.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) func is nullptr. If argv is nullptr but argc greater\n
+ * than 0.\n
+ * {@link napi_function_expected } If the param func is not an ArkTS Function.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_call_function(napi_env env,
+ napi_value recv,
+ napi_value func,
+ size_t argc,
+ const napi_value* argv,
+ napi_value* result);
+
+/**
+ * @brief Obtains callback details about the call like arguments, this from given callback info.
+ * @param env Current running virtual machine context.
+ * @param cbinfo The callback info.
+ * @param argc Size of the argv array.
+ * @param argv The Array which arguments will be copied to. If there are more arguments than the provided count, only
+ * the requested number of arguments are copied. If there are fewer arguments provided, the rest argv is
+ * filled with undefined. Can optionally be ignored by passing nullptr.
+ * @param this_arg Receives the ArkTS this argument for the call. Can optionally be ignored by passing nullptr.
+ * @param data Receives the data pointer for the callback. Can optionally be ignored by passing nullptr.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) cbinfo is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_cb_info(napi_env env,
+ napi_callback_info cbinfo,
+ size_t* argc,
+ napi_value* argv,
+ napi_value* this_arg,
+ void** data);
+
+/**
+ * @brief Obtains callback details about the call like arguments, this from given callback info.
+ * @param env Current running virtual machine context.
+ * @param cbinfo The callback info.
+ * @param result The new.target of the constructor call.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, cbinfo and(or) result is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_get_new_target(napi_env env,
+ napi_callback_info cbinfo,
+ napi_value* result);
+
+/**
+ * @brief Instantiate a new ArkTS value using a given napi_value that represents the constructor for the object.
+ * @param env Current running virtual machine context.
+ * @param constructor The ArkTS function to be invoked as a constructor.
+ * @param argc The count of elements in the argv array.
+ * @param argv Array of ArkTS values representing the arguments to the constructor. If argc is 0 this parameter may
+ * be omitted by passing in nullptr.
+ * @param result The ArkTS object returned, which in this case is the constructed object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) func is nullptr. If argv is nullptr but argc greater\n
+ * than 0.\n
+ * {@link napi_function_expected } If the param func is not an ArkTS Function.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_new_instance(napi_env env,
+ napi_value constructor,
+ size_t argc,
+ const napi_value* argv,
+ napi_value* result);
+
+/**
+ * @brief Wraps a native instance in a ArkTS object. The native instance can be retrieved later using napi_unwrap.
+ * @param env Current running virtual machine context.
+ * @param js_object The ArkTS object that will be the wrapper for the native object.
+ * @param native_object The native instance that will be wrapped in the ArkTS object.
+ * @param finalize_cb Native callback that can be used to free the native instance when the JavaScript object has
+ * been garbage-collected.
+ * @param finalize_hint Optional contextual hint that is passed to the finalize callback.
+ * @param result Optional reference to the wrapped object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, js_object, native_object and(or) finalize_cb is nullptr.\n
+ * {@link napi_object_expected } If the param js_object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_wrap(napi_env env,
+ napi_value js_object,
+ void* native_object,
+ napi_finalize finalize_cb,
+ void* finalize_hint,
+ napi_ref* result);
+
+/**
+ * @brief Retrieves a native instance that was previously wrapped in an ArkTS object using napi_wrap.
+ * @param env Current running virtual machine context.
+ * @param js_object The ArkTS object.
+ * @param result Pointer to the wrapped native instance.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, js_object and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param js_object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_unwrap(napi_env env,
+ napi_value js_object,
+ void** result);
+
+/**
+ * @brief Retrieves a native instance that was previously wrapped in the ArkTS object js_object using napi_wrap
+ * and removes the wrapping.
+ * @param env Current running virtual machine context.
+ * @param js_object The ArkTS object.
+ * @param result Pointer to the wrapped native instance.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, js_object and(or) result is nullptr.\n
+ * {@link napi_object_expected } If the param js_object is not an ArkTS Object.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurred in execution.\n
+ * @since 10
+*/
+NAPI_EXTERN napi_status napi_remove_wrap(napi_env env,
+ napi_value js_object,
+ void** result);
+
+/**
+ * @brief Allocate a work object that is used to execute logic asynchronously.
+ * @param env Current running virtual machine context.
+ * @param async_resource Not supported, can be ignored by passing nullptr.
+ * @param async_resource_name Identifier for the kind of resource that is being provided for diagnostic information
+ * exposed by the HiTrace.
+ * @param execute The native function which should be called to execute the logic asynchronously. The given function
+ * is called from a worker pool thread and can execute in parallel with the main event loop thread.
+ * @param complete The native function which will be called when the asynchronous logic is completed or is cancelled.
+ * The given function is called from the main event loop thread.
+ * @param data User-provided data context. This will be passed back into the execute and complete functions.
+ * @param result The handle to the newly created async work.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, async_resource_name, execute, complete and(or) result is\n
+ * nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_create_async_work(napi_env env,
+ napi_value async_resource,
+ napi_value async_resource_name,
+ napi_async_execute_callback execute,
+ napi_async_complete_callback complete,
+ void* data,
+ napi_async_work* result);
+
+/**
+ * @brief Free a previously allocated work object.
+ * @param env Current running virtual machine context.
+ * @param work The handle returned by the call to napi_create_async_work.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) work is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_delete_async_work(napi_env env,
+ napi_async_work work);
+
+/**
+ * @brief Requests that the previously allocated work be scheduled for execution. Once it returns successfully,
+ * this API must not be called again with the same napi_async_work item or the result will be undefined.
+ * @param env Current running virtual machine context.
+ * @param work The handle returned by the call to napi_create_async_work.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) work is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_queue_async_work(napi_env env,
+ napi_async_work work);
+
+/**
+ * @brief Cancels queued work if it has not yet been started. If it has already started executing, it cannot be
+ * cancelled. If successful, the complete callback will be invoked with a status value of napi_cancelled.
+ * The work should not be deleted before the complete callback invocation, even if it has been successfully
+ * cancelled.
+ * @param env Current running virtual machine context.
+ * @param work The handle returned by the call to napi_create_async_work.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env and(or) work is nullptr.\n
+ * @since 10
+ */
+NAPI_EXTERN napi_status napi_cancel_async_work(napi_env env,
+ napi_async_work work);
+
+/**
+ * @brief Wraps a native instance in an ArkTS object.
+ * @param env The environment that the API is invoked under.
+ * @param js_object The ArkTS object that will be the wrapper for the native object.
+ * @param native_object The native instance that will be wrapped in the ArkTS object.
+ * @param finalize_cb Optional native callback that can be used to free the native instance when the ArkTS object
+ * has been garbage-collected.
+ * @param async_finalizer A boolean value to determine that finalize_cb execute async or not.
+ * @param finalize_hint Optional contextual hint that is passed to the finalize callback.
+ * @param native_binding_size The size of native binding.
+ * @param result Optional reference to the wrapped object.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env, js_object or native_object is nullptr.\n
+ * {@link napi_object_expected } If the param js_object is not an ArkTS Object or Function.\n
+ * {@link napi_pending_exception } There is an uncaught exception occurred before(in) execution.\n
+ * @since 18
+ */
+NAPI_EXTERN napi_status napi_wrap_enhance(napi_env env,
+ napi_value js_object,
+ void* native_object,
+ napi_finalize finalize_cb,
+ bool async_finalizer,
+ void* finalize_hint,
+ size_t native_binding_size,
+ napi_ref* result);
+
+/**
+ * @brief To create a new virtual machine context.
+ * @param env Current running virtual machine context.
+ * @param newEnv New generated virtual machine context which is expected to be used later.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env is nullptr.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n
+ * @since 20
+ */
+NAPI_EXTERN napi_status napi_create_ark_context(napi_env env, napi_env *newEnv);
+
+/**
+ * @brief To switch a virtual machine context which is expected to be used later.
+ * @param env Designated Virtual machine context which is expected to be used as the current virtual machine context.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env is nullptr.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n
+ * @since 20
+ */
+NAPI_EXTERN napi_status napi_switch_ark_context(napi_env env);
+
+/**
+ * @brief To destroy a virtual machine context which will not be used again.
+ * @param env Virtual machine context expected to be destroyed.
+ *
+ * @return Returns the function execution status.
+ * {@link napi_ok } If the function executed successfully.\n
+ * {@link napi_invalid_arg } If the param env is nullptr.\n
+ * {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n
+ * @since 20
+ */
+NAPI_EXTERN napi_status napi_destroy_ark_context(napi_env env);
#ifdef __cplusplus
}
#endif
diff --git a/arkui/window_manager/BUILD.gn b/arkui/window_manager/BUILD.gn
index b06760b56a14bb48a868a75b3480c241c5af6322..17fb43b1ddd6e3432b7f4dac602e05f9ba935794 100644
--- a/arkui/window_manager/BUILD.gn
+++ b/arkui/window_manager/BUILD.gn
@@ -21,9 +21,10 @@ ohos_ndk_library("native_window_manager") {
output_extension = "so"
system_capability = "SystemCapability.Window.SessionManager"
system_capability_headers = [
- "oh_window.h",
- "oh_window_comm.h",
- "oh_window_event_filter.h",
+ "window_manager/oh_window.h",
+ "window_manager/oh_window_comm.h",
+ "window_manager/oh_window_event_filter.h",
+ "window_manager/oh_window_pip.h",
]
}
@@ -33,5 +34,6 @@ ohos_ndk_headers("window_manager_header") {
"oh_window.h",
"oh_window_comm.h",
"oh_window_event_filter.h",
+ "oh_window_pip.h",
]
}
diff --git a/arkui/window_manager/libwm.ndk.json b/arkui/window_manager/libwm.ndk.json
index d3791022bb88f9397ab80c56ba040cb5dce1f8f2..4f4f24f91b1c3f66274ffa669fe66b6f1d51dd17 100644
--- a/arkui/window_manager/libwm.ndk.json
+++ b/arkui/window_manager/libwm.ndk.json
@@ -86,5 +86,122 @@
{
"first_instroduced":"17",
"name":"OH_WindowManager_ReleaseAllWindowLayoutInfoList"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_WindowManager_InjectTouchEvent"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_CreatePipConfig"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_DestroyPipConfig"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipMainWindowId"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipTemplateType"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipRect"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipControlGroup"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipNapiEnv"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_CreatePip"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_DeletePip"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_StartPip"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_StopPip"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UpdatePipContentSize"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UpdatePipControlStatus"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipControlEnabled"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_SetPipInitialSurfaceRect"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnsetPipInitialSurfaceRect"
+ },
+
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_RegisterStartPipCallback"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterStartPipCallback"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterAllStartPipCallbacks"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_RegisterLifecycleListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterLifecycleListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterAllLifecycleListeners"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_RegisterControlEventListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterControlEventListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterAllControlEventListeners"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_RegisterResizeListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterResizeListener"
+ },
+ {
+ "first_instroduced":"20",
+ "name":"OH_PictureInPicture_UnregisterAllResizeListeners"
}
]
\ No newline at end of file
diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h
index 793f9a758f6d9052c56e0b520dec501acd329e6e..347d1000275db13023663a48045c143e2daa068f 100644
--- a/arkui/window_manager/oh_window.h
+++ b/arkui/window_manager/oh_window.h
@@ -38,6 +38,7 @@
#include "stdint.h"
#include "oh_window_comm.h"
+#include "multimodalinput/oh_input_manager.h"
#ifdef __cplusplus
extern "C" {
@@ -272,6 +273,22 @@ int32_t OH_WindowManager_GetAllWindowLayoutInfoList(int64_t displayId,
*/
void OH_WindowManager_ReleaseAllWindowLayoutInfoList(WindowManager_Rect* windowLayoutInfoList);
+/**
+ * @brief app can inject a touchEvent to target window without Focus and zOrder changed, just send to ArkUI.
+ *
+ * @param windowId windowId when window is created.
+ * @param touchEvent multimodal touchEvent.
+ * @param windowX The position of the event relative to the abscissa of the window.
+ * @param windowY The position of the event relative to the ordinate of the window.
+ * @return Returns the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL} this window state is abnormal.
+ * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally.
+ * @since 20
+ */
+int32_t OH_WindowManager_InjectTouchEvent(
+ int32_t windowId, Input_TouchEvent* touchEvent, int32_t windowX, int32_t windowY);
+
#ifdef __cplusplus
}
#endif
diff --git a/arkui/window_manager/oh_window_comm.h b/arkui/window_manager/oh_window_comm.h
index d015371a54cd8ad17a4bebfdeb62bc8d5eb57e4a..152c9a318270f77fde5a60ae796c8a5b502f744d 100644
--- a/arkui/window_manager/oh_window_comm.h
+++ b/arkui/window_manager/oh_window_comm.h
@@ -92,6 +92,41 @@ typedef enum {
* @since 15
*/
WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL = 1300003,
+ /**
+ * @error Picture-In-Picture failed to destroy.
+ *
+ * @since 20
+ */
+ WINDOW_MANAGER_ERRORCODE_PIP_DESTROY_FAILED = 1300011,
+ /**
+ * @error Picture-In-Picture state is abnormal.
+ *
+ * @since 20
+ */
+ WINDOW_MANAGER_ERRORCODE_PIP_STATE_ABNORMAL = 1300012,
+ /**
+ * @error Picture-In-Picture failed to create.
+ *
+ * @since 20
+ */
+ WINDOW_MANAGER_ERRORCODE_PIP_CREATE_FAILED = 1300013,
+ /**
+ * @error Picture-In-Picture internal error.
+ *
+ * @since 20
+ */
+ WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR = 1300014,
+ /**
+ * @error Picture-In-Picture repeated operation.
+ *
+ * @since 20
+ */
+ WINDOW_MANAGER_ERRORCODE_PIP_REPEATED_OPERATION = 1300015,
+ /**
+ * @error Parameter is incorrect.
+ * @since 20
+ */
+ WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM = 1300016,
} WindowManager_ErrorCode;
/**
diff --git a/arkui/window_manager/oh_window_event_filter.h b/arkui/window_manager/oh_window_event_filter.h
index 56a726525a3322483274c0bbd46cb412c830ad6c..5d8aa0dbf039d0c8bb59bb1d031109753323f28c 100644
--- a/arkui/window_manager/oh_window_event_filter.h
+++ b/arkui/window_manager/oh_window_event_filter.h
@@ -14,7 +14,7 @@
*/
/**
- * @addtogroup WindowManager_NativeModule
+ * @addtogroup WindowManager
* @{
*
* @brief Provides abilities of windowManager on the native side, such as key event
diff --git a/arkui/window_manager/oh_window_pip.h b/arkui/window_manager/oh_window_pip.h
new file mode 100644
index 0000000000000000000000000000000000000000..dc16d176ead0caaee4b94d01c0dd8613b835d52f
--- /dev/null
+++ b/arkui/window_manager/oh_window_pip.h
@@ -0,0 +1,573 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup OH_PictureInPicture
+ * @{
+ *
+ * @file oh_window_pip.h
+ *
+ * @brief Declares C APIs for picture in picture window
+ *
+ * @kit ArkUI
+ * @library libnative_window_manager.so
+ * @syscap SystemCapability.Window.SessionManager
+ * @since 20
+ * @version 1.0
+ */
+#ifndef OH_WINDOW_PIP_H
+#define OH_WINDOW_PIP_H
+
+#include "stdint.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Picture in picture config.
+ * @since 20
+ */
+typedef void* PictureInPicture_PipConfig;
+
+/**
+ * @brief Enumerates picture in picture template type.
+ * @since 20
+ */
+typedef enum {
+ /** Video play. */
+ VIDEO_PLAY = 0,
+ /** Video call. */
+ VIDEO_CALL = 1,
+ /** Video meeting. */
+ VIDEO_MEETING = 2,
+ /** Video live. */
+ VIDEO_LIVE = 3,
+} PictureInPicture_PipTemplateType;
+
+/**
+ * @brief Enumerates picture in picture control group.
+ * @since 20
+ */
+typedef enum {
+ /** Previous/next control group for video play. */
+ VIDEO_PLAY_VIDEO_PREVIOUS_NEXT = 101,
+ /** Fast forward/backward control group for video play. */
+ VIDEO_PLAY_FAST_FORWARD_BACKWARD = 102,
+ /** Switch on/off the microphone control group for video call. */
+ VIDEO_CALL_MICROPHONE_SWITCH = 201,
+ /** Hang up control group for video call. */
+ VIDEO_CALL_HANG_UP_BUTTON = 202,
+ /** Switch on/off the camera control group for video call. */
+ VIDEO_CALL_CAMERA_SWITCH = 203,
+ /** Mute control group for video call. */
+ VIDEO_CALL_MUTE_SWITCH = 204,
+ /** Hang up control group for video meeting. */
+ VIDEO_MEETING_HANG_UP_BUTTON = 301,
+ /** Switch on/off the camera control group for video meeting. */
+ VIDEO_MEETING_CAMERA_SWITCH = 302,
+ /** Mute control group for video meeting. */
+ VIDEO_MEETING_MUTE_SWITCH = 303,
+ /** Switch on/off the microphone control group for video meeting. */
+ VIDEO_MEETING_MICROPHONE_SWITCH = 304,
+ /** Video play/pause control group for video live. */
+ VIDEO_LIVE_VIDEO_PLAY_PAUSE = 401,
+ /** Mute control group for video live. */
+ VIDEO_LIVE_MUTE_SWITCH = 402,
+} PictureInPicture_PipControlGroup;
+
+/**
+ * @brief Enumerates picture in picture control type.
+ * @since 20
+ */
+typedef enum {
+ /** Video play/pause. */
+ VIDEO_PLAY_PAUSE = 0,
+ /** Video previous. */
+ VIDEO_PREVIOUS = 1,
+ /** Video next. */
+ VIDEO_NEXT = 2,
+ /** Video fast forward. */
+ FAST_FORWARD = 3,
+ /** Video back forward. */
+ FAST_BACKWARD = 4,
+ /** Hang up. */
+ HANG_UP_BUTTON = 5,
+ /** Microphone switch. */
+ MICROPHONE_SWITCH = 6,
+ /** camera switch. */
+ CAMERA_SWITCH = 7,
+ /** mute switch. */
+ MUTE_SWITCH = 8,
+} PictureInPicture_PipControlType;
+
+/**
+ * @brief Enumerates picture in picture control status.
+ * @since 20
+ */
+typedef enum {
+ /** Play. */
+ PLAY = 1,
+ /** Pause. */
+ PAUSE = 0,
+ /** Open. */
+ OPEN = 1,
+ /** Close. */
+ CLOSE = 0,
+} PictureInPicture_PipControlStatus;
+
+/**
+ * @brief Enumerates picture in picture state.
+ * @since 20
+ */
+typedef enum {
+ /** About to start. */
+ ABOUT_TO_START = 1,
+ /** started. */
+ STARTED = 2,
+ /** About to stop. */
+ ABOUT_TO_STOP = 3,
+ /** stopped. */
+ STOPPED = 4,
+ /** About to restore. */
+ ABOUT_TO_RESTORE = 5,
+ /** Error. */
+ ERROR = 6,
+} PictureInPicture_PipState;
+
+/**
+ * @brief Start the picture-in-picture callback
+ * @param controllerId The picture-in-picture controller ID
+ * @param requestId The picture-in-picture requestId
+ * @param surfaceId The picture-in-picture surfaceId
+ * @since 20
+ */
+typedef void (*WebPipStartPipCallback)(uint32_t controllerId, uint8_t requestId, uint64_t surfaceId);
+
+/**
+ * @brief The picture-in-picture lifecycle callback
+ * @param controllerId The picture-in-picture controller ID
+ * @param state The picture-in-picture state
+ * @param errcode The picture-in-picture error code
+ * @since 20
+ */
+typedef void (*WebPipLifecycleCallback)(uint32_t controllerId, PictureInPicture_PipState state, int32_t errcode);
+
+/**
+ * @brief The picture-in-picture control event callback
+ * @param controllerId The picture-in-picture controller ID
+ * @param controlType The picture-in-picture control type
+ * @param status The picture-in-picture control status
+ * @since 20
+ */
+typedef void (*WebPipControlEventCallback)(uint32_t controllerId, PictureInPicture_PipControlType controlType,
+ PictureInPicture_PipControlStatus status);
+
+/**
+ * @brief The picture-in-picture size change callback
+ * @param controllerId The picture-in-picture controller ID
+ * @param width The picture-in-picture window width
+ * @param height The picture-in-picture window height
+ * @param scale The picture-in-picture window scale
+ * @since 20
+ */
+typedef void (*WebPipResizeCallback)(uint32_t controllerId, uint32_t width, uint32_t height, double scale);
+
+/**
+ * @brief Create picture-in-picture config.
+ * @param pipConfig The picture-in-picture config
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_CreatePipConfig(PictureInPicture_PipConfig* pipConfig);
+
+/**
+ * @brief Destroy picture-in-picture config.
+ * @param pipConfig The picture-in-picture config
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_DestroyPipConfig(PictureInPicture_PipConfig* pipConfig);
+
+/**
+ * @brief Set picture-in-picture mainWindowId.
+ *
+ * @param pipConfig The picture-in-picture config
+ * @param mainWindowId WindowId of corresponding mainWindow
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipMainWindowId(PictureInPicture_PipConfig pipConfig, uint32_t mainWindowId);
+
+/**
+ * @brief Set picture-in-picture templateType.
+ *
+ * @param pipConfig The picture-in-picture config
+ * @param pipTemplateType The picture-in-picture template type
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipTemplateType(PictureInPicture_PipConfig pipConfig,
+ PictureInPicture_PipTemplateType pipTemplateType);
+
+/**
+ * @brief Set picture-in-picture rect.
+ *
+ * @param pipConfig The picture-in-picture config
+ * @param width The picture-in-picture window width
+ * @param height The picture-in-picture window height
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipRect(PictureInPicture_PipConfig pipConfig, uint32_t width, uint32_t height);
+
+/**
+ * @brief Set picture-in-picture control group.
+ *
+ * @param pipConfig The picture-in-picture config
+ * @param controlGroup The picture-in-picture control group
+ * @param controlGroupLength The length of picture-in-picture control group
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipControlGroup(PictureInPicture_PipConfig pipConfig,
+ PictureInPicture_PipControlGroup* controlGroup, uint8_t controlGroupLength);
+
+/**
+ * @brief Set picture-in-picture napi env.
+ *
+ * @param pipConfig The picture-in-picture config
+ * @param env The picture-in-picture napi env
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipNapiEnv(PictureInPicture_PipConfig pipConfig, void* env);
+
+/**
+ * @brief Create picture-in-picture controller.
+ * @param pipConfig The picture-in-picture config
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_CreatePip(PictureInPicture_PipConfig pipConfig, uint32_t* controllerId);
+
+/**
+ * @brief Delete picture-in-picture controller.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} The function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_DeletePip(uint32_t controllerId);
+
+/**
+ * @brief Start picture-in-picture.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_STATE_ABNORMAL} the PiP window state is abnormal.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_CREATE_FAILED} failed to create the PiP window.
+ * {@link WINDOW_MANAGER_ERRORCODE_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_REPEATED_OPERATION} repeated PiP operation.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_StartPip(uint32_t controllerId);
+
+/**
+ * @brief Stop picture-in-picture.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_DESTROY_FAILED} failed to destroy the PiP window.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_STATE_ABNORMAL} the PiP window state is abnormal.
+ * {@link WINDOW_MANAGER_ERRORCODE_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_REPEATED_OPERATION} repeated PiP operation.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_StopPip(uint32_t controllerId);
+
+/**
+ * @brief Update picture-in-picture content size.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param width The picture-in-picture content width
+ * @param height The picture-in-picture content height
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UpdatePipContentSize(uint32_t controllerId, uint32_t width, uint32_t height);
+
+/**
+ * @brief Update picture-in-picture control status.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param controlType The picture-in-picture control type.
+ * @param status The picture-in-picture control status.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UpdatePipControlStatus(uint32_t controllerId, PictureInPicture_PipControlType controlType,
+ PictureInPicture_PipControlStatus status);
+
+/**
+ * @brief Set picture-in-picture controll enable status.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param controlType The picture-in-picture control type.
+ * @param enabled Indicate the picture-in-picture control is enabled.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipControlEnabled(uint32_t controllerId, PictureInPicture_PipControlType controlType,
+ bool enabled);
+
+/**
+ * @brief Set picture-in-picture initial surface rect.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param positionX The X position of the first frame when start the picture-in-picture.
+ * @param positionY The Y position of the first frame when start the picture-in-picture.
+ * @param width The width of the first frame when start the picture-in-picture.
+ * @param height The height of the first frame when start the picture-in-picture.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_SetPipInitialSurfaceRect(uint32_t controllerId, int32_t positionX, int32_t positionY,
+ uint32_t width, uint32_t height);
+
+/**
+ * @brief Unset picture-in-picture initial surface rect.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnsetPipInitialSurfaceRect(uint32_t controllerId);
+
+/**
+ * @brief Register picture-in-picture controller start callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback Start the picture-in-picture callback
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_RegisterStartPipCallback(uint32_t controllerId, WebPipStartPipCallback callback);
+
+/**
+ * @brief Unregister picture-in-picture controller start callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback Start the picture-in-picture callback
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterStartPipCallback(uint32_t controllerId, WebPipStartPipCallback callback);
+
+/**
+ * @brief Unregister all picture-in-picture controller start callbacks.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterAllStartPipCallbacks(uint32_t controllerId);
+
+/**
+ * @brief Register picture-in-picture lifecycle listener callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback The picture-in-picture lifecycle callback.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_RegisterLifecycleListener(uint32_t controllerId, WebPipLifecycleCallback callback);
+
+/**
+ * @brief Unregister picture-in-picture lifecycle listener callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback The picture-in-picture lifecycle callback.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterLifecycleListener(uint32_t controllerId, WebPipLifecycleCallback callback);
+
+/**
+ * @brief Unregister all picture-in-picture lifecycle listener callbacks.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterAllLifecycleListeners(uint32_t controllerId);
+
+/**
+ * @brief Register picture-in-picture control event listener callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback The picture-in-picture control event callback.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_RegisterControlEventListener(uint32_t controllerId, WebPipControlEventCallback callback);
+
+/**
+ * @brief Unregister picture-in-picture control event listener callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback The picture-in-picture control event callback.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterControlEventListener(uint32_t controllerId, WebPipControlEventCallback callback);
+
+/**
+ * @brief Unregister all picture-in-picture control event listener callbacks.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterAllControlEventListeners(uint32_t controllerId);
+
+/**
+ * @brief Register picture-in-picture resize listener callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback The picture-in-picture size change callback.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_RegisterResizeListener(uint32_t controllerId, WebPipResizeCallback callback);
+
+/**
+ * @brief Unregister picture-in-picture resize listener callback.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @param callback The picture-in-picture size change callback.
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterResizeListener(uint32_t controllerId, WebPipResizeCallback callback);
+
+/**
+ * @brief Unregister all picture-in-picture resize listener callbacks.
+ *
+ * @param controllerId The picture-in-picture controller ID
+ * @return Return the result code.
+ * {@link OK} the function call is successful.
+ * {@link WINDOW_MANAGER_ERRORCODE_INCORRECT_PARAM} parameter error.
+ * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported.
+ * {@link WINDOW_MANAGER_ERRORCODE_PIP_INTERNAL_ERROR} pip internal error.
+ * @since 20
+ */
+int32_t OH_PictureInPicture_UnregisterAllResizeListeners(uint32_t controllerId);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // OH_WINDOW_PIP_H
+/** @} */
\ No newline at end of file
diff --git a/backgroundtasks/transient/include/transient_task_api.h b/backgroundtasks/transient/include/transient_task_api.h
index 874e6473412e80b3b68cfffa268e78dde2c27ecc..2182d6c8b84e20a3816f952f19d04432caad097c 100644
--- a/backgroundtasks/transient/include/transient_task_api.h
+++ b/backgroundtasks/transient/include/transient_task_api.h
@@ -100,6 +100,19 @@ int32_t OH_BackgroundTaskManager_GetRemainingDelayTime(int32_t requestId, int32_
*/
int32_t OH_BackgroundTaskManager_CancelSuspendDelay(int32_t requestId);
+/**
+ * @brief Obtains transient task info.
+ *
+ * @param transientTaskInfo Indicates the transient task info of an application.
+ * @return {@link ERR_TRANSIENT_TASK_OK} 0 - Success.
+ * {@link ERR_TRANSIENT_TASK_CLIENT_INFO_VERIFICATION_FAILED} 9900001 - uid or pid info verify failed.
+ * {@link ERR_TRANSIENT_TASK_PARCELABLE_FAILED} 9900003 - Failed to write data into parcel.
+ * {@link ERR_TRANSIENT_TASK_SERVICE_NOT_READY} 9900004 - System service operation failed.
+ * @since 20
+ * @version 1.0
+ */
+int32_t OH_BackgroundTaskManager_GetTransientTaskInfo(TransientTask_TransientTaskInfo *transientTaskInfo);
+
#ifdef __cplusplus
}
#endif
diff --git a/backgroundtasks/transient/include/transient_task_type.h b/backgroundtasks/transient/include/transient_task_type.h
index 7a19adf75c8050b3d4c23f5eec1dc1a8ab00b183..237da3a12e8307f7aa616f524cb70eeb1e5624f8 100644
--- a/backgroundtasks/transient/include/transient_task_type.h
+++ b/backgroundtasks/transient/include/transient_task_type.h
@@ -41,6 +41,14 @@
#ifdef __cplusplus
extern "C" {
#endif
+
+/**
+ * @brief max number for transient task.
+ *
+ * @since 20
+ */
+#define TRANSIENT_TASK_MAX_NUM 3
+
/**
* @brief Enum for transient task error code.
* @since 13
@@ -76,6 +84,16 @@ typedef enum TransientTask_ErrorCode {
* Transient task verification failed.
*/
ERR_TRANSIENT_TASK_SERVICE_VERIFICATION_FAILED = 9900002,
+ /**
+ * @error Failed to write data into parcel. Possible reasons:
+ * 1. Invalid parameters;
+ * 2. Failed to apply for memory.
+ */
+ ERR_TRANSIENT_TASK_PARCELABLE_FAILED = 9900003,
+ /**
+ * @error System service operation failed.
+ */
+ ERR_TRANSIENT_TASK_SERVICE_NOT_READY = 9900004,
} TransientTask_ErrorCode;
/**
@@ -91,6 +109,19 @@ typedef struct TransientTask_DelaySuspendInfo {
int32_t actualDelayTime;
} TransientTask_DelaySuspendInfo;
+/**
+ * @brief Define TransientTaskInfo for an application.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef struct TransientTask_TransientTaskInfo {
+ /** The remaining quota of the delay request */
+ int32_t remainingQuota;
+ /** The info of delay suspend */
+ TransientTask_DelaySuspendInfo transientTasks[TRANSIENT_TASK_MAX_NUM];
+} TransientTask_TransientTaskInfo;
+
/**
* @brief Define a callback function when delay time expired.
* @since 13
diff --git a/backgroundtasks/transient/libtransient_task.ndk.json b/backgroundtasks/transient/libtransient_task.ndk.json
index df952bfe1d139048cdf28ba8f1a65bbfec7dbb7f..1702643bae76c1cc7a540a8a1704149589c2b599 100644
--- a/backgroundtasks/transient/libtransient_task.ndk.json
+++ b/backgroundtasks/transient/libtransient_task.ndk.json
@@ -10,5 +10,9 @@
{
"first_introduced": "13",
"name": "OH_BackgroundTaskManager_CancelSuspendDelay"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_BackgroundTaskManager_GetTransientTaskInfo"
}
]
\ No newline at end of file
diff --git a/build-tools/capi_parser/src/coreImpl/parser/kit_sub_system/c_file_kit_sub_system.json b/build-tools/capi_parser/src/coreImpl/parser/kit_sub_system/c_file_kit_sub_system.json
index 2e76360574711680bfcb669fd1bce4a97e388687..34518ef907dfce33e6215d0802c661954c2c4747 100644
--- a/build-tools/capi_parser/src/coreImpl/parser/kit_sub_system/c_file_kit_sub_system.json
+++ b/build-tools/capi_parser/src/coreImpl/parser/kit_sub_system/c_file_kit_sub_system.json
@@ -129,6 +129,11 @@
"kitName": "ArkGraphicsD",
"subSystem": "图形图像"
},
+ {
+ "filePath": "graphic/graphic_2d/native_fence/native_fence.h",
+ "kitName": "ArkGraphicsD",
+ "subSystem": "图形图像"
+ },
{
"filePath": "graphic/graphic_2d/native_drawing/drawing_bitmap.h",
"kitName": "ArkGraphicsD",
diff --git a/bundlemanager/bundle_framework/bundle/BUILD.gn b/bundlemanager/bundle_framework/bundle/BUILD.gn
index 1a834d911ed312dc20a1d64444a5df74e364ac92..22dfebfab4a23b42806d2dfd915c7e2a5e78597c 100644
--- a/bundlemanager/bundle_framework/bundle/BUILD.gn
+++ b/bundlemanager/bundle_framework/bundle/BUILD.gn
@@ -25,4 +25,6 @@ ohos_ndk_library("libbundle_ndk") {
ndk_description_file = "./libbundle.ndk.json"
min_compact_version = "9"
output_name = "bundle_ndk"
-}
\ No newline at end of file
+ system_capability = "SystemCapability.BundleManager.BundleFramework.Core"
+ system_capability_headers = [ "bundle/native_interface_bundle.h" ]
+}
diff --git a/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h b/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h
index 04bb5d3311b50786aa49d24727f99e080f525837..9ffbb73b9a4be3cb93d234f5782f2e15bd919a8c 100644
--- a/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h
+++ b/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h
@@ -37,6 +37,9 @@
#ifndef FOUNDATION_APPEXECFWK_STANDARD_KITS_APPKIT_NATIVE_BUNDLE_INCLUDE_NATIVE_INTERFACE_BUNDLE_H
#define FOUNDATION_APPEXECFWK_STANDARD_KITS_APPKIT_NATIVE_BUNDLE_INCLUDE_NATIVE_INTERFACE_BUNDLE_H
+#include
+#include
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -76,6 +79,46 @@ struct OH_NativeBundle_ElementName {
char* abilityName;
};
+/**
+ * @brief Indicates information of metadata
+ *
+ * @since 20
+ */
+typedef struct OH_NativeBundle_Metadata {
+ /**
+ * @brief Indicates the metadata name
+ */
+ char* name;
+ /**
+ * @brief Indicates the metadata value
+ */
+ char* value;
+ /**
+ * @brief Indicates the metadata resource
+ */
+ char* resource;
+} OH_NativeBundle_Metadata;
+
+/**
+ * @brief Indicates information of module metadata
+ *
+ * @since 20
+ */
+typedef struct OH_NativeBundle_ModuleMetadata {
+ /**
+ * @brief Indicates the moduleName of module
+ */
+ char* moduleName;
+ /**
+ * @brief Indicates the metadata array of module
+ */
+ OH_NativeBundle_Metadata* metadataArray;
+ /**
+ * @brief Indicates the metadata array size of module
+ */
+ size_t metadataArraySize;
+} OH_NativeBundle_ModuleMetadata;
+
/**
* @brief Indicates information of application
*
@@ -159,6 +202,28 @@ OH_NativeBundle_ElementName OH_NativeBundle_GetMainElementName();
* @version 1.0
*/
char* OH_NativeBundle_GetCompatibleDeviceType();
+
+/**
+ * @brief Obtains the application debug mode.
+ *
+ * @param isDebugMode Indicates whether the application is in debug mode.
+ * @return Returns true if call successful, false otherwise.
+ * @since 20
+ */
+bool OH_NativeBundle_IsDebugMode(bool* isDebugMode);
+
+/**
+ * @brief Obtains the module metadata array of the current application.
+ * After utilizing this interface, to prevent memory leaks,
+ * it is necessary to manually release the pointer returned by the interface.
+ *
+ * @param size Indicates the module metadata array size.
+ * @return Returns the newly created module metadata array, if the returned object is NULL,
+ * it indicates creation failure. The possible cause of failure could be that the application address space is full,
+ * leading to space allocation failure.
+ * @since 20
+ */
+OH_NativeBundle_ModuleMetadata* OH_NativeBundle_GetModuleMetadata(size_t* size);
#ifdef __cplusplus
};
#endif
diff --git a/bundlemanager/bundle_framework/bundle/libbundle.ndk.json b/bundlemanager/bundle_framework/bundle/libbundle.ndk.json
index f61863508c87306870bff6432339dbc5376b451a..7c05eef7bb28cbe0e7617d161dceaa7d0966beb7 100644
--- a/bundlemanager/bundle_framework/bundle/libbundle.ndk.json
+++ b/bundlemanager/bundle_framework/bundle/libbundle.ndk.json
@@ -18,5 +18,13 @@
{
"first_introduced": "14",
"name": "OH_NativeBundle_GetCompatibleDeviceType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeBundle_IsDebugMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeBundle_GetModuleMetadata"
}
]
diff --git a/commonlibrary/memory_utils/libpurgeablemem/BUILD.gn b/commonlibrary/memory_utils/libpurgeablemem/BUILD.gn
index 6ffd6731c1ec8012832cebebbb184c44e61d3f77..857c13a1294d4d08fdf0f661514d6f41ccca911a 100644
--- a/commonlibrary/memory_utils/libpurgeablemem/BUILD.gn
+++ b/commonlibrary/memory_utils/libpurgeablemem/BUILD.gn
@@ -21,7 +21,7 @@ ohos_ndk_headers("purgeable_memory_header") {
ohos_ndk_library("libpurgeable_memory_ndk") {
output_name = "purgeable_memory_ndk"
output_extension = "z.so"
+ system_capability = "SystemCapability.Kernel.Memory"
+ system_capability_headers = [ "purgeable_memory/purgeable_memory.h" ]
ndk_description_file = "./libpurgeable_memory.ndk.json"
- system_capability = "SystemCapability.CommonLibrary.Memory.PurgeableMemory"
- system_capability = "purgeable_memory/purgeable_memory.h"
}
diff --git a/commonlibrary/memory_utils/libpurgeablemem/purgeable_memory.h b/commonlibrary/memory_utils/libpurgeablemem/purgeable_memory.h
index 2f9cb9ef27fb060dbad46176e0ec8e501949f74e..7d6f0ba11795500e8e5c8292fe5d4bd6dbea0462 100644
--- a/commonlibrary/memory_utils/libpurgeablemem/purgeable_memory.h
+++ b/commonlibrary/memory_utils/libpurgeablemem/purgeable_memory.h
@@ -50,7 +50,7 @@
extern "C" {
#endif /* End of #ifdef __cplusplus */
-/*
+/**
* @brief Purgeable mem struct
*
* @since 10
@@ -58,12 +58,12 @@ extern "C" {
*/
typedef struct PurgMem OH_PurgeableMemory;
-/*
+/**
* @brief: function pointer, it points to a function which is used to build content of a PurgMem obj.
*
*
* @param void *: data ptr, points to start address of a PurgMem obj's content.
- * @param size_t: data size of the content.
+ * @param size_t Data size of the content.
* @param void *: other private parameters.
* @return: build content result, true means success, while false is fail.
*
@@ -72,13 +72,13 @@ typedef struct PurgMem OH_PurgeableMemory;
*/
typedef bool (*OH_PurgeableMemory_ModifyFunc)(void *, size_t, void *);
-/*
+/**
* @brief: create a PurgMem obj.
*
*
- * @param size: data size of a PurgMem obj's content.
- * @param func: function pointer, it is used to recover data when the PurgMem obj's content is purged.
- * @param funcPara: parameters used by @func.
+ * @param size Data size of a PurgMem obj's content.
+ * @param func Function pointer, it is used to recover data when the PurgMem obj's content is purged.
+ * @param funcPara Parameters used by @func.
* @return: a PurgMem obj.
*
* @since 10
@@ -87,11 +87,11 @@ typedef bool (*OH_PurgeableMemory_ModifyFunc)(void *, size_t, void *);
OH_PurgeableMemory *OH_PurgeableMemory_Create(
size_t size, OH_PurgeableMemory_ModifyFunc func, void *funcPara);
-/*
+/**
* @brief: destroy a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj to be destroyed.
+ * @param purgObj A PurgMem obj to be destroyed.
* @return: true is success, while false is fail. return true if @purgObj is NULL.
* If return true, @purgObj will be set to NULL to avoid Use-After-Free.
*
@@ -100,11 +100,11 @@ OH_PurgeableMemory *OH_PurgeableMemory_Create(
*/
bool OH_PurgeableMemory_Destroy(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: begin read a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
+ * @param purgObj A PurgMem obj.
* @return: return true if @purgObj's content is present.
* If content is purged(no present), system will recover its data,
* return false if content is purged and recovered failed.
@@ -117,11 +117,11 @@ bool OH_PurgeableMemory_Destroy(OH_PurgeableMemory *purgObj);
*/
bool OH_PurgeableMemory_BeginRead(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: end read a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
+ * @param purgObj A PurgMem obj.
* OS may reclaim the memory of @purgObj's content
* at a later time when this function returns.
*
@@ -130,11 +130,11 @@ bool OH_PurgeableMemory_BeginRead(OH_PurgeableMemory *purgObj);
*/
void OH_PurgeableMemory_EndRead(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: begin write a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
+ * @param purgObj A PurgMem obj.
* @return: return true if @purgObj's content is present.
* if content is purged(no present), system will recover its data,
* return false if content is purged and recovered failed.
@@ -147,11 +147,11 @@ void OH_PurgeableMemory_EndRead(OH_PurgeableMemory *purgObj);
*/
bool OH_PurgeableMemory_BeginWrite(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: end write a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
+ * @param purgObj A PurgMem obj.
* OS may reclaim the memory of @purgObj's content
* at a later time when this function returns.
*
@@ -160,11 +160,11 @@ bool OH_PurgeableMemory_BeginWrite(OH_PurgeableMemory *purgObj);
*/
void OH_PurgeableMemory_EndWrite(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: get content ptr of a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
+ * @param purgObj A PurgMem obj.
* @return: return start address of a PurgMem obj's content.
* Return NULL if @purgObj is NULL.
* This function should be protect by PurgMemBeginRead()/PurgMemEndRead()
@@ -175,11 +175,11 @@ void OH_PurgeableMemory_EndWrite(OH_PurgeableMemory *purgObj);
*/
void *OH_PurgeableMemory_GetContent(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: get content size of a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
+ * @param purgObj A PurgMem obj.
* @return: return content size of @purgObj.
* Return 0 if @purgObj is NULL.
*
@@ -188,14 +188,13 @@ void *OH_PurgeableMemory_GetContent(OH_PurgeableMemory *purgObj);
*/
size_t OH_PurgeableMemory_ContentSize(OH_PurgeableMemory *purgObj);
-/*
+/**
* @brief: append a modify to a PurgMem obj.
*
*
- * @param purgObj: a PurgMem obj.
- * @param size: data size of a PurgMem obj's content.
- * @param func: function pointer, it will modify content of @PurgMem.
- * @param funcPara: parameters used by @func.
+ * @param purgObj A PurgMem obj.
+ * @param func Function pointer, it will modify content of @PurgMem.
+ * @param funcPara Parameters used by @func.
* @return: append result, true is success, while false is fail.
*
* @since 10
diff --git a/distributeddatamgr/pasteboard/BUILD.gn b/distributeddatamgr/pasteboard/BUILD.gn
index 4cdf98a135446a6bb757e47ccdbcc90ec7f4fff7..1c80213efbad23be65902ff56aefad555ed86699 100644
--- a/distributeddatamgr/pasteboard/BUILD.gn
+++ b/distributeddatamgr/pasteboard/BUILD.gn
@@ -30,7 +30,7 @@ ohos_ndk_library("libpasteboard") {
ndk_description_file = "./libpasteboard.ndk.json"
min_compact_version = "13"
system_capability_headers = [
- "$ndk_headers_out_dir/database/pasteboard/oh_pasteboard.h",
- "$ndk_headers_out_dir/database/pasteboard/oh_pasteboard_err_code.h",
+ "database/pasteboard/oh_pasteboard.h",
+ "database/pasteboard/oh_pasteboard_err_code.h",
]
}
diff --git a/distributeddatamgr/pasteboard/include/oh_pasteboard.h b/distributeddatamgr/pasteboard/include/oh_pasteboard.h
index c4b9c2f665ae927ed454d993448f0a0058e37e6e..3218fff577ea728bcc29d5923b8a6d3c15d42c43 100644
--- a/distributeddatamgr/pasteboard/include/oh_pasteboard.h
+++ b/distributeddatamgr/pasteboard/include/oh_pasteboard.h
@@ -25,7 +25,7 @@
*/
/**
- * @file OH_Pasteboard.h
+ * @file oh_pasteboard.h
*
* @brief Provides APIs and enums of the Pasteboard module.
*
@@ -209,13 +209,14 @@ void OH_Pasteboard_Destroy(OH_Pasteboard* pasteboard);
* @brief Subscribes to the Pasteboard data change.
*
* @param pasteboard Pointer to the {@link OH_Pasteboard} instance.
- * @param type Event type to subscribe to.
+ * @param type Event type to subscribe to report the pasteboard data change.
+ * For details, see {@link Pasteboard_NotifyType}.
* @param observer - Pointer to the observer information, which specifies the callback used to
* reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}.
* @return Returns the status code of the execution. For details, {@link PASTEBOARD_ErrCode}.
* Returns {@link ERR_OK} if the operation is successful.
* Returns {@link ERR_INVALID_PARAMETER} if invalid args are detected.
- * @see OH_Pasteboard OH_PasteboardObserver PASTEBOARD_ErrCode.
+ * @see OH_Pasteboard OH_PasteboardObserver Pasteboard_NotifyType PASTEBOARD_ErrCode.
* @since 13
*/
int OH_Pasteboard_Subscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer);
@@ -224,13 +225,14 @@ int OH_Pasteboard_Subscribe(OH_Pasteboard* pasteboard, int type, const OH_Pasteb
* @brief Unsubscribes from the Pasteboard data change.
*
* @param pasteboard Pointer to the {@link OH_Pasteboard} instance.
- * @param type Event type to subscribe to.
+ * @param type Event type to subscribe to report the pasteboard data change.
+ * For details, see {@link Pasteboard_NotifyType}.
* @param observer - Pointer to the observer information, which specifies the callback used to
* reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}.
* @return Returns the status code of the execution. For details, {@link PASTEBOARD_ErrCode}.
* Returns {@link ERR_OK} if the operation is successful.
* Returns {@link ERR_INVALID_PARAMETER} if invalid args are detected.
- * @see OH_Pasteboard OH_PasteboardObserver PASTEBOARD_ErrCode.
+ * @see OH_Pasteboard OH_PasteboardObserver Pasteboard_NotifyType PASTEBOARD_ErrCode.
* @since 13
*/
int OH_Pasteboard_Unsubscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer);
@@ -349,7 +351,7 @@ uint32_t OH_Pasteboard_GetChangeCount(OH_Pasteboard *pasteboard);
*
* @return If the operation is successful, a pointer to the instance of the {@link Pasteboard_GetDataParams}
* structure is returned. If the operation is failed, nullptr is returned.
- * @see Pasteboard_GetDataParams
+ * @see Pasteboard_GetDataParams.
* @since 15
*/
Pasteboard_GetDataParams *OH_Pasteboard_GetDataParams_Create(void);
@@ -358,7 +360,7 @@ Pasteboard_GetDataParams *OH_Pasteboard_GetDataParams_Create(void);
* @brief Destroy a pointer that points to an instance of {@link Pasteboard_GetDataParams}.
*
* @param params Represents a pointer to an instance of {@link Pasteboard_GetDataParams}.
- * @see Pasteboard_GetDataParams
+ * @see Pasteboard_GetDataParams.
* @since 15
*/
void OH_Pasteboard_GetDataParams_Destroy(Pasteboard_GetDataParams* params);
@@ -368,7 +370,7 @@ void OH_Pasteboard_GetDataParams_Destroy(Pasteboard_GetDataParams* params);
*
* @param params Represents a pointer to an instance of {@link Pasteboard_GetDataParams}.
* @param progressIndicator Represents to the progress indicator.
- * @see Pasteboard_GetDataParams Pasteboard_ProgressIndicator
+ * @see Pasteboard_GetDataParams Pasteboard_ProgressIndicator.
* @since 15
*/
void OH_Pasteboard_GetDataParams_SetProgressIndicator(Pasteboard_GetDataParams* params,
@@ -380,7 +382,7 @@ void OH_Pasteboard_GetDataParams_SetProgressIndicator(Pasteboard_GetDataParams*
* @param params Represents a pointer to an instance of {@link Pasteboard_GetDataParams}.
* @param destUri Pointer to a destination uri.
* @param destUriLen Indicates the length of destination uri.
- * @see Pasteboard_GetDataParams
+ * @see Pasteboard_GetDataParams.
* @since 15
*/
void OH_Pasteboard_GetDataParams_SetDestUri(Pasteboard_GetDataParams* params, const char* destUri, uint32_t destUriLen);
@@ -390,7 +392,7 @@ void OH_Pasteboard_GetDataParams_SetDestUri(Pasteboard_GetDataParams* params, co
*
* @param params Represents a pointer to an instance of {@link Pasteboard_GetDataParams}.
* @param option Represents to the file conflict options.
- * @see Pasteboard_GetDataParams Pasteboard_FileConflictOptions
+ * @see Pasteboard_GetDataParams Pasteboard_FileConflictOptions.
* @since 15
*/
void OH_Pasteboard_GetDataParams_SetFileConflictOptions(Pasteboard_GetDataParams* params,
@@ -401,7 +403,7 @@ void OH_Pasteboard_GetDataParams_SetFileConflictOptions(Pasteboard_GetDataParams
*
* @param params Represents a pointer to an instance of {@link Pasteboard_GetDataParams}.
* @param listener Represents to the data progress listener.
- * @see Pasteboard_GetDataParams OH_Pasteboard_ProgressListener
+ * @see Pasteboard_GetDataParams OH_Pasteboard_ProgressListener.
* @since 15
*/
void OH_Pasteboard_GetDataParams_SetProgressListener(Pasteboard_GetDataParams* params,
@@ -412,7 +414,7 @@ void OH_Pasteboard_GetDataParams_SetProgressListener(Pasteboard_GetDataParams* p
*
* @param progressInfo Represents a pointer to an instance of {@link Pasteboard_ProgressInfo}.
* @return Returns the progress.
- * @see Pasteboard_ProgressInfo
+ * @see Pasteboard_ProgressInfo.
* @since 15
*/
int OH_Pasteboard_ProgressInfo_GetProgress(Pasteboard_ProgressInfo* progressInfo);
diff --git a/distributeddatamgr/preferences/libpreferences.ndk.json b/distributeddatamgr/preferences/libpreferences.ndk.json
index 9c41566f528e86b05404777fa5528a6c277090af..2869d86519f11e5178b0b28fd75c5115b91f1ccd 100644
--- a/distributeddatamgr/preferences/libpreferences.ndk.json
+++ b/distributeddatamgr/preferences/libpreferences.ndk.json
@@ -47,6 +47,10 @@
"first_introduced": "13",
"name": "OH_Preferences_UnregisterDataObserver"
},
+ {
+ "first_introduced": "18",
+ "name": "OH_Preferences_IsStorageTypeSupported"
+ },
{
"first_introduced": "13",
"name": "OH_PreferencesOption_Create"
@@ -63,6 +67,10 @@
"first_introduced": "13",
"name": "OH_PreferencesOption_SetDataGroupId"
},
+ {
+ "first_introduced": "18",
+ "name": "OH_PreferencesOption_SetStorageType"
+ },
{
"first_introduced": "13",
"name": "OH_PreferencesOption_Destroy"
diff --git a/distributeddatamgr/relational_store/BUILD.gn b/distributeddatamgr/relational_store/BUILD.gn
index 560c94d4d153579497dd4bea9a91509e5015cec4..8e2ef44e08354bfd6b41046933a9f744326f8092 100644
--- a/distributeddatamgr/relational_store/BUILD.gn
+++ b/distributeddatamgr/relational_store/BUILD.gn
@@ -20,6 +20,7 @@ ohos_ndk_headers("native_rdb_ndk_header") {
sources = [
"./include/oh_cursor.h",
"./include/oh_predicates.h",
+ "./include/oh_rdb_crypto_param.h",
"./include/oh_rdb_transaction.h",
"./include/oh_rdb_types.h",
"./include/oh_value_object.h",
@@ -46,17 +47,18 @@ ohos_ndk_library("libnative_rdb_ndk") {
ndk_description_file = "./libnative_rdb.ndk.json"
min_compact_version = "11"
system_capability_headers = [
- "$ndk_headers_out_dir/database/data/data_asset.h",
- "$ndk_headers_out_dir/database/data/oh_data_value.h",
- "$ndk_headers_out_dir/database/data/oh_data_values.h",
- "$ndk_headers_out_dir/database/data/oh_data_values_buckets.h",
- "$ndk_headers_out_dir/database/rdb/oh_cursor.h",
- "$ndk_headers_out_dir/database/rdb/oh_predicates.h",
- "$ndk_headers_out_dir/database/rdb/oh_rdb_transaction.h",
- "$ndk_headers_out_dir/database/rdb/oh_rdb_types.h",
- "$ndk_headers_out_dir/database/rdb/oh_value_object.h",
- "$ndk_headers_out_dir/database/rdb/oh_values_bucket.h",
- "$ndk_headers_out_dir/database/rdb/relational_store.h",
- "$ndk_headers_out_dir/database/rdb/relational_store_error_code.h",
+ "database/data/data_asset.h",
+ "database/data/oh_data_value.h",
+ "database/data/oh_data_values.h",
+ "database/data/oh_data_values_buckets.h",
+ "database/rdb/oh_cursor.h",
+ "database/rdb/oh_predicates.h",
+ "database/rdb/oh_rdb_crypto_param.h",
+ "database/rdb/oh_rdb_transaction.h",
+ "database/rdb/oh_rdb_types.h",
+ "database/rdb/oh_value_object.h",
+ "database/rdb/oh_values_bucket.h",
+ "database/rdb/relational_store.h",
+ "database/rdb/relational_store_error_code.h",
]
}
diff --git a/distributeddatamgr/relational_store/include/oh_data_value.h b/distributeddatamgr/relational_store/include/oh_data_value.h
index 202158324aed23d1bbda6c31204b1f37a7fa66b0..fca716bf27c7ab10988a8b3675f2e771bb0ebaef 100644
--- a/distributeddatamgr/relational_store/include/oh_data_value.h
+++ b/distributeddatamgr/relational_store/include/oh_data_value.h
@@ -55,44 +55,44 @@ extern "C" {
typedef enum OH_ColumnType {
/**
* @brief Indicates the column type is NULL.
- *
- * @since 10 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 10
*/
TYPE_NULL = 0,
/**
* @brief Indicates the column type is INT64.
- *
- * @since 10 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 10
*/
TYPE_INT64,
/**
* @brief Indicates the column type is REAL.
- *
- * @since 10 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 10
*/
TYPE_REAL,
/**
* @brief Indicates the column type is TEXT.
- *
- * @since 10 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 10
*/
TYPE_TEXT,
/**
* @brief Indicates the column type is BLOB.
- *
- * @since 10 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 10
*/
TYPE_BLOB,
/**
* @brief Indicates the column type is {@link Data_Asset}.
- *
- * @since 11 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 11
*/
TYPE_ASSET,
/**
* @brief Indicates the column type is array of {@link Data_Asset}.
- *
- * @since 11 Moved from oh_cursor.h file.
+ * Moved from oh_cursor.h file.
+ * @since 11
*/
TYPE_ASSETS,
/**
@@ -125,7 +125,7 @@ typedef struct OH_Data_Value OH_Data_Value;
* @see OH_Value_Destroy.
* @since 18
*/
-OH_Data_Value *OH_Value_Create();
+OH_Data_Value *OH_Value_Create(void);
/**
* @brief Destroys an OH_Data_Value instance object.
@@ -266,7 +266,8 @@ int OH_Value_GetType(OH_Data_Value *value, OH_ColumnType *type);
* @brief Check whether the data is empty from OH_Data_Value object.
*
* @param value Represents a pointer to an instance of OH_Data_Value.
- * @param val Represents empty data flag. It is an output parameter. Ture is empty, false is not empty.
+ * @param val Represents empty data flag. It is an output parameter.
+ * The value true means that the data is empty, and false means the opposite.
* @return Returns the error code.
* Returns {@link RDB_OK} if the execution is successful.
* Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
diff --git a/distributeddatamgr/relational_store/include/oh_data_values.h b/distributeddatamgr/relational_store/include/oh_data_values.h
index a816d39c5e2975616779cf1d431e0705d1ccfd8e..94276119dc83e4761a962d09abe2c29094fa7d45 100644
--- a/distributeddatamgr/relational_store/include/oh_data_values.h
+++ b/distributeddatamgr/relational_store/include/oh_data_values.h
@@ -62,7 +62,7 @@ typedef struct OH_Data_Values OH_Data_Values;
* @see OH_Values_Destroy.
* @since 18
*/
-OH_Data_Values *OH_Values_Create();
+OH_Data_Values *OH_Values_Create(void);
/**
* @brief Destroys an OH_Data_Values instance object.
@@ -243,7 +243,8 @@ int OH_Values_Get(OH_Data_Values *values, int index, OH_Data_Value **val);
*
* @param values Represents a pointer to an instance of OH_Data_Values.
* @param index Represents the zero-based index of target data in values.
- * @param val Represents empty data flag. It is an output parameter. Ture is empty, false is not empty.
+ * @param val Represents empty data flag. It is an output parameter.
+ * The value true means that the data is empty, and false means the opposite.
* @return Returns the error code.
* Returns {@link RDB_OK} if the execution is successful.
* Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
diff --git a/distributeddatamgr/relational_store/include/oh_data_values_buckets.h b/distributeddatamgr/relational_store/include/oh_data_values_buckets.h
index 1147fb08a1a5813988099bca67ccff95fac96ead..dfde2bfec191efe59d5bb9616e46e20b6da26aec 100644
--- a/distributeddatamgr/relational_store/include/oh_data_values_buckets.h
+++ b/distributeddatamgr/relational_store/include/oh_data_values_buckets.h
@@ -61,7 +61,7 @@ typedef struct OH_Data_VBuckets OH_Data_VBuckets;
* @see OH_VBuckets_Destroy.
* @since 18
*/
-OH_Data_VBuckets *OH_VBuckets_Create();
+OH_Data_VBuckets *OH_VBuckets_Create(void);
/**
* @brief Destroys an OH_Data_VBuckets instance object.
@@ -99,7 +99,7 @@ int OH_VBuckets_PutRow(OH_Data_VBuckets *buckets, const OH_VBucket *row);
int OH_VBuckets_PutRows(OH_Data_VBuckets *buckets, const OH_Data_VBuckets *rows);
/**
- * @brief Add an OH_Data_VBuckets to OH_Data_VBuckets object.
+ * @brief Gets the number of rows in OH_Data_VBuckets object.
*
* @param buckets Represents a pointer to an instance of OH_Data_VBuckets.
* @param count Represents the count of OH_VBucket in OH_Data_VBuckets. It is an output parameter.
diff --git a/distributeddatamgr/relational_store/include/oh_predicates.h b/distributeddatamgr/relational_store/include/oh_predicates.h
index 32d4e3e9eb260012d43dacd6778300c283769565..47d0c41470bfa86c0c0dc7a0ee7d9f8bb3c7de6d 100644
--- a/distributeddatamgr/relational_store/include/oh_predicates.h
+++ b/distributeddatamgr/relational_store/include/oh_predicates.h
@@ -47,6 +47,7 @@
#include
#include "database/rdb/oh_value_object.h"
+#include "database/data/oh_data_values.h"
#ifdef __cplusplus
extern "C" {
@@ -410,6 +411,60 @@ struct OH_Predicates {
int (*destroy)(OH_Predicates *predicates);
};
+/**
+ * @brief Sets the OH_Predicates to match the field whose data type is string and value is not like the specified value.
+ * This method is similar to "Not like" of the SQL statement.
+ *
+ * @param predicates Represents a pointer to an instance of OH_Predicates.
+ * @param field Indicates the column name in the database table.
+ * @param pattern Indicates the value to compare against.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+*/
+int OH_Predicates_NotLike(OH_Predicates *predicates, const char *field, const char *pattern);
+
+/**
+ * @brief Sets the OH_Predicates to match the specified field whose data type is string and the value contains
+ * a wildcard. Different from like, the input parameters of this method are case-sensitive.
+ *
+ * @param predicates Represents a pointer to an instance of OH_Predicates.
+ * @param field Indicates the column name in the database table.
+ * @param pattern Indicates the value to match with the predicate.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+*/
+int OH_Predicates_Glob(OH_Predicates *predicates, const char *field, const char *pattern);
+
+/**
+ * @brief Sets the OH_Predicates to not match the specified field whose data type is string and the value contains
+ * a wildcard. Different from not like, the input parameters of this method are case-sensitive.
+ *
+ * @param predicates Represents a pointer to an instance of OH_Predicates.
+ * @param field Indicates the column name in the database table.
+ * @param pattern Indicates the value to compare against.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+*/
+int OH_Predicates_NotGlob(OH_Predicates *predicates, const char *field, const char *pattern);
+
+/**
+ * @brief Sets the OH_Predicates to specify conditions to filter grouped results that will appear in the final result.
+ *
+ * @param predicates Represents a pointer to an instance of OH_Predicates.
+ * @param conditions Indicates filter conditions in the having clause.
+ * @param values Indicates a pointer to an instance of OH_Data_Values.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+*/
+int OH_Predicates_Having(OH_Predicates *predicates, const char *conditions, const OH_Data_Values *values);
#ifdef __cplusplus
};
#endif
diff --git a/distributeddatamgr/relational_store/include/oh_rdb_crypto_param.h b/distributeddatamgr/relational_store/include/oh_rdb_crypto_param.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ab4c38cf68f11def4cd98010d346eefa74c7cd6
--- /dev/null
+++ b/distributeddatamgr/relational_store/include/oh_rdb_crypto_param.h
@@ -0,0 +1,211 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup RDB
+ * @{
+ *
+ * @brief The relational database (RDB) store manages data based on relational models.
+ * With the underlying SQLite database, the RDB store provides a complete mechanism for managing local databases.
+ * To satisfy different needs in complicated scenarios, the RDB store offers a series of APIs for performing operations
+ * such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements.
+ *
+ * @since 10
+ */
+
+/**
+ * @file oh_rdb_crypto_param.h
+ *
+ * @brief Provides functions and enumerations related to cryptographic parameters of the relational database.
+ *
+ * @kit ArkData
+ * @library libnative_rdb_ndk.z.so
+ * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
+ *
+ * @since 20
+ */
+
+#ifndef OH_RDB_CRYPTO_PARAM_H
+#define OH_RDB_CRYPTO_PARAM_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Enumerates the database encryption algorithms.
+ *
+ * @since 20
+ */
+typedef enum Rdb_EncryptionAlgo {
+ /**
+ * @brief Indicates the database is encrypted using RDB_AES_256_GCM.
+ */
+ RDB_AES_256_GCM = 0,
+ /**
+ * @brief Indicates the database is encrypted using RDB_AES_256_CBC.
+ */
+ RDB_AES_256_CBC,
+} Rdb_EncryptionAlgo;
+
+/**
+ * @brief Enumerates the supported HMAC algorithm when opening a database.
+ *
+ * @since 20
+ */
+typedef enum Rdb_HmacAlgo {
+ /**
+ * @brief RDB_HMAC_SHA1 algorithm.
+ */
+ RDB_HMAC_SHA1 = 0,
+ /**
+ * @brief RDB_HMAC_SHA256 algorithm.
+ */
+ RDB_HMAC_SHA256,
+ /**
+ * @brief RDB_HMAC_SHA512 algorithm.
+ */
+ RDB_HMAC_SHA512,
+} Rdb_HmacAlgo;
+
+/**
+ * @brief Enumerates the supported KDF algorithm when opening a database.
+ *
+ * @since 20
+ */
+typedef enum Rdb_KdfAlgo {
+ /**
+ * @brief RDB_KDF_SHA1 algorithm.
+ */
+ RDB_KDF_SHA1 = 0,
+ /**
+ * @brief RDB_KDF_SHA256 algorithm.
+ */
+ RDB_KDF_SHA256,
+ /**
+ * @brief RDB_KDF_SHA512 algorithm.
+ */
+ RDB_KDF_SHA512,
+} Rdb_KdfAlgo;
+
+/**
+ * @brief Specifies the cryptographic parameters used when opening an encrypted database.
+ *
+ * @since 20
+ */
+typedef struct OH_Rdb_CryptoParam OH_Rdb_CryptoParam;
+
+/**
+ * @brief Creates an OH_Rdb_CryptoParam instance object.
+ *
+ * @return Returns a pointer to OH_Rdb_CryptoParam instance when the execution is successful.
+ * Otherwise, nullptr is returned. The memory must be released through the OH_Rdb_DestroyCryptoParam
+ * interface after the use is complete.
+ * @see OH_Rdb_DestroyCryptoParam.
+ * @since 20
+ */
+OH_Rdb_CryptoParam *OH_Rdb_CreateCryptoParam(void);
+
+/**
+ * @brief Destroys an OH_Rdb_CryptoParam instance object.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Rdb_DestroyCryptoParam(OH_Rdb_CryptoParam *param);
+
+/**
+ * @brief Sets key data to the OH_Rdb_CryptoParam object.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @param key Represents a pointer to array data.
+ * @param length Represents the size of key array.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Crypto_SetEncryptionKey(OH_Rdb_CryptoParam *param, const uint8_t *key, int32_t length);
+
+/**
+ * @brief Sets the number of KDF iterations used when opening an encrypted database.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @param iteration Represents iterations times.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Crypto_SetIteration(OH_Rdb_CryptoParam *param, int64_t iteration);
+
+/**
+ * @brief Sets the encryption algorithm when opening an encrypted database.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @param algo Represents the encryption algorithm.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Crypto_SetEncryptionAlgo(OH_Rdb_CryptoParam *param, int32_t algo);
+
+/**
+ * @brief Sets the HMAC algorithm when opening an encrypted database.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @param algo Represents the HMAC algorithm.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Crypto_SetHmacAlgo(OH_Rdb_CryptoParam *param, int32_t algo);
+
+/**
+ * @brief Sets the KDF algorithm when opening an encrypted database.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @param algo Represents the KDF algorithm.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Crypto_SetKdfAlgo(OH_Rdb_CryptoParam *param, int32_t algo);
+
+/**
+ * @brief Sets the page size used when opening an encrypted database.
+ *
+ * @param param Represents a pointer to an instance of OH_Rdb_CryptoParam.
+ * @param size Represents the page size.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Crypto_SetCryptoPageSize(OH_Rdb_CryptoParam *param, int64_t size);
+
+#ifdef __cplusplus
+};
+#endif
+#endif
+/** @} */
diff --git a/distributeddatamgr/relational_store/include/oh_rdb_transaction.h b/distributeddatamgr/relational_store/include/oh_rdb_transaction.h
index aa34f0228ea3a7be3dfa8500cccf0809af3c794b..e98c6b85dff70bbfa02106cb217915d5bcea1ef4 100644
--- a/distributeddatamgr/relational_store/include/oh_rdb_transaction.h
+++ b/distributeddatamgr/relational_store/include/oh_rdb_transaction.h
@@ -100,30 +100,30 @@ typedef struct OH_Rdb_Transaction OH_Rdb_Transaction;
* @see OH_RdbTrans_DestroyOptions.
* @since 18
*/
-OH_RDB_TransOptions *OH_RdbTrans_CreateOptions();
+OH_RDB_TransOptions *OH_RdbTrans_CreateOptions(void);
/**
* @brief Destroys an OH_RDB_TransOptions instance object.
*
- * @param opitons Represents a pointer to an instance of OH_RDB_TransOptions.
+ * @param options Represents a pointer to an instance of OH_RDB_TransOptions.
* @return Returns the error code.
* Returns {@link RDB_OK} if the execution is successful.
* Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
* @since 18
*/
-int OH_RdbTrans_DestroyOptions(OH_RDB_TransOptions *opitons);
+int OH_RdbTrans_DestroyOptions(OH_RDB_TransOptions *options);
/**
- * @brief Sets integer data to the opitons object.
+ * @brief Sets integer data to the options object.
*
- * @param opitons Represents a pointer to an instance of OH_RDB_TransOptions.
+ * @param options Represents a pointer to an instance of OH_RDB_TransOptions.
* @param type Represents relation database transaction type.
* @return Returns the error code.
* Returns {@link RDB_OK} if the execution is successful.
* Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
* @since 18
*/
-int OH_RdbTransOption_SetType(OH_RDB_TransOptions *opitons, OH_RDB_TransType type);
+int OH_RdbTransOption_SetType(OH_RDB_TransOptions *options, OH_RDB_TransType type);
/**
* @brief Commits a transaction of a relational database.
@@ -193,6 +193,36 @@ int OH_RdbTrans_Rollback(OH_Rdb_Transaction *trans);
*/
int OH_RdbTrans_Insert(OH_Rdb_Transaction *trans, const char *table, const OH_VBucket *row, int64_t *rowId);
+/**
+ * @brief Inserts a row of data into the target table and support conflict resolution.
+ *
+ * @param trans Represents a pointer to an instance of OH_Rdb_Transaction.
+ * @param table Represents the target table.
+ * @param row Represents the row data to be inserted into the table.
+ * @param resolution Represents the resolution when conflict occurs.
+ * @param rowId Represents row line number when insert successfully.
+ * @return Returns the status code of the execution.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_ERROR} database common error.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * Returns {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * Returns {@link RDB_E_WAL_SIZE_OVER_LIMIT} the WAL file size over default limit.
+ * Returns {@link RDB_E_SQLITE_FULL} SQLite: The database is full.
+ * Returns {@link RDB_E_SQLITE_CORRUPT} database corrupted.
+ * Returns {@link RDB_E_SQLITE_PERM} SQLite: Access permission denied.
+ * Returns {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * Returns {@link RDB_E_SQLITE_LOCKED} SQLite: A table in the database is locked.
+ * Returns {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Returns {@link RDB_E_SQLITE_READONLY} SQLite: Attempt to write a readonly database.
+ * Returns {@link RDB_E_SQLITE_IOERR} SQLite: Some kind of disk I/O error occurred.
+ * Returns {@link RDB_E_SQLITE_TOO_BIG} SQLite: TEXT or BLOB exceeds size limit.
+ * Returns {@link RDB_E_SQLITE_MISMATCH} SQLite: Data type mismatch.
+ * Returns {@link RDB_E_SQLITE_CONSTRAINT} SQLite: Abort due to constraint violation.
+ * @since 20
+ */
+int OH_RdbTrans_InsertWithConflictResolution(OH_Rdb_Transaction *trans, const char *table, const OH_VBucket *row,
+ Rdb_ConflictResolution resolution, int64_t *rowId);
+
/**
* @brief Inserts a batch of data into the target table.
*
@@ -251,6 +281,36 @@ int OH_RdbTrans_BatchInsert(OH_Rdb_Transaction *trans, const char *table, const
int OH_RdbTrans_Update(OH_Rdb_Transaction *trans, const OH_VBucket *row, const OH_Predicates *predicates,
int64_t *changes);
+/**
+ * @brief Updates data in the database based on specified conditions and support conflict resolution.
+ *
+ * @param trans Represents a pointer to an instance of OH_Rdb_Transaction.
+ * @param row Represents the row data to be updated into the table.
+ * @param predicates Represents the specified update condition by the instance object of OH_Predicates.
+ * @param resolution Represents the resolution when conflict occurs.
+ * @param changes Represents the number of successful insertions.
+ * @return Returns the status code of the execution.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_ERROR} database common error.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * Returns {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * Returns {@link RDB_E_WAL_SIZE_OVER_LIMIT} the WAL file size over default limit.
+ * Returns {@link RDB_E_SQLITE_FULL} SQLite: The database is full.
+ * Returns {@link RDB_E_SQLITE_CORRUPT} database corrupted.
+ * Returns {@link RDB_E_SQLITE_PERM} SQLite: Access permission denied.
+ * Returns {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * Returns {@link RDB_E_SQLITE_LOCKED} SQLite: A table in the database is locked.
+ * Returns {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Returns {@link RDB_E_SQLITE_READONLY} SQLite: Attempt to write a readonly database.
+ * Returns {@link RDB_E_SQLITE_IOERR} SQLite: Some kind of disk I/O error occurred.
+ * Returns {@link RDB_E_SQLITE_TOO_BIG} SQLite: TEXT or BLOB exceeds size limit.
+ * Returns {@link RDB_E_SQLITE_MISMATCH} SQLite: Data type mismatch.
+ * Returns {@link RDB_E_SQLITE_CONSTRAINT} SQLite: Abort due to constraint violation.
+ * @since 20
+ */
+int OH_RdbTrans_UpdateWithConflictResolution(OH_Rdb_Transaction *trans, const OH_VBucket *row,
+ const OH_Predicates *predicates, Rdb_ConflictResolution resolution, int64_t *changes);
+
/**
* @brief Deletes data from the database based on specified conditions
*
diff --git a/distributeddatamgr/relational_store/include/relational_store.h b/distributeddatamgr/relational_store/include/relational_store.h
index 54d2cc405782a27d4028fe17102aeb47872a0e2d..81f2c6e468d54c222b863954dfa2bb865f9bd5f8 100644
--- a/distributeddatamgr/relational_store/include/relational_store.h
+++ b/distributeddatamgr/relational_store/include/relational_store.h
@@ -45,6 +45,7 @@
#include "database/rdb/oh_values_bucket.h"
#include "database/rdb/oh_rdb_transaction.h"
#include "database/rdb/oh_rdb_types.h"
+#include "database/rdb/oh_rdb_crypto_param.h"
#ifdef __cplusplus
extern "C" {
@@ -190,19 +191,22 @@ typedef enum Rdb_DBType {
/**
* @brief Define Rdb_Tokenizer type.
*
- * @since 18
+ * @since 17
*/
typedef enum Rdb_Tokenizer {
/**
* @brief Means not using tokenizer.
+ * @since 17
*/
RDB_NONE_TOKENIZER = 1,
/**
* @brief Means using native icu tokenizer.
+ * @since 17
*/
RDB_ICU_TOKENIZER = 2,
/**
* @brief Means using self-developed enhance tokenizer.
+ * @since 18
*/
RDB_CUSTOM_TOKENIZER = 3,
} Rdb_Tokenizer;
@@ -333,6 +337,55 @@ int OH_Rdb_SetArea(OH_Rdb_ConfigV2 *config, int area);
*/
int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType);
+/**
+ * @brief Sets the customized directory relative to the database.
+ *
+ * @param config Represents a pointer to a configuration of the database related to this relation database store.
+ * @param customDir Represents the customized relative to the database directory, the value cannot exceed 128 bytes.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Rdb_SetCustomDir(OH_Rdb_ConfigV2 *config, const char *customDir);
+
+/**
+ * @brief Sets the relation database store is read-only mode.
+ *
+ * @param config Represents a pointer to a configuration of the database related to this relation database store.
+ * @param readOnly Represents whether the relation database store is read-only.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Rdb_SetReadOnly(OH_Rdb_ConfigV2 *config, bool readOnly);
+
+/**
+ * @brief Sets the dynamic libraries with capabilities such as Full-Text Search (FTS).
+ *
+ * @param config Represents a pointer to a configuration of the database related to this relation database store.
+ * @param plugins Represents the dynamic libraries.
+ * @param length the size of plugins that the maximum value is 16.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Rdb_SetPlugins(OH_Rdb_ConfigV2 *config, const char **plugins, int32_t length);
+
+/**
+ * @brief Sets the custom encryption parameters.
+ *
+ * @param config Represents a pointer to a configuration of the database related to this relation database store.
+ * @param cryptoParam Represents the custom encryption parameters.
+ * @return Returns the error code.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * @since 20
+ */
+int OH_Rdb_SetCryptoParam(OH_Rdb_ConfigV2 *config, const OH_Rdb_CryptoParam *cryptoParam);
+
/**
* @brief Set property tokenizer into config
* @param config Represents a pointer to {@link OH_Rdb_ConfigV2} instance.
@@ -341,7 +394,7 @@ int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType);
* {@link RDB_OK} - success.
* {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
* {@link RDB_E_NOT_SUPPORTED} - The error code for not support tokenizer.
- * @since 18
+ * @since 17
*/
int OH_Rdb_SetTokenizer(OH_Rdb_ConfigV2 *config, Rdb_Tokenizer tokenizer);
@@ -358,6 +411,19 @@ int OH_Rdb_SetTokenizer(OH_Rdb_ConfigV2 *config, Rdb_Tokenizer tokenizer);
*/
int OH_Rdb_SetPersistent(OH_Rdb_ConfigV2 *config, bool isPersistent);
+/**
+ * @brief Set whether the database enable the capabilities for semantic indexing processing.
+ *
+ * @param config Represents a pointer to {@link OH_Rdb_ConfigV2} instance.
+ * Indicates the configuration of the database related to this RDB store.
+ * @param enableSemanticIndex Indicates whether the database enable the capabilities for semantic indexing processing.
+ * @return Returns the status code of the execution. Successful execution returns RDB_OK,
+ * {@link RDB_OK} - success.
+ * {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
+ * @since 20
+ */
+int OH_Rdb_SetSemanticIndex(OH_Rdb_ConfigV2 *config, bool enableSemanticIndex);
+
/**
* @brief Check if a tokenizer is supported or not.
*
@@ -372,7 +438,7 @@ int OH_Rdb_IsTokenizerSupported(Rdb_Tokenizer tokenizer, bool *isSupported);
/**
* @brief Get support db type list
- * @param typeCount The output parameter, which is used to recieve the length of the support db type array.
+ * @param typeCount The output parameter, which is used to receive the length of the support db type array.
* @return Return Rdb_DBType array contains supported db type, array length is number of support type
* @since 14
*/
@@ -501,6 +567,36 @@ int OH_Rdb_DeleteStoreV2(const OH_Rdb_ConfigV2 *config);
*/
int OH_Rdb_Insert(OH_Rdb_Store *store, const char *table, OH_VBucket *valuesBucket);
+/**
+ * @brief Inserts a row of data into the target table and support conflict resolution.
+ *
+ * @param store Represents a pointer to an OH_Rdb_Store instance.
+ * @param table Represents the target table.
+ * @param row Represents the row data to be inserted into the table.
+ * @param resolution Represents the resolution when conflict occurs.
+ * @param rowId Represents the number of successful insertion.
+ * @return Returns the status code of the execution.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_ERROR} database common error.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * Returns {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * Returns {@link RDB_E_WAL_SIZE_OVER_LIMIT} the WAL file size over default limit.
+ * Returns {@link RDB_E_SQLITE_FULL} SQLite: The database is full.
+ * Returns {@link RDB_E_SQLITE_CORRUPT} database corrupted.
+ * Returns {@link RDB_E_SQLITE_PERM} SQLite: Access permission denied.
+ * Returns {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * Returns {@link RDB_E_SQLITE_LOCKED} SQLite: A table in the database is locked.
+ * Returns {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Returns {@link RDB_E_SQLITE_READONLY} SQLite: Attempt to write a readonly database.
+ * Returns {@link RDB_E_SQLITE_IOERR} SQLite: Some kind of disk I/O error occurred.
+ * Returns {@link RDB_E_SQLITE_TOO_BIG} SQLite: TEXT or BLOB exceeds size limit.
+ * Returns {@link RDB_E_SQLITE_MISMATCH} SQLite: Data type mismatch.
+ * Returns {@link RDB_E_SQLITE_CONSTRAINT} SQLite: Abort due to constraint violation.
+ * @since 20
+ */
+int OH_Rdb_InsertWithConflictResolution(OH_Rdb_Store *store, const char *table, OH_VBucket *row,
+ Rdb_ConflictResolution resolution, int64_t *rowId);
+
/**
* @brief Inserts a batch of data into the target table.
*
@@ -547,6 +643,36 @@ int OH_Rdb_BatchInsert(OH_Rdb_Store *store, const char *table,
*/
int OH_Rdb_Update(OH_Rdb_Store *store, OH_VBucket *valuesBucket, OH_Predicates *predicates);
+/**
+ * @brief Updates data in the database based on specified conditions and support conflict resolution.
+ *
+ * @param store Represents a pointer to an OH_Rdb_Store instance.
+ * @param row Represents the row data to be inserted into the table.
+ * @param predicates Represents a pointer to an link OH_Predicates instance.
+ * @param resolution Represents the resolution when conflict occurs.
+ * @param changes Represents the number of successful update.
+ * @return Returns the status code of the execution.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_ERROR} database common error.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * Returns {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * Returns {@link RDB_E_WAL_SIZE_OVER_LIMIT} the WAL file size over default limit.
+ * Returns {@link RDB_E_SQLITE_FULL} SQLite: The database is full.
+ * Returns {@link RDB_E_SQLITE_CORRUPT} database corrupted.
+ * Returns {@link RDB_E_SQLITE_PERM} SQLite: Access permission denied.
+ * Returns {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * Returns {@link RDB_E_SQLITE_LOCKED} SQLite: A table in the database is locked.
+ * Returns {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Returns {@link RDB_E_SQLITE_READONLY} SQLite: Attempt to write a readonly database.
+ * Returns {@link RDB_E_SQLITE_IOERR} SQLite: Some kind of disk I/O error occurred.
+ * Returns {@link RDB_E_SQLITE_TOO_BIG} SQLite: TEXT or BLOB exceeds size limit.
+ * Returns {@link RDB_E_SQLITE_MISMATCH} SQLite: Data type mismatch.
+ * Returns {@link RDB_E_SQLITE_CONSTRAINT} SQLite: Abort due to constraint violation.
+ * @since 20
+ */
+int OH_Rdb_UpdateWithConflictResolution(OH_Rdb_Store *store, OH_VBucket *row, OH_Predicates *predicates,
+ Rdb_ConflictResolution resolution, int64_t *changes);
+
/**
* @brief Deletes data from the database based on specified conditions.
*
@@ -628,7 +754,7 @@ int OH_Rdb_ExecuteV2(OH_Rdb_Store *store, const char *sql, const OH_Data_Values
* @return Returns the status code of the execution.
* {@link RDB_OK} - success.
* {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
- * {@link RDB_E_NOT_SUPPORTED} - The error code for not supprt.
+ * {@link RDB_E_NOT_SUPPORTED} - The error code for not support.
* @see OH_Rdb_Store.
* @since 14
*/
@@ -703,7 +829,7 @@ int OH_Rdb_Commit(OH_Rdb_Store *store);
* @return Returns the status code of the execution.
* {@link RDB_OK} - success.
* {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
- * {@link RDB_E_NOT_SUPPORTED} - The error code for not supprt.
+ * {@link RDB_E_NOT_SUPPORTED} - The error code for not support.
* @see OH_Rdb_Store.
* @since 14
*/
@@ -717,7 +843,7 @@ int OH_Rdb_BeginTransWithTrxId(OH_Rdb_Store *store, int64_t *trxId);
* @return Returns the status code of the execution.
* {@link RDB_OK} - success.
* {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
- * {@link RDB_E_NOT_SUPPORTED} - The error code for not supprt.
+ * {@link RDB_E_NOT_SUPPORTED} - The error code for not support.
* @see OH_Rdb_Store.
* @since 14
*/
@@ -731,7 +857,7 @@ int OH_Rdb_RollBackByTrxId(OH_Rdb_Store *store, int64_t trxId);
* @return Returns the status code of the execution.
* {@link RDB_OK} - success.
* {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
- * {@link RDB_E_NOT_SUPPORTED} - The error code for not supprt.
+ * {@link RDB_E_NOT_SUPPORTED} - The error code for not support.
* @see OH_Rdb_Store.
* @since 14
*/
@@ -1309,7 +1435,7 @@ int OH_Rdb_CloudSync(OH_Rdb_Store *store, Rdb_SyncMode mode, const char *tables[
* A callback will be invoked when there is a notification of the automatic synchronization progress.
*
* @param store Indicates the pointer to the target {@Link OH_Rdb_Store} instance.
- * @param observer The {@link Rdb_ProgressObserver} for the automatic synchornizaiton progress.
+ * @param observer The {@link Rdb_ProgressObserver} for the automatic synchronization progress.
* Indicates the callback invoked to return the automatic synchronization progress.
* @return Returns the status code of the execution. See {@link OH_Rdb_ErrCode}.
* {@link RDB_OK} - success.
@@ -1321,11 +1447,11 @@ int OH_Rdb_CloudSync(OH_Rdb_Store *store, Rdb_SyncMode mode, const char *tables[
int OH_Rdb_SubscribeAutoSyncProgress(OH_Rdb_Store *store, const Rdb_ProgressObserver *observer);
/**
- * @brief Unsubscribes from the automatic synchronziation progress of an RDB store.
+ * @brief Unsubscribes from the automatic synchronization progress of an RDB store.
*
* @param store Indicates the pointer to the target {@Link OH_Rdb_Store} instance.
- * @param observer Indicates the {@link Rdb_ProgressObserver} callback for the automatic synchornizaiton progress.
- * If it is a null pointer, all callbacks for the automatic synchornizaiton progress will be unregistered.
+ * @param observer Indicates the {@link Rdb_ProgressObserver} callback for the automatic synchronization progress.
+ * If it is a null pointer, all callbacks for the automatic synchronization progress will be unregistered.
* @return Returns the status code of the execution. See {@link OH_Rdb_ErrCode}.
* {@link RDB_OK} - success.
* {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
@@ -1405,6 +1531,85 @@ OH_Cursor *OH_Rdb_QueryLockedRow(
*/
int OH_Rdb_CreateTransaction(OH_Rdb_Store *store, const OH_RDB_TransOptions *options, OH_Rdb_Transaction **trans);
+/**
+ * @brief Attaches a database file to the currently linked database.
+ *
+ * @param store Represents a pointer to an OH_Rdb_Store instance.
+ * @param config Represents a pointer to an OH_Rdb_ConfigV2 configuration of the database related to this RDB store.
+ * @param attachName Represents the alias of the database.
+ * @param waitTime Represents the maximum time allowed for attaching the database, valid range is 1 to 300.
+ * @param attachedNumber Represents the number of attached databases, It is an output parameter.
+ * @return Returns the status code of the execution.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_ERROR} database common error.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * Returns {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * Returns {@link RDB_E_NOT_SUPPORTED} - The error code for not support.
+ * Returns {@link RDB_E_DATABASE_BUSY} database does not respond.
+ * Returns {@link RDB_E_SQLITE_FULL} SQLite: The database is full.
+ * Returns {@link RDB_E_SQLITE_CORRUPT} database corrupted.
+ * Returns {@link RDB_E_SQLITE_PERM} SQLite: Access permission denied.
+ * Returns {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * Returns {@link RDB_E_SQLITE_LOCKED} SQLite: A table in the database is locked.
+ * Returns {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Returns {@link RDB_E_SQLITE_READONLY} SQLite: Attempt to write a readonly database.
+ * Returns {@link RDB_E_SQLITE_IOERR} SQLite: Some kind of disk I/O error occurred.
+ * Returns {@link RDB_E_SQLITE_TOO_BIG} SQLite: TEXT or BLOB exceeds size limit.
+ * Returns {@link RDB_E_SQLITE_MISMATCH} SQLite: Data type mismatch.
+ * Returns {@link RDB_E_SQLITE_CONSTRAINT} SQLite: Abort due to constraint violation.
+ * @since 20
+ */
+int OH_Rdb_Attach(OH_Rdb_Store *store, const OH_Rdb_ConfigV2 *config, const char *attachName, int64_t waitTime,
+ size_t *attachedNumber);
+
+/**
+ * @brief Detaches a database from this database.
+ *
+ * @param store Represents a pointer to an OH_Rdb_Store instance.
+ * @param attachName Represents the alias of the database.
+ * @param waitTime Represents the maximum time allowed for detaching the database, valid range is 1 to 300.
+ * @param attachedNumber Represents the number of attached databases, It is an output parameter.
+ * @return Returns the status code of the execution.
+ * Returns {@link RDB_OK} if the execution is successful.
+ * Returns {@link RDB_E_ERROR} database common error.
+ * Returns {@link RDB_E_INVALID_ARGS} if invalid input parameter.
+ * Returns {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * Returns {@link RDB_E_NOT_SUPPORTED} - The error code for not support.
+ * Returns {@link RDB_E_DATABASE_BUSY} database does not respond.
+ * Returns {@link RDB_E_SQLITE_FULL} SQLite: The database is full.
+ * Returns {@link RDB_E_SQLITE_CORRUPT} database corrupted.
+ * Returns {@link RDB_E_SQLITE_PERM} SQLite: Access permission denied.
+ * Returns {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * Returns {@link RDB_E_SQLITE_LOCKED} SQLite: A table in the database is locked.
+ * Returns {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Returns {@link RDB_E_SQLITE_READONLY} SQLite: Attempt to write a readonly database.
+ * Returns {@link RDB_E_SQLITE_IOERR} SQLite: Some kind of disk I/O error occurred.
+ * Returns {@link RDB_E_SQLITE_TOO_BIG} SQLite: TEXT or BLOB exceeds size limit.
+ * Returns {@link RDB_E_SQLITE_MISMATCH} SQLite: Data type mismatch.
+ * Returns {@link RDB_E_SQLITE_CONSTRAINT} SQLite: Abort due to constraint violation.
+ * @see OH_Rdb_Store, OH_Rdb_ErrCode.
+ * @since 20
+ */
+int OH_Rdb_Detach(OH_Rdb_Store *store, const char *attachName, int64_t waitTime, size_t *attachedNumber);
+
+/**
+ * @brief Support for collations in different languages.
+ *
+ * @param store Represents a pointer to an {@link OH_Rdb_Store} instance.
+ * @param locale Language related to the locale, for example, zh. The value complies with the ISO 639 standard.
+ * @return Returns a specific error code.
+ * {@link RDB_OK} if the execution is successful.
+ * {@link RDB_ERR} - Indicates that the function execution exception.
+ * {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
+ * {@link RDB_E_ALREADY_CLOSED} database already closed.
+ * {@link RDB_E_SQLITE_BUSY} SQLite: The database file is locked.
+ * {@link RDB_E_SQLITE_NOMEM} SQLite: The database is out of memory.
+ * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
+ * @see OH_Rdb_Store.
+ * @since 20
+ */
+int OH_Rdb_SetLocale(OH_Rdb_Store *store, const char *locale);
+
#ifdef __cplusplus
};
#endif
diff --git a/distributeddatamgr/relational_store/include/relational_store_error_code.h b/distributeddatamgr/relational_store/include/relational_store_error_code.h
index c75b849e0a27769b2f621242b7d06217661a2cab..053fb1e1765591cdf296999228dcd38e1540c247 100644
--- a/distributeddatamgr/relational_store/include/relational_store_error_code.h
+++ b/distributeddatamgr/relational_store/include/relational_store_error_code.h
@@ -415,7 +415,7 @@ typedef enum OH_Rdb_ErrCode {
RDB_E_TYPE_MISMATCH = (E_BASE + 64),
/**
- * @brief Data value type is null.
+ * @brief SQLite: Abort due to constraint violation.
*
* @since 18
*/
diff --git a/distributeddatamgr/relational_store/libnative_rdb.ndk.json b/distributeddatamgr/relational_store/libnative_rdb.ndk.json
index 5d4110e087074620dbbcfdfba17a5a37ba4cda57..fd3614309c9740248db2ace990f2665b477968e6 100644
--- a/distributeddatamgr/relational_store/libnative_rdb.ndk.json
+++ b/distributeddatamgr/relational_store/libnative_rdb.ndk.json
@@ -44,10 +44,22 @@
"first_introduced": "14",
"name":"OH_Rdb_SetDbType"
},
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_SetSemanticIndex"
+ },
+ {
+ "first_introduced": "17",
+ "name":"OH_Rdb_SetTokenizer"
+ },
{
"first_introduced": "18",
"name":"OH_Rdb_SetPersistent"
},
+ {
+ "first_introduced": "18",
+ "name":"OH_Rdb_IsTokenizerSupported"
+ },
{
"first_introduced": "14",
"name":"OH_Rdb_GetSupportedDbType"
@@ -526,5 +538,97 @@
{
"first_introduced": "18",
"name":"OH_Cursor_GetFloatVector"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Predicates_NotLike"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Predicates_Glob"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Predicates_NotGlob"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Predicates_Having"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_CreateCryptoParam"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_DestroyCryptoParam"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Crypto_SetEncryptionKey"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Crypto_SetIteration"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Crypto_SetEncryptionAlgo"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Crypto_SetHmacAlgo"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Crypto_SetKdfAlgo"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Crypto_SetCryptoPageSize"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_RdbTrans_InsertWithConflictResolution"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_RdbTrans_UpdateWithConflictResolution"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_SetCustomDir"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_SetReadOnly"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_SetPlugins"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_SetCryptoParam"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_InsertWithConflictResolution"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_UpdateWithConflictResolution"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_Attach"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_Detach"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Rdb_SetLocale"
}
]
\ No newline at end of file
diff --git a/distributeddatamgr/udmf/BUILD.gn b/distributeddatamgr/udmf/BUILD.gn
index 9dc8f7a62f4e2104f99c6c9302dc0e4f7b010eed..ac3a410b84c369f4920ea8f25d84032a80537b60 100644
--- a/distributeddatamgr/udmf/BUILD.gn
+++ b/distributeddatamgr/udmf/BUILD.gn
@@ -33,10 +33,10 @@ ohos_ndk_library("libudmf") {
ndk_description_file = "./libudmf.ndk.json"
min_compact_version = "12"
system_capability_headers = [
- "$ndk_headers_out_dir/database/udmf/udmf_err_code.h",
- "$ndk_headers_out_dir/database/udmf/udmf_meta.h",
- "$ndk_headers_out_dir/database/udmf/udmf.h",
- "$ndk_headers_out_dir/database/udmf/uds.h",
- "$ndk_headers_out_dir/database/udmf/utd.h",
+ "database/udmf/udmf_err_code.h",
+ "database/udmf/udmf_meta.h",
+ "database/udmf/udmf.h",
+ "database/udmf/uds.h",
+ "database/udmf/utd.h",
]
}
diff --git a/distributeddatamgr/udmf/include/udmf.h b/distributeddatamgr/udmf/include/udmf.h
index 171f4ca522990fdfcdb21141f08f5a4995e8bbcd..73d2508f40a7f0c8500fbcd8f91c294b78c9fff1 100644
--- a/distributeddatamgr/udmf/include/udmf.h
+++ b/distributeddatamgr/udmf/include/udmf.h
@@ -68,6 +68,30 @@ typedef enum Udmf_Intention {
* @brief The intention is pasteboard.
*/
UDMF_INTENTION_PASTEBOARD,
+ /**
+ * @brief The intention is data hub.
+ *
+ * @since 20
+ */
+ UDMF_INTENTION_DATA_HUB,
+ /**
+ * @brief The intention is system share.
+ *
+ * @since 20
+ */
+ UDMF_INTENTION_SYSTEM_SHARE,
+ /**
+ * @brief The intention is picker.
+ *
+ * @since 20
+ */
+ UDMF_INTENTION_PICKER,
+ /**
+ * @brief The intention is menu.
+ *
+ * @since 20
+ */
+ UDMF_INTENTION_MENU,
} Udmf_Intention;
/**
@@ -122,6 +146,23 @@ typedef enum Udmf_ProgressIndicator {
UDMF_DEFAULT = 1
} Udmf_ProgressIndicator;
+/**
+ * @brief Describe the visibility range of data
+ *
+ * @since 20
+ */
+typedef enum Udmf_Visibility {
+ /**
+ * @brief The visibility level that specifies that any hap or native can be obtained.
+ */
+ UDMF_ALL,
+
+ /**
+ * @brief The visibility level that specifies that only data providers can be obtained.
+ */
+ UDMF_OWN_PROCESS
+} Udmf_Visibility;
+
/**
* @brief Describes the unified data type.
*
@@ -173,6 +214,36 @@ typedef struct OH_UdmfGetDataParams OH_UdmfGetDataParams;
*/
typedef void (*OH_Udmf_DataProgressListener)(OH_Udmf_ProgressInfo* progressInfo, OH_UdmfData* data);
+/**
+ * @brief Describes the optional arguments of data operation
+ *
+ * @since 20
+ */
+typedef struct OH_UdmfOptions OH_UdmfOptions;
+
+/**
+ * @brief Indicates data loading params.
+ *
+ * @since 20
+ */
+typedef struct OH_UdmfDataLoadParams OH_UdmfDataLoadParams;
+
+/**
+ * @brief Indicates data loading information.
+ *
+ * @since 20
+ */
+typedef struct OH_UdmfDataLoadInfo OH_UdmfDataLoadInfo;
+
+/**
+ * @brief Indicates the callback function for loading data.
+ *
+ * @param acceptableInfo Indicates the type and number of data that can be accepted by the receiver.
+ * @return Returns the data to be loaded.
+ * @since 20
+ */
+typedef OH_UdmfData* (*OH_Udmf_DataLoadHandler)(OH_UdmfDataLoadInfo* acceptableInfo);
+
/**
* @brief Creation a pointer to the instance of the {@link OH_UdmfData}.
*
@@ -779,6 +850,107 @@ int OH_UdmfProperty_SetExtrasIntParam(OH_UdmfProperty* pThis, const char* key, i
int OH_UdmfProperty_SetExtrasStringParam(OH_UdmfProperty* pThis,
const char* key, const char* param);
+/**
+ * @brief Creation a pointer to the instance of the {@link OH_UdmfOptions}.
+ *
+ * @return If the operation is successful, a pointer to the instance of the {@link OH_UdmfOptions}
+ * structure is returned. If the operation is failed, nullptr is returned.
+ * @see OH_UdmfOptions.
+ * @since 20
+ */
+OH_UdmfOptions* OH_UdmfOptions_Create();
+
+/**
+ * @brief Destroy the heap memory pointed to by the pointer of {@link OH_UdmfOptions}.
+ * Note that this function cannot be called repeatedly for the same pointer.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @see OH_UdmfOptions.
+ * @since 20
+ */
+void OH_UdmfOptions_Destroy(OH_UdmfOptions* pThis);
+
+/**
+ * @brief Get key from the {@link OH_UdmfOptions}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @return Returns a pointer of the value string when input args normally, otherwise return nullptr.
+ * @see OH_UdmfOptions
+ * @since 20
+ */
+const char* OH_UdmfOptions_GetKey(OH_UdmfOptions* pThis);
+
+/**
+ * @brief Set the key to the {@link OH_UdmfOptions}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param key Represents a new string value of the key.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * @see OH_UdmfOptions Udmf_ErrCode
+ * @since 20
+ */
+int OH_UdmfOptions_SetKey(OH_UdmfOptions* pThis, const char* key);
+
+/**
+ * @brief Get intention from the {@link OH_UdmfOptions}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @return Returns {@link Udmf_Intention} value.
+ * @see OH_UdmfOptions Udmf_Intention
+ * @since 20
+ */
+Udmf_Intention OH_UdmfOptions_GetIntention(OH_UdmfOptions* pThis);
+
+/**
+ * @brief Set intention value to {@link OH_UdmfOptions}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param intention Represents new {@link Udmf_Intention} param.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * @see OH_UdmfOptions Udmf_Intention Udmf_ErrCode.
+ * @since 20
+ */
+int OH_UdmfOptions_SetIntention(OH_UdmfOptions* pThis, Udmf_Intention intention);
+
+/**
+ * @brief Reset {@link OH_UdmfOptions} to default.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * @see OH_UdmfOptions Udmf_ErrCode.
+ * @since 20
+ */
+int OH_UdmfOptions_Reset(OH_UdmfOptions* pThis);
+
+/**
+ * @brief Get visibility from the {@link OH_UdmfOptions}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @return Returns {@link Udmf_Visibility} value.
+ * @see OH_UdmfOptions Udmf_Visibility
+ * @since 20
+ */
+Udmf_Visibility OH_UdmfOptions_GetVisibility(OH_UdmfOptions* pThis);
+
+/**
+ * @brief Set visibility value to {@link OH_UdmfOptions}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param visibility Represents new {@link Udmf_Visibility} param.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * @see OH_UdmfOptions Udmf_Visibility Udmf_ErrCode.
+ * @since 20
+ */
+int OH_UdmfOptions_SetVisibility(OH_UdmfOptions* pThis, Udmf_Visibility visibility);
+
/**
* @brief Get {@link OH_UdmfData} data from udmf database.
*
@@ -794,6 +966,22 @@ int OH_UdmfProperty_SetExtrasStringParam(OH_UdmfProperty* pThis,
*/
int OH_Udmf_GetUnifiedData(const char* key, Udmf_Intention intention, OH_UdmfData* unifiedData);
+/**
+ * @brief Get {@link OH_UdmfData} data array from udmf database by intention.
+ *
+ * @param options Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param dataArray Represents output params of {@link OH_UdmfData}.
+ * This pointer needs to be released using the {@link OH_Udmf_DestroyDataArray} function.
+ * @param dataSize Represents the data count of output params.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * {@link UDMF_ERR} Internal data error.
+ * @see OH_UdmfData Udmf_Intention Udmf_ErrCode.
+ * @since 20
+ */
+int OH_Udmf_GetUnifiedDataByOptions(OH_UdmfOptions* options, OH_UdmfData** dataArray, unsigned int* dataSize);
+
/**
* @brief Set {@link OH_UdmfData} data to database.
*
@@ -812,6 +1000,63 @@ int OH_Udmf_GetUnifiedData(const char* key, Udmf_Intention intention, OH_UdmfDat
int OH_Udmf_SetUnifiedData(Udmf_Intention intention, OH_UdmfData* unifiedData,
char* key, unsigned int keyLen);
+/**
+ * @brief Set {@link OH_UdmfData} data to database with options.
+ *
+ * @param options Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param unifiedData Represents a pointer to an instance of {@link OH_UdmfData}.
+ * @param key Represents return value after set data to database successfully,
+ * it's memory size not less than {@link UDMF_KEY_BUFFER_LEN}.
+ * @param keyLen Represents size of key param.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * {@link UDMF_ERR} Internal data error.
+ * @see OH_UdmfOptions OH_UdmfData Udmf_ErrCode.
+ * @since 20
+ */
+int OH_Udmf_SetUnifiedDataByOptions(OH_UdmfOptions* options, OH_UdmfData *unifiedData, char *key, unsigned int keyLen);
+
+/**
+ * @brief Update {@link OH_UdmfData} data to database with options.
+ *
+ * @param options Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param unifiedData Represents a pointer to an instance of {@link OH_UdmfData}.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * {@link UDMF_ERR} Internal data error.
+ * @see OH_UdmfOptions OH_UdmfData Udmf_ErrCode.
+ * @since 20
+ */
+int OH_Udmf_UpdateUnifiedData(OH_UdmfOptions* options, OH_UdmfData* unifiedData);
+
+/**
+ * @brief Delete {@link OH_UdmfData} data of database with options.
+ *
+ * @param options Represents a pointer to an instance of {@link OH_UdmfOptions}.
+ * @param dataArray Represents output params of {@link OH_UdmfData}.
+ * This pointer needs to be released using the {@link OH_Udmf_DestroyDataArray} function.
+ * @param dataSize Represents the data count of output params.
+ * @return Returns the status code of the execution. See {@link Udmf_ErrCode}.
+ * {@link UDMF_E_OK} success.
+ * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args.
+ * {@link UDMF_ERR} Internal data error.
+ * @see OH_UdmfData Udmf_Intention Udmf_ErrCode.
+ * @since 20
+ */
+int OH_Udmf_DeleteUnifiedData(OH_UdmfOptions* options, OH_UdmfData** dataArray, unsigned int* dataSize);
+
+/**
+ * @brief Destroy data array memory.
+ *
+ * @param dataArray Represents a point to {@link OH_UdmfData}.
+ * @param dataSize Represents data size in list.
+ * @see OH_UdmfData
+ * @since 20
+ */
+void OH_Udmf_DestroyDataArray(OH_UdmfData** dataArray, unsigned int dataSize);
+
/**
* @brief Gets the progress from the {@OH_Udmf_ProgressInfo}.
*
@@ -893,6 +1138,116 @@ void OH_UdmfGetDataParams_SetProgressIndicator(OH_UdmfGetDataParams* params,
void OH_UdmfGetDataParams_SetDataProgressListener(OH_UdmfGetDataParams* params,
const OH_Udmf_DataProgressListener dataProgressListener);
+/**
+ * @brief Sets the acceptable info to the {@OH_UdmfGetDataParams}.
+ *
+ * @param params Represents a pointer to an instance of {@link OH_UdmfGetDataParams}.
+ * @param acceptableInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @see OH_UdmfGetDataParams OH_UdmfDataLoadInfo
+ * @since 20
+ */
+void OH_UdmfGetDataParams_SetAcceptableInfo(OH_UdmfGetDataParams* params, OH_UdmfDataLoadInfo* acceptableInfo);
+
+/**
+ * @brief Creation a pointer to the instance of the {@link OH_UdmfDataLoadParams}.
+ *
+ * @return If the operation is successful, a pointer to the instance of the {@link OH_UdmfDataLoadParams}
+ * structure is returned. If the operation is failed, nullptr is returned.
+ * @see OH_UdmfDataLoadParams
+ * @since 20
+ */
+OH_UdmfDataLoadParams* OH_UdmfDataLoadParams_Create();
+
+/**
+ * @brief Destroy a pointer that points to an instance of {@link OH_UdmfDataLoadParams}.
+ *
+ * @param pThis Represents a pointer to an instance of {@link OH_UdmfDataLoadParams}.
+ * @see OH_UdmfDataLoadParams
+ * @since 20
+ */
+void OH_UdmfDataLoadParams_Destroy(OH_UdmfDataLoadParams* pThis);
+
+/**
+ * @brief Sets the data load handler to the {@OH_UdmfDataLoadParams}.
+ *
+ * @param params Represents a pointer to an instance of {@link OH_UdmfDataLoadParams}.
+ * @param dataLoadHandler Represents to the data load handler.
+ * @see OH_UdmfDataLoadParams OH_Udmf_DataLoadHandler
+ * @since 20
+ */
+void OH_UdmfDataLoadParams_SetLoadHandler(OH_UdmfDataLoadParams* params, const OH_Udmf_DataLoadHandler dataLoadHandler);
+
+/**
+ * @brief Sets the data load info to the {@OH_UdmfDataLoadParams}.
+ *
+ * @param params Represents a pointer to an instance of {@link OH_UdmfDataLoadParams}.
+ * @param dataLoadInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @see OH_UdmfDataLoadParams OH_UdmfDataLoadInfo
+ * @since 20
+ */
+void OH_UdmfDataLoadParams_SetDataLoadInfo(OH_UdmfDataLoadParams* params, OH_UdmfDataLoadInfo* dataLoadInfo);
+
+/**
+ * @brief Creation a pointer to the instance of the {@link OH_UdmfDataLoadInfo}.
+ *
+ * @return If the operation is successful, a pointer to the instance of the {@link OH_UdmfDataLoadInfo}
+ * structure is returned. If the operation is failed, nullptr is returned.
+ * @see OH_UdmfDataLoadInfo
+ * @since 20
+ */
+OH_UdmfDataLoadInfo* OH_UdmfDataLoadInfo_Create();
+
+/**
+ * @brief Destroy the heap memory pointed to by the pointer of {@link OH_UdmfDataLoadInfo}.
+ * Note that this function cannot be called repeatedly for the same pointer.
+ *
+ * @param dataLoadInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @see OH_UdmfDataLoadInfo
+ * @since 20
+ */
+void OH_UdmfDataLoadInfo_Destroy(OH_UdmfDataLoadInfo* dataLoadInfo);
+
+/**
+ * @brief Gets the types from the {@OH_UdmfDataLoadInfo}.
+ *
+ * @param dataLoadInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @param count the types count of data.
+ * @return Returns the types of data.
+ * @see OH_UdmfDataLoadInfo
+ * @since 20
+ */
+char** OH_UdmfDataLoadInfo_GetTypes(OH_UdmfDataLoadInfo* dataLoadInfo, unsigned int* count);
+
+/**
+ * @brief Sets the data load info to the {@OH_UdmfDataLoadInfo}.
+ *
+ * @param dataLoadInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @param type Represents the type of data.
+ * @see OH_UdmfDataLoadInfo
+ * @since 20
+ */
+void OH_UdmfDataLoadInfo_SetType(OH_UdmfDataLoadInfo* dataLoadInfo, const char* type);
+
+/**
+ * @brief Gets the record count from the {@OH_UdmfDataLoadInfo}.
+ *
+ * @param dataLoadInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @return Returns the record count.
+ * @see OH_UdmfDataLoadInfo
+ * @since 20
+ */
+int OH_UdmfDataLoadInfo_GetRecordCount(OH_UdmfDataLoadInfo* dataLoadInfo);
+
+/**
+ * @brief Sets the record count to the {@OH_UdmfDataLoadInfo}.
+ *
+ * @param dataLoadInfo Represents a pointer to an instance of {@link OH_UdmfDataLoadInfo}.
+ * @param recordCount Represents the types of data.
+ * @see OH_UdmfDataLoadInfo
+ * @since 20
+ */
+void OH_UdmfDataLoadInfo_SetRecordCount(OH_UdmfDataLoadInfo* dataLoadInfo, unsigned int recordCount);
+
#ifdef __cplusplus
};
#endif
diff --git a/distributeddatamgr/udmf/libudmf.ndk.json b/distributeddatamgr/udmf/libudmf.ndk.json
index 561cd69ebabd1c6e3bfd87ab08ad2fd450a0b8b2..7b8eed1feb372bfd02a72cbe31e8f13f958b02d8 100644
--- a/distributeddatamgr/udmf/libudmf.ndk.json
+++ b/distributeddatamgr/udmf/libudmf.ndk.json
@@ -558,5 +558,105 @@
{
"first_introduced": "15",
"name": "OH_UdmfGetDataParams_SetDataProgressListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_GetKey"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_SetKey"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_GetIntention"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_SetIntention"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_Reset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Udmf_GetUnifiedDataByOptions"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Udmf_SetUnifiedDataByOptions"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Udmf_UpdateUnifiedData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Udmf_DeleteUnifiedData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Udmf_DestroyDataArray"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfGetDataParams_SetAcceptableInfo"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadParams_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadParams_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadParams_SetLoadHandler"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadParams_SetDataLoadInfo"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadInfo_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadInfo_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadInfo_GetTypes"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadInfo_SetType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadInfo_GetRecordCount"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfDataLoadInfo_SetRecordCount"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_GetVisibility"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_UdmfOptions_SetVisibility"
}
]
\ No newline at end of file
diff --git a/distributedhardware/device_manager/BUILD.gn b/distributedhardware/device_manager/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c0542514be977f58f1ab0591b90a2e63d45b62a7
--- /dev/null
+++ b/distributedhardware/device_manager/BUILD.gn
@@ -0,0 +1,36 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+import("//build/ohos/ndk/ndk.gni")
+import("//foundation/distributedhardware/device_manager/device_manager.gni")
+
+ohos_ndk_headers("devicemanager_ndk_header") {
+ dest_dir = "$ndk_headers_out_dir/distributedhardware/device_manager/"
+ sources = [
+ "./include/oh_device_manager.h",
+ "./include/oh_device_manager_err_code.h",
+ ]
+}
+
+ohos_ndk_library("libdevicemanager_ndk") {
+ output_name = "devicemanager_ndk"
+ output_extension = "so"
+ system_capability = "SystemCapability.DistributedHardware.DeviceManager"
+ ndk_description_file = "./libdevicemanager.ndk.json"
+ min_compact_version = "20"
+ system_capability_headers = [
+ "$ndk_headers_out_dir/distributedhardware/device_manager/oh_device_manager.h",
+ "$ndk_headers_out_dir/distributedhardware/device_manager/oh_device_manager_err_code.h",
+ ]
+}
diff --git a/distributedhardware/device_manager/include/oh_device_manager.h b/distributedhardware/device_manager/include/oh_device_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..096615960c2e0ce979111b1cab8cb37f98fc13b7
--- /dev/null
+++ b/distributedhardware/device_manager/include/oh_device_manager.h
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup DeviceManager
+ * @{
+ *
+ * @brief Distributed device management module,
+ * which provides APIs to obtain information about trusted devices and local devices.
+ *
+ * @since 20
+ */
+
+/**
+ * @file oh_device_manager.h
+ *
+ * @brief Provides APIs to obtain information about trusted devices and local devices.
+ * File to include:
+ *
+ * @kit DistributedServiceKit
+ * @library libdevicemanager_ndk.so
+ * @syscap SystemCapability.DistributedHardware.DeviceManager
+ *
+ * @since 20
+ */
+
+#ifndef OH_DEVICE_MANAGER_H
+#define OH_DEVICE_MANAGER_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Obtains the display name of the local device.
+ * The device display name involves user privacy.
+ * You need to provide a privacy statement to declare the purpose of the device display name.
+ *
+ * @permission ohos.permission.READ_LOCAL_DEVICE_NAME
+ * @param localDeviceName Pointer to the display name of the local device.
+ * After using this API, you need to manually release resources to free up space.
+ * If the application has the ohos.permission.READ_LOCAL_DEVICE_NAME permission, the device display name is returned.
+ * Otherwise, the default device name is returned.
+ * @param len Length of the display name of the local device.
+ * @return Error code. For details about the error code definitions, see {@link DeviceManager_ErrorCode}.
+ * Returns {@link ERR_OK} is returned if the execution is successful.
+ * Returns {@link DM_ERR_FAILED} is returned if the function fails to be executed.
+ * Returns {@link DM_ERR_OBTAIN_SERVICE} is returned if the device management service fails to be obtained.
+ * Returns {@link DM_ERR_OBTAIN_BUNDLE_NAME} is returned if the bundle name fails to be obtained.
+ * @since 20
+ */
+int32_t OH_DeviceManager_GetLocalDeviceName(char **localDeviceName, unsigned int &len);
+
+#ifdef __cplusplus
+};
+#endif
+
+/** @} */
+#endif
\ No newline at end of file
diff --git a/distributedhardware/device_manager/include/oh_device_manager_err_code.h b/distributedhardware/device_manager/include/oh_device_manager_err_code.h
new file mode 100644
index 0000000000000000000000000000000000000000..227f0950a06d5243a674c4111fc7816702be9855
--- /dev/null
+++ b/distributedhardware/device_manager/include/oh_device_manager_err_code.h
@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup DeviceManager
+ * @{
+ *
+ * @brief Distributed device management module,
+ * which provides APIs to obtain information about trusted devices and local devices.
+ *
+ * @since 20
+ */
+
+/**
+ * @file oh_device_manager_err_code.h
+ *
+ * @brief Declares the error codes of the distributed device management module.
+ * File to include:
+ *
+ * @kit DistributedServiceKit
+ * @library libdevicemanager_ndk.so
+ * @syscap SystemCapability.DistributedHardware.DeviceManager
+ *
+ * @since 20
+ */
+
+
+#ifndef OH_DEVICE_MANAGER_ERR_CODE_H
+#define OH_DEVICE_MANAGER_ERR_CODE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Error code information of distributed device management module.
+ *
+ * @since 20
+ */
+typedef enum DeviceManager_ErrorCode {
+ /**
+ * @error Operation success.
+ */
+ ERR_OK = 0,
+ /**
+ * @error Permission verification failed.
+ */
+ ERR_PERMISSION_ERROR = 201,
+ /**
+ * @error Invalid parameter.
+ */
+ ERR_INVALID_PARAMETER = 401,
+ /**
+ * @error Function execution failed.
+ */
+ DM_ERR_FAILED = 11600101,
+ /**
+ * @error Failed to obtain the device management service.
+ */
+ DM_ERR_OBTAIN_SERVICE = 11600102,
+ /**
+ * @error Failed to obtain the bundle name.
+ */
+ DM_ERR_OBTAIN_BUNDLE_NAME = 11600109,
+} DeviceManager_ErrorCode;
+#ifdef __cplusplus
+};
+#endif
+
+/** @} */
+#endif
diff --git a/distributedhardware/device_manager/libdevicemanager.ndk.json b/distributedhardware/device_manager/libdevicemanager.ndk.json
new file mode 100644
index 0000000000000000000000000000000000000000..b77563c5d26566a8174ff8705da68c4b50eb1e0a
--- /dev/null
+++ b/distributedhardware/device_manager/libdevicemanager.ndk.json
@@ -0,0 +1,6 @@
+[
+ {
+ "first_introduced": "20",
+ "name": "OH_DeviceManager_GetLocalDeviceName"
+ }
+]
\ No newline at end of file
diff --git a/drivers/external_device_manager/base/BUILD.gn b/drivers/external_device_manager/base/BUILD.gn
index f02cd754213f9bf4596aae695cee3ec6b911b714..8e455ad58467b03cbc130d32df74b5a5980406c7 100644
--- a/drivers/external_device_manager/base/BUILD.gn
+++ b/drivers/external_device_manager/base/BUILD.gn
@@ -27,7 +27,7 @@ ohos_ndk_library("libddk_base") {
output_name = "ddk_base"
system_capability = "SystemCapability.Driver.DDK.Extension"
system_capability_headers = [
- "base/ddk_api.h",
- "base/ddk_types.h",
+ "ddk/ddk_api.h",
+ "ddk/ddk_types.h",
]
}
diff --git a/drivers/external_device_manager/hid/hid_ddk_api.h b/drivers/external_device_manager/hid/hid_ddk_api.h
index 8ceafb01a6a2cd1f14505c637ec4039b8296fa61..ddbf2478ecf3ce6afaad802c26b64cffad866025 100644
--- a/drivers/external_device_manager/hid/hid_ddk_api.h
+++ b/drivers/external_device_manager/hid/hid_ddk_api.h
@@ -97,6 +97,7 @@ int32_t OH_Hid_EmitEvent(int32_t deviceId, const Hid_EmitItem items[], uint16_t
* @return {@link HID_DDK_SUCCESS} operation successful.
* {@link HID_DDK_NO_PERM} permission check failed.
* {@link HID_DDK_INVALID_OPERATION} connect hid ddk service failed or the caller is not the creator of device.
+ * {@link HID_DDK_NULL_PTR} the device does not exist.
* @since 11
* @version 1.0
*/
diff --git a/drivers/external_device_manager/scsi_peripheral/BUILD.gn b/drivers/external_device_manager/scsi_peripheral/BUILD.gn
index a475453507472d9559a3a0e2182b93e43fd0f193..8165df363ee164b12f05d25c409b24f2e8910940 100644
--- a/drivers/external_device_manager/scsi_peripheral/BUILD.gn
+++ b/drivers/external_device_manager/scsi_peripheral/BUILD.gn
@@ -23,7 +23,7 @@ ohos_ndk_headers("scsi_header") {
ohos_ndk_library("libscsi") {
ndk_description_file = "./libscsi.ndk.json"
- min_compact_version = "16"
+ min_compact_version = "18"
output_name = "scsi"
system_capability = "SystemCapability.Driver.SCSI.Extension"
system_capability_headers = [
diff --git a/drivers/external_device_manager/scsi_peripheral/scsi_peripheral_api.h b/drivers/external_device_manager/scsi_peripheral/scsi_peripheral_api.h
index f262f21df341f963e65da3b97380e6ccb5459272..ccfc694b4c21d4278fff8df03a3a8e9768a5827f 100644
--- a/drivers/external_device_manager/scsi_peripheral/scsi_peripheral_api.h
+++ b/drivers/external_device_manager/scsi_peripheral/scsi_peripheral_api.h
@@ -83,6 +83,7 @@ int32_t OH_ScsiPeripheral_Release(void);
* {@link SCSIPERIPHERAL_DDK_IO_ERROR} i/o operation error.
* {@link SCSIPERIPHERAL_DDK_DEVICE_NOT_FOUND} device not found by deviceId.
* {@link SCSIPERIPHERAL_DDK_INVALID_OPERATION} this operation is not supported.
+ * {@link SCSIPERIPHERAL_DDK_TIMEOUT} transmission timeout.
* @since 18
*/
int32_t OH_ScsiPeripheral_Open(uint64_t deviceId, uint8_t interfaceIndex, ScsiPeripheral_Device **dev);
diff --git a/drivers/external_device_manager/usb/BUILD.gn b/drivers/external_device_manager/usb/BUILD.gn
index 1729e897005913abbd141b0e619bcf88a366a735..d20a1208686e760879e9cebf52dbdb71e32d0c94 100644
--- a/drivers/external_device_manager/usb/BUILD.gn
+++ b/drivers/external_device_manager/usb/BUILD.gn
@@ -30,6 +30,5 @@ ohos_ndk_library("libusb_ndk") {
system_capability_headers = [
"usb/usb_ddk_api.h",
"usb/usb_ddk_types.h",
- "base/ddk_types.h",
]
}
diff --git a/drivers/external_device_manager/usb/usb_ddk_api.h b/drivers/external_device_manager/usb/usb_ddk_api.h
index d13ed1319b0bb48194ef62ca01700a3ae8284463..2112f7eaf1217f2e5281f96a4c0f700c748f5246 100644
--- a/drivers/external_device_manager/usb/usb_ddk_api.h
+++ b/drivers/external_device_manager/usb/usb_ddk_api.h
@@ -20,7 +20,6 @@
* @brief Provides USB DDK APIs to open and close USB interfaces, perform non-isochronous and isochronous\n
* data transfer over USB pipes, and implement control transfer and interrupt transfer, etc.
*
- * @kit DriverDevelopmentKit
* @syscap SystemCapability.Driver.USB.Extension
* @since 10
* @version 1.0
@@ -55,7 +54,9 @@ extern "C" {
*
* @permission ohos.permission.ACCESS_DDK_USB
* @return {@link USB_DDK_SUCCESS} the operation is successful.
- * {@link USB_DDK_FAILED} permission check failed or connect usb ddk service failed or internal error failed.
+ * {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed or internal error.
+ * {@link USB_DDK_NO_PERM} permission check failed.
+ * {@link USB_DDK_MEMORY_ERROR} memory allocation failed.
* @since 10
* @version 1.0
*/
@@ -76,6 +77,7 @@ void OH_Usb_Release(void);
* @permission ohos.permission.ACCESS_DDK_USB
* @return {@link USB_DDK_SUCCESS} the operation is successful.
* {@link USB_DDK_NO_PERM} permission check failed.
+ * {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
* @since 18
* @version 1.0
*/
@@ -109,6 +111,8 @@ int32_t OH_Usb_GetDeviceDescriptor(uint64_t deviceId, struct UsbDeviceDescriptor
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
* {@link USB_DDK_INVALID_PARAMETER} config is null.
+ * {@link USB_DDK_IO_FAILED} data IO exception.
+ * {@link USB_DDK_MEMORY_ERROR} memory allocation failed.
* @since 10
* @version 1.0
*/
@@ -138,6 +142,7 @@ void OH_Usb_FreeConfigDescriptor(struct UsbDdkConfigDescriptor * const config);
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
* {@link USB_DDK_INVALID_PARAMETER} interfaceHandle is null.
+ * {@link USB_DDK_MEMORY_ERROR} memory exceeds limit.
* @since 10
* @version 1.0
*/
@@ -151,6 +156,7 @@ int32_t OH_Usb_ClaimInterface(uint64_t deviceId, uint8_t interfaceIndex, uint64_
* @return {@link USB_DDK_SUCCESS} the operation is successful.
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
+ * {@link USB_DDK_INVALID_PARAMETER} parameter error.
* @since 10
* @version 1.0
*/
@@ -166,6 +172,7 @@ int32_t OH_Usb_ReleaseInterface(uint64_t interfaceHandle);
* @return {@link USB_DDK_SUCCESS} the operation is successful.
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
+ * {@link USB_DDK_INVALID_PARAMETER} parameter error.
* @since 10
* @version 1.0
*/
@@ -202,6 +209,8 @@ int32_t OH_Usb_GetCurrentInterfaceSetting(uint64_t interfaceHandle, uint8_t *set
* {@link USB_DDK_INVALID_PARAMETER} setup is null or data is null or dataLen is null or dataLen is less than\n
* size of the read data.
* {@link USB_DDK_MEMORY_ERROR} the memory of read data copies failed.
+ * {@link USB_DDK_IO_FAILED} data IO exception.
+ * {@link USB_DDK_TIMEOUT} interface timeout.
* @since 10
* @version 1.0
*/
@@ -221,6 +230,9 @@ int32_t OH_Usb_SendControlReadRequest(uint64_t interfaceHandle, const struct Usb
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
* {@link USB_DDK_INVALID_PARAMETER} setup is null or data is null.
+ * {@link USB_DDK_MEMORY_ERROR} the memory of read data copies failed.
+ * {@link USB_DDK_IO_FAILED} data IO exception.
+ * {@link USB_DDK_TIMEOUT} interface timeout.
* @since 10
* @version 1.0
*/
@@ -238,6 +250,9 @@ int32_t OH_Usb_SendControlWriteRequest(uint64_t interfaceHandle, const struct Us
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
* {@link USB_DDK_INVALID_PARAMETER} pipe is null or devMmap is null or address of devMmap is null.
+ * {@link USB_DDK_MEMORY_ERROR} the memory of read data copies failed.
+ * {@link USB_DDK_IO_FAILED} data IO exception.
+ * {@link USB_DDK_TIMEOUT} interface timeout.
* @since 10
* @version 1.0
*/
@@ -254,6 +269,9 @@ int32_t OH_Usb_SendPipeRequest(const struct UsbRequestPipe *pipe, UsbDeviceMemMa
* {@link USB_DDK_NO_PERM} permission check failed.
* {@link USB_DDK_INVALID_OPERATION} connect usb ddk service failed.
* {@link USB_DDK_INVALID_PARAMETER} pipe is null or ashmem is null or address of ashmem is null.
+ * {@link USB_DDK_MEMORY_ERROR} the memory of read data copies failed.
+ * {@link USB_DDK_IO_FAILED} data IO exception.
+ * {@link USB_DDK_TIMEOUT} interface timeout.
* @since 12
*/
int32_t OH_Usb_SendPipeRequestWithAshmem(const struct UsbRequestPipe *pipe, DDK_Ashmem *ashmem);
diff --git a/drivers/external_device_manager/usb/usb_ddk_types.h b/drivers/external_device_manager/usb/usb_ddk_types.h
index 96ac845a1d6f8d212ce9cfafce7571a6566ef44b..57db83ecf063ca896229ddb1948667abb6009ecc 100644
--- a/drivers/external_device_manager/usb/usb_ddk_types.h
+++ b/drivers/external_device_manager/usb/usb_ddk_types.h
@@ -20,7 +20,6 @@
* @brief Provides USB DDK types and declares the macros, enumerated variables, and\n
* data structures required by the USB DDK APIs.
*
- * @kit DriverDevelopmentKit
* @syscap SystemCapability.Driver.USB.Extension
* @since 10
* @version 1.0
diff --git a/drivers/external_device_manager/usb_serial/BUILD.gn b/drivers/external_device_manager/usb_serial/BUILD.gn
index 0e47d0d1b99d3728d0b00e8c1ba9003c045547e3..dda999ca9f950c6d4763ea59484907f4e5536e6f 100644
--- a/drivers/external_device_manager/usb_serial/BUILD.gn
+++ b/drivers/external_device_manager/usb_serial/BUILD.gn
@@ -23,7 +23,7 @@ ohos_ndk_headers("usb_serial_header") {
ohos_ndk_library("libusb_serial") {
ndk_description_file = "./libusb_serial.ndk.json"
- min_compact_version = "16"
+ min_compact_version = "18"
output_name = "usb_serial_ndk"
system_capability = "SystemCapability.Driver.UsbSerial.Extension"
system_capability_headers = [
diff --git a/drivers/external_device_manager/usb_serial/usb_serial_api.h b/drivers/external_device_manager/usb_serial/usb_serial_api.h
index 46eb5542721f5136a5a6ea893b80723db9ae806d..850595951732b8061af66cc820df24986e4654a6 100644
--- a/drivers/external_device_manager/usb_serial/usb_serial_api.h
+++ b/drivers/external_device_manager/usb_serial/usb_serial_api.h
@@ -138,7 +138,6 @@ int32_t OH_UsbSerial_Read(UsbSerial_Device *dev, uint8_t *buff, uint32_t bufferS
* 2.buff is null; 3.bufferSize is zero; 4. bytesWritten is null.
* {@link USB_SERIAL_DDK_INIT_ERROR} the ddk not init.
* {@link USB_SERIAL_DDK_SERVICE_ERROR} communication with the ddk service failed.
- * {@link USB_SERIAL_DDK_MEMORY_ERROR} the buff is outside accessible address space error.
* {@link USB_SERIAL_DDK_IO_ERROR} the ddk I/O error.
* {@link USB_SERIAL_DDK_INVALID_OPERATION} invalid operation.
* @since 18
diff --git a/filemanagement/fileio/BUILD.gn b/filemanagement/fileio/BUILD.gn
index 30b5edb71b74936d8093e342004e103f7f9150c5..3d7e7d10880d10b7276ec4bba60a6f53c1621135 100644
--- a/filemanagement/fileio/BUILD.gn
+++ b/filemanagement/fileio/BUILD.gn
@@ -20,7 +20,10 @@ ohos_ndk_library("libohfileio") {
output_name = "ohfileio"
output_extension = "so"
system_capability = "SystemCapability.FileManagement.File.FileIO"
- system_capability_headers = [ "filemanagement/fileio/oh_fileio.h" ]
+ system_capability_headers = [
+ "filemanagement/fileio/oh_fileio.h",
+ "filemanagement/fileio/error_code.h",
+ ]
}
ohos_ndk_headers("oh_fileio_header") {
diff --git a/global/resource_management/BUILD.gn b/global/resource_management/BUILD.gn
index 3db518153420630155c86f2a5b1705089047a8d4..6087ba8c715173ea98cab797100d2a7d9c57c158 100644
--- a/global/resource_management/BUILD.gn
+++ b/global/resource_management/BUILD.gn
@@ -17,6 +17,12 @@ ohos_ndk_library("librawfile_ndk") {
ndk_description_file = "./librawfile.ndk.json"
min_compact_version = "1"
output_name = "rawfile"
+ system_capability = "SystemCapability.Global.ResourceManager"
+ system_capability_headers = [
+ "rawfile/raw_dir.h",
+ "rawfile/raw_file.h",
+ "rawfile/raw_file_manager.h",
+ ]
}
ohos_ndk_headers("rawfile_header") {
diff --git a/global/resource_management/include/resourcemanager/ohresmgr.h b/global/resource_management/include/resourcemanager/ohresmgr.h
index ea4c2b7aed217284d8a526b4481503398aea92ea..3e606ba8355b8704dc90f5e9d8a7c6998851a3b0 100644
--- a/global/resource_management/include/resourcemanager/ohresmgr.h
+++ b/global/resource_management/include/resourcemanager/ohresmgr.h
@@ -410,10 +410,29 @@ ResourceManager_ErrorCode OH_ResourceManager_GetLocalesData(const NativeResource
{@link ERROR_CODE_SYSTEM_RES_MANAGER_GET_FAILED} 9001009 - If failed to access the system resource.
{@link ERROR_CODE_OUT_OF_MEMORY} 9001100 - Out of memory.
* @since 12
+ * @deprecated since 20
+ * @useinstead OH_ResourceManager_GetResourceConfiguration
*/
ResourceManager_ErrorCode OH_ResourceManager_GetConfiguration(const NativeResourceManager *mgr,
ResourceManager_Configuration *configuration);
+/**
+ * @brief Obtains the device configuration.
+ *
+ * You need to call the OH_ResourceManager_ReleaseConfiguration() method to release the memory.
+ * If you use malloc to create a ResourceManager_Configuration object, you also need to call free to release it.
+ *
+ * @param {NativeResourceManager} mgr Indicates the pointer to {@link NativeResourceManager}
+ * {@link OH_ResourceManager_InitNativeResourceManager}.
+ * @param {ResourceManager_Configuration} configuration the result write to ResourceManager_Configuration.
+ * @return {@link SUCCESS} 0 - Success.
+ {@link ERROR_CODE_SYSTEM_RES_MANAGER_GET_FAILED} 9001009 - If failed to access the system resource.
+ {@link ERROR_CODE_OUT_OF_MEMORY} 9001100 - Out of memory.
+ * @since 20
+ */
+ResourceManager_ErrorCode OH_ResourceManager_GetResourceConfiguration(const NativeResourceManager *mgr,
+ ResourceManager_Configuration *configuration);
+
/**
* @brief Release the device configuration.
* @param configuration the object need to release.
diff --git a/global/resource_management/libnative_resmgr.ndk.json b/global/resource_management/libnative_resmgr.ndk.json
index ecf4734743c4b9741c0cb551afffa01c07ab82e2..4ce47e3e1e297ff7ea2392e55dc12f88fcf1fe6a 100644
--- a/global/resource_management/libnative_resmgr.ndk.json
+++ b/global/resource_management/libnative_resmgr.ndk.json
@@ -154,5 +154,9 @@
{
"first_introduced": "18",
"name": "OH_ResourceManager_GetDoublePluralStringByName"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ResourceManager_GetResourceConfiguration"
}
]
\ No newline at end of file
diff --git a/graphic/graphic_2d/GL4/BUILD.gn b/graphic/graphic_2d/GL4/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..b6c389b1842ff8cdff988c367daab2e004d4a056
--- /dev/null
+++ b/graphic/graphic_2d/GL4/BUILD.gn
@@ -0,0 +1,36 @@
+# Copyright (c) 2021 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+import("//build/ohos/ndk/ndk.gni")
+
+ohos_ndk_headers("GL4_header") {
+ dest_dir = "$ndk_headers_out_dir/GL"
+ sources = [
+ "../../../third_party/openGLES/GL/gl.h",
+ "../../../third_party/openGLES/GL/glcorearb.h",
+ "../../../third_party/openGLES/GL/glext.h",
+ ]
+}
+
+ohos_ndk_library("libGLv4_ndk") {
+ output_name = "GLv4"
+ output_extension = "so"
+ ndk_description_file = "./libGLv4.ndk.json"
+ system_capability = "SystemCapability.Graphic.Graphic2D.GL4"
+ system_capability_headers = [
+ "GL/glcorearb.h",
+ "GL/gl.h",
+ "GL/glext.h",
+ ]
+}
diff --git a/graphic/graphic_2d/GL4/libGLv4.ndk.json b/graphic/graphic_2d/GL4/libGLv4.ndk.json
new file mode 100644
index 0000000000000000000000000000000000000000..f9289ff6d947200661cd618c03f95a4f8995b45d
--- /dev/null
+++ b/graphic/graphic_2d/GL4/libGLv4.ndk.json
@@ -0,0 +1,1054 @@
+[
+ {
+ "first_introduced": "20",
+ "name": "glActiveTexture"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glActiveTextureARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glAttachShader"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindAttribLocation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindBufferARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindBufferBase"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindBufferRange"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindFramebuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindImageTexture"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindRenderbuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindTexture"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindVertexArray"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBindVertexBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlendColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlendEquation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlendEquationSeparate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlendFunc"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlendFunci"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlendFuncSeparate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBlitFramebuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBufferData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBufferDataARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBufferStorage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBufferSubData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBufferSubDataARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCheckFramebufferStatus"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClampColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClear"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearBufferfv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearBufferData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearBufferSubData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearDepth"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearDepthf"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClearStencil"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glClientWaitSync"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glColor4f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glColorMask"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCompileShader"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCompressedTexImage2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCompressedTexSubImage2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyBufferSubData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyTexSubImage2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCreateProgram"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCreateShader"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCullFace"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDebugMessageCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteBuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteBuffersARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteFramebuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteProgram"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteRenderbuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteShader"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteSync"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteTextures"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteVertexArrays"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDepthFunc"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDepthMask"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDepthRange"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDepthRangef"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDetachShader"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDisable"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDisableVertexAttribArray"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawArrays"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawArraysInstanced"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawBuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawBuffersARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawElements"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawElementsBaseVertex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawElementsInstanced"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDrawElementsInstancedBaseVertex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glEnable"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glEnableVertexAttribArray"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFenceSync"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFinish"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFlush"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFlushMappedBufferRange"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFramebufferRenderbuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFramebufferTexture"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFramebufferTexture2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glFrontFace"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenBuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenBuffersARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenerateMipmap"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenFramebuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenRenderbuffers"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenTextures"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenVertexArrays"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetActiveAttrib"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetActiveUniform"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetAttachedShaders"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetAttribLocation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetBooleanv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetBufferParameteriv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetBufferSubData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetBufferSubDataARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetError"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetFramebufferAttachmentParameteriv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetIntegeri_v"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetIntegerv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetProgramBinary"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetProgramInfoLog"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetProgramiv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetProgramResourceIndex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetRenderbufferParameteriv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetShaderInfoLog"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetShaderiv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetShaderPrecisionFormat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetShaderSource"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetString"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetTexImage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetUniformfv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetUniformiv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetUniformLocation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetVertexAttribfv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetVertexAttribiv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetVertexAttribPointerv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glInvalidateBufferSubData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsFramebuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsProgram"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsRenderbuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsShader"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glLineWidth"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glLinkProgram"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMapBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMapBufferRange"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMemoryBarrier"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMultiDrawArrays"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMultiDrawElements"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMultiDrawElementsIndirect"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPatchParameteri"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPixelStorei"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPointSize"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPolygonMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPolygonOffset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPopDebugGroup"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPrimitiveRestartIndex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glProgramBinary"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glProgramParameteri"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPushDebugGroup"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glReadBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glReadPixels"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glReleaseShaderCompiler"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glRenderbufferStorage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glRenderbufferStorageMultisample"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glSampleCoverage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glScissor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glShadeModel"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glShaderBinary"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glShaderSource"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glShaderStorageBlockBinding"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glStencilFunc"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glStencilFuncSeparate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glStencilMask"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glStencilMaskSeparate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glStencilOp"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glStencilOpSeparate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexImage1D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexImage2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexImage2DMultisample"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexParameterfv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexParameteri"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexSubImage2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1dv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1i"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1iARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1iv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1ivARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform1ui"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2dv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2i"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2iv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform2ivARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3dv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3i"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3iv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform3ivARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4dv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4i"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4iv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniform4ivARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix2fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix2fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix3dv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix3fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix3fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix4dv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix4fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix4fvARB"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUnmapBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUseProgram"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glValidateProgram"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttribBinding"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib1f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib1fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib2f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib2fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib3f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib3fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib4f"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttrib4fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttribIFormat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttribIPointer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttribLPointer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glVertexAttribPointer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glViewport"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyImageSubData"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyTexImage1D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyTexImage2D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyTexSubImage1D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetDoublev"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetFloatv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetPointerv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetTexLevelParameterfv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetTexLevelParameteriv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetTexParameterfv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetTexParameteriv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glHint"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsEnabled"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsTexture"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glIsVertexArray"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glLogicOp"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glMultiDrawElementsBaseVertex"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glPixelStoref"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexParameterf"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexParameteriv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexSubImage1D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBeginQuery"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glBeginTransformFeedback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glCopyTexSubImage3D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glDeleteQueries"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glEndQuery"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glEndTransformFeedback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGenQueries"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetActiveUniformBlockName"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetQueryObjectiv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glGetStringi"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glLineStipple"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTexImage3D"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glTransformFeedbackVaryings"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformBlockBinding"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix2x3fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix2x4fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix3x2fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix3x4fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix4x2fv"
+ },
+ {
+ "first_introduced": "20",
+ "name": "glUniformMatrix4x3fv"
+ }
+]
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_buffer/BUILD.gn b/graphic/graphic_2d/native_buffer/BUILD.gn
index 9d589b7c26d58635372420a56c1e8af9f338cb3f..121f876a3a6732a68bd564eec6ebbdb9a320021f 100644
--- a/graphic/graphic_2d/native_buffer/BUILD.gn
+++ b/graphic/graphic_2d/native_buffer/BUILD.gn
@@ -28,5 +28,8 @@ ohos_ndk_library("libnative_buffer_ndk") {
output_extension = "so"
ndk_description_file = "./libnative_buffer.ndk.json"
system_capability = "SystemCapability.Graphic.Graphic2D.NativeBuffer"
- system_capability_headers = [ "native_buffer/native_buffer.h" ]
+ system_capability_headers = [
+ "native_buffer/native_buffer.h",
+ "native_buffer/buffer_common.h",
+ ]
}
diff --git a/graphic/graphic_2d/native_buffer/buffer_common.h b/graphic/graphic_2d/native_buffer/buffer_common.h
index 20b22fd8733a829f2c4b6c2514bf6adba5b6cc54..752da7f9f74a4951f480961f36a543aa950bbb0d 100644
--- a/graphic/graphic_2d/native_buffer/buffer_common.h
+++ b/graphic/graphic_2d/native_buffer/buffer_common.h
@@ -19,13 +19,12 @@
*
* @brief Provides the common types for native buffer.
*
- * @syscap SystemCapability.Graphic.Graphic2D.NativeBuffer
* @since 12
* @version 1.0
*/
/**
- * @file native_buffer.h
+ * @file buffer_common.h
*
* @brief Defines the common types for native buffer.
*
diff --git a/graphic/graphic_2d/native_buffer/native_buffer.h b/graphic/graphic_2d/native_buffer/native_buffer.h
index 70d47a631f87e2dbc026ae2cf59ba722381ac7b8..771256ac5402a3cfea51e66c389e0799049f1597 100644
--- a/graphic/graphic_2d/native_buffer/native_buffer.h
+++ b/graphic/graphic_2d/native_buffer/native_buffer.h
@@ -61,6 +61,11 @@ typedef enum OH_NativeBuffer_Usage {
NATIVEBUFFER_USAGE_CPU_READ = (1ULL << 0), /// < CPU read buffer */
NATIVEBUFFER_USAGE_CPU_WRITE = (1ULL << 1), /// < CPU write memory */
NATIVEBUFFER_USAGE_MEM_DMA = (1ULL << 3), /// < Direct memory access (DMA) buffer */
+ /**
+ * MMZ with cache
+ * @since 20
+ */
+ NATIVEBUFFER_USAGE_MEM_MMZ_CACHE = (1ULL << 5),
NATIVEBUFFER_USAGE_HW_RENDER = (1ULL << 8), /// < For GPU write case */
NATIVEBUFFER_USAGE_HW_TEXTURE = (1ULL << 9), /// < For GPU read case */
NATIVEBUFFER_USAGE_CPU_READ_OFTEN = (1ULL << 16), /// < Often be mapped for direct CPU reads */
@@ -203,6 +208,16 @@ typedef enum OH_NativeBuffer_Format {
* @since 15
*/
NATIVEBUFFER_PIXEL_FMT_RGBA16_FLOAT,
+ /**
+ * Y8 format
+ * @since 20
+ */
+ NATIVEBUFFER_PIXEL_FMT_Y8 = 40,
+ /**
+ * Y16 format
+ * @since 20
+ */
+ NATIVEBUFFER_PIXEL_FMT_Y16 = 41,
/**
* vendor mask format
* @since 12
diff --git a/graphic/graphic_2d/native_drawing/BUILD.gn b/graphic/graphic_2d/native_drawing/BUILD.gn
index 88c0459bc9fd316e2be057729c6e97d9081011e3..73dbebd12399e83ae12891b4fb2b7c3c7c3632b1 100644
--- a/graphic/graphic_2d/native_drawing/BUILD.gn
+++ b/graphic/graphic_2d/native_drawing/BUILD.gn
@@ -51,6 +51,7 @@ ohos_ndk_headers("native_drawing_header") {
"//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_blob.h",
"//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_declaration.h",
"//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_font_descriptor.h",
+ "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_global.h",
"//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_line.h",
"//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_lineTypography.h",
"//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_text_run.h",
@@ -106,5 +107,6 @@ ohos_ndk_library("libnative_drawing_ndk") {
"native_drawing/drawing_text_typography.h",
"native_drawing/drawing_typeface.h",
"native_drawing/drawing_types.h",
+ "native_drawing/drawing_text_global.h",
]
}
diff --git a/graphic/graphic_2d/native_drawing/drawing_brush.h b/graphic/graphic_2d/native_drawing/drawing_brush.h
index d677d9aece287b7ae8621ffe19e86cf1d0ee2627..08677fec0f2b0f2d73fcce46de47e6dc988ed248 100644
--- a/graphic/graphic_2d/native_drawing/drawing_brush.h
+++ b/graphic/graphic_2d/native_drawing/drawing_brush.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
+ * Copyright (c) 2021-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -40,12 +40,19 @@
#ifndef C_INCLUDE_DRAWING_BRUSH_H
#define C_INCLUDE_DRAWING_BRUSH_H
+#include "drawing_error_code.h"
#include "drawing_types.h"
#ifdef __cplusplus
extern "C" {
#endif
+/**
+ * @brief Defines a colorspace manager. Introduces the color space information defined by ColorManager.
+ * @since 20
+ */
+typedef struct OH_NativeColorSpaceManager OH_NativeColorSpaceManager;
+
/**
* @brief Creates an OH_Drawing_Brush object.
*
@@ -148,6 +155,83 @@ uint8_t OH_Drawing_BrushGetAlpha(const OH_Drawing_Brush* brush);
*/
void OH_Drawing_BrushSetAlpha(OH_Drawing_Brush* brush, uint8_t alpha);
+/**
+ * @brief Sets the color for a brush. The color will be used by the brush to fill in a shape.
+ * The color is an ARGB structure described by floating point numbers and interpreted as being in the colorSpaceManager.
+ * If colorSpaceManager is nullptr, then color is assumed to be in the sRGB color space.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param a Indicates the alpha component of color, represented as a floating point number between 0 and 1.
+ * @param r Indicates the red component of color, represented as a floating point number between 0 and 1.
+ * @param g Indicates the green component of color, represented as a floating point number between 0 and 1.
+ * @param b Indicates the blue component of color, represented as a floating point number between 0 and 1.
+ * @param colorSpaceManager Indicates the pointer to an OH_NativeColorSpaceManager object.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_BrushSetColor4f(OH_Drawing_Brush* brush, float a, float r, float g, float b,
+ OH_NativeColorSpaceManager* colorSpaceManager);
+
+/**
+ * @brief Obtains the alpha component of a brush.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param a Indicates the alpha component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or a is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_BrushGetAlphaFloat(const OH_Drawing_Brush* brush, float* a);
+
+/**
+ * @brief Obtains the red component of a brush.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param r Indicates the red component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or r is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_BrushGetRedFloat(const OH_Drawing_Brush* brush, float* r);
+
+/**
+ * @brief Obtains the green component of a brush.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param g Indicates the green component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or g is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_BrushGetGreenFloat(const OH_Drawing_Brush* brush, float* g);
+
+/**
+ * @brief Obtains the blue component of a brush.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param b Indicates the blue component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or b is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_BrushGetBlueFloat(const OH_Drawing_Brush* brush, float* b);
+
/**
* @brief Sets the shaderEffect for a brush.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_canvas.h b/graphic/graphic_2d/native_drawing/drawing_canvas.h
index 2581f31ab87dfc947b1b3a3e25e35b3f8d6265d9..847075ccddb392a691a20e81f78c6522e5c8502c 100644
--- a/graphic/graphic_2d/native_drawing/drawing_canvas.h
+++ b/graphic/graphic_2d/native_drawing/drawing_canvas.h
@@ -75,6 +75,20 @@ typedef enum {
*/
OH_Drawing_Canvas* OH_Drawing_CanvasCreate(void);
+/**
+ * @brief Creates an OH_Drawing_Canvas object from OH_Drawing_PixelMap.
+ * The OH_Drawing_PixelMap should be dissolved by OH_Drawing_PixelMapDissolve after the OH_Drawing_Canvas is destroyed.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pixelMap Indicates the pointer to an OH_Drawing_PixelMap object.
+ * @return Returns the pointer to the OH_Drawing_Canvas object created.
+ * If nullptr is returned, the creation fails.
+ * The possible cause of the failure is that the available memory is empty or pixelMap is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_Canvas* OH_Drawing_CanvasCreateWithPixelMap(OH_Drawing_PixelMap* pixelMap);
+
/**
* @brief Destroys an OH_Drawing_Canvas object and reclaims the memory occupied by the object.
*
@@ -257,6 +271,27 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasDrawPixelMapNine(OH_Drawing_Canvas* canvas
void OH_Drawing_CanvasDrawPixelMapRect(OH_Drawing_Canvas* canvas, OH_Drawing_PixelMap* pixelMap,
const OH_Drawing_Rect* src, const OH_Drawing_Rect* dst, const OH_Drawing_SamplingOptions* samplingOptions);
+/**
+ * @brief Draw the specified area of the Media::PixelMap to the specified area of the canvas.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param canvas Indicates the pointer to an OH_Drawing_Canvas object.
+ * @param pixelMap Indicates the pointer to an OH_Drawing_PixelMap object.
+ * @param src Indicates the area of source pixelmap.
+ * @param dst Indicates the area of destination canvas.
+ * @param samplingOptions Indicates the sampling mode.
+ * @param constraint Indicates constraint type.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, pixelMap
+ * and dst is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_CanvasDrawPixelMapRectConstraint(OH_Drawing_Canvas* canvas,
+ OH_Drawing_PixelMap* pixelMap, const OH_Drawing_Rect* src, const OH_Drawing_Rect* dst,
+ const OH_Drawing_SamplingOptions* samplingOptions, OH_Drawing_SrcRectConstraint constraint);
+
/**
* @brief Fills clipped canvas area with brush.
*
@@ -487,6 +522,26 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasDrawNestedRoundRect(OH_Drawing_Canvas* can
OH_Drawing_ErrorCode OH_Drawing_CanvasDrawSingleCharacter(OH_Drawing_Canvas* canvas, const char* str,
const OH_Drawing_Font* font, float x, float y);
+/**
+ * @brief Draws a single character with font features.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param canvas Indicates the pointer to an OH_Drawing_Canvas object.
+ * @param str Indicates the single character encoded in UTF-8.
+ * @param font Indicates the pointer to an OH_Drawing_Font object.
+ * @param x Indicates the horizontal offset applied to the single character.
+ * @param y Indicates the vertical offset applied to the single character.
+ * @param fontFeatures Indicates the pointer to an OH_Drawing_FontFeatures object.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, str, font
+ * or fontFeatures is nullptr, or if strlen(str) is 0.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_CanvasDrawSingleCharacterWithFeatures(OH_Drawing_Canvas* canvas, const char* str,
+ const OH_Drawing_Font* font, float x, float y, OH_Drawing_FontFeatures* fontFeatures);
+
/**
* @brief Draws a textblob.
*
@@ -903,6 +958,20 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasGetImageInfo(OH_Drawing_Canvas* canvas, OH
*/
OH_Drawing_ErrorCode OH_Drawing_CanvasDrawRecordCmd(OH_Drawing_Canvas* canvas, OH_Drawing_RecordCmd* recordCmd);
+/**
+ * @brief Replay drawing command.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param canvas Indicates the pointer to an OH_Drawing_Canvas object.
+ * @param recordCmd Indicates the pointer to an OH_Drawing_RecordCmd object.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or recordCmd is nullptr.
+ * @since 19
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_CanvasDrawRecordCmdNesting(OH_Drawing_Canvas* canvas, OH_Drawing_RecordCmd* recordCmd);
+
/**
* @brief Checks if the path has been cut off.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_color_filter.h b/graphic/graphic_2d/native_drawing/drawing_color_filter.h
index 051ef91bd0c699c01083266df27b1d2df252f4b0..bfad30b6bd6d1a01dd277e728ec29d9a87e0f3ce 100644
--- a/graphic/graphic_2d/native_drawing/drawing_color_filter.h
+++ b/graphic/graphic_2d/native_drawing/drawing_color_filter.h
@@ -113,6 +113,19 @@ OH_Drawing_ColorFilter* OH_Drawing_ColorFilterCreateSrgbGammaToLinear(void);
*/
OH_Drawing_ColorFilter* OH_Drawing_ColorFilterCreateLuma(void);
+/**
+ * @brief Creates an OH_Drawing_ColorFilter with the given mutColor used to multiply source color and addColor
+ * used to add to source color. The Alpha channel will not be affected.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param mulColor Indicates the color, which is a 32-bit (ARGB) variable.
+ * @param addColor Indicates the color, which is a 32-bit (ARGB) variable.
+ * @return Returns the pointer to the OH_Drawing_ColorFilter object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ColorFilter* OH_Drawing_ColorFilterCreateLighting(uint32_t mulColor, uint32_t addColor);
+
/**
* @brief Destroys an OH_Drawing_ColorFilter object and reclaims the memory occupied by the object.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_error_code.h b/graphic/graphic_2d/native_drawing/drawing_error_code.h
index 5bdc19682c4052b80b3c52d070ef15f78c099ae1..0c6e6e0c8769442fa067a5aa242eee703eabfc9e 100644
--- a/graphic/graphic_2d/native_drawing/drawing_error_code.h
+++ b/graphic/graphic_2d/native_drawing/drawing_error_code.h
@@ -89,7 +89,7 @@ OH_Drawing_ErrorCode OH_Drawing_ErrorCodeGet();
* @since 18
* @version 1.0
*/
-void OH_Drawing_ErrorCodeReset();
+void OH_Drawing_ErrorCodeReset(void);
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_drawing/drawing_font.h b/graphic/graphic_2d/native_drawing/drawing_font.h
index e8582939c07e7975b18b1b9d6b3b1a490574a927..be64fe7235104ed747bdde6939bc9891e1765bb8 100644
--- a/graphic/graphic_2d/native_drawing/drawing_font.h
+++ b/graphic/graphic_2d/native_drawing/drawing_font.h
@@ -260,6 +260,24 @@ void OH_Drawing_FontGetWidths(const OH_Drawing_Font* font, const uint16_t* glyph
OH_Drawing_ErrorCode OH_Drawing_FontMeasureSingleCharacter(const OH_Drawing_Font* font, const char* str,
float* textWidth);
+/**
+ * @brief Measures the width of a single character with font features.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param font Indicates the pointer to an OH_Drawing_Font object.
+ * @param str Indicates the single character encoded in UTF-8.
+ * @param fontFeatures Indicates the pointer to an OH_Drawing_FontFeatures object.
+ * @param textWidth Indicates the width of the single character.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, str
+ * fontFeatures or textWidth is nullptr, or if strlen(str) is 0.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontMeasureSingleCharacterWithFeatures(const OH_Drawing_Font* font, const char* str,
+ const OH_Drawing_FontFeatures* fontFeatures, float* textWidth);
+
/**
* @brief Measures the width of text.
*
@@ -280,6 +298,83 @@ OH_Drawing_ErrorCode OH_Drawing_FontMeasureSingleCharacter(const OH_Drawing_Font
OH_Drawing_ErrorCode OH_Drawing_FontMeasureText(const OH_Drawing_Font* font, const void* text, size_t byteLength,
OH_Drawing_TextEncoding encoding, OH_Drawing_Rect* bounds, float* textWidth);
+/**
+ * @brief Measures the width of text with brush or pen.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param font Indicates the pointer to an OH_Drawing_Font object.
+ * @param text Indicates the character storage encoded with text encoding.
+ * @param byteLength Indicates the text length in bytes.
+ * @param encoding Indicates the text encoding.
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param bounds Gets the bounding box relative to (0, 0) if not nullptr.
+ * @param textWidth Indicates the width of text.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, text
+ * and textWidth is nullptr or byteLength is 0 or brush and pen are both not empty.
+ * @since 19
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontMeasureTextWithBrushOrPen(const OH_Drawing_Font* font, const void* text,
+ size_t byteLength, OH_Drawing_TextEncoding encoding, const OH_Drawing_Brush* brush, const OH_Drawing_Pen* pen,
+ OH_Drawing_Rect* bounds, float* textWidth);
+
+/**
+ * @brief Retrieves the advance and bounding box for each glyph in glyphs.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param font Indicates the pointer to an OH_Drawing_Font object.
+ * @param glyphs Indicates the array of glyph indices to be measured.
+ * @param count Indicates the number of glyphs.
+ * @param brush Indicates the pointer to an OH_Drawing_Brush object.
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param widths Indicates the text advances for each glyph returned to the caller.
+ * @param bounds Indicates the text bounding box for each glyph returned to the caller.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font and glyphs is nullptr
+ * or count is no larger than 0 or brush and pen are both not empty.
+ * @since 19
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontGetWidthsBounds(const OH_Drawing_Font* font, const uint16_t* glyphs, int count,
+ const OH_Drawing_Brush* brush, const OH_Drawing_Pen* pen, float* widths, OH_Drawing_Array* bounds);
+
+/**
+ * @brief Retrieves the positions for each glyph, beginning at the specified origin.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param font Indicates the pointer to an OH_Drawing_Font object.
+ * @param glyphs Indicates the array of glyph indices to be measured.
+ * @param count Indicates the number of glyphs.
+ * @param origin Indicates the location of the first glyph.
+ * @param points Indicates the relative position for each glyph returned to the caller.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, glyphs and points is nullptr or
+ * count is no larger than 0.
+ * @since 19
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontGetPos(const OH_Drawing_Font* font, const uint16_t* glyphs, int count,
+ const OH_Drawing_Point* origin, OH_Drawing_Point2D* points);
+
+/**
+ * @brief Returns the recommended spacing between lines.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param font Indicates the pointer to an OH_Drawing_Font object.
+ * @param spacing Indicates the recommended spacing between lines.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font and spacing is nullptr.
+ * @since 19
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontGetSpacing(const OH_Drawing_Font* font, float* spacing);
+
/**
* @brief Enables or disables linearly scalable font for an OH_Drawing_Font object.
*
@@ -552,6 +647,47 @@ OH_Drawing_ErrorCode OH_Drawing_FontGetPathForGlyph(const OH_Drawing_Font* font,
OH_Drawing_ErrorCode OH_Drawing_FontGetTextPath(const OH_Drawing_Font* font, const void* text, size_t byteLength,
OH_Drawing_TextEncoding encoding, float x, float y, OH_Drawing_Path* path);
+/**
+ * @brief Creates an OH_Drawing_FontFeatures object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @return Returns the pointer to the OH_Drawing_FontFeatures object created.
+ * If nullptr is returned, the creation fails.
+ * The possible cause of the failure is that the available memory is empty.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_FontFeatures* OH_Drawing_FontFeaturesCreate(void);
+
+/**
+ * @brief Adds a font feature for an OH_Drawing_FontFeatures object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param fontFeatures Indicates the pointer to an OH_Drawing_FontFeatures object.
+ * @param name Indicates the feature name.
+ * @param value Indicates the value of the feature.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either fontFeatures or name is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontFeaturesAddFeature(OH_Drawing_FontFeatures* fontFeatures,
+ const char* name, float value);
+
+/**
+ * @brief Destroys an OH_Drawing_FontFeatures object and reclaims the memory occupied by the object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param fontFeatures Indicates the pointer to an OH_Drawing_FontFeatures object.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if fontFeatures is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontFeaturesDestroy(OH_Drawing_FontFeatures* fontFeatures);
+
/**
* @brief Sets whether to follow the theme font. If the value is true, the theme font is used when typeface is not set.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_font_collection.h b/graphic/graphic_2d/native_drawing/drawing_font_collection.h
index e6ac9f49424f699c6c830f9788619ca8093dec78..f69ef11d2198a0e072ac0c8baeb0576a88b8c5db 100644
--- a/graphic/graphic_2d/native_drawing/drawing_font_collection.h
+++ b/graphic/graphic_2d/native_drawing/drawing_font_collection.h
@@ -72,6 +72,8 @@ void OH_Drawing_DestroyFontCollection(OH_Drawing_FontCollection* fontCollection)
* @param fontCollection Indicates the pointer to an OH_Drawing_FontCollection object.
* @since 12
* @version 1.0
+ * @deprecated since 18
+ * @useinstead OH_Drawing_DisableFontCollectionSystemFont
*/
void OH_Drawing_DisableFontCollectionFallback(OH_Drawing_FontCollection* fontCollection);
diff --git a/graphic/graphic_2d/native_drawing/drawing_gpu_context.h b/graphic/graphic_2d/native_drawing/drawing_gpu_context.h
index 1949a5e725f78c553096ebece81194d738b81f27..584e8d9288ddb58fbf2a5aa8d4233fe9a88d6c38 100644
--- a/graphic/graphic_2d/native_drawing/drawing_gpu_context.h
+++ b/graphic/graphic_2d/native_drawing/drawing_gpu_context.h
@@ -51,6 +51,7 @@ extern "C" {
*
* @since 12
* @version 1.0
+ * @deprecated since 18
*/
typedef struct {
/** If true this allows path mask textures to be cached */
@@ -65,6 +66,8 @@ typedef struct {
* @return Returns the pointer to the OH_Drawing_GpuContext object created.
* @since 12
* @version 1.0
+ * @deprecated since 18
+ * @useinstead OH_Drawing_GpuContextCreate
*/
OH_Drawing_GpuContext* OH_Drawing_GpuContextCreateFromGL(OH_Drawing_GpuContextOptions gpuContextOptions);
diff --git a/graphic/graphic_2d/native_drawing/drawing_image_filter.h b/graphic/graphic_2d/native_drawing/drawing_image_filter.h
index 3fde3b7248d2225700aa8043aee6bfd5497c4028..51b46b41eafbfdb36e216ea2b2d0ba7c0b739aa3 100644
--- a/graphic/graphic_2d/native_drawing/drawing_image_filter.h
+++ b/graphic/graphic_2d/native_drawing/drawing_image_filter.h
@@ -63,6 +63,24 @@ extern "C" {
OH_Drawing_ImageFilter* OH_Drawing_ImageFilterCreateBlur(float sigmaX, float sigmaY, OH_Drawing_TileMode tileMode,
OH_Drawing_ImageFilter* imageFilter);
+/**
+ * @brief Creates an OH_Drawing_ImageFilter object that blurs its input by the separate x and y sigmas.
+ * Supports an optional crop rectangle to restrict the blur effect to a specific region of the input.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param sigmaX Indicates the Gaussian sigma value for blurring along the x axis.
+ * @param sigmaY Indicates the Gaussian sigma value for blurring along the y axis.
+ * @param tileMode Indicates the tile mode applied at edges.
+ * @param input Indicates the input filter that is blurred, uses source bitmap if this is null.
+ * @param rect Indicates optional rectangle that crops the input and output.
+ * If rect is null, the blur effect applies to the entire input image.
+ * @return Returns the pointer to the OH_Drawing_ImageFilter object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ImageFilter* OH_Drawing_ImageFilterCreateBlurWithCrop(float sigmaX, float sigmaY,
+ OH_Drawing_TileMode tileMode, OH_Drawing_ImageFilter* input, const OH_Drawing_Rect* rect);
+
/**
* @brief Creates an OH_Drawing_ImageFilter object that applies the color filter to the input.
*
@@ -79,6 +97,35 @@ OH_Drawing_ImageFilter* OH_Drawing_ImageFilterCreateBlur(float sigmaX, float sig
OH_Drawing_ImageFilter* OH_Drawing_ImageFilterCreateFromColorFilter(OH_Drawing_ColorFilter* colorFilter,
OH_Drawing_ImageFilter* imageFilter);
+/**
+ * @brief Creates an OH_Drawing_ImageFilter object with the provided x and y offset.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param x Indicates the x offset.
+ * @param y Indicates the y offset.
+ * @param imageFilter Indicates the input filter, or uses the source bitmap if this is null.
+ * @return Returns the pointer to the OH_Drawing_ImageFilter object created.
+ * If nullptr is returned, the creation fails.
+ * The possible cause of the failure is that the available memory is empty.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ImageFilter* OH_Drawing_ImageFilterCreateOffset(float x, float y, OH_Drawing_ImageFilter* imageFilter);
+
+/**
+ * @brief Creates an OH_Drawing_ImageFilter object that applies the shader to the input.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param shaderEffect Indicates the shader effect to be applied to the image.
+ * @return Returns the pointer to the OH_Drawing_ImageFilter object created.
+ * If nullptr is returned, the creation fails.
+ * The possible cause of the failure is that the available memory is empty or
+ * a nullptr OH_Drawing_ShaderEffect is passed.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ImageFilter* OH_Drawing_ImageFilterCreateFromShaderEffect(OH_Drawing_ShaderEffect* shaderEffect);
+
/**
* @brief Destroys an OH_Drawing_ImageFilter object and reclaims the memory occupied by the object.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_matrix.h b/graphic/graphic_2d/native_drawing/drawing_matrix.h
index bbf6645dfaf5910f121f92fbe67eac5150aa0eb0..5b6fc1f66dc98f683d0ce91fed765bd3a885aeaf 100644
--- a/graphic/graphic_2d/native_drawing/drawing_matrix.h
+++ b/graphic/graphic_2d/native_drawing/drawing_matrix.h
@@ -57,6 +57,17 @@ extern "C" {
*/
OH_Drawing_Matrix* OH_Drawing_MatrixCreate(void);
+/**
+ * @brief Creates an OH_Drawing_Matrix copy object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param matrix Indicates the pointer to an OH_Drawing_Matrix object.
+ * @return Returns the pointer to the OH_Drawing_Matrix object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_Matrix* OH_Drawing_MatrixCopy(const OH_Drawing_Matrix* matrix);
+
/**
* @brief Creates an OH_Drawing_Matrix object with rotation. Sets matrix to
* rotate by degrees about a pivot point at (px, py).
diff --git a/graphic/graphic_2d/native_drawing/drawing_path.h b/graphic/graphic_2d/native_drawing/drawing_path.h
index a198ec8551f97e32d57896bbe297bccc946e894c..1edaf0486949272f57d7ef640227e64687e33fdb 100644
--- a/graphic/graphic_2d/native_drawing/drawing_path.h
+++ b/graphic/graphic_2d/native_drawing/drawing_path.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
+ * Copyright (c) 2021-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -171,6 +171,49 @@ OH_Drawing_Path* OH_Drawing_PathCopy(OH_Drawing_Path* path);
*/
void OH_Drawing_PathDestroy(OH_Drawing_Path* path);
+/**
+ * @brief Sets OH_Drawing_Path object with the same content of another.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param other Indicates the pointer to an OH_Drawing_Path object to copy content from.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or other is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathSetPath(OH_Drawing_Path* path, OH_Drawing_Path* other);
+
+/**
+ * @brief Checks if OH_Drawing_Path object is empty.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param isEmpty Indicates the return value.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or isEmpty is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathIsEmpty(OH_Drawing_Path* path, bool* isEmpty);
+
+/**
+ * @brief Checks if OH_Drawing_Path represents a rectangle.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param rect Indicates the Pointer to an OH_Drawing_Rect object.
+ * @param isRect Indicates the return value.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or isRect is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathIsRect(OH_Drawing_Path* path, OH_Drawing_Rect* rect, bool* isRect);
+
/**
* @brief Sets the start point of a path.
*
@@ -569,6 +612,20 @@ void OH_Drawing_PathTransformWithPerspectiveClip(OH_Drawing_Path* src, const OH_
*/
void OH_Drawing_PathSetFillType(OH_Drawing_Path* path, OH_Drawing_PathFillType pathFillType);
+/**
+ * @brief Gets FillType, the rule used to fill path.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param pathFillType Indicates the FillType apply to path.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or pathFillType is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathGetFillType(OH_Drawing_Path* path, OH_Drawing_PathFillType* pathFillType);
+
/**
* @brief Gets the length of the current path object.
*
@@ -704,6 +761,67 @@ bool OH_Drawing_PathOp(OH_Drawing_Path* path, const OH_Drawing_Path* other, OH_D
bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* path, bool forceClosed,
float distance, OH_Drawing_Matrix* matrix, OH_Drawing_PathMeasureMatrixFlags flag);
+/**
+ * @brief Approximates the path with a series of line segments.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param acceptableError Indicates the acceptable error for a line on the path. Should be no less than 0.
+ * @param vals Indicates the storage for the computed array containing point components.
+ * There are three components for each point:
+ * 1.Fraction along the length of the path that the point resides.
+ * 2.The x coordinate of the point.
+ * 3.The y coordinate of the point.
+ * @param count Returns with the size of array.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or count is nullptr.
+ * Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if acceptableError is less than 0.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathApproximate(OH_Drawing_Path* path, float acceptableError, float* vals,
+ uint32_t* count);
+
+/**
+ * @brief Performs interpolation between the current path and another path based on a given weight, and stores the
+ * result in the target path object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param other Indicates the pointer to an OH_Drawing_Path object to be interpolated with path.
+ * @param weight Indicates the interpolation weight, which must be in the range [0, 1].
+ * @param success Indicates the interpolation is success or not.
+ * @param interpolatedPath Indicates the pointer to an OH_Drawing_Path object to store the result.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other, success or interpolatedPath is
+ * nullptr.
+ * Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if weight is outside the range [0, 1].
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathInterpolate(OH_Drawing_Path* path, OH_Drawing_Path* other,
+ float weight, bool* success, OH_Drawing_Path* interpolatedPath);
+
+/**
+ * @brief Checks whether the current path is compatible with another path (other) for interpolation, which means
+ * they have exactly the same structure, both paths must have the same operations, in the same order.
+ * If any of the operations are of type CONIC, then the weights of those conics must also match.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param path Indicates the pointer to an OH_Drawing_Path object.
+ * @param other Indicates the pointer to an OH_Drawing_Path object to be interpolated with path.
+ * @param result Indicates whether the current path and the other path are compatible for interpolation.
+ * The value is true if the paths are compatible, and false otherwise.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other or result is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PathIsInterpolate(OH_Drawing_Path* path, OH_Drawing_Path* other, bool* result);
+
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_drawing/drawing_pen.h b/graphic/graphic_2d/native_drawing/drawing_pen.h
index 7465f4ebafab88b6f35210b83fa11910015328ba..0446d7d1132a0457a1572c8e04537baefcc091e5 100644
--- a/graphic/graphic_2d/native_drawing/drawing_pen.h
+++ b/graphic/graphic_2d/native_drawing/drawing_pen.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
+ * Copyright (c) 2021-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -40,12 +40,19 @@
#ifndef C_INCLUDE_DRAWING_PEN_H
#define C_INCLUDE_DRAWING_PEN_H
+#include "drawing_error_code.h"
#include "drawing_types.h"
#ifdef __cplusplus
extern "C" {
#endif
+/**
+ * @brief Defines a colorspace manager. Introduces the color space information defined by ColorManager.
+ * @since 20
+ */
+typedef struct OH_NativeColorSpaceManager OH_NativeColorSpaceManager;
+
/**
* @brief Creates an OH_Drawing_Pen object.
*
@@ -148,6 +155,83 @@ uint8_t OH_Drawing_PenGetAlpha(const OH_Drawing_Pen* pen);
*/
void OH_Drawing_PenSetAlpha(OH_Drawing_Pen* pen, uint8_t alpha);
+/**
+ * @brief Sets the color for a pen. The color will be used by the pen to fill in a shape.
+ * The color is an ARGB structure described by floating point numbers and interpreted as being in the colorSpaceManager.
+ * If colorSpaceManager is nullptr, then color is assumed to be in the sRGB color space.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param a Indicates the alpha component of color, represented as a floating point number between 0 and 1.
+ * @param r Indicates the red component of color, represented as a floating point number between 0 and 1.
+ * @param g Indicates the green component of color, represented as a floating point number between 0 and 1.
+ * @param b Indicates the blue component of color, represented as a floating point number between 0 and 1.
+ * @param colorSpaceManager Indicates the pointer to an OH_NativeColorSpaceManager object.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PenSetColor4f(OH_Drawing_Pen* pen, float a, float r, float g, float b,
+ OH_NativeColorSpaceManager* colorSpaceManager);
+
+/**
+ * @brief Obtains the alpha component of a pen.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param a Indicates the alpha component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or a is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PenGetAlphaFloat(OH_Drawing_Pen* pen, float* a);
+
+/**
+ * @brief Obtains the red component of a pen.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param r Indicates the red component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or r is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PenGetRedFloat(OH_Drawing_Pen* pen, float* r);
+
+/**
+ * @brief Obtains the green component of a pen.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param g Indicates the green component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or g is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PenGetGreenFloat(OH_Drawing_Pen* pen, float* g);
+
+/**
+ * @brief Obtains the blue component of a pen.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param b Indicates the blue component of color.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or b is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_PenGetBlueFloat(OH_Drawing_Pen* pen, float* b);
+
/**
* @brief Obtains the thickness of a pen. This thickness determines the width of the outline of a shape.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_region.h b/graphic/graphic_2d/native_drawing/drawing_region.h
index ea27f3bcef0a16ec05c722ade28d511fed68fdbf..a73a71fe8d04b5387dca3c82a9aef3192a8ac194 100644
--- a/graphic/graphic_2d/native_drawing/drawing_region.h
+++ b/graphic/graphic_2d/native_drawing/drawing_region.h
@@ -89,6 +89,17 @@ typedef enum {
*/
OH_Drawing_Region* OH_Drawing_RegionCreate(void);
+/**
+ * @brief Creates an OH_Drawing_Region copy object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param region Indicates the pointer to an OH_Drawing_Region object to copy.
+ * @return Returns the pointer to the OH_Drawing_Region object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_Region* OH_Drawing_RegionCopy(const OH_Drawing_Region* region);
+
/**
* @brief Determines whether the region contains the specified coordinates.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_register_font.h b/graphic/graphic_2d/native_drawing/drawing_register_font.h
index 2ffdbbfec66f1ff8bdee46f3aa5969d7e6aef0ba..c2b6bcc3aeb294daded6ca80484eda8446b0d323 100644
--- a/graphic/graphic_2d/native_drawing/drawing_register_font.h
+++ b/graphic/graphic_2d/native_drawing/drawing_register_font.h
@@ -75,6 +75,19 @@ uint32_t OH_Drawing_RegisterFont(OH_Drawing_FontCollection*, const char* fontFam
uint32_t OH_Drawing_RegisterFontBuffer(OH_Drawing_FontCollection*, const char* fontFamily, uint8_t* fontBuffer,
size_t length);
+/**
+ * @brief Unregister a customized font by the font family.
+ * Unregistering a font that is currently in use by UI components may lead to text rendering anomalies,
+ * including garbled characters or missing glyphs.
+ * All typography using the unregistered font family should be destroyed and re-created.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param fontCollection Indicates the pointer to an OH_Drawing_FontCollection object.
+ * @param fontFamily Indicates the family-name of the font which need to be unregistered.
+ * @return error code.
+ * @since 20
+ */
+uint32_t OH_Drawing_UnregisterFont(OH_Drawing_FontCollection* fontCollection, const char* fontFamily);
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_drawing/drawing_round_rect.h b/graphic/graphic_2d/native_drawing/drawing_round_rect.h
index e3dec061fcde5f4d778ac639aa799bb147bde934..f675f1ab510266ca7d82e10854aef746d19c1b2a 100644
--- a/graphic/graphic_2d/native_drawing/drawing_round_rect.h
+++ b/graphic/graphic_2d/native_drawing/drawing_round_rect.h
@@ -85,6 +85,17 @@ typedef enum {
*/
OH_Drawing_RoundRect* OH_Drawing_RoundRectCreate(const OH_Drawing_Rect* rect, float xRad, float yRad);
+/**
+ * @brief Creates an OH_Drawing_RoundRect copy object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param roundRect Indicates the pointer to an OH_Drawing_RoundRect object to copy.
+ * @return Returns the pointer to the OH_Drawing_RoundRect object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_RoundRect* OH_Drawing_RoundRectCopy(const OH_Drawing_RoundRect* roundRect);
+
/**
* @brief Sets the radiusX and radiusY for a specific corner position.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_sampling_options.h b/graphic/graphic_2d/native_drawing/drawing_sampling_options.h
index 12a90a087976fd9ac76ee607786ac032dc9b9d44..793bc52d8c2662bcf4e73f381593013cba047f89 100644
--- a/graphic/graphic_2d/native_drawing/drawing_sampling_options.h
+++ b/graphic/graphic_2d/native_drawing/drawing_sampling_options.h
@@ -87,6 +87,17 @@ typedef enum {
OH_Drawing_SamplingOptions* OH_Drawing_SamplingOptionsCreate(OH_Drawing_FilterMode filterMode,
OH_Drawing_MipmapMode mipmapMode);
+/**
+ * @brief Creates an OH_Drawing_SamplingOptions copy object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param samplingOptions Indicates the pointer to an OH_Drawing_SamplingOptions object.
+ * @return Returns the pointer to the OH_Drawing_SamplingOptions object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_SamplingOptions* OH_Drawing_SamplingOptionsCopy(OH_Drawing_SamplingOptions* samplingOptions);
+
/**
* @brief Destroys an OH_Drawing_SamplingOptions object and reclaims the memory occupied by the object.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_shader_effect.h b/graphic/graphic_2d/native_drawing/drawing_shader_effect.h
index b42156a5fcde2a861d16cb6ea73164452a1059fb..b3d37ffd3a37e00d66889c74dd76a8b46d002174 100644
--- a/graphic/graphic_2d/native_drawing/drawing_shader_effect.h
+++ b/graphic/graphic_2d/native_drawing/drawing_shader_effect.h
@@ -167,6 +167,26 @@ OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMat
const OH_Drawing_Point2D* centerPt, float radius, const uint32_t* colors, const float* pos, uint32_t size,
OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix);
+/**
+ * @brief Creates an OH_Drawing_ShaderEffect that generates a sweep gradient given a center.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param centerPt Indicates the center of the circle for the gradient.
+ * @param colors Indicates the colors to be distributed between the two points.
+ * @param pos Indicates the relative position of each corresponding color in the colors array.
+ * @param size Indicates the number of colors and pos.
+ * @param tileMode Indicates the tile mode.
+ * @param matrix Indicates the pointer to an OH_Drawing_Matrix object,
+ which represents the local matrix of the created OH_Drawing_ShaderEffect object.
+ If matrix is nullptr, defaults to the identity matrix.
+ * @return Returns the pointer to the OH_Drawing_ShaderEffect object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateSweepGradientWithLocalMatrix(
+ const OH_Drawing_Point* centerPt, const uint32_t* colors, const float* pos, uint32_t size,
+ OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix);
+
/**
* @brief Creates an OH_Drawing_ShaderEffect that generates a sweep gradient given a center.
*
@@ -201,6 +221,24 @@ OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateImageShader(OH_Drawing_Ima
OH_Drawing_TileMode tileX, OH_Drawing_TileMode tileY, const OH_Drawing_SamplingOptions* samplingOptions,
const OH_Drawing_Matrix* matrix);
+/**
+ * @brief Creates an OH_Drawing_ShaderEffect that generates a pixel map shader.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param pixelMap Indicates the pointer to an OH_Drawing_PixelMap object.
+ * @param tileX Indicates the horizontal tile mode.
+ * @param tileY Indicates the vertical tile mode.
+ * @param samplingOptions Indicates the pointer to an OH_Drawing_SamplingOptions object. It cannot be null.
+ * @param matrix Indicates the pointer to an OH_Drawing_Matrix object.
+ * If matrix is nullptr, defaults to the identity matrix.
+ * @return Returns the pointer to the OH_Drawing_ShaderEffect object created.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreatePixelMapShader(OH_Drawing_PixelMap* pixelMap,
+ OH_Drawing_TileMode tileX, OH_Drawing_TileMode tileY, const OH_Drawing_SamplingOptions* samplingOptions,
+ const OH_Drawing_Matrix* matrix);
+
/**
* @brief Creates an OH_Drawing_ShaderEffect that generates a conical gradient given two circles.
*
@@ -226,6 +264,22 @@ OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateTwoPointConicalGradient(co
float startRadius, const OH_Drawing_Point2D* endPt, float endRadius, const uint32_t* colors, const float* pos,
uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix);
+/**
+ * @brief Creates an OH_Drawing_ShaderEffect that generates by two shaders.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param dst Indicates the destination ShaderEffect pointer.
+ * @param src Indicates the source ShaderEffect pointer.
+ * @param mode Indicates the blend mode.
+ * @return Returns the pointer to the OH_Drawing_ShaderEffect object created.
+ * If nullptr is returned, the creation fails.
+ * The possible cause of the failure is that the available memory is empty or any of dst and src is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateCompose(OH_Drawing_ShaderEffect* dst,
+ OH_Drawing_ShaderEffect* src, OH_Drawing_BlendMode mode);
+
/**
* @brief Destroys an OH_Drawing_ShaderEffect object and reclaims the memory occupied by the object.
*
diff --git a/graphic/graphic_2d/native_drawing/drawing_text_global.h b/graphic/graphic_2d/native_drawing/drawing_text_global.h
new file mode 100644
index 0000000000000000000000000000000000000000..39c9f8bc59adc4e0a9256aad7dbd3a8d6b50d822
--- /dev/null
+++ b/graphic/graphic_2d/native_drawing/drawing_text_global.h
@@ -0,0 +1,96 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup Drawing
+ * @{
+ *
+ * @brief Provides the global text capability.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ *
+ * @since 20
+ * @version 1.0
+ */
+
+/**
+ * @file drawing_text_global.h
+ *
+ * @brief Declares functions related to run in the drawing module.
+ *
+ * @kit ArkGraphics2D
+ * @library libnative_drawing.so
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @since 20
+ * @version 1.0
+ */
+
+#ifndef DRAWING_TEXT_GLOBAL_H
+#define DRAWING_TEXT_GLOBAL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Defines text rendering high contrast mode to enhance readability.
+ * @since 20
+ * @version 1.0
+ */
+typedef enum {
+ /** Follow system's high contrast settings for text rendering */
+ TEXT_FOLLOW_SYSTEM_HIGH_CONTRAST,
+ /** Disable high contrast rendering regardless of system settings */
+ TEXT_APP_DISABLE_HIGH_CONTRAST,
+ /** Enable high contrast rendering regardless of system settings */
+ TEXT_APP_ENABLE_HIGH_CONTRAST
+} OH_Drawing_TextHighContrast;
+
+/**
+ * @brief Visual representations for undefined (.notdef) glyphs.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @since 20
+ */
+typedef enum {
+ /** Uses the glyph defined in the font file, which could be an empty box, blank space, or custom symbol etc. */
+ TEXT_NO_GLYPH_USE_DEFAULT = 0,
+ /** Always render tofu blocks for missing glyphs. */
+ TEXT_NO_GLYPH_USE_TOFU = 1,
+} OH_Drawing_TextUndefinedGlyphDisplay;
+
+/**
+ * @brief Sets high contrast mode of text rendering.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param action OH_Drawing_TextHighContrast object.
+ * @since 20
+ */
+void OH_Drawing_SetTextHighContrast(OH_Drawing_TextHighContrast action);
+
+/**
+ * @brief Controls how undefined glyphs are visually presented, affects all text rendered after this call.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param undefinedGlyphDisplay Indicates a OH_Drawing_TextUndefinedGlyphDisplay to be set.
+ * @since 20
+ */
+void OH_Drawing_SetTextUndefinedGlyphDisplay(OH_Drawing_TextUndefinedGlyphDisplay undefinedGlyphDisplay);
+#ifdef __cplusplus
+}
+#endif
+#endif // DRAWING_TEXT_GLOBAL_H
+
+/** @} */
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_drawing/drawing_text_run.h b/graphic/graphic_2d/native_drawing/drawing_text_run.h
index 8873eaaf23e7389d04a20395f7281ebdd6a0ba39..cd9dff6ea2fdb187fd1547507b679bf408314914 100644
--- a/graphic/graphic_2d/native_drawing/drawing_text_run.h
+++ b/graphic/graphic_2d/native_drawing/drawing_text_run.h
@@ -41,6 +41,7 @@
#define C_INCLUDE_DRAWING_TEXT_RUN_H
#include "drawing_text_declaration.h"
+#include "drawing_text_typography.h"
#include "drawing_types.h"
#ifdef __cplusplus
@@ -208,6 +209,59 @@ void OH_Drawing_DestroyRunPositions(OH_Drawing_Array* positions);
* @since 18
*/
uint32_t OH_Drawing_GetRunGlyphCount(OH_Drawing_Run* run);
+
+/**
+ * @brief Gets the Font Object of run.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param run Indicates the pointer to an OH_Drawing_Run object.
+ * @return The Font Object of run.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_Font* OH_Drawing_GetRunFont(OH_Drawing_Run* run);
+
+/**
+ * @brief Get the text direction.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param run Indicates the pointer to an OH_Drawing_Run object.
+ * @return Return the text direction of an OH_Drawing_TextDirection object.
+ * @since 20
+ */
+OH_Drawing_TextDirection OH_Drawing_GetRunTextDirection(OH_Drawing_Run* run);
+
+/**
+ * @brief Gets the glyph advance array.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param run Indicates the pointer to an OH_Drawing_Run object.
+ * @param start The run of start index.
+ * @param length The run of length, if start and length are set to 0, then get all of the current run.
+ * @return Indicates the pointer to the glyph advance array object OH_Drawing_Array.
+ * @since 20
+ */
+OH_Drawing_Array* OH_Drawing_GetRunGlyphAdvances(OH_Drawing_Run* run, uint32_t start, uint32_t length);
+
+/**
+ * @brief Gets the glyph advance by index.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param advances The glyph advance array object OH_Drawing_Array.
+ * @param index The run of glyph index.
+ * @return Run of glyph advance pointer to an OH_Drawing_Point object.
+ * @since 20
+ */
+OH_Drawing_Point* OH_Drawing_GetRunGlyphAdvanceByIndex(OH_Drawing_Array* advances, size_t index);
+
+/**
+ * @brief Releases the memory of glyph advance array.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param advances The run of glyph advance array object OH_Drawing_Array.
+ * @since 20
+ */
+void OH_Drawing_DestroyRunGlyphAdvances(OH_Drawing_Array* advances);
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h
index 9666217288d549c081114e2ed343c13d6a8f6973..9bdf581f61da05374d9028e623b2e958a73126aa 100644
--- a/graphic/graphic_2d/native_drawing/drawing_text_typography.h
+++ b/graphic/graphic_2d/native_drawing/drawing_text_typography.h
@@ -64,12 +64,12 @@ extern "C" {
* @since 8
* @version 1.0
*/
-enum OH_Drawing_TextDirection {
+typedef enum OH_Drawing_TextDirection {
/** Right to left (RTL) */
TEXT_DIRECTION_RTL,
/** Left to right (LTR) */
TEXT_DIRECTION_LTR,
-};
+} OH_Drawing_TextDirection;
/**
* @brief Enumerates text alignment modes.
@@ -77,7 +77,7 @@ enum OH_Drawing_TextDirection {
* @since 8
* @version 1.0
*/
-enum OH_Drawing_TextAlign {
+typedef enum OH_Drawing_TextAlign {
/** Left-aligned */
TEXT_ALIGN_LEFT,
/** Right-aligned */
@@ -103,7 +103,7 @@ enum OH_Drawing_TextAlign {
* when OH_Drawing_TextDirection is TEXT_DIRECTION_RTL.
*/
TEXT_ALIGN_END,
-};
+} OH_Drawing_TextAlign;
/**
* @brief Enumerates font weights.
@@ -111,7 +111,7 @@ enum OH_Drawing_TextAlign {
* @since 8
* @version 1.0
*/
-enum OH_Drawing_FontWeight {
+typedef enum OH_Drawing_FontWeight {
/** Thin */
FONT_WEIGHT_100,
/** Extra-light */
@@ -130,7 +130,7 @@ enum OH_Drawing_FontWeight {
FONT_WEIGHT_800,
/** Black */
FONT_WEIGHT_900,
-};
+} OH_Drawing_FontWeight;
/**
* @brief Enumerates text baselines.
@@ -138,12 +138,12 @@ enum OH_Drawing_FontWeight {
* @since 8
* @version 1.0
*/
-enum OH_Drawing_TextBaseline {
+typedef enum OH_Drawing_TextBaseline {
/** Alphabetic, where the letters in alphabets like English sit on. */
TEXT_BASELINE_ALPHABETIC,
/** Ideographic. The baseline is at the bottom of the text area. */
TEXT_BASELINE_IDEOGRAPHIC,
-};
+} OH_Drawing_TextBaseline;
/**
* @brief Enumerates text decorations.
@@ -151,7 +151,7 @@ enum OH_Drawing_TextBaseline {
* @since 8
* @version 1.0
*/
-enum OH_Drawing_TextDecoration {
+typedef enum OH_Drawing_TextDecoration {
/** No decoration. */
TEXT_DECORATION_NONE = 0x0,
/** A underline is used for decoration. */
@@ -160,7 +160,7 @@ enum OH_Drawing_TextDecoration {
TEXT_DECORATION_OVERLINE = 0x2,
/** A strikethrough is used for decoration. */
TEXT_DECORATION_LINE_THROUGH = 0x4,
-};
+} OH_Drawing_TextDecoration;
/**
* @brief Enumerates font styles.
@@ -168,14 +168,14 @@ enum OH_Drawing_TextDecoration {
* @since 8
* @version 1.0
*/
-enum OH_Drawing_FontStyle {
+typedef enum OH_Drawing_FontStyle {
/** Normal style */
FONT_STYLE_NORMAL,
/** Italic style */
FONT_STYLE_ITALIC,
/** Oblique style */
FONT_STYLE_OBLIQUE,
-};
+} OH_Drawing_FontStyle;
/**
* @brief Enumerates placeholder vertical alignment.
@@ -196,6 +196,11 @@ typedef enum {
ALIGNMENT_BOTTOM_OF_ROW_BOX,
/** Center of Row Box */
ALIGNMENT_CENTER_OF_ROW_BOX,
+ /**
+ * Follow paragraph setting
+ * @since 20
+ */
+ ALIGNMENT_FOLLOW_PARAGRAPH,
} OH_Drawing_PlaceholderVerticalAlignment;
/**
@@ -326,7 +331,7 @@ typedef enum {
* @since 12
* @version 1.0
*/
-enum OH_Drawing_FontConfigInfoErrorCode {
+typedef enum OH_Drawing_FontConfigInfoErrorCode {
/** The list of system font configuration information was successfully obtained */
SUCCESS_FONT_CONFIG_INFO = 0,
/** Unknown error */
@@ -337,7 +342,7 @@ enum OH_Drawing_FontConfigInfoErrorCode {
ERROR_FONT_CONFIG_INFO_ALLOC_MEMORY = 3,
/** Copy string data error */
ERROR_FONT_CONFIG_INFO_COPY_STRING_DATA = 4,
-};
+} OH_Drawing_FontConfigInfoErrorCode;
/**
* @brief Fallback font information.
@@ -512,7 +517,7 @@ typedef struct OH_Drawing_LineMetrics {
* @since 12
* @version 1.0
*/
-enum OH_Drawing_TextHeightBehavior {
+typedef enum OH_Drawing_TextHeightBehavior {
/** both ascend of first row and last row style */
TEXT_HEIGHT_ALL = 0x0,
/** forbidding ascend of first row style*/
@@ -521,7 +526,7 @@ enum OH_Drawing_TextHeightBehavior {
TEXT_HEIGHT_DISABLE_LAST_ASCENT = 0x2,
/** neither ascend of first row nor last row style */
TEXT_HEIGHT_DISABLE_ALL = 0x1 | 0x2,
-};
+} OH_Drawing_TextHeightBehavior;
/**
* @brief Enumerates text style type.
@@ -529,7 +534,7 @@ enum OH_Drawing_TextHeightBehavior {
* @since 12
* @version 1.0
*/
-enum OH_Drawing_TextStyleType {
+typedef enum OH_Drawing_TextStyleType {
/** None style */
TEXT_STYLE_NONE,
/** All attributes style */
@@ -548,7 +553,7 @@ enum OH_Drawing_TextStyleType {
TEXT_STYLE_LETTER_SPACING,
/** Word spacing style */
TEXT_STYLE_WORD_SPACING
-};
+} OH_Drawing_TextStyleType;
/**
* @brief Enumerates font width.
@@ -556,7 +561,7 @@ enum OH_Drawing_TextStyleType {
* @since 12
* @version 1.0
*/
-enum OH_Drawing_FontWidth {
+typedef enum OH_Drawing_FontWidth {
/* Ultra condensed font width */
FONT_WIDTH_ULTRA_CONDENSED = 1,
/* Extra condensed font width */
@@ -575,7 +580,39 @@ enum OH_Drawing_FontWidth {
FONT_WIDTH_EXTRA_EXPANDED = 8,
/* Ultra expanded font width */
FONT_WIDTH_ULTRA_EXPANDED = 9,
-};
+} OH_Drawing_FontWidth;
+
+/**
+ * @brief Type of badge.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef enum OH_Drawing_TextBadgeType {
+ /* No badge */
+ TEXT_BADGE_NONE,
+ /* Superscript */
+ TEXT_SUPERSCRIPT,
+ /* Subscript */
+ TEXT_SUBSCRIPT,
+} OH_Drawing_TextBadgeType;
+
+/**
+ * @brief Type of vertical alignment.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef enum OH_Drawing_TextVerticalAlignment {
+ /** Baseline of text line */
+ TEXT_VERTICAL_ALIGNMENT_BASELINE,
+ /** Bottom of text line */
+ TEXT_VERTICAL_ALIGNMENT_BOTTOM,
+ /** Center of text line */
+ TEXT_VERTICAL_ALIGNMENT_CENTER,
+ /** Top of text line */
+ TEXT_VERTICAL_ALIGNMENT_TOP
+} OH_Drawing_TextVerticalAlignment;
/**
* @brief Defines the font style struct.
@@ -975,6 +1012,20 @@ void OH_Drawing_TypographyHandlerPushTextStyle(OH_Drawing_TypographyCreate* hand
*/
void OH_Drawing_TypographyHandlerAddText(OH_Drawing_TypographyCreate* handler, const char* text);
+/**
+ * @brief Sets the text content. The content supports UTF-8, UTF-16, and UTF-32 formats.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param handler Indicates the pointer to an OH_Drawing_TypographyCreate object.
+ * @param text Indicates the pointer to the text content to set.
+ * @param byteLength Set the byte length of the text content.
+ * @param textEncodingType Indicates the text encoding type OH_Drawing_TextEncoding.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_TypographyHandlerAddEncodedText(OH_Drawing_TypographyCreate* handler, const void* text,
+ size_t byteLength, OH_Drawing_TextEncoding textEncodingType);
+
/**
* @brief Removes the topmost style in the stack, leaving the remaining styles in effect.
*
@@ -1272,6 +1323,8 @@ size_t OH_Drawing_GetSizeOfTextBox(OH_Drawing_TextBox* textBox);
* @return Returns the glyphposition at coordinate.
* @since 11
* @version 1.0
+ * @deprecated since 18
+ * @useinstead OH_Drawing_TypographyGetGlyphPositionAtCoordinateWithCluster
*/
OH_Drawing_PositionAndAffinity* OH_Drawing_TypographyGetGlyphPositionAtCoordinate(OH_Drawing_Typography* typography,
double dx, double dy);
@@ -1421,6 +1474,8 @@ void OH_Drawing_SetTextStyleHalfLeading(OH_Drawing_TextStyle* style, bool halfLe
* @param ellipsis Indicates the pointer to ellipsis style.
* @since 11
* @version 1.0
+ * @deprecated since 18
+ * @useinstead OH_Drawing_SetTypographyTextEllipsis
*/
void OH_Drawing_SetTextStyleEllipsis(OH_Drawing_TextStyle* style, const char* ellipsis);
@@ -1432,6 +1487,8 @@ void OH_Drawing_SetTextStyleEllipsis(OH_Drawing_TextStyle* style, const char* el
* @param ellipsisModal Indicates the ellipsis model to set. For details, see the enum OH_Drawing_EllipsisModal.
* @since 11
* @version 1.0
+ * @deprecated since 18
+ * @useinstead OH_Drawing_SetTypographyTextEllipsisModal
*/
void OH_Drawing_SetTextStyleEllipsisModal(OH_Drawing_TextStyle* style, int ellipsisModal);
@@ -1683,6 +1740,8 @@ OH_Drawing_TextStyle* OH_Drawing_TypographyGetTextStyle(OH_Drawing_TypographySty
* @return Returns line text align.
* @since 12
* @version 1.0
+ * @deprecated since 18
+ * @useinstead OH_Drawing_TypographyStyleGetEffectiveAlignment
*/
int OH_Drawing_TypographyGetEffectiveAlignment(OH_Drawing_TypographyStyle* style);
@@ -2323,6 +2382,19 @@ double OH_Drawing_TextStyleGetFontHeight(OH_Drawing_TextStyle* style);
*/
bool OH_Drawing_TextStyleGetHalfLeading(OH_Drawing_TextStyle* style);
+/**
+ * @brief Sets the typography vertical alignment mode.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param style Indicates the pointer to an OH_Drawing_TypographyStyle object.
+ * @param align Indicates the typography vertical alignment mode. For details,
+ * see the enum OH_Drawing_TextVerticalAlignment.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_SetTypographyVerticalAlignment(OH_Drawing_TypographyStyle* style,
+ OH_Drawing_TextVerticalAlignment align);
+
/**
* @brief Gets the locale.
*
@@ -2598,6 +2670,65 @@ int32_t OH_Drawing_TypographyGetUnresolvedGlyphsCount(OH_Drawing_Typography* typ
*/
void OH_Drawing_TypographyUpdateFontSize(OH_Drawing_Typography* typography, size_t from, size_t to, float fontSize);
+/**
+ * @brief Update the font color of the typography.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param typography Indicates the pointer to the text OH_Drawing_Typography object.
+ * @param color Indicates the color to update.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_TypographyUpdateFontColor(OH_Drawing_Typography* typography, uint32_t color);
+
+/**
+ * @brief Update the decoration of the typography.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param typography Indicates the pointer to the text OH_Drawing_Typography object.
+ * @param decoration Indicates the text decoration to update. For details, see the enum
+ * OH_Drawing_TextDecoration.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_TypographyUpdateDecoration(OH_Drawing_Typography* typography, OH_Drawing_TextDecoration decoration);
+
+/**
+ * @brief Update the decoration thickness scale of the typography.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param typography Indicates the pointer to the text OH_Drawing_Typography object.
+ * @param decorationThicknessScale Indicates the thickness scale of the text decoration to update.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_TypographyUpdateDecorationThicknessScale(OH_Drawing_Typography* typography,
+ double decorationThicknessScale);
+
+/**
+ * @brief Update the decoration style of the typography.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param typography Indicates the pointer to the text OH_Drawing_Typography object.
+ * @param decorationStyle Indicates the text decoration style to update.
+ * For details, see the enum OH_Drawing_TextDecorationStyle.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_TypographyUpdateDecorationStyle(OH_Drawing_Typography* typography,
+ OH_Drawing_TextDecorationStyle decorationStyle);
+
+/**
+ * @brief Updates the decoration color of the paragraph.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param typography Indicates the pointer to the text OH_Drawing_Typography object.
+ * @param color Indicates the text decoration color to update.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Drawing_TypographyUpdateDecorationColor(OH_Drawing_Typography* typography, uint32_t color);
+
/**
* @brief Get whether the text layout enables line styles.
*
@@ -2899,6 +3030,71 @@ void OH_Drawing_SetTypographyTextTab(OH_Drawing_TypographyStyle* style, OH_Drawi
*/
size_t OH_Drawing_GetDrawingArraySize(OH_Drawing_Array* drawingArray);
+/**
+* @brief Sets whether to optimize whitespace at the end of each line for text typography.
+*
+* @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+* @param style Indicates the pointer to an OH_Drawing_TypographyStyle object.
+* @param trailingSpaceOptimized Boolean value indicating whether to optimize whitespace at the end of each line
+* for text typography to set.
+* @since 20
+* @version 1.0
+*/
+void OH_Drawing_SetTypographyTextTrailingSpaceOptimized(OH_Drawing_TypographyStyle* style, bool trailingSpaceOptimized);
+
+/**
+ * @brief Sets whether to use superscript or subscript in text layout.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param style Pointer to an OH_Drawing_TextStyle object.
+ * @param textBadgeType Superscript or subscript to use.
+ * @since 20
+ */
+void OH_Drawing_SetTextStyleBadgeType(OH_Drawing_TextStyle* style, OH_Drawing_TextBadgeType textBadgeType);
+
+/**
+ * @brief Set whether to enable automatic spacing between Chinese and English for paragraph.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param style Indicates the pointer to an OH_Drawing_TypographyStyle object.
+ * @param enableAutoSpace Indicates Whether to enable automatic spacing between Chinese and English.
+ * @since 20
+ */
+void OH_Drawing_SetTypographyTextAutoSpace(OH_Drawing_TypographyStyle* style, bool enableAutoSpace);
+
+/**
+ * @brief Copy a typography style object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param style Indicates the pointer to an OH_Drawing_TypographyStyle object.
+ * @return Returns the pointer to the copied OH_Drawing_TypographyStyle object.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_TypographyStyle* OH_Drawing_CopyTypographyStyle(OH_Drawing_TypographyStyle* style);
+
+/**
+ * @brief Copy a text style object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param style Indicates the pointer to an OH_Drawing_TextStyle object.
+ * @return Returns the pointer to the copied OH_Drawing_TextStyle object.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_TextStyle* OH_Drawing_CopyTextStyle(OH_Drawing_TextStyle* style);
+
+/**
+ * @brief Copy a text shadow object.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param shadow Indicates the pointer to an OH_Drawing_TextShadow object.
+ * @return Returns the pointer to the copied OH_Drawing_TextShadow object.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_TextShadow* OH_Drawing_CopyTextShadow(OH_Drawing_TextShadow* shadow);
+
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_drawing/drawing_types.h b/graphic/graphic_2d/native_drawing/drawing_types.h
index 65a39f67298c7ddae2e31dad9a64bc39d7314fc7..a7e5680cf25e1f4c782ba610e4c4a359ae65c0a3 100644
--- a/graphic/graphic_2d/native_drawing/drawing_types.h
+++ b/graphic/graphic_2d/native_drawing/drawing_types.h
@@ -232,6 +232,14 @@ typedef struct OH_Drawing_ColorFilter OH_Drawing_ColorFilter;
*/
typedef struct OH_Drawing_Font OH_Drawing_Font;
+/**
+ * @brief Defines fontFeatures, which is used to describe the features for a font.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef struct OH_Drawing_FontFeatures OH_Drawing_FontFeatures;
+
/**
* @brief Defines a memoryStream, which is used to describe the memory stream.
*
diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
index e13687d429e5ac4b5fe5f166a49471ba61797534..7472ebb07985bc1347f7f672324792cae5f576ec 100644
--- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
+++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
@@ -29,12 +29,32 @@
},
{ "name": "OH_Drawing_BrushDestroy" },
{ "name": "OH_Drawing_BrushGetAlpha" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_BrushGetAlphaFloat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_BrushGetRedFloat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_BrushGetGreenFloat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_BrushGetBlueFloat"
+ },
{ "name": "OH_Drawing_BrushSetAlpha" },
{ "name": "OH_Drawing_BrushSetBlendMode" },
{ "name": "OH_Drawing_BrushIsAntiAlias" },
{ "name": "OH_Drawing_BrushSetAntiAlias" },
{ "name": "OH_Drawing_BrushGetColor" },
{ "name": "OH_Drawing_BrushSetColor" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_BrushSetColor4f"
+ },
{ "name": "OH_Drawing_BrushSetFilter" },
{
"first_introduced": "12",
@@ -50,6 +70,10 @@
"name": "OH_Drawing_BrushReset"
},
{ "name": "OH_Drawing_CanvasCreate" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_CanvasCreateWithPixelMap"
+ },
{ "name": "OH_Drawing_CanvasDestroy" },
{ "name": "OH_Drawing_CanvasBind" },
{ "name": "OH_Drawing_CanvasAttachPen" },
@@ -72,6 +96,10 @@
"first_introduced": "12",
"name": "OH_Drawing_CanvasDrawPixelMapRect"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_CanvasDrawPixelMapRectConstraint"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_CanvasDrawPoints"
@@ -177,6 +205,10 @@
{ "name": "OH_Drawing_ColorFilterCreateCompose" },
{ "name": "OH_Drawing_ColorFilterCreateLinearToSrgbGamma" },
{ "name": "OH_Drawing_ColorFilterCreateLuma" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ColorFilterCreateLighting"
+ },
{ "name": "OH_Drawing_ColorFilterCreateMatrix" },
{ "name": "OH_Drawing_ColorFilterCreateSrgbGammaToLinear" },
{ "name": "OH_Drawing_ColorFilterDestroy" },
@@ -274,6 +306,22 @@
"first_introduced": "12",
"name": "OH_Drawing_FontMeasureText"
},
+ {
+ "first_introduced": "19",
+ "name": "OH_Drawing_FontMeasureTextWithBrushOrPen"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_Drawing_FontGetWidthsBounds"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_Drawing_FontGetPos"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_Drawing_FontGetSpacing"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_FontSetBaselineSnap"
@@ -334,16 +382,32 @@
"first_introduced": "12",
"name": "OH_Drawing_ImageFilterCreateBlur"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ImageFilterCreateBlurWithCrop"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_ImageFilterCreateFromColorFilter"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ImageFilterCreateOffset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ImageFilterCreateFromShaderEffect"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_ImageFilterDestroy"
},
{ "name": "OH_Drawing_MaskFilterCreateBlur" },
{ "name": "OH_Drawing_MaskFilterDestroy" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_MatrixCopy"
+ },
{ "name": "OH_Drawing_MatrixCreate" },
{ "name": "OH_Drawing_MatrixCreateRotation" },
{ "name": "OH_Drawing_MatrixCreateScale" },
@@ -515,6 +579,34 @@
"first_introduced": "12",
"name": "OH_Drawing_PathGetMatrix"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathGetFillType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathIsEmpty"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathIsRect"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathSetPath"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathApproximate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathInterpolate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PathIsInterpolate"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_PenCopy"
@@ -523,11 +615,31 @@
{ "name": "OH_Drawing_PenDestroy" },
{ "name": "OH_Drawing_PenGetAlpha" },
{ "name": "OH_Drawing_PenSetAlpha" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PenGetAlphaFloat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PenGetRedFloat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PenGetGreenFloat"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PenGetBlueFloat"
+ },
{ "name": "OH_Drawing_PenSetBlendMode" },
{ "name": "OH_Drawing_PenIsAntiAlias" },
{ "name": "OH_Drawing_PenSetAntiAlias" },
{ "name": "OH_Drawing_PenGetColor" },
{ "name": "OH_Drawing_PenSetColor" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_PenSetColor4f"
+ },
{ "name": "OH_Drawing_PenGetWidth" },
{ "name": "OH_Drawing_PenSetWidth" },
{ "name": "OH_Drawing_PenGetMiterLimit" },
@@ -653,6 +765,10 @@
"first_introduced": "12",
"name": "OH_Drawing_RoundRectGetCorner"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_RoundRectCopy"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_RoundRectSetCorner"
@@ -694,15 +810,27 @@
"first_introduced": "12",
"name": "OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ShaderEffectCreateSweepGradientWithLocalMatrix"
+ },
{ "name": "OH_Drawing_ShaderEffectCreateSweepGradient" },
{
"first_introduced": "12",
"name": "OH_Drawing_ShaderEffectCreateImageShader"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ShaderEffectCreatePixelMapShader"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_ShaderEffectCreateTwoPointConicalGradient"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_ShaderEffectCreateCompose"
+ },
{ "name": "OH_Drawing_ShaderEffectDestroy" },
{
"first_introduced": "12",
@@ -805,6 +933,10 @@
"name": "OH_Drawing_ImageGetImageInfo"
},
{ "name": "OH_Drawing_SamplingOptionsCreate" },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SamplingOptionsCopy"
+ },
{ "name": "OH_Drawing_SamplingOptionsDestroy" },
{
"first_introduced": "12",
@@ -970,6 +1102,10 @@
"first_introduced": "11",
"name": "OH_Drawing_RegisterFontBuffer"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_UnregisterFont"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_TypographyGetLineTextRange"
@@ -1182,6 +1318,10 @@
"first_introduced": "12",
"name": "OH_Drawing_RegionCreate"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_RegionCopy"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_RegionContains"
@@ -1470,6 +1610,26 @@
"first_introduced": "12",
"name": "OH_Drawing_TypographyUpdateFontSize"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_TypographyUpdateFontColor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_TypographyUpdateDecoration"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_TypographyUpdateDecorationThicknessScale"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_TypographyUpdateDecorationStyle"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_TypographyUpdateDecorationColor"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_TypographyTextGetLineStyle"
@@ -1770,10 +1930,30 @@
"first_introduced": "18",
"name":"OH_Drawing_GetRunGlyphCount"
},
+ {
+ "first_introduced": "20",
+ "name":"OH_Drawing_GetRunTextDirection"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Drawing_GetRunGlyphAdvances"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Drawing_GetRunGlyphAdvanceByIndex"
+ },
+ {
+ "first_introduced": "20",
+ "name":"OH_Drawing_DestroyRunGlyphAdvances"
+ },
{
"first_introduced": "14",
"name":"OH_Drawing_GetFontCollectionGlobalInstance"
},
+ {
+ "first_introduced": "20",
+ "name":"OH_Drawing_GetRunFont"
+ },
{
"first_introduced": "18",
"name":"OH_Drawing_CanvasQuickRejectPath"
@@ -1793,5 +1973,69 @@
{
"first_introduced": "18",
"name": "OH_Drawing_CanvasDrawPixelMapNine"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SetTypographyTextTrailingSpaceOptimized"
+ },
+ {
+ "first_introduced": "19",
+ "name":"OH_Drawing_CanvasDrawRecordCmdNesting"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SetTextStyleBadgeType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SetTypographyTextAutoSpace"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SetTextHighContrast"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SetTextUndefinedGlyphDisplay"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_SetTypographyVerticalAlignment"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_TypographyHandlerAddEncodedText"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_CopyTextStyle"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_CopyTypographyStyle"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_CopyTextShadow"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_CanvasDrawSingleCharacterWithFeatures"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_FontMeasureSingleCharacterWithFeatures"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_FontFeaturesCreate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_FontFeaturesAddFeature"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Drawing_FontFeaturesDestroy"
}
]
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_effect/effect_filter.h b/graphic/graphic_2d/native_effect/effect_filter.h
index 065643a8f76d7470e4107daa7fa0d809d53b4908..feb4fae62081d1b4554f8262d5b2f574366521a7 100644
--- a/graphic/graphic_2d/native_effect/effect_filter.h
+++ b/graphic/graphic_2d/native_effect/effect_filter.h
@@ -14,7 +14,7 @@
*/
/**
- * @addtogroup image
+ * @addtogroup effectKit
* @{
*
* @brief Provides APIs for obtaining effect filter and information.
diff --git a/graphic/graphic_2d/native_effect/effect_types.h b/graphic/graphic_2d/native_effect/effect_types.h
index d84b05e134f1e9bc292defe4b0d6ddd80e0d4236..645e37bfe32da74446b966cd8c90a879e82930ea 100644
--- a/graphic/graphic_2d/native_effect/effect_types.h
+++ b/graphic/graphic_2d/native_effect/effect_types.h
@@ -14,7 +14,7 @@
*/
/**
- * @addtogroup image
+ * @addtogroup effectKit
* @{
*
* @brief Provides APIs for obtaining effect filter and information.
diff --git a/graphic/graphic_2d/native_fence/BUILD.gn b/graphic/graphic_2d/native_fence/BUILD.gn
new file mode 100755
index 0000000000000000000000000000000000000000..11030efb93e821e25ee443be79fd3ac5556035c8
--- /dev/null
+++ b/graphic/graphic_2d/native_fence/BUILD.gn
@@ -0,0 +1,29 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+import("//build/ohos/ndk/ndk.gni")
+
+ohos_ndk_headers("native_fence_header") {
+ dest_dir = "$ndk_headers_out_dir/native_fence"
+ sources =
+ [ "//interface/sdk_c/graphic/graphic_2d/native_fence/native_fence.h" ]
+}
+
+ohos_ndk_library("libnative_fence_ndk") {
+ output_name = "native_fence"
+ output_extension = "so"
+ ndk_description_file = "./libnative_fence.ndk.json"
+ system_capability = "SystemCapability.Graphic.Graphic2D.NativeWindow"
+ system_capability_headers = [ "native_fence/native_fence.h" ]
+}
diff --git a/graphic/graphic_2d/native_fence/libnative_fence.ndk.json b/graphic/graphic_2d/native_fence/libnative_fence.ndk.json
new file mode 100755
index 0000000000000000000000000000000000000000..b29686ae54cee229a97c387a519564211aca7d69
--- /dev/null
+++ b/graphic/graphic_2d/native_fence/libnative_fence.ndk.json
@@ -0,0 +1,18 @@
+[
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeFence_IsValid"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeFence_Wait"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeFence_WaitForever"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeFence_Close"
+ }
+]
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_fence/native_fence.h b/graphic/graphic_2d/native_fence/native_fence.h
new file mode 100755
index 0000000000000000000000000000000000000000..fff18fec3c99d14f4be9d197d9626c238365aca8
--- /dev/null
+++ b/graphic/graphic_2d/native_fence/native_fence.h
@@ -0,0 +1,105 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup NativeFence
+ * @{
+ *
+ * @brief Provides the native fence capability
+ *
+ * @since 20
+ * @version 1.0
+ */
+
+/**
+ * @file native_fence.h
+ *
+ * @brief Defines the functions for using native fence.
+ *
+ * @kit ArkGraphics2D
+ * @library libnative_fence.so
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeWindow
+ * @since 20
+ * @version 1.0
+ */
+
+#ifndef NDK_INCLUDE_NATIVE_FENCE_H_
+#define NDK_INCLUDE_NATIVE_FENCE_H_
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Checks if the fenceFd is valid.
+ *
+ * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization.
+ * @return Returns true if the fenceFd is valid.
+ * Returns false if the fenceFd is a negative integer.
+ * @since 20
+ * @version 1.0
+ */
+bool OH_NativeFence_IsValid(int fenceFd);
+
+/**
+ * @brief Waits for a fence signal. The maximum waiting time is determined by the timeout parameter.
+ * The incoming fenceFd needs to be closed by the user themselves.
+ *
+ * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization.
+ * @param timeout Indicates the timeout duration.
+ * The unit is milliseconds, 0 represents immediate return.
+ * @return Returns true if the fence signaled.
+ * Returns false in the following cases:
+ * 1.if the fenceFd is a negative integer.
+ * 2.no event occurred within the specified timeout period.
+ * 3.the underlying poll interface call failed.
+ * 4.the timeout value is 0.
+ * 5.failed to duplicate the file descriptor.
+ * @since 20
+ * @version 1.0
+ */
+bool OH_NativeFence_Wait(int fenceFd, uint32_t timeout);
+
+/**
+ * @brief Waits forever for a fence signal.
+ * The incoming fenceFd needs to be closed by the user themselves.
+ *
+ * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization.
+ * @return Returns true if the fence signaled.
+ * Returns false in the following cases:
+ * 1.if the fenceFd is a negative integer.
+ * 2.no incidents have occurred, permanent waiting.
+ * 3.failed to duplicate the file descriptor.
+ * @since 20
+ * @version 1.0
+ */
+bool OH_NativeFence_WaitForever(int fenceFd);
+
+/**
+ * @brief Close the fenceFd.
+ *
+ * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization.
+ * This value is a non negative integer.
+ * @since 20
+ * @version 1.0
+ */
+void OH_NativeFence_Close(int fenceFd);
+#ifdef __cplusplus
+}
+#endif
+/** @} */
+#endif
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_image/libnative_image.ndk.json b/graphic/graphic_2d/native_image/libnative_image.ndk.json
index 1b40db3aafe575c466ec47ad9d4c2a83a71e8e2d..0a09bba188067f7d55a6428f842f4330a4cb92d6 100644
--- a/graphic/graphic_2d/native_image/libnative_image.ndk.json
+++ b/graphic/graphic_2d/native_image/libnative_image.ndk.json
@@ -34,5 +34,9 @@
{
"first_introduced": "13",
"name": "OH_ConsumerSurface_SetDefaultSize"
+ },
+ {
+ "first_introduced": "17",
+ "name": "OH_NativeImage_SetDropBufferMode"
}
]
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_image/native_image.h b/graphic/graphic_2d/native_image/native_image.h
index 83d30d81ff180b3b6c41b8106f567a36484f80c3..a2c81cae703d9794e243c1550ddb7f259fe34904 100644
--- a/graphic/graphic_2d/native_image/native_image.h
+++ b/graphic/graphic_2d/native_image/native_image.h
@@ -350,6 +350,27 @@ int32_t OH_ConsumerSurface_SetDefaultUsage(OH_NativeImage* image, uint64_t usage
* @version 1.0
*/
int32_t OH_ConsumerSurface_SetDefaultSize(OH_NativeImage* image, int32_t width, int32_t height);
+
+/**
+ * @brief Set the rendering in drop buffer mode of the OH_NativeImage.\n
+ * In this mode, most of the buffers produced by the producer will be discarded,
+ * and the latest buffer will be selected for rending.\n
+ * This mode can not simultaneously guarantee high frame rate requirements.\n
+ * This interface suggest be called after the OH_NativeImage_Create call immediately.\n
+ * This interface will only take effect when used together with the OH_NativeImage_UpdateSurfaceImage.\n
+ * The listener callback set through OH-NativeImage_SetOnFrameAvailableListener will not decrease
+ * due to the frame loss mode being set.\n
+ * This interface is a non-thread-safe type interface.\n
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeImage
+ * @param image Indicates the pointer to a OH_NativeImage instance.
+ * @param isOpen Indicates the switch of drop buffer mode.
+ * @return {@link NATIVE_ERROR_OK} 0 - Success.
+ * {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - image is NULL.
+ * @since 17
+ * @version 1.0
+ */
+int32_t OH_NativeImage_SetDropBufferMode(OH_NativeImage* image, bool isOpen);
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_vsync/libnative_vsync.ndk.json b/graphic/graphic_2d/native_vsync/libnative_vsync.ndk.json
index 5362d474e0217b0a4b53c0ed0924b05a53e69d88..ca01c8fbb56c5a0db920d4fd44f125457b7ff0f4 100644
--- a/graphic/graphic_2d/native_vsync/libnative_vsync.ndk.json
+++ b/graphic/graphic_2d/native_vsync/libnative_vsync.ndk.json
@@ -8,5 +8,9 @@
{
"first_introduced": "14",
"name": "OH_NativeVSync_DVSyncSwitch"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeVSync_SetExpectedFrameRateRange"
}
]
\ No newline at end of file
diff --git a/graphic/graphic_2d/native_vsync/native_vsync.h b/graphic/graphic_2d/native_vsync/native_vsync.h
index d9ef7562e336b80f72e0cfb492d42ab1587a945b..f670c283853005bb82d753e7da36a4ea9aaac6d6 100644
--- a/graphic/graphic_2d/native_vsync/native_vsync.h
+++ b/graphic/graphic_2d/native_vsync/native_vsync.h
@@ -39,6 +39,8 @@
#ifndef NDK_INCLUDE_NATIVE_VSYNC_H_
#define NDK_INCLUDE_NATIVE_VSYNC_H_
+#include
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -47,6 +49,21 @@ struct OH_NativeVSync;
typedef struct OH_NativeVSync OH_NativeVSync;
typedef void (*OH_NativeVSync_FrameCallback)(long long timestamp, void *data);
+/**
+ * @brief Defines the expected frame rate range struct.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef struct {
+ /**The minimum frame rate of dynamical callback rate range */
+ int32_t min;
+ /**The maximum frame rate of dynamical callback rate range */
+ int32_t max;
+ /**The expected frame rate of dynamical callback rate range */
+ int32_t expected;
+} OH_NativeVSync_ExpectedRateRange;
+
/**
* @brief Creates a NativeVsync instance.\n
* A new NativeVsync instance is created each time this function is called.
@@ -161,6 +178,22 @@ int OH_NativeVSync_GetPeriod(OH_NativeVSync* nativeVsync, long long* period);
* @version 1.0
*/
int OH_NativeVSync_DVSyncSwitch(OH_NativeVSync* nativeVsync, bool enable);
+
+/**
+ * @brief Sets the desired VSync frame rate and the range of the desired frame rate.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeVsync
+ * @param nativeVsync Pointer to an instance of {@link OH_NativeVSync}.
+ * @param range Pointer to an instance of {@link OH_NativeVSync_ExpectedRateRange}.\n
+ * The valid range for the desired frame rate is: 0 <= minimum <= desired frame rate <= maximum <= 144.\n
+ * A desired frame rate of 0 indicates that the desired frame rate is canceled.\n
+ * The developer is responsible for managing the lifecycle of this pointer.
+ * @return Returns 0 on success, other return values can be referenced from {@link OHNativeErrorCode}.
+ * @since 20
+ * @version 1.0
+ */
+
+int OH_NativeVSync_SetExpectedFrameRateRange(OH_NativeVSync* nativeVsync, OH_NativeVSync_ExpectedRateRange* range);
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_window/BUILD.gn b/graphic/graphic_2d/native_window/BUILD.gn
index 054fc6b6da4935c0468db617def42ed335b4c5d6..d76796b1fa86219e099a97dcbf99f57db3a2bc2d 100644
--- a/graphic/graphic_2d/native_window/BUILD.gn
+++ b/graphic/graphic_2d/native_window/BUILD.gn
@@ -31,5 +31,6 @@ ohos_ndk_library("libnative_window_ndk") {
system_capability_headers = [
"native_window/buffer_handle.h",
"native_window/external_window.h",
+ "native_window/graphic_error_code.h",
]
}
diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h
index 41b01ce8d0503a1eb63d77c705c13fb120de7c2e..eddae139d7fdf73859d5daa636e71a8b54e9eabd 100644
--- a/graphic/graphic_2d/native_window/external_window.h
+++ b/graphic/graphic_2d/native_window/external_window.h
@@ -544,6 +544,17 @@ int32_t OH_NativeWindow_NativeWindowAbortBuffer(OHNativeWindow *window, OHNative
* @brief Sets or obtains the attributes of a native window, including the width, height, and content format.\n
* This interface is a non-thread-safe type interface.\n
*
+ * API Note
+ *
+ * Performance Note
+ *
By default, the window buffer in the current operating system is accessed via the CPU. If an application
+ * does not need to access the window buffer data using the CPU, it can proactively disable CPU access to
+ * enhance energy efficiency and reduce power consumption.
+ *
+ * For details about how to optimize power consumption for data read/write operations in data buffers,
+ * see [How do I proactively disable CPU access to window buffers to reduce power consumption?]{@link https://developer.huawei.com/consumer/en/doc/harmonyos-faqs/faqs-arkgraphics-2d-14}.
+ *
+ *
* @syscap SystemCapability.Graphic.Graphic2D.NativeWindow
* @param window Indicates the pointer to a OHNativeWindow instance.
* @param code Indicates the operation code, pointer to NativeWindowOperation.
@@ -879,7 +890,7 @@ int32_t OH_NativeWindow_GetMetadataValue(OHNativeWindow *window, OH_NativeBuffer
* {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - window is NULL.
* {@link NATIVE_ERROR_CONSUMER_DISCONNECTED} 41211000 - the consumer is disconnected.
* {@link NATIVE_ERROR_BINDER_ERROR} 50401000 - ipc send failed.
- * @since 18
+ * @since 19
* @version 1.0
*/
int32_t OH_NativeWindow_CleanCache(OHNativeWindow *window);
diff --git a/graphic/graphic_2d/native_window/graphic_error_code.h b/graphic/graphic_2d/native_window/graphic_error_code.h
index fe1df86f5c29ca60c4afae5d6b519a95e7124115..820636e0854fc87c7436671b66ea443a983e10ba 100644
--- a/graphic/graphic_2d/native_window/graphic_error_code.h
+++ b/graphic/graphic_2d/native_window/graphic_error_code.h
@@ -19,13 +19,12 @@
*
* @brief Provides the error codes for native window.
*
- * @syscap SystemCapability.Graphic.Graphic2D.NativeWindow
* @since 12
* @version 1.0
*/
/**
- * @file external_window.h
+ * @file graphic_error_code.h
*
* @brief Defines the error codes.
*
diff --git a/graphic/graphic_2d/native_window/libnative_window.ndk.json b/graphic/graphic_2d/native_window/libnative_window.ndk.json
index ded24b2e8c3ab737e1f77313164f80f0920b1e59..e138057e80a9c0d13cc793b788204c4701e7a10e 100644
--- a/graphic/graphic_2d/native_window/libnative_window.ndk.json
+++ b/graphic/graphic_2d/native_window/libnative_window.ndk.json
@@ -52,7 +52,7 @@
"name": "OH_NativeWindow_GetMetadataValue"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_NativeWindow_CleanCache"
}
diff --git a/graphic/graphic_2d/vulkan/BUILD.gn b/graphic/graphic_2d/vulkan/BUILD.gn
index 8148cf1bd7ec376b650ef227ca3096ad7a2b8fad..4297765325f58058a52c473834b6b23fb8ba57b1 100644
--- a/graphic/graphic_2d/vulkan/BUILD.gn
+++ b/graphic/graphic_2d/vulkan/BUILD.gn
@@ -27,6 +27,9 @@ ohos_ndk_headers("vulkan_header") {
ohos_ndk_headers("vulkan_header_vk_video") {
dest_dir = "$ndk_headers_out_dir/vk_video"
sources = [
+ "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std.h",
+ "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_decode.h",
+ "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_encode.h",
"//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std.h",
"//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_decode.h",
"//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_encode.h",
diff --git a/hiviewdfx/hiappevent/BUILD.gn b/hiviewdfx/hiappevent/BUILD.gn
index 9a0c41b0c7f44e1835d9a8d8f3ba241db39e7d75..2720fb5e3f83c2ee6aaf5170bd55555bc780ace5 100644
--- a/hiviewdfx/hiappevent/BUILD.gn
+++ b/hiviewdfx/hiappevent/BUILD.gn
@@ -18,6 +18,12 @@ ohos_ndk_library("libhiappevent_ndk") {
ndk_description_file = "./libhiappevent.ndk.json"
min_compact_version = "1"
system_capability = "SystemCapability.HiviewDFX.HiAppEvent"
+ system_capability_headers = [
+ "hiappevent/hiappevent.h",
+ "hiappevent/hiappevent_cfg.h",
+ "hiappevent/hiappevent_event.h",
+ "hiappevent/hiappevent_param.h",
+ ]
}
ohos_ndk_headers("libhiappevent_header") {
diff --git a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h
index 07333c78149d308030bc3c6c1693cec052915417..6e41ae61a964e2c11718042081c58d57b14072a8 100644
--- a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h
+++ b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h
@@ -95,19 +95,34 @@ extern "C" {
typedef enum {
/** @error The operation is successful. */
HIAPPEVENT_SUCCESS = 0,
- /** @error Invalid param value length */
+ /**
+ * @error Invalid param value length
+ * @since 18
+ */
HIAPPEVENT_INVALID_PARAM_VALUE_LENGTH = 4,
- /** @error Processor is null */
+ /**
+ * @error Processor is null
+ * @since 18
+ */
HIAPPEVENT_PROCESSOR_IS_NULL = -7,
- /** @error Processor not found */
+ /**
+ * @error Processor not found
+ * @since 18
+ */
HIAPPEVENT_PROCESSOR_NOT_FOUND = -8,
/** @error Invalid param value */
HIAPPEVENT_INVALID_PARAM_VALUE = -9,
/** @error event config is null */
HIAPPEVENT_EVENT_CONFIG_IS_NULL = -10,
- /** @error Operate failed */
+ /**
+ * @error Operate failed
+ * @since 18
+ */
HIAPPEVENT_OPERATE_FAILED = -100,
- /** @error Invalid uid */
+ /**
+ * @error Invalid uid
+ * @since 18
+ */
HIAPPEVENT_INVALID_UID = -200
} HiAppEvent_ErrorCode;
@@ -137,7 +152,6 @@ enum EventType {
* @brief The HiAppEvent_AppEventInfo structure is used to represent event information in an application, including
* the event's domain, name, type, and parameters.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @since 12
* @version 1.0
*/
@@ -206,7 +220,6 @@ typedef struct HiAppEvent_Config HiAppEvent_Config;
* @brief The OH_HiAppEvent_OnReceive function acts as the callback function for the HiAppEvent_Watcher. It is called
* when an event occurs.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param domain The domain of the event.
* @param appEventGroups The event group by the domain.
* @param groupLen The length of appEventGroups array.
@@ -219,7 +232,6 @@ typedef void (*OH_HiAppEvent_OnReceive)(
/**
* @brief Called when watcher receive the event meet the condition.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param row The row of events received by watcher.
* @param size The size of events received by watcher.
* @since 12
@@ -230,7 +242,6 @@ typedef void (*OH_HiAppEvent_OnTrigger)(int row, int size);
/**
* @brief Called when watcher take the events.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param events The event json string array.
* @param eventLen The length of events array.
* @since 12
@@ -502,7 +513,6 @@ bool OH_HiAppEvent_Configure(const char* name, const char* value);
/**
* @brief Create a HiAppEvent_Watcher handler pointer to set the property.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param name The name of the watcher.
* @return Returns a pointer to the HiAppEvent_Watcher instance.
* @since 12
@@ -513,7 +523,6 @@ HiAppEvent_Watcher* OH_HiAppEvent_CreateWatcher(const char* name);
/**
* @brief Destroy the specified HiAppEvent_Watcher handle resource.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @since 12
* @version 1.0
@@ -525,7 +534,6 @@ void OH_HiAppEvent_DestroyWatcher(HiAppEvent_Watcher* watcher);
* interface and any of the condition which is set over than 0 met, the onTrigger callback set through
* OH_HiAppEvent_SetWatcherOnTrigger will be invoked.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @param row The row of write events that trigger the onTrigger callback.
* @param size The size of write events that trigger the onTrigger callback.
@@ -542,7 +550,6 @@ int OH_HiAppEvent_SetTriggerCondition(HiAppEvent_Watcher* watcher, int row, int
/**
* @brief The interface to set the AppEventFilter which defines the kind of app events will be received by the watcher.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @param domain The name of the event domain to be monitored by the watcher.
* @param eventTypes The types of the events to be monitored by the watcher.0x08 means BEHAVIOR,0x04 means
@@ -566,7 +573,6 @@ int OH_HiAppEvent_SetAppEventFilter(HiAppEvent_Watcher* watcher, const char* dom
* to nullptr, the app events received by the watcher will be saved. When the new saved appEvents met the conditions set
* by OH_HiAppEvent_SetTriggerCondition, the onTrigger callback will be invoked.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @param onTrigger The callback of the watcher.
* @return Returns 0 if set OnTrigger is successful, and returns a
@@ -582,7 +588,6 @@ int OH_HiAppEvent_SetWatcherOnTrigger(HiAppEvent_Watcher* watcher, OH_HiAppEvent
* @brief The interface to set onReceive callback for watcher. When the watcher received an app event, the onReceive
* callback set will be invoked.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @param onReceive The callback of the watcher.
* @return Returns 0 if set OnReceive is successful, and returns a
@@ -597,7 +602,6 @@ int OH_HiAppEvent_SetWatcherOnReceive(HiAppEvent_Watcher* watcher, OH_HiAppEvent
/**
* @brief The interface to take saved events data for the watcher.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @param eventNum The num of events to take.
* @param onTake The callback of the watcher.
@@ -614,7 +618,6 @@ int OH_HiAppEvent_TakeWatcherData(HiAppEvent_Watcher* watcher, uint32_t eventNum
/**
* @brief The interface to add the watcher. The watcher will start receiving app events after it is added.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance which receive the event.
* @return Returns 0 if add watcher is successful, and returns a
* negative integer if add fail.
@@ -628,7 +631,6 @@ int OH_HiAppEvent_AddWatcher(HiAppEvent_Watcher* watcher);
/**
* @brief The interface to remove the watcher. The watcher will stop receiving app events after it is removed.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @param watcher The pointer to the HiAppEvent_Watcher instance.
* @return Returns 0 if remove watcher is successful, and returns a
* negative integer if remove fail.
@@ -643,7 +645,6 @@ int OH_HiAppEvent_RemoveWatcher(HiAppEvent_Watcher* watcher);
/**
* @brief Clear all local saved event data of the application.
*
- * @SystemCapability.HiviewDFX.HiAppEvent
* @since 12
* @version 1.0
*/
@@ -739,6 +740,21 @@ int OH_HiAppEvent_SetCustomConfig(HiAppEvent_Processor* processor, const char* k
*/
int OH_HiAppEvent_SetConfigId(HiAppEvent_Processor* processor, int configId);
+/**
+ * @brief The interface to set config Name for processor.
+ *
+ * @param processor The pointer to the HiAppEvent_Processor instance.
+ * @param configName The configName of processor.
+ * @return set result.
+ * {@link HIAPPEVENT_SUCCESS} The operation is successful.
+ * {@link HIAPPEVENT_PROCESSOR_IS_NULL} The processor is nullptr.
+ * {@link HIAPPEVENT_INVALID_PARAM_VALUE} Invalid Param value.
+ * {@link HIAPPEVENT_INVALID_UID} Invalid uid.
+ * {@link HIAPPEVENT_INVALID_PARAM_VALUE_LENGTH} Invalid param value length.
+ * @since 20
+ */
+int OH_HiAppEvent_SetConfigName(HiAppEvent_Processor* processor, const char* configName);
+
/**
* @brief The interface to set user info for processor.
*
diff --git a/hiviewdfx/hiappevent/include/hiappevent/hiappevent_event.h b/hiviewdfx/hiappevent/include/hiappevent/hiappevent_event.h
index 63dc8cf01461d7d464400904b94cff1dfc51f386..06f186ed5ad34d88e25247429d918dc164c83242 100644
--- a/hiviewdfx/hiappevent/include/hiappevent/hiappevent_event.h
+++ b/hiviewdfx/hiappevent/include/hiappevent/hiappevent_event.h
@@ -160,6 +160,14 @@ extern "C" {
*/
#define EVENT_APP_HICOLLIE "APP_HICOLLIE"
+/**
+ * @brief app killed event.
+ *
+ * @since 20
+ * @version 1.0
+ */
+#define EVENT_APP_KILLED "APP_KILLED"
+
/**
* @brief OS domain.
*
diff --git a/hiviewdfx/hiappevent/libhiappevent.ndk.json b/hiviewdfx/hiappevent/libhiappevent.ndk.json
index 98c62ebeb65bc817b449d7317bca0ced0b136539..23733dddea6a5c4cc23a05e62cef08ec49b5a5d7 100644
--- a/hiviewdfx/hiappevent/libhiappevent.ndk.json
+++ b/hiviewdfx/hiappevent/libhiappevent.ndk.json
@@ -158,5 +158,9 @@
{
"first_introduced": "18",
"name": "OH_HiAppEvent_RemoveProcessor"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiAppEvent_SetConfigName"
}
]
diff --git a/hiviewdfx/hicollie/libhicollie.ndk.json b/hiviewdfx/hicollie/libhicollie.ndk.json
index 095797ad209982f6b9bdf341dcf863d658c4aefd..d4889e6aa75983a01a60e199ce0edd611a3f688f 100644
--- a/hiviewdfx/hicollie/libhicollie.ndk.json
+++ b/hiviewdfx/hicollie/libhicollie.ndk.json
@@ -3,6 +3,10 @@
"first_introduced": "12",
"name": "OH_HiCollie_Init_StuckDetection"
},
+ {
+ "first_introduced": "18",
+ "name": "OH_HiCollie_Init_StuckDetectionWithTimeout"
+ },
{
"first_introduced": "12",
"name": "OH_HiCollie_Init_JankDetection"
diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h
index 5cea6408ac506f6a99ddffe3d28486381fd6ef4b..76182c86ac54d313c66d03d7b145608514452a55 100644
--- a/hiviewdfx/hidebug/include/hidebug/hidebug.h
+++ b/hiviewdfx/hidebug/include/hidebug/hidebug.h
@@ -25,7 +25,7 @@
*/
/**
- * @file hideug.h
+ * @file hidebug.h
*
* @brief Defines the debug functions of the HiDebug module.
*
@@ -101,6 +101,20 @@ void OH_HiDebug_GetSystemMemInfo(HiDebug_SystemMemInfo *systemMemInfo);
*/
void OH_HiDebug_GetAppNativeMemInfo(HiDebug_NativeMemInfo *nativeMemInfo);
+/**
+ * @brief Obtains the memory info of application process, with optional caching to improve performance. The cached value
+ * remains valid for 5 minutes.
+ *
+ * @param nativeMemInfo Indicates the pointer to {@link HiDebug_NativeMemInfo}.
+ * If there is no data in structure after the function.The Possible reason is system error.
+ * @param forceRefresh Whether to bypass the cache and retrieve fresh data.
+ * Set to true to force retrieve fresh data and immediate refresh the cached value;
+ * Set to false to retrieve the cached value when it is valid; otherwise, retrieve
+ * fresh data and refresh the cache.
+ * @since 20
+ */
+void OH_HiDebug_GetAppNativeMemInfoWithCache(HiDebug_NativeMemInfo *nativeMemInfo, bool forceRefresh);
+
/**
* @brief Obtains the memory limit of application process.
*
@@ -151,6 +165,87 @@ HiDebug_ErrorCode OH_HiDebug_StopAppTraceCapture();
*/
HiDebug_ErrorCode OH_HiDebug_GetGraphicsMemory(uint32_t *value);
+/**
+ * @brief Replace MallocDispatch table with developer-defined memory allocation functions.
+ *
+ * @param dispatchTable A pointer to the MallocDispatch table.
+ * @return Result code
+ * {@link HIDEBUG_SUCCESS} The MallocDispatch table is successfully overriden.
+ * {@link HIDEBUG_INVALID_ARGUMENT} Invalid argument, dispatchTable is a null pointer.
+ * @since 20
+ */
+HiDebug_ErrorCode OH_HiDebug_SetMallocDispatchTable(struct HiDebug_MallocDispatch *dispatchTable);
+
+/**
+ * @brief Obtain current MallocDispatch table.
+ *
+ * @return Returns a pointer to MallocDispatch table on success, or NULL on failure.
+
+ * @since 20
+ */
+HiDebug_MallocDispatch* OH_HiDebug_GetDefaultMallocDispatchTable(void);
+
+/**
+ * @brief Restore original MallocDispatch table.
+ *
+ * @since 20
+ */
+void OH_HiDebug_RestoreMallocDispatchTable(void);
+
+/**
+ * @brief Get backtrace frames start from the given frame pointer and the function is signal-safe.
+ *
+ * @param object The backtrace object create by {@link OH_HiDebug_CreateBacktraceObject}.
+ * @param startFp The entry frame pointer.
+ * @param pcArray The array to place program counter values.
+ * @param size The size of the array to place program counter values.
+ * @return The number of stack frames written to array.
+ * @since 20
+ */
+int OH_HiDebug_BacktraceFromFp(HiDebug_Backtrace_Object object, void* startFp, void** pcArray, int size);
+
+/**
+ * @brief Defines the callback of the {@link OH_HiDebug_SymbolicAddress} function.
+ *
+ * @param pc The program counter pass to {@link OH_HiDebug_SymbolicAddress}.
+ * @param arg The arg pass to {@link OH_HiDebug_SymbolicAddress}.
+ * @param frame The parsed frame content, the content is invalid after return of {@link OH_HiDebug_SymbolicAddress}.
+ * @since 20
+ */
+typedef void (*OH_HiDebug_SymbolicAddressCallback)(void* pc, void* arg, const HiDebug_StackFrame* frame);
+
+/**
+ * @brief Get detailed symbol info by given pc and the function is not signal-safe.
+ *
+ * @param object The backtrace object create by {@link OH_HiDebug_CreateBacktraceObject}.
+ * @param pc The program counter return by {@link OH_HiDebug_BacktraceFromFp}.
+ * @param arg The arg will be pass to callback.
+ * @param callback The function to pass parsed frame to caller.
+ * @return Result code
+ * {@link HIDEBUG_SUCCESS} Get detailed frame info successfully and the callback is invoked.
+ * {@link HIDEBUG_INVALID_ARGUMENT} Invalid argument.
+ * {@link HIDEBUG_INVALID_SYMBOLIC_PC_ADDRESS} Could not find symbol info by given pc.
+ * @since 20
+ */
+HiDebug_ErrorCode OH_HiDebug_SymbolicAddress(HiDebug_Backtrace_Object object, void* pc, void* arg,
+ OH_HiDebug_SymbolicAddressCallback callback);
+
+/**
+ * @brief Create a backtrace object for further using and the function is not signal-safe.
+ *
+ * @return BacktraceObject if Success or NULL if is not supported on current arch
+ * @since 20
+ */
+HiDebug_Backtrace_Object OH_HiDebug_CreateBacktraceObject(void);
+
+/**
+ * @brief Destroy a backtrace object and the function is not signal-safe.
+ *
+ * @param object The object to be destroyed.
+ * @since 20
+ */
+void OH_HiDebug_DestroyBacktraceObject(HiDebug_Backtrace_Object object);
+
#ifdef __cplusplus
}
#endif // __cplusplus
diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h
index e38ad40e055964356831f240f8d7c60f217031bc..73c566a35f55d60913694822a70b77f8094696ea 100644
--- a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h
+++ b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h
@@ -25,7 +25,7 @@
*/
/**
- * @file hideug_type.h
+ * @file hidebug_type.h
*
* @brief Defines the code of the HiDebug module.
*
@@ -39,7 +39,8 @@
#define HIVIEWDFX_HIDEBUG_TYPE_H
#include
-
+#include
+#include
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
@@ -61,7 +62,12 @@ typedef enum HiDebug_ErrorCode {
/** The status of the trace is abnormal */
HIDEBUG_TRACE_ABNORMAL = 11400104,
/** No trace running */
- HIDEBUG_NO_TRACE_RUNNING = 11400105
+ HIDEBUG_NO_TRACE_RUNNING = 11400105,
+ /**
+ * The pc passed to the symbolic function is invalid
+ * @since 20
+ */
+ HIDEBUG_INVALID_SYMBOLIC_PC_ADDRESS = 11400200,
} HiDebug_ErrorCode;
/**
@@ -174,6 +180,139 @@ typedef enum HiDebug_TraceFlag {
/** Capture all thread trace */
HIDEBUG_TRACE_FLAG_ALL_THREADS = 2
} HiDebug_TraceFlag;
+
+/**
+ * @brief Defines structure type for MallocDispatch table.
+ *
+ * @since 20
+*/
+typedef struct HiDebug_MallocDispatch {
+ void* (*malloc)(size_t);
+ void* (*calloc)(size_t, size_t);
+ void* (*realloc)(void*, size_t);
+ void (*free)(void*);
+ void* (*mmap) (void*, size_t, int, int, int, off_t);
+ int (*munmap) (void*, size_t);
+} HiDebug_MallocDispatch;
+
+/**
+ * @brief Defines Js stack frame content
+ *
+ * @since 20
+ */
+typedef struct HiDebug_JsStackFrame {
+ /**
+ * The pc relative to the start of current file in /proc/self/maps
+ */
+ uint64_t relativePc;
+
+ /**
+ * The line number of the source code from url
+ */
+ int32_t line;
+
+ /**
+ * The column number of the source code from url
+ */
+ int32_t column;
+
+ /**
+ * The name parsed by pc from /proc/self/maps, maybe NULL
+ */
+ const char* mapName;
+
+ /**
+ * The functionName of current frame, maybe NULL
+ */
+ const char* functionName;
+
+ /**
+ * The url of current frame, maybe NULL
+ */
+ const char* url;
+
+ /**
+ * The packageName of current frame, maybe NULL
+ */
+ const char* packageName;
+} HiDebug_JsStackFrame;
+
+/**
+ * @brief Defines native frame content
+ *
+ * @since 20
+ */
+typedef struct HiDebug_NativeStackFrame {
+ /**
+ * The pc relative to the start of current file in /proc/self/maps
+ */
+ uint64_t relativePc;
+
+ /**
+ * The pc relative to the start of current function
+ */
+ uint64_t funcOffset;
+
+ /**
+ * The name parsed by pc from /proc/self/maps
+ */
+ const char* mapName;
+
+ /**
+ * The functionName parsed by relativePc from symbol table in elf, maybe NULL
+ */
+ const char* functionName;
+
+ /**
+ * The buildId parsed from .note.gnu.build-id in elf, maybe NULL
+ */
+ const char* buildId;
+
+ /**
+ * Reserved, maybe NULL
+ */
+ const char* reserved;
+} HiDebug_NativeStackFrame;
+
+/**
+ * @brief Enum for stack frame type.
+ *
+ * @since 20
+ */
+typedef enum HiDebug_StackFrameType {
+ /** Type of js frame */
+ HIDEBUG_STACK_FRAME_TYPE_JS = 1,
+ /** Type of native frame */
+ HIDEBUG_STACK_FRAME_TYPE_NATIVE = 2,
+} HiDebug_StackFrameType;
+
+/**
+ * @brief Defines Stack Frame content
+ *
+ * @since 20
+ */
+typedef struct HiDebug_StackFrame {
+ /**
+ * The type of current frame
+ */
+ HiDebug_StackFrameType type;
+
+ /** frame content. */
+ union {
+ /** Js stack frame defined in {@link HiDebug_JsStackFrame} */
+ struct HiDebug_JsStackFrame js;
+ /** Native frame defined in {@link HiDebug_NativeStackFrame} */
+ struct HiDebug_NativeStackFrame native;
+ } frame;
+} HiDebug_StackFrame;
+
+/**
+ * @brief To represent a backtrace object
+ *
+ * @since 20
+ */
+typedef struct HiDebug_Backtrace_Object__* HiDebug_Backtrace_Object;
+
#ifdef __cplusplus
}
#endif // __cplusplus
diff --git a/hiviewdfx/hidebug/libhidebug.ndk.json b/hiviewdfx/hidebug/libhidebug.ndk.json
index 02d50bda96c7ac0c98dcb5b9274727d7d20f423d..ec903bef43d1816bcbdb4de6e13b97b4f3172e82 100644
--- a/hiviewdfx/hidebug/libhidebug.ndk.json
+++ b/hiviewdfx/hidebug/libhidebug.ndk.json
@@ -23,6 +23,10 @@
"first_introduced": "12",
"name": "OH_HiDebug_GetAppNativeMemInfo"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_GetAppNativeMemInfoWithCache"
+ },
{
"first_introduced": "12",
"name": "OH_HiDebug_GetAppMemoryLimit"
@@ -38,5 +42,33 @@
{
"first_introduced": "14",
"name": "OH_HiDebug_GetGraphicsMemory"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_SetMallocDispatchTable"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_GetDefaultMallocDispatchTable"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_RestoreMallocDispatchTable"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_BacktraceFromFp"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_SymbolicAddress"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_CreateBacktraceObject"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_HiDebug_DestroyBacktraceObject"
}
]
\ No newline at end of file
diff --git a/hiviewdfx/hilog/BUILD.gn b/hiviewdfx/hilog/BUILD.gn
index 1d6816c6036a5fb35e626fbc6182821212b68638..64550630c97b57e5d5d5767cac2defd3a5d77c61 100644
--- a/hiviewdfx/hilog/BUILD.gn
+++ b/hiviewdfx/hilog/BUILD.gn
@@ -18,6 +18,7 @@ ohos_ndk_library("libhilog_ndk") {
ndk_description_file = "./libhilog.ndk.json"
min_compact_version = "1"
system_capability = "SystemCapability.HiviewDFX.HiLog"
+ system_capability_headers = [ "hilog/log.h" ]
}
ohos_ndk_headers("hilog_header") {
diff --git a/hiviewdfx/hitrace/BUILD.gn b/hiviewdfx/hitrace/BUILD.gn
index 00086c79a326f1ae5053b13a3c9fb5ab1bdce92e..447857ac719d16cb3baf0e3ec85d8500d6bad9e0 100644
--- a/hiviewdfx/hitrace/BUILD.gn
+++ b/hiviewdfx/hitrace/BUILD.gn
@@ -18,6 +18,7 @@ ohos_ndk_library("libhitrace_ndk") {
ndk_description_file = "./libhitrace.ndk.json"
min_compact_version = "1"
system_capability = "SystemCapability.HiviewDFX.HiTrace"
+ system_capability_headers = [ "hitrace/trace.h" ]
}
ohos_ndk_headers("hitrace_header") {
diff --git a/hiviewdfx/hitrace/include/hitrace/trace.h b/hiviewdfx/hitrace/include/hitrace/trace.h
index 4dcf2c51e49c98c0e7429582bb95be62900829f3..c5bf7c3251e2d710e75810ebce854046ef277b75 100644
--- a/hiviewdfx/hitrace/include/hitrace/trace.h
+++ b/hiviewdfx/hitrace/include/hitrace/trace.h
@@ -40,24 +40,6 @@
*
* @brief Defines APIs of the HiTraceMeter module for performance trace.
*
- * Sample code: \n
- * Synchronous timeslice trace event: \n
- * OH_HiTrace_StartTrace("hitraceTest");\n
- * OH_HiTrace_FinishTrace();\n
- * Output: \n
- * <...>-1668 (-------) [003] .... 135.059377: tracing_mark_write: B|1668|H:hitraceTest \n
- * <...>-1668 (-------) [003] .... 135.059415: tracing_mark_write: E|1668| \n
- * Asynchronous timeslice trace event:\n
- * OH_HiTrace_StartAsyncTrace("hitraceTest", 123); \n
- * OH_HiTrace_FinishAsyncTrace("hitraceTest", 123); \n
- * Output: \n
- * <...>-2477 (-------) [001] .... 396.427165: tracing_mark_write: S|2477|H:hitraceTest 123 \n
- * <...>-2477 (-------) [001] .... 396.427196: tracing_mark_write: F|2477|H:hitraceTest 123 \n
- * Integer value trace event:\n
- * OH_HiTrace_CountTrace("hitraceTest", 500); \n
- * Output: \n
- * <...>-2638 (-------) [002] .... 458.904382: tracing_mark_write: C|2638|H:hitraceTest 500 \n
- *
* @library libhitracechain.so
* @syscap SystemCapability.HiviewDFX.HiTrace
* @since 10
@@ -297,37 +279,49 @@ typedef enum HiTrace_Communication_Mode {
* @brief Enumerates the HiTrace output levels. The output level threshold system parameter determines
* the minimum output trace.
*
- * @since 18
+ * @atomicservice
+ *
+ * @since 19
*/
typedef enum HiTrace_Output_Level {
/**
- * @brief Ouput level only for debug usage.
+ * @brief Output level only for debug usage.
*
- * @since 18
+ * @atomicservice
+ *
+ * @since 19
*/
HITRACE_LEVEL_DEBUG = 0,
/**
- * @brief Output level for beta version usage.
+ * @brief Output level for log version usage.
+ *
+ * @atomicservice
*
- * @since 18
+ * @since 19
*/
HITRACE_LEVEL_INFO = 1,
/**
- * @brief Output level for beta version usage, with higher priority than HITRACE_LEVEL_INFO.
+ * @brief Output level for log version usage, with higher priority than HITRACE_LEVEL_INFO.
*
- * @since 18
+ * @atomicservice
+ *
+ * @since 19
*/
HITRACE_LEVEL_CRITICAL = 2,
/**
- * @brief Output level for commercial version usage.
+ * @brief Output level for nolog version usage.
+ *
+ * @atomicservice
*
- * @since 18
+ * @since 19
*/
HITRACE_LEVEL_COMMERCIAL = 3,
/**
* @brief Output level for range limit.
*
- * @since 18
+ * @atomicservice
+ *
+ * @since 19
*/
HITRACE_LEVEL_MAX = HITRACE_LEVEL_COMMERCIAL,
} HiTrace_Output_Level;
@@ -729,23 +723,25 @@ void OH_HiTrace_CountTrace(const char *name, int64_t count);
* The OH_HiTrace_StartTraceEx and OH_HiTrace_FinishTraceEx APIs must be used in pairs.
* The two APIs can be used in nested mode. The stack data structure is used for matching during trace data parsing.
*
- * @param level Level of output priority.
- * @param name Name of a trace task.
- * @param customArgs key=value pair, multiple pairs use comma as seperator.
+ * @param level Trace output priority level.
+ * @param name Name of the synchronous trace task.
+ * @param customArgs key=value pair, multiple pairs use comma as separator.
* @atomicservice
- * @since 18
+ * @since 19
*/
void OH_HiTrace_StartTraceEx(HiTrace_Output_Level level, const char* name, const char* customArgs);
/**
* @brief Marks the end of a synchronous trace task with output level control.
*
- * This API must be used with OH_HiTrace_StartTraceEx in pairs. During trace data parsing, the system matches
- * it with the most recent OH_HiTrace_StartTraceEx API invocation in the service process.
+ * This API must be used with OH_HiTrace_StartTraceEx in pairs. The two APIs, which have the same level,
+ * form an synchronous timeslice trace task.
+ * During trace data parsing, the system matches it with the most recent OH_HiTrace_StartTraceEx API
+ * invocation in the service process.
*
- * @param level Level of output priority.
+ * @param level Trace output priority level.
* @atomicservice
- * @since 18
+ * @since 19
*/
void OH_HiTrace_FinishTraceEx(HiTrace_Output_Level level);
@@ -764,13 +760,13 @@ void OH_HiTrace_FinishTraceEx(HiTrace_Output_Level level);
* If the trace tasks with the same name are not performed at the same time, the same taskId can be used.
* Different processes's taskId do not interfere.
*
- * @param level Level of output priority.
+ * @param level Trace output priority level.
* @param name Name of the asynchronous trace task.
* @param taskId ID of the asynchronous trace task.
* @param customCategory Label used to aggregate the asynchronous trace.
- * @param customArgs key=value pair, multiple pairs use comma as seperator.
+ * @param customArgs key=value pair, multiple pairs use comma as separator.
* @atomicservice
- * @since 18
+ * @since 19
*/
void OH_HiTrace_StartAsyncTraceEx(HiTrace_Output_Level level, const char* name, int32_t taskId,
const char* customCategory, const char* customArgs);
@@ -782,11 +778,11 @@ void OH_HiTrace_StartAsyncTraceEx(HiTrace_Output_Level level, const char* name,
* It is used with OH_HiTrace_StartAsyncTraceEx in pairs. Its level, name, and task ID must be
* the same as those of OH_HiTrace_StartAsyncTraceEx.
*
- * @param level Level of output priority.
+ * @param level Trace output priority level.
* @param name Name of the asynchronous trace task.
* @param taskId ID of the asynchronous trace task.
* @atomicservice
- * @since 18
+ * @since 19
*/
void OH_HiTrace_FinishAsyncTraceEx(HiTrace_Output_Level level, const char* name, int32_t taskId);
@@ -796,11 +792,11 @@ void OH_HiTrace_FinishAsyncTraceEx(HiTrace_Output_Level level, const char* name,
* This API can be executed for multiple times to trace the value change of a given integer variable at different
* time points.
*
- * @param level Level of output priority.
+ * @param level Trace output priority level.
* @param name Name of the integer variable. It does not need to be the same as the real variable name.
* @param count Integer value. Generally, an integer variable can be passed.
* @atomicservice
- * @since 18
+ * @since 19
*/
void OH_HiTrace_CountTraceEx(HiTrace_Output_Level level, const char* name, int64_t count);
@@ -809,9 +805,9 @@ void OH_HiTrace_CountTraceEx(HiTrace_Output_Level level, const char* name, int64
*
* @return Returns whether the calling process is allowed to output trace.
* @atomicservice
- * @since 18
+ * @since 19
*/
-bool OH_HiTrace_IsTraceEnabled();
+bool OH_HiTrace_IsTraceEnabled(void);
#ifdef __cplusplus
}
diff --git a/hiviewdfx/hitrace/libhitrace.ndk.json b/hiviewdfx/hitrace/libhitrace.ndk.json
index c98632da5caf1433e30e153ab4520de163cf6177..5cf5a3451793e662b3b37d7d3f0880864c073f8f 100644
--- a/hiviewdfx/hitrace/libhitrace.ndk.json
+++ b/hiviewdfx/hitrace/libhitrace.ndk.json
@@ -97,5 +97,29 @@
{
"first_introduced": "12",
"name": "OH_HiTrace_IdToBytes"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_HiTrace_StartTraceEx"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_HiTrace_FinishTraceEx"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_HiTrace_StartAsyncTraceEx"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_HiTrace_FinishAsyncTraceEx"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_HiTrace_CountTraceEx"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_HiTrace_IsTraceEnabled"
}
]
\ No newline at end of file
diff --git a/inputmethod/BUILD.gn b/inputmethod/BUILD.gn
index cc1480cdb87beca13fa1874a4530dd6e8ab67a50..479df0f87a64b1fc73ea5051b668814be2648373 100644
--- a/inputmethod/BUILD.gn
+++ b/inputmethod/BUILD.gn
@@ -20,15 +20,15 @@ ohos_ndk_library("libohinputmethod") {
min_compact_version = "12"
system_capability = "SystemCapability.MiscServices.InputMethodFramework"
system_capability_headers = [
- "./inputmethod/inputmethod_controller_capi.h",
- "./inputmethod/inputmethod_attach_options_capi.h",
- "./inputmethod/inputmethod_cursor_info_capi.h",
- "./inputmethod/inputmethod_inputmethod_proxy_capi.h",
- "./inputmethod/inputmethod_private_command_capi.h",
- "./inputmethod/inputmethod_text_avoid_info_capi.h",
- "./inputmethod/inputmethod_text_config_capi.h",
- "./inputmethod/inputmethod_text_editor_proxy_capi.h",
- "./inputmethod/inputmethod_types_capi.h",
+ "inputmethod/inputmethod_controller_capi.h",
+ "inputmethod/inputmethod_attach_options_capi.h",
+ "inputmethod/inputmethod_cursor_info_capi.h",
+ "inputmethod/inputmethod_inputmethod_proxy_capi.h",
+ "inputmethod/inputmethod_private_command_capi.h",
+ "inputmethod/inputmethod_text_avoid_info_capi.h",
+ "inputmethod/inputmethod_text_config_capi.h",
+ "inputmethod/inputmethod_text_editor_proxy_capi.h",
+ "inputmethod/inputmethod_types_capi.h",
]
}
diff --git a/inputmethod/include/inputmethod_text_config_capi.h b/inputmethod/include/inputmethod_text_config_capi.h
index ad639af2da400488b1ed116889b0f8e089f427c3..2788fcfc8d4bafa7a6b857a896317afd6f9c62a3 100644
--- a/inputmethod/include/inputmethod_text_config_capi.h
+++ b/inputmethod/include/inputmethod_text_config_capi.h
@@ -35,6 +35,7 @@
#ifndef OHOS_INPUTMETHOD_TEXT_CONFIG_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_CONFIG_CAPI_H
#include
+#include
#include "inputmethod_cursor_info_capi.h"
#include "inputmethod_text_avoid_info_capi.h"
@@ -131,6 +132,46 @@ InputMethod_ErrorCode OH_TextConfig_SetSelection(InputMethod_TextConfig *config,
*/
InputMethod_ErrorCode OH_TextConfig_SetWindowId(InputMethod_TextConfig *config, int32_t windowId);
+/**
+ * @brief Sets the placeholder text of an InputMethod_TextConfig instance.
+ *
+ * @param config Pointer to the InputMethod_TextConfig instance.
+ * @param placeholder Pointer to a UTF-16 encoded double-byte string. If a null pointer is passed, the placeholder text
+ * is an empty string.
+ * @param length Number of elements in the memory to which placeholder points, including the null character of
+ * the double-byte string.
+ * 1) If length is 0, the placeholder text is an empty string.
+ * 2) The maximum number of UTF-16 encoded characters is 256, and the last element must be a null character.
+ * 3) If the length exceeds 256, the placeholder text will be truncated.
+ * @return Returns a specific error code.
+ * {@link IME_ERR_OK} - success.
+ * {@link IME_ERR_NULL_POINTER} - unexpected null pointer.
+ * Specific error codes can be referenced {@link InputMethod_ErrorCode}.
+ * @since 20
+ */
+InputMethod_ErrorCode OH_TextConfig_SetPlaceholder(InputMethod_TextConfig *config, const char16_t *placeholder,
+ size_t length);
+
+/**
+ * @brief Sets the ability name of an InputMethod_TextConfig instance.
+ *
+ * @param config Pointer to the InputMethod_TextConfig instance.
+ * @param abilityName Pointer to a UTF-16 encoded double-byte string. If a null pointer is passed, the ability name is
+ * an empty string.
+ * @param length Number of elements in the memory to which abilityName points, including the null character of
+* the double-byte string.
+ * 1) If length is 0, the ability name is an empty string.
+ * 2) The maximum number of UTF-16 encoded characters is 128, and the last element must be a null character.
+ * 3) If the length exceeds 128, the placeholder text will be truncated.
+ * @return Returns a specific error code.
+ * {@link IME_ERR_OK} - success.
+ * {@link IME_ERR_NULL_POINTER} - unexpected null pointer.
+ * Specific error codes can be referenced {@link InputMethod_ErrorCode}.
+ * @since 20
+ */
+InputMethod_ErrorCode OH_TextConfig_SetAbilityName(InputMethod_TextConfig *config, const char16_t *abilityName,
+ size_t length);
+
/**
* @brief Get input type from TextConfig
*
@@ -222,6 +263,54 @@ InputMethod_ErrorCode OH_TextConfig_GetSelection(InputMethod_TextConfig *config,
* @since 12
*/
InputMethod_ErrorCode OH_TextConfig_GetWindowId(InputMethod_TextConfig *config, int32_t *windowId);
+
+/**
+ * @brief Obtains the placeholder text of an InputMethod_TextConfig instance.
+ *
+ * @param config Pointer to the InputMethod_TextConfig instance.
+ * @param placeholder Pointer to the placeholder text. The memory of this pointer is maintained by the caller.
+ * @param length Pointer to the length of the placeholder text, in double bytes. The length includes the null character
+ * of the string.
+ * 1) As an input parameter, length indicates the available length of the memory to which placeholder
+ * points. As an output parameter, it indicates the actual length of the placeholder text.
+ * 2) If placeholder is a null pointer and length points to valid memory, length will be set to
+ * the actual length of the placeholder text, and an error will be return.
+ * 3) If both placeholder and length point to valid memory, but the value of length is less
+ * than the actual length of the placeholder text, length will be set to the actual length of the
+ * placeholder text, and an error will be return.
+ * @return Returns a specific error code.
+ * {@link IME_ERR_OK} - success.
+ * {@link IME_ERR_PARAMCHECK} - parameter check failed.
+ * {@link IME_ERR_NULL_POINTER} - unexpected null pointer.
+ * Specific error codes can be referenced {@link InputMethod_ErrorCode}.
+ * @since 20
+ */
+InputMethod_ErrorCode OH_TextConfig_GetPlaceholder(InputMethod_TextConfig *config, char16_t *placeholder,
+ size_t *length);
+
+/**
+ * @brief Obtains the ability name of an InputMethod_TextConfig instance.
+ *
+ * @param config Pointer to the InputMethod_TextConfig instance.
+ * @param abilityName Pointer to the ability name. The memory of this pointer is maintained by the caller.
+ * @param length Pointer to the length of the ability name, in double bytes. The length includes the null character of
+ * the string.
+ * 1) As an input parameter, length indicates the available length of the memory to which abilityName
+ * points. As an output parameter, it indicates the actual length of the ability name.
+ * 2) If abilityName is a null pointer and length points to valid memory, length will be set to
+ * the actual length of the ability name, and an error will be return.
+ * 3) If both abilityName and length point to valid memory, but the value of length is less
+ * than the actual length of the ability name, length will be set to the actual length of the ability
+ * name, and an error will be return.
+ * @return Returns a specific error code.
+ * {@link IME_ERR_OK} - success.
+ * {@link IME_ERR_PARAMCHECK} - parameter check failed.
+ * {@link IME_ERR_NULL_POINTER} - unexpected null pointer.
+ * Specific error codes can be referenced {@link InputMethod_ErrorCode}.
+ * @since 20
+ */
+InputMethod_ErrorCode OH_TextConfig_GetAbilityName(InputMethod_TextConfig *config, char16_t *abilityName,
+ size_t *length);
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/inputmethod/include/inputmethod_types_capi.h b/inputmethod/include/inputmethod_types_capi.h
index b3848f15f6d779339a57b65296ac86d34a726394..7e135c177b4ddec2dc07ed5f06b67961d34bcaa3 100644
--- a/inputmethod/include/inputmethod_types_capi.h
+++ b/inputmethod/include/inputmethod_types_capi.h
@@ -215,6 +215,12 @@ typedef enum InputMethod_TextInputType {
* The text input type is NUMBER DECIMAL.
*/
IME_TEXT_INPUT_TYPE_NUMBER_DECIMAL = 12,
+ /**
+ * The text input type is ONE TIME CODE.
+ *
+ * @since 20
+ */
+ IME_TEXT_INPUT_TYPE_ONE_TIME_CODE = 13,
} InputMethod_TextInputType;
/**
diff --git a/inputmethod/libohinputmethodndk.json b/inputmethod/libohinputmethodndk.json
index b90b67567c3b8bb0366ef47e86e6a3aa65ba126e..7b9425fceb605d8c522a5196b47c297d3bb47ce2 100644
--- a/inputmethod/libohinputmethodndk.json
+++ b/inputmethod/libohinputmethodndk.json
@@ -322,5 +322,21 @@
{
"first_introduced": "15",
"name": "OH_AttachOptions_GetRequestKeyboardReason"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_TextConfig_SetPlaceholder"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_TextConfig_SetAbilityName"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_TextConfig_GetPlaceholder"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_TextConfig_GetAbilityName"
}
]
\ No newline at end of file
diff --git a/multimedia/audio_framework/BUILD.gn b/multimedia/audio_framework/BUILD.gn
index e3a53b3cf93cd734a46e6c067705fe3cc7687753..950fda8362d06bebf990fdab26128ea8d31c2a3f 100644
--- a/multimedia/audio_framework/BUILD.gn
+++ b/multimedia/audio_framework/BUILD.gn
@@ -19,8 +19,11 @@ ohos_ndk_headers("ohaudio_header") {
sources = [
"audio_capturer/native_audiocapturer.h",
"audio_manager/native_audio_manager.h",
+ "audio_manager/native_audio_resource_manager.h",
"audio_manager/native_audio_routing_manager.h",
"audio_manager/native_audio_session_manager.h",
+ "audio_manager/native_audio_stream_manager.h",
+ "audio_manager/native_audio_volume_manager.h",
"audio_renderer/native_audiorenderer.h",
"common/native_audio_common.h",
"common/native_audio_device_base.h",
@@ -44,5 +47,8 @@ ohos_ndk_library("libohaudio_ndk") {
"ohaudio/native_audio_common.h",
"ohaudio/native_audio_device_base.h",
"ohaudio/native_audio_session_manager.h",
+ "ohaudio/native_audio_stream_manager.h",
+ "ohaudio/native_audio_volume_manager.h",
+ "ohaudio/native_audio_resource_manager.h",
]
}
diff --git a/multimedia/audio_framework/audio_capturer/native_audiocapturer.h b/multimedia/audio_framework/audio_capturer/native_audiocapturer.h
index bbe32247efad31e65adaf06d1deac970fde3e2c7..4102218b3a3de164e99d91f74527dd46ec93b52f 100644
--- a/multimedia/audio_framework/audio_capturer/native_audiocapturer.h
+++ b/multimedia/audio_framework/audio_capturer/native_audiocapturer.h
@@ -287,63 +287,91 @@ OH_AudioStream_Result OH_AudioCapturer_GetFramesRead(OH_AudioCapturer* capturer,
OH_AudioStream_Result OH_AudioCapturer_GetOverflowCount(OH_AudioCapturer* capturer, uint32_t* count);
/**
- * @brief Callback function of read data.
- *
- * This function is similar with OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnReadData
- *
- * @param capturer AudioCapturer where this callback occurs.
- * @param userData User data which is passed by user.
- * @param audioData Audio data pointer, where user should read.
- * @param audioDataSize Size of audio data that user should read.
+ * @brief Called when audio data is available to read. This function is similar to
+ * OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnReadData.
+ *
+ * @param capturer Pointer to the AudioCapturer instance that triggers the callback.
+ * @param userData Pointer to the user data passed when setting the callback via
+ * OH_AudioStreamBuilder_SetCapturerReadDataCallback.
+ * @param audioData Pointer to the available audio data.
+ * @param audioDataSize Size of the available audio data.
* @see OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnReadData
- * @since 18
+ * @since 20
*/
typedef void (*OH_AudioCapturer_OnReadDataCallback)(OH_AudioCapturer* capturer, void* userData, void* audioData,
int32_t audioDataSize);
/**
- * @brief Callback when input device of an AudioCapturer changes.
+ * @brief Called when the input device of an AudioCapturer instance changes.
+ * This function is similar to OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnStreamEvent.
*
- * This function is similar with OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnStreamEvent
- *
- * @param capturer AudioCapturer where this callback occurs.
- * @param userData User data which is passed by user.
- * @param deviceArray Array of AudioDeviceDescriptor where the capturing data from.
+ * @param capturer Pointer to the AudioCapturer instance that triggers the callback.
+ * @param userData Pointer to the user data passed when setting the callback via
+ * OH_AudioStreamBuilder_SetCapturerDeviceChangeCallback.
+ * @param deviceArray Pointer to an array of the new input devices.
* @see OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnStreamEvent
- * @since 18
+ * @since 20
*/
typedef void (*OH_AudioCapturer_OnDeviceChangeCallback)(OH_AudioCapturer* capturer, void* userData,
OH_AudioDeviceDescriptorArray* deviceArray);
/**
- * @brief Callback function of interrupt event on AudioCapturer.
- *
- * This function is similar with OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnInterruptEvent.
- *
- * @param capturer AudioCapturer where this callback occurs.
- * @param userData User data which is passed by user.
- * @param type Force type of this interrupt event.
- * @param hint Hint of this interrupt event.
+ * @brief Called when an interrupt event occurs in an AudioCapturer instance.
+ * This function is similar to OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnInterruptEvent.
+ *
+ * @param capturer Pointer to the AudioCapturer instance that triggers the callback.
+ * @param userData Pointer to the user data passed when setting the callback via
+ * OH_AudioStreamBuilder_SetCapturerInterruptCallback.
+ * @param type Type of force that causes the interrupt event.
+ * @param hint Hint provided along with the interrupt event.
* @see OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnInterruptEvent.
- * @since 18
+ * @since 20
*/
typedef void (*OH_AudioCapturer_OnInterruptCallback)(OH_AudioCapturer* capturer, void* userData,
OH_AudioInterrupt_ForceType type, OH_AudioInterrupt_Hint hint);
/**
- * @brief Callback function of error on AudioCapturer.
- *
- * This function is similar with OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnError.
+ * @brief Called when an error event occurs in an AudioCapturer instance.
+ * This function is similar to OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnError.
*
- * @param renderer AudioCapturer where this callback occurs.
- * @param userData User data which is passed by user.
- * @param error Error while using AudioCapturer.
+ * @param capturer Pointer to the AudioCapturer instance that triggers the callback.
+ * @param userData Pointer to the user data passed when setting the callback via
+ * OH_AudioStreamBuilder_SetCapturerErrorCallback.
+ * @param error Specific error information.
* @see OH_AudioCapturer_Callbacks_Struct.OH_AudioCapturer_OnError
- * @since 18
+ * @since 20
*/
-typedef void (*OH_AudioCapturer_OnErrorCallback)(OH_AudioCapturer* renderer, void* userData,
+typedef void (*OH_AudioCapturer_OnErrorCallback)(OH_AudioCapturer* capturer, void* userData,
OH_AudioStream_Result error);
+/**
+ * @brief Gets audio capturer running status, check if it works in fast status.
+ *
+ * @param capturer Reference created by OH_AudioStreamBuilder_GenerateCapturer.
+ * @param status Pointer to a variable to receive the status.
+ * @return
+ * {@link AUDIOSTREAM_SUCCESS} if the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} the param of capturer is nullptr.
+ * {@link AUDIOSTREAM_ERROR_ILLEGAL_STATE} function called in invalid state, only available before release state.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioCapturer_GetFastStatus(OH_AudioCapturer* capturer,
+ OH_AudioStream_FastStatus* status);
+
+/**
+ * @brief Callback function of fast status change event for audio capturer.
+ *
+ * @param capturer Pointer to an audio capturer instance for which this callback occurs.
+ * @param userData Userdata which is passed by register.
+ * @param status Current fast status.
+ * @since 20
+ */
+typedef void (*OH_AudioCapturer_OnFastStatusChange)(
+ OH_AudioCapturer* capturer,
+ void* userData,
+ OH_AudioStream_FastStatus status
+);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/audio_framework/audio_manager/native_audio_manager.h b/multimedia/audio_framework/audio_manager/native_audio_manager.h
index 8bfbf2c897d6b6c4c8b2b822ac0954874f3e33e1..b317f856bda9b2b381520fb54f3952e7f30dad54 100644
--- a/multimedia/audio_framework/audio_manager/native_audio_manager.h
+++ b/multimedia/audio_framework/audio_manager/native_audio_manager.h
@@ -52,6 +52,19 @@ extern "C" {
*/
typedef struct OH_AudioManager OH_AudioManager;
+/**
+ * @brief Prototype for the audio scene change function that is passed to
+ * {@link OH_AudioManager_RegisterAudioSceneChangeCallback}.
+ *
+ * @param userData userdata which is passed by register.
+ * @param scene the latest audio scene.
+ * @since 20
+ */
+typedef void (*OH_AudioManager_OnAudioSceneChangeCallback) (
+ void *userData,
+ OH_AudioScene scene
+);
+
/**
* @brief Get audio manager handle.
*
@@ -78,6 +91,39 @@ OH_AudioCommon_Result OH_GetAudioManager(OH_AudioManager **audioManager);
*/
OH_AudioCommon_Result OH_GetAudioScene(OH_AudioManager* manager, OH_AudioScene *scene);
+/**
+ * @brief Register callback to receive audio scene changed events.
+ *
+ * @param manager {@link OH_AudioManager} handle received from {@link OH_GetAudioManager}.
+ * @param callback callback function which will be called when audio scene changed.
+ * @param userData pointer to a data structure that will be passed to the callback functions.
+ * @return
+ * {@link AUDIOCOMMON_RESULT_SUCCESS} if the execution is successful
+ * {@link AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM}
+ * 1.param of manager is nullptr
+ * 2.param of callback is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioManager_RegisterAudioSceneChangeCallback(OH_AudioManager *manager,
+ OH_AudioManager_OnAudioSceneChangeCallback callback, void *userData);
+
+/**
+ * @brief Unregister audio scene change callback.
+ *
+ * @param manager {@link OH_AudioManager} handle received from {@link OH_GetAudioManager}.
+ * @param callback callback function which registered in {@link OH_AudioManager_RegisterAudioSceneChangeCallback}.
+ * @return
+ * {@link AUDIOCOMMON_RESULT_SUCCESS} if the execution is successful
+ * {@link AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM}
+ * 1.param of manager is nullptr
+ * 2.param of callback is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioManager_UnregisterAudioSceneChangeCallback(OH_AudioManager *manager,
+ OH_AudioManager_OnAudioSceneChangeCallback callback);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/audio_framework/audio_manager/native_audio_resource_manager.h b/multimedia/audio_framework/audio_manager/native_audio_resource_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfd453ea40ff876f8e2235594ecdf3f40176b04e
--- /dev/null
+++ b/multimedia/audio_framework/audio_manager/native_audio_resource_manager.h
@@ -0,0 +1,173 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup OHAudio
+ * @{
+ *
+ * @brief Provide the definition of the C interface for the audio module.
+ *
+ * @since 20
+ */
+
+/**
+ * @file native_audio_resource_manager.h
+ *
+ * @brief Declare audio stream manager related interfaces.
+ *
+ * This file interfaces are used for the creation of AudioResourceManager.
+ *
+ * @library libohaudio.so
+ * @syscap SystemCapability.Multimedia.Audio.Core
+ * @kit AudioKit
+ * @since 20
+ */
+
+#ifndef NATIVE_AUDIO_RESOURCE_MANAGER_H
+#define NATIVE_AUDIO_RESOURCE_MANAGER_H
+
+#include "native_audio_common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Declare the audio resource manager.
+ * Audio resource manager provides many functions for developer to manage system resources to avoid
+ * underrun or overrun in audio playback and recording.
+ *
+ * @since 20
+ */
+typedef struct OH_AudioResourceManager OH_AudioResourceManager;
+
+/**
+ * @brief Fetch the audio resource manager handle, which is a singleton.
+ *
+ * @param resourceManager output parameter to get {@link #OH_AudioResourceManager}.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioManager_GetAudioResourceManager(OH_AudioResourceManager **resourceManager);
+
+/**
+ * @brief Declare the audio workgroup.
+ * The handle of audio workgroup is used for workgroup related functions.
+ * The system will manage cpu resources on a workgroup basis instead of thread.
+ * For parallel task threads, you can add them into one workgroup, and for
+ * asynchronous task threads, use one workgroup for each thread.
+ * There is an upper limit to the total number of workgroups for each process,
+ * so application should release the workgroup which is no longer in use.
+ *
+ * @since 20
+ */
+typedef struct OH_AudioWorkgroup OH_AudioWorkgroup;
+
+/**
+ * @brief Create a workgroup for audio data processing threads in application.
+ * System manages cpu resources by workgroup configuration.
+ *
+ * @param resourceManager {@link OH_AudioResourceManager} handle
+ * provided by {@link OH_AudioManager_GetAudioRoutingManager}.
+ * @param name workgroup name
+ * @param group {@link OH_AudioWorkgroup} handle for managing audio data processing threads.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_NO_MEMORY} out of workgroup resources
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioResourceManager_CreateWorkgroup(OH_AudioResourceManager *resourceManager,
+ const char *name, OH_AudioWorkgroup **group);
+
+/**
+ * @brief Release the workgroup created before.
+ *
+ * @param resourceManager {@link OH_AudioResourceManager} handle
+ * provided by {@link OH_AudioManager_GetAudioRoutingManager}.
+ * @param group {@link OH_AudioWorkgroup} handle provided by {@link OH_AudioResourceManager_CreateWorkgroup}.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioResourceManager_ReleaseWorkgroup(OH_AudioResourceManager *resourceManager,
+ OH_AudioWorkgroup *group);
+
+/**
+ * @brief Add current thread into a specified audio workgroup as audio data processing thread.
+ *
+ * @param group {@link OH_AudioWorkgroup} handle provided by {@link OH_AudioResourceManager_CreateWorkgroup}.
+ * @param tokenId a token id that represent the thread added.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_NO_MEMORY} out of resources for the new thread
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioWorkgroup_AddCurrentThread(OH_AudioWorkgroup *group, int32_t *tokenId);
+
+/**
+ * @brief Remove the thread from a specified audio workgroup.
+ *
+ * @param group {@link OH_AudioWorkgroup} handle provided by {@link OH_AudioResourceManager_CreateWorkgroup}.
+ * @param tokenId id for thread returned by {link OH_AudioWorkgroup_AddCurrentThread}
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr or token id is invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioWorkgroup_RemoveThread(OH_AudioWorkgroup *group, int32_t tokenId);
+
+/**
+ * @brief Notify system the audio workgroup start working. Call this function before processing the audio frame.
+ *
+ * @param group {@link OH_AudioWorkgroup} handle provided by {@link OH_AudioResourceManager_CreateWorkgroup}.
+ * @param startTime the time when audio thread start working, using system time. The unit of time is milliseconds.
+ * @param deadlineTime the time before which audio work should be finished, otherwise underrun may happens.
+ * The unit of time is milliseconds.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr, or time is invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioWorkgroup_Start(OH_AudioWorkgroup *group, uint64_t startTime, uint64_t deadlineTime);
+
+/**
+ * @brief Notify system the audio workgroup stop working. Call this function after the audio frame processing
+ * is completed.
+ *
+ * @param group {@link OH_AudioWorkgroup} handle provided by {@link OH_AudioResourceManager_CreateWorkgroup}.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioWorkgroup_Stop(OH_AudioWorkgroup *group);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NATIVE_AUDIO_RESOURCE_MANAGER_H
+/** @} */
diff --git a/multimedia/audio_framework/audio_manager/native_audio_session_manager.h b/multimedia/audio_framework/audio_manager/native_audio_session_manager.h
index 01df4fea37df3433bd65c1e7a305d23998e3dcab..c3b40731777332b5da0450e97416cdc03773aacb 100644
--- a/multimedia/audio_framework/audio_manager/native_audio_session_manager.h
+++ b/multimedia/audio_framework/audio_manager/native_audio_session_manager.h
@@ -45,6 +45,8 @@
#define NATIVE_AUDIO_SESSION_MANAGER_H
#include "native_audio_common.h"
+#include "native_audiostream_base.h"
+#include "native_audio_device_base.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -84,6 +86,82 @@ typedef enum {
CONCURRENCY_PAUSE_OTHERS = 3,
} OH_AudioSession_ConcurrencyMode;
+/**
+ * @brief Declare the audio session scene.
+ *
+ * @since 20
+ */
+typedef enum {
+ /**
+ * @brief scene for media
+ */
+ AUDIO_SESSION_SCENE_MEDIA = 0,
+
+ /**
+ * @brief scene for game
+ */
+ AUDIO_SESSION_SCENE_GAME = 1,
+
+ /**
+ * @brief scene for voice communication
+ */
+ AUDIO_SESSION_SCENE_VOICE_COMMUNICATION = 2,
+} OH_AudioSession_Scene;
+
+/**
+ * @brief Declare the audio session state change hints.
+ *
+ * @since 20
+ */
+typedef enum {
+ /**
+ * @brief Resume the playback
+ */
+ AUDIO_SESSION_STATE_CHANGE_HINT_RESUME = 0,
+
+ /**
+ * @brief paused/pause the playback
+ */
+ AUDIO_SESSION_STATE_CHANGE_HINT_PAUSE = 1,
+
+ /**
+ * @brief stopped/stop the playback.
+ */
+ AUDIO_SESSION_STATE_CHANGE_HINT_STOP = 2,
+
+ /**
+ * @brief stopped/stop the playback due to no audio stream for a long time.
+ */
+ AUDIO_SESSION_STATE_CHANGE_HINT_TIME_OUT_STOP = 3,
+
+ /**
+ * @brief Ducked the playback. (In ducking, the audio volume is reduced, but not silenced.)
+ */
+ AUDIO_SESSION_STATE_CHANGE_HINT_DUCK = 4,
+
+ /**
+ * @brief Unducked the playback.
+ */
+ AUDIO_SESSION_STATE_CHANGE_HINT_UNDUCK = 5,
+} OH_AudioSession_StateChangeHint;
+
+/**
+ * @brief Declare the recommend action when device change.
+ *
+ * @since 20
+ */
+typedef enum {
+ /**
+ * @brief Recommend to continue the playback.
+ */
+ DEVICE_CHANGE_RECOMMEND_TO_CONTINUE = 0,
+
+ /**
+ * @brief recommend to stop the playback.
+ */
+ DEVICE_CHANGE_RECOMMEND_TO_STOP = 1,
+} OH_AudioSession_OutputDeviceChangeRecommendedAction;
+
/**
* @brief Declare the audio deactivated reasons.
*
@@ -125,6 +203,47 @@ typedef struct OH_AudioSession_DeactivatedEvent {
OH_AudioSession_DeactivatedReason reason;
} OH_AudioSession_DeactivatedEvent;
+/**
+ * @brief declare the audio session state change event
+ *
+ * @since 20
+ */
+typedef struct OH_AudioSession_StateChangedEvent {
+ /**
+ * @brief audio session state change hints.
+ */
+ OH_AudioSession_StateChangeHint stateChangeHint;
+} OH_AudioSession_StateChangedEvent;
+
+/**
+ * @brief This function pointer will point to the callback function that
+ * is used to return the audio session state change event.
+ *
+ * @param event the {@link #OH_AudioSession_StateChangedEvent} state change triggering event.
+ * @since 20
+ */
+typedef void (*OH_AudioSession_StateChangedCallback) (
+ OH_AudioSession_StateChangedEvent event);
+
+/**
+ * @brief This function pointer will point to the callback function that
+ * is used to return the audio session device change event.
+ *
+ * @param audioDeviceDescriptorArray the {@link OH_AudioDeviceDescriptorArray}
+ * pointer variable which will be set the audio device descriptors value.
+ * Do not release the audioDeviceDescriptorArray pointer separately
+ * instead call {@link OH_AudioSessionManager_ReleaseDevices}
+ * to release the DeviceDescriptor array when it is no use anymore.
+ * @param changeReason the {@link #OH_AudioStream_DeviceChangeReason} indicates that why does the device changes.
+ * @param recommendedAction the {@link #OH_AudioSession_OutputDeviceChangeRecommendedAction}
+ * recommend action when device change.
+ * @since 20
+ */
+typedef void (*OH_AudioSession_CurrentOutputDeviceChangedCallback) (
+ OH_AudioDeviceDescriptorArray *devices,
+ OH_AudioStream_DeviceChangeReason changeReason,
+ OH_AudioSession_OutputDeviceChangeRecommendedAction recommendedAction);
+
/**
* @brief This function pointer will point to the callback function that
* is used to return the audio session deactivated event.
@@ -150,6 +269,7 @@ OH_AudioCommon_Result OH_AudioManager_GetAudioSessionManager(
/**
* @brief Activate the audio session for the current pid application.
+ * If {@link #OH_AudioSessionManager_SetScene} is called, it will take focus when calling this method.
*
* @param audioSessionManager the {@link #OH_AudioSessionManager}
* returned by the {@link #OH_AudioManager_GetAudioSessionManager}
@@ -215,6 +335,138 @@ OH_AudioCommon_Result OH_AudioSessionManager_RegisterSessionDeactivatedCallback(
*/
OH_AudioCommon_Result OH_AudioSessionManager_UnregisterSessionDeactivatedCallback(
OH_AudioSessionManager *audioSessionManager, OH_AudioSession_DeactivatedCallback callback);
+
+/**
+ * @brief Set scene for audio session.
+ *
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param scene the {@link #OH_AudioSession_Scene}
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_ILLEGAL_STATE} if system illegal state
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_SetScene(
+ OH_AudioSessionManager *audioSessionManager, OH_AudioSession_Scene scene);
+
+/**
+ * @brief Register the audio session state change event callback.
+ *
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param callback the {@link #OH_AudioSession_StateChangedCallback} which is used
+ * to receive the state change event
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link AUDIOCOMMON_RESULT_ERROR_NO_MEMORY} No memory error
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_RegisterStateChangeCallback(
+ OH_AudioSessionManager *audioSessionManager, OH_AudioSession_StateChangedCallback callback);
+
+/**
+ * @brief Unregister the audio session state change event callback.
+ *
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param callback the {@link #OH_AudioSession_StateChangedCallback} which is used
+ * to receive the state change event
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_UnregisterStateChangeCallback(
+ OH_AudioSessionManager *audioSessionManager, OH_AudioSession_StateChangedCallback callback);
+
+/**
+ * @brief Sets the default output device.
+ * This function applys on audiorenderers whose StreamUsage are
+ * STREAM_USAGE_VOICE_COMMUNICATION/STREAM_USAGE_VIDEO_COMMUNICATION/STREAM_USAGE_VOICE_MESSAGE.
+ * Setting the device will only takes effect if no other accessory such as headphones are in use
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param deviceType The target device. The available deviceTypes are:
+ * EARPIECE: Built-in earpiece
+ * SPEAKER: Built-in speaker
+ * DEFAULT: System default output device
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_SetDefaultOutputDevice(
+ OH_AudioSessionManager *audioSessionManager, OH_AudioDevice_Type deviceType);
+
+/**
+ * @brief Gets the default output device.
+ *
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param deviceType The target device.The available deviceTypes are:
+ * EARPIECE: Built-in earpiece
+ * SPEAKER: Built-in speaker
+ * DEFAULT: System default output device
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_ILLEGAL_STATE} if system illegal state
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_GetDefaultOutputDevice(
+ OH_AudioSessionManager *audioSessionManager, OH_AudioDevice_Type *deviceType);
+
+/**
+ * @brief Release the audio device descriptor array object.
+ *
+ * @param audioSessionManager the {@link OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param audioDeviceDescriptorArray Audio device descriptors should be released.
+ * @return {@link AUDIOCOMMON_RESULT_SUCCESS} If the execution is successful.
+ * or {@link AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * 1.The param of audioSessionManager is nullptr;
+ * 2.The param of audioDeviceDescriptorArray is nullptr.
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_ReleaseDevices(
+ OH_AudioSessionManager *audioSessionManager,
+ OH_AudioDeviceDescriptorArray *audioDeviceDescriptorArray);
+
+/**
+ * @brief Register the audio session device change event callback.
+ *
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param callback the {@link #OH_AudioSession_CurrentOutputDeviceChangedCallback} which is used
+ * to receive the device change event
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link AUDIOCOMMON_RESULT_ERROR_NO_MEMORY} No memory error
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_RegisterCurrentOutputDeviceChangeCallback(
+ OH_AudioSessionManager *audioSessionManager,
+ OH_AudioSession_CurrentOutputDeviceChangedCallback callback);
+
+/**
+ * @brief Unregister the audio session device change event callback.
+ *
+ * @param audioSessionManager the {@link #OH_AudioSessionManager}
+ * returned by the {@link #OH_AudioManager_GetAudioSessionManager}
+ * @param callback the {@link #OH_AudioSession_CurrentOutputDeviceChangedCallback} which is used
+ * to receive the device change event
+ * @return {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if parameter validation fails
+ * or {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioSessionManager_UnregisterCurrentOutputDeviceChangeCallback(
+ OH_AudioSessionManager *audioSessionManager,
+ OH_AudioSession_CurrentOutputDeviceChangedCallback callback);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/audio_framework/audio_manager/native_audio_stream_manager.h b/multimedia/audio_framework/audio_manager/native_audio_stream_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..4069e64394a547f571e187c4bb6384ddc10fd8d3
--- /dev/null
+++ b/multimedia/audio_framework/audio_manager/native_audio_stream_manager.h
@@ -0,0 +1,146 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup OHAudio
+ * @{
+ *
+ * @brief Provide the definition of the C interface for the audio module.
+ *
+ * @syscap SystemCapability.Multimedia.Audio.Core
+ *
+ * @since 19
+ */
+
+/**
+ * @file native_audio_stream_manager.h
+ *
+ * @brief Declare audio stream manager related interfaces.
+ *
+ * This file interface is used for the creation of audioStreamManager
+ * as well as the audio stream settings and management.
+ *
+ * @library libohaudio.so
+ * @syscap SystemCapability.Multimedia.Audio.Core
+ * @kit AudioKit
+ * @since 19
+ */
+
+#ifndef NATIVE_AUDIO_STREAM_MANAGER_H
+#define NATIVE_AUDIO_STREAM_MANAGER_H
+
+#include "native_audio_common.h"
+#include "native_audiostream_base.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Declare the audio stream manager.
+ * Audio stream manager provides many functions about audio streams, like monitoring audio streams status,
+ * getting different stream types supported information and so on.
+ *
+ * @since 19
+ */
+typedef struct OH_AudioStreamManager OH_AudioStreamManager;
+
+/**
+ * @brief Fetch the audio streammanager handle, which is a singleton.
+ *
+ * @param streamManager output parameter to get the {@link #OH_AudioStreamManager}.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} if system state error
+ * @since 19
+ */
+OH_AudioCommon_Result OH_AudioManager_GetAudioStreamManager(OH_AudioStreamManager **streamManager);
+
+/**
+ * @brief Gets the mode of direct playback available for a given audio format with current active device.
+ *
+ * @param audioStreamManager the {@link OH_AudioStreamManager} handle provided by
+ * {@link OH_AudioManager_GetAudioStreamManager}.
+ * @param streamInfo the {@link OH_AudioStreamInfo}.
+ * @param usage the {@link OH_AudioStream_Usage}.
+ * @param directPlaybackMode the {@link OH_AudioStream_DirectPlaybackMode} pointer to a variable which receives the
+ * result.
+ * @return Function result code:
+ * {@link AUDIOCOMMON_RESULT_SUCCESS} If the execution is successful.
+ * {@link AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM}:
+ * 1.The param of audioStreamManager is nullptr;
+ * 2.The param of streamInfo is nullptr;
+ * 3.The param of usage invalid;
+ * 4.The param of directPlaybackMode is nullptr.
+ * @since 19
+ */
+OH_AudioCommon_Result OH_AudioStreamManager_GetDirectPlaybackSupport(
+ OH_AudioStreamManager *audioStreamManager, OH_AudioStreamInfo *streamInfo,
+ OH_AudioStream_Usage usage, OH_AudioStream_DirectPlaybackMode *directPlaybackMode);
+
+/**
+ * @brief Query whether acoustic echo canceler is supported by input source.
+ *
+ * @param streamManager The {@link OH_AudioStreamManager} handle provided
+ * by {@link OH_AudioManager_GetAudioStreamManager}.
+ * @param sourceType Related source type.
+ * @param supported Pointer to get the result.
+ * @return Function result code:
+ * {@link AUDIOCOMMON_RESULT_SUCCESS} If the execution is successful.
+ * {@link AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM}:
+ * 1.The input param streamManager is nullptr;
+ * 2.Source type is invalid.
+ * 3.The input param supported is nullptr.
+ * @since 20
+ */
+
+OH_AudioCommon_Result OH_AudioStreamManager_IsAcousticEchoCancelerSupported(
+ OH_AudioStreamManager *streamManager,
+ OH_AudioStream_SourceType sourceType,
+ bool *supported);
+
+/**
+ * @brief Return if fast playback is supported for the specific audio stream info and usage type
+ * in current device situation.
+ *
+ * @param streamManager {@link OH_AudioStreamManager} handle
+ * provided by {@link OH_AudioManager_GetAudioStreamManager}.
+ * @param streamInfo reference of stream info structure to describe basic audio format.
+ * @param usage stream usage type used to decide the audio device and pipe type selection result.
+ * @return {@code true} if fast playback is supported in this situation.
+ * @since 20
+ */
+bool OH_AudioStreamManager_IsFastPlaybackSupported(
+ OH_AudioStreamManager *streamManager, OH_AudioStreamInfo *streamInfo, OH_AudioStream_Usage usage);
+
+/**
+ * @brief Return if fast recording is supported for the specific audio stream info and source type
+ * in current device situation.
+ *
+ * @param streamManager {@link OH_AudioStreamManager} handle
+ * provided by {@link OH_AudioManager_GetAudioStreamManager}.
+ * @param streamInfo reference of stream info structure to describe basic audio format.
+ * @param source stream source type used to decide the audio device and pipe type selection result.
+ * @return {@code true} if fast recording is supported in this situation.
+ * @since 20
+ */
+bool OH_AudioStreamManager_IsFastRecordingSupported(
+ OH_AudioStreamManager *streamManager, OH_AudioStreamInfo *streamInfo, OH_AudioStream_SourceType source);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NATIVE_AUDIO_STREAM_MANAGER_H
+/** @} */
diff --git a/multimedia/audio_framework/audio_manager/native_audio_volume_manager.h b/multimedia/audio_framework/audio_manager/native_audio_volume_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c3317a8d655967d029c95fc01ff5ce4385a87d3
--- /dev/null
+++ b/multimedia/audio_framework/audio_manager/native_audio_volume_manager.h
@@ -0,0 +1,265 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup OHAudio
+ * @{
+ *
+ * @brief Provide the definition of the C interface for the audio module.
+ *
+ * @syscap SystemCapability.Multimedia.Audio.Core
+ *
+ * @since 20
+ */
+
+/**
+ * @file native_audio_volume_manager.h
+ *
+ * @brief Declare audio volume manager related interfaces.
+ *
+ * This file interfaces are used for the creation of AudioVolumeManager.
+ *
+ * @library libohaudio.so
+ * @syscap SystemCapability.Multimedia.Audio.Core
+ * @kit AudioKit
+ * @since 20
+ */
+
+#ifndef NATIVE_AUDIO_VOLUME_MANAGER_H
+#define NATIVE_AUDIO_VOLUME_MANAGER_H
+
+#include "native_audio_common.h"
+#include "native_audiostream_base.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Declare the audio volume manager.
+ * Audio volume manager provides many functions for developer to get the information about system volume.
+ *
+ * @since 20
+ */
+typedef struct OH_AudioVolumeManager OH_AudioVolumeManager;
+
+/**
+ * @brief Prototype for the volume change function that is passed to
+ * {@link OH_AudioVolumeManager_RegisterStreamVolumeChangeCallback}.
+ *
+ * @param userData userdata which is passed by register.
+ * @param usage the stream usage type for which volume changed.
+ * @param volumeLevel the latest volume level.
+ * @param updateUi whether to show the volume change in UI.
+ *
+ * @since 20
+ */
+typedef void (*OH_AudioVolumeManager_OnStreamVolumeChangeCallback)(
+ void *userData,
+ OH_AudioStream_Usage usage,
+ int32_t volumeLevel,
+ bool updateUi
+);
+
+/**
+ * @brief Prototype for the volume change function that is passed to
+ * {@link OH_AudioVolumeManager_RegisterStreamVolumeChangeCallback}.
+ *
+ * @param userData userdata which is passed by register.
+ * @param ringerMode the latest ringer mode.
+ *
+ * @since 20
+ */
+typedef void (*OH_AudioVolumeManager_OnRingerModeChangeCallback)(
+ void *userData,
+ OH_AudioRingerMode ringerMode
+);
+
+/**
+ * @brief Fetch the audio volume manager handle, which is a singleton.
+ *
+ * @param volumeManager output parameter to get {@link OH_AudioVolumeManager} instance.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioManager_GetAudioVolumeManager(
+ OH_AudioVolumeManager **volumeManager);
+
+/**
+ * @brief Obtains the maximum volume level for a specific stream usage type.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param usage the stream usage type used to map a specific volume type.
+ * @param maxVolumeLevel output parameter to get maximum volume level.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr or invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_GetMaxVolumeByUsage(OH_AudioVolumeManager *volumeManager,
+ OH_AudioStream_Usage usage, int32_t *maxVolumeLevel);
+
+/**
+ * @brief Obtains the minimum volume level for a specific stream usage type.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param usage the stream usage type used to map a specific volume type.
+ * @param minVolumeLevel output parameter to get minimum volume level.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr or invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_GetMinVolumeByUsage(OH_AudioVolumeManager *volumeManager,
+ OH_AudioStream_Usage usage, int32_t *minVolumeLevel);
+
+/**
+ * @brief Obtains the system volume level for a specific stream usage type.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param usage the stream usage type used to map a specific volume type.
+ * @param volumeLevel output parameter to get system volume level.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr or invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_GetVolumeByUsage(OH_AudioVolumeManager *volumeManager,
+ OH_AudioStream_Usage usage, int32_t *volumeLevel);
+
+/**
+ * @brief Checks whether a stream is muted for a specific stream usage type.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param usage the stream usage type used to map a specific volume type.
+ * @param muted output parameter to get whether the stream of this usage is muted.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr or invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_IsMuteByUsage(OH_AudioVolumeManager *volumeManager,
+ OH_AudioStream_Usage usage, bool *muted);
+
+/**
+ * @brief Register callback to receive stream volume changed events.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param usage the stream usage type used to map a specific volume type which caller want to listen.
+ * @param callback callback function which will be called when stream volume changed.
+ * @param userData pointer to a data structure that will be passed to the callback functions.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr or invalid
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_RegisterStreamVolumeChangeCallback(
+ OH_AudioVolumeManager *volumeManager, OH_AudioStream_Usage usage,
+ OH_AudioVolumeManager_OnStreamVolumeChangeCallback callback, void *userData);
+
+/**
+ * @brief Unregister stream volume change callback.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param callback callback function which registered in
+ * {@link OH_AudioVolumeManager_RegisterStreamVolumeChangeCallback}.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_UnregisterStreamVolumeChangeCallback(
+ OH_AudioVolumeManager *volumeManager,
+ OH_AudioVolumeManager_OnStreamVolumeChangeCallback callback);
+
+/**
+ * @brief Get current ringer mode.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param ringerMode output parameter to get the ringer mode.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_GetRingerMode(OH_AudioVolumeManager *volumeManager,
+ OH_AudioRingerMode *ringerMode);
+
+/**
+ * @brief Register callback to receive ringer mode changed events.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param callback callback function which will be called when ringer mode changed.
+ * @param userData pointer to a data structure that will be passed to the callback functions.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_RegisterRingerModeChangeCallback(
+ OH_AudioVolumeManager *volumeManager,
+ OH_AudioVolumeManager_OnRingerModeChangeCallback callback, void *userData);
+
+/**
+ * @brief Unregister ringer mode change callback.
+ *
+ * @param volumeManager {@link OH_AudioVolumeManager} handle
+ * provided by {@link OH_AudioManager_GetAudioVolumeManager}.
+ * @param callback callback function which registered in
+ * {@link OH_AudioVolumeManager_RegisterRingerModeChangeCallback}.
+ * @return
+ * {@link #AUDIOCOMMON_RESULT_SUCCESS} if execution succeeds
+ * {@link #AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM} if input param is nullptr
+ * {@link #AUDIOCOMMON_RESULT_ERROR_SYSTEM} system process error occurs
+ *
+ * @since 20
+ */
+OH_AudioCommon_Result OH_AudioVolumeManager_UnregisterRingerModeChangeCallback(
+ OH_AudioVolumeManager *volumeManager,
+ OH_AudioVolumeManager_OnRingerModeChangeCallback callback);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NATIVE_AUDIO_ROUTING_MANAGER_H
+/** @} */
\ No newline at end of file
diff --git a/multimedia/audio_framework/audio_renderer/native_audiorenderer.h b/multimedia/audio_framework/audio_renderer/native_audiorenderer.h
index be7722f07aded3b7db0c85a2f8675e0c39372327..fa0ae80799b89a98634c0cbe51d046aceba15041 100644
--- a/multimedia/audio_framework/audio_renderer/native_audiorenderer.h
+++ b/multimedia/audio_framework/audio_renderer/native_audiorenderer.h
@@ -243,6 +243,10 @@ OH_AudioStream_Result OH_AudioRenderer_GetFramesWritten(OH_AudioRenderer* render
/**
* Query the the time at which a particular frame was presented.
*
+ * It is recommended to use new api {@link OH_AudioRenderer_GetAudioTimestampInfo}
+ * because it adapts to playback speed change, but current api does not. The
+ * increasing speed for position will not change when speed become fast.
+ *
* @since 10
*
* @param renderer Reference created by OH_AudioStreamBuilder_GenerateRenderer()
@@ -517,6 +521,9 @@ OH_AudioStream_Result OH_AudioRenderer_SetDefaultOutputDevice(
* This interface also adapts to playback speed change. For example, the increseing speed for
* position will be double for 2x speed playback.
*
+ * For video synchronization usage, there is a best practice document for developer to refer
+ * **AV Synchronization**.
+ *
* @param renderer Reference created by OH_AudioStreamBuilder_GenerateRenderer()
* @param framePosition Pointer to a variable to receive the position
* @param timestamp Pointer to a variable to receive the timestamp
@@ -536,34 +543,117 @@ OH_AudioStream_Result OH_AudioRenderer_GetAudioTimestampInfo(OH_AudioRenderer* r
int64_t* framePosition, int64_t* timestamp);
/**
- * @brief Callback function of interrupt event on AudioRenderer.
- *
- * This function is similar with OH_AudioRenderer_Callbacks_Struct.OH_AudioRenderer_OnInterruptEvent.
+ * @brief Called when an interrupt event occurs in an AudioRenderer instance.
+ * This function is similar to OH_AudioRenderer_Callbacks_Struct.OH_AudioRenderer_OnInterruptEvent.
*
- * @param renderer AudioRenderer where this callback occurs.
- * @param userData User data which is passed by user.
- * @param type Force type of this interrupt event.
- * @param hint Hint of this interrupt event.
+ * @param renderer Pointer to the AudioRenderer instance that triggers the callback.
+ * @param userData Pointer to the user data passed when setting the callback via
+ * OH_AudioStreamBuilder_SetRendererInterruptCallback.
+ * @param type Type of force that causes the interrupt event.
+ * @param hint Hint provided along with the interrupt event.
* @see OH_AudioRenderer_Callbacks_Struct.OH_AudioRenderer_OnInterruptEvent.
- * @since 18
+ * @since 20
*/
typedef void (*OH_AudioRenderer_OnInterruptCallback)(OH_AudioRenderer* renderer, void* userData,
OH_AudioInterrupt_ForceType type, OH_AudioInterrupt_Hint hint);
/**
- * @brief Callback function of error on AudioRenderer.
+ * @brief Called when an error event occurs in an AudioRenderer instance.
+ * This function is similar to OH_AudioRenderer_Callbacks_Struct.OH_AudioRenderer_OnError.
*
- * This function is similar with OH_AudioRenderer_Callbacks_Struct.OH_AudioRenderer_OnError.
- *
- * @param renderer AudioRenderer where this callback occurs.
- * @param userData User data which is passed by user.
- * @param error Error while using AudioRenderer.
+ * @param renderer Pointer to the AudioRenderer instance that triggers the callback.
+ * @param userData Pointer to the user data passed when setting the callback via
+ * OH_AudioStreamBuilder_SetRendererErrorCallback.
+ * @param error Specific error information.
* @see OH_AudioRenderer_Callbacks_Struct.OH_AudioRenderer_OnError
- * @since 18
+ * @since 20
*/
typedef void (*OH_AudioRenderer_OnErrorCallback)(OH_AudioRenderer* renderer, void* userData,
OH_AudioStream_Result error);
+/**
+ * @brief Gets audio renderer running status, check if it works in fast status.
+ *
+ * @param renderer Reference created by OH_AudioStreamBuilder_GenerateRenderer.
+ * @param status Pointer to a variable to receive the status.
+ * @return
+ * {@link AUDIOSTREAM_SUCCESS} if the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} the param of renderer is nullptr.
+ * {@link AUDIOSTREAM_ERROR_ILLEGAL_STATE} function called in invalid state, only available before release state.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioRenderer_GetFastStatus(OH_AudioRenderer* renderer,
+ OH_AudioStream_FastStatus* status);
+
+/**
+ * @brief Callback function of fast status change event for audio renderer.
+ *
+ * @param renderer Pointer to an audio renderer instance for which this callback occurs.
+ * @param userData Userdata which is passed by register.
+ * @param status Current fast status.
+ * @since 20
+ */
+typedef void (*OH_AudioRenderer_OnFastStatusChange)(
+ OH_AudioRenderer* renderer,
+ void* userData,
+ OH_AudioStream_FastStatus status
+);
+
+/**
+ * @brief Sets the loudness gain of current renderer.
+ * The default loudness gain is 0.0dB. The stream usage of the audio renderer must be
+ * {@link OH_AudioStream_Usage#AUDIOSTREAM_USAGE_MUSIC}, {@link OH_AudioStream_Usage#AUDIOSTREAM_USAGE_MOVIE}
+ * or {@link OH_AudioStream_Usage#AUDIOSTREAM_USAGE_AUDIOBOOK}.
+ * The latency mode of the audio renderer must be {@link OH_AudioStream_LatencyMode#AUDIOSTREAM_LATENCY_MODE_NORMAL}.
+ * If AudioRenderer is played through the high-resolution pipe, this operation is not supported.
+ *
+ * @param renderer AudioRender created by OH_AudioStreamBuilder_GenerateRenderer()
+ * @param loudnessGain Loudness gain to set which changes from -90.0 to 24.0, expressing in dB.
+ * @return Function result code:
+ * {@link AUDIOSTREAM_SUCCESS} If the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM}:
+ * 1.The param of renderer is nullptr or not supported to set gain;
+ * 2.The param of loudnessGain is invalid.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioRenderer_SetLoudnessGain(OH_AudioRenderer* renderer, float loudnessGain);
+
+/**
+ * @brief Get the loudness gain of current renderer.
+ *
+ * @param renderer AudioRender created by OH_AudioStreamBuilder_GenerateRenderer()
+ * @param loudnessGain Pointer to a variable to receive the loudness gain.
+ * @return Function result code:
+ * {@link AUDIOSTREAM_SUCCESS} If the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM}:
+ * 1.The param of renderer is nullptr;
+ * 2.The param of loudnessGain is nullptr.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioRenderer_GetLoudnessGain(OH_AudioRenderer* renderer, float* loudnessGain);
+
+/**
+ * @brief Callback function of write data on Render.
+ *
+ * Different with OH_AudioRenderer_OnWriteDataCallback, this function allows the caller to write partial data which
+ * ranges from 0 to the callback buffer size. If 0 is returned, the callback thread will sleep for a while. Otherwise,
+ * the system may callback again immediately.
+ *
+ * @param renderer AudioRenderer where this callback occurs.
+ * @param userData User data which is passed by user.
+ * @param audioData Audio data pointer, where user should fill in audio data.
+ * @param audioDataSize Size of audio data that user should fill in.
+ * @return Length of the valid data that has written into audioData buffer. The return value must be in range of
+ * [0, audioDataSize]. If the return value is less than 0, the system changes it to 0. And, if the return value is
+ * greater than audioDataSize, the system changes it to audioDataSize. Note that the length of the returned buffer
+ * must be an integer multiple of the length of the single sample data. For example, for 2 channels and S16 format
+ * audio data, it must be an integer multiple of 4(2*16/8). Otherwise, it may cause noise during playback.
+ * @see OH_AudioRenderer_OnWriteDataCallback
+ * @since 20
+ */
+typedef int32_t (*OH_AudioRenderer_OnWriteDataCallbackAdvanced)(OH_AudioRenderer* renderer, void* userData,
+ void* audioData, int32_t audioDataSize);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/audio_framework/common/native_audio_common.h b/multimedia/audio_framework/common/native_audio_common.h
index 2dfd609df994bf4315a31cea7ad4cd0b2d750b22..d83d81b91cd30b87f9ea7a372112f32a7f6ff460 100644
--- a/multimedia/audio_framework/common/native_audio_common.h
+++ b/multimedia/audio_framework/common/native_audio_common.h
@@ -130,6 +130,32 @@ typedef enum {
AUDIO_SCENE_VOICE_CHAT = 3,
} OH_AudioScene;
+/**
+ * @brief Defines the ringer mode.
+ *
+ * @since 20
+ */
+typedef enum {
+ /**
+ * Silent ringer mode.
+ *
+ * @since 20
+ */
+ AUDIO_RINGER_MODE_SILENT = 0,
+ /**
+ * Vibrate ringer mode.
+ *
+ * @since 20
+ */
+ AUDIO_RINGER_MODE_VIBRATE = 1,
+ /**
+ * Normal ringer mode.
+ *
+ * @since 20
+ */
+ AUDIO_RINGER_MODE_NORMAL = 2,
+} OH_AudioRingerMode;
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/audio_framework/common/native_audio_device_base.h b/multimedia/audio_framework/common/native_audio_device_base.h
index 1550f66c0a4161dd089cc94a0ed9d40025c48faf..aa42c429af3528949555877f0b9249217e0acb77 100644
--- a/multimedia/audio_framework/common/native_audio_device_base.h
+++ b/multimedia/audio_framework/common/native_audio_device_base.h
@@ -151,18 +151,35 @@ typedef enum {
AUDIO_DEVICE_TYPE_USB_DEVICE = 25,
/**
- * @brief HDMI device, such as HDMI, ARC, eARC.
- *
- * @since 18
+ * @brief Accessory device, such as the microphone on a remote control.
+ * @since 19
+ */
+ AUDIO_DEVICE_TYPE_ACCESSORY = 26,
+
+ /**
+ * @brief HDMI device, such as a device connected through an HDMI, ARC, or eARC interface.
+ * @since 19
*/
AUDIO_DEVICE_TYPE_HDMI = 27,
/**
- * @brief line-connected, digital audio output device, such as an S/PDIF device.
- * @since 18
+ * @brief Line-connected, digital audio output device, such as an S/PDIF device.
+ * @since 19
*/
AUDIO_DEVICE_TYPE_LINE_DIGITAL = 28,
+ /**
+ * @brief Hearing aid device.
+ * @since 20
+ */
+ AUDIO_DEVICE_TYPE_HEARING_AID = 30,
+
+ /**
+ * @brief Nearlink device.
+ * @since 20
+ */
+ AUDIO_DEVICE_TYPE_NEARLINK = 31,
+
/**
* @brief Default device type.
*/
diff --git a/multimedia/audio_framework/common/native_audiostream_base.h b/multimedia/audio_framework/common/native_audiostream_base.h
index 6b1fb6cb61edece25817d4b933662e5471abd470..2d2a6dc040d52358adc6be4c69dfc0c057b9613d 100644
--- a/multimedia/audio_framework/common/native_audiostream_base.h
+++ b/multimedia/audio_framework/common/native_audiostream_base.h
@@ -41,6 +41,7 @@
#define NATIVE_AUDIOSTREAM_BASE_H
#include
+#include "multimedia/native_audio_channel_layout.h"
#ifdef __cplusplus
extern "C" {
@@ -78,7 +79,14 @@ typedef enum {
*
* @since 10
*/
- AUDIOSTREAM_ERROR_SYSTEM = 3
+ AUDIOSTREAM_ERROR_SYSTEM = 3,
+
+ /**
+ * @error Unsupported audio format, such as unsupported encoding type, sample format etc.
+ *
+ * @since 19
+ */
+ AUDIOSTREAM_ERROR_UNSUPPORTED_FORMAT = 4
} OH_AudioStream_Result;
/**
@@ -136,7 +144,7 @@ typedef enum {
/**
* Float 32, little endian.
*
- * @since 18
+ * @since 17
*/
AUDIOSTREAM_SAMPLE_F32LE = 4,
} OH_AudioStream_SampleFormat;
@@ -159,8 +167,46 @@ typedef enum {
* @since 12
*/
AUDIOSTREAM_ENCODING_TYPE_AUDIOVIVID = 1,
+ /**
+ * E_AC3 encoding type.
+ *
+ * @since 19
+ */
+ AUDIOSTREAM_ENCODING_TYPE_E_AC3 = 2,
} OH_AudioStream_EncodingType;
+/**
+ * @brief Define the audio stream info structure, used to describe basic audio format.
+ *
+ * @since 19
+ */
+typedef struct OH_AudioStreamInfo {
+ /**
+ * @brief Audio sampling rate.
+ *
+ * @since 19
+ */
+ int32_t samplingRate;
+ /**
+ * @brief Audio channel layout.
+ *
+ * @since 19
+ */
+ OH_AudioChannelLayout channelLayout;
+ /**
+ * @brief Audio encoding format type.
+ *
+ * @since 19
+ */
+ OH_AudioStream_EncodingType encodingType;
+ /**
+ * @brief Audio sample format.
+ *
+ * @since 19
+ */
+ OH_AudioStream_SampleFormat sampleFormat;
+} OH_AudioStreamInfo;
+
/**
* @brief Define the audio stream usage.
* Audio stream usage is used to describe what work scenario
@@ -275,10 +321,36 @@ typedef enum {
AUDIOSTREAM_LATENCY_MODE_FAST = 1
} OH_AudioStream_LatencyMode;
+/**
+ * @brief Enumerates audio direct playback modes.
+ *
+ * @since 19
+ */
+typedef enum {
+ /**
+ * Direct playback is not supported.
+ *
+ * @since 19
+ */
+ AUDIOSTREAM_DIRECT_PLAYBACK_NOT_SUPPORTED = 0,
+ /**
+ * Direct playback mode which is bitstream pass-through such as compressed pass-through.
+ *
+ * @since 19
+ */
+ AUDIOSTREAM_DIRECT_PLAYBACK_BITSTREAM_SUPPORTED = 1,
+ /**
+ * Direct playback mode of pcm.
+ *
+ * @since 19
+ */
+ AUDIOSTREAM_DIRECT_PLAYBACK_PCM_SUPPORTED = 2
+} OH_AudioStream_DirectPlaybackMode;
+
/**
* @brief Define the audio event.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OutputDeviceChangeCallback.
* @since 10
*/
@@ -286,7 +358,7 @@ typedef enum {
/**
* The routing of the audio has changed.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OutputDeviceChangeCallback.
* @since 10
*/
@@ -404,7 +476,19 @@ typedef enum {
*
* @since 10
*/
- AUDIOSTREAM_INTERRUPT_HINT_UNDUCK = 5
+ AUDIOSTREAM_INTERRUPT_HINT_UNDUCK = 5,
+ /**
+ * Mute the stream.
+ *
+ * @since 20
+ */
+ AUDIOSTREAM_INTERRUPT_HINT_MUTE = 6,
+ /**
+ * Unmute the stream.
+ *
+ * @since 20
+ */
+ AUDIOSTREAM_INTERRUPT_HINT_UNMUTE = 7
} OH_AudioInterrupt_Hint;
/**
@@ -462,7 +546,13 @@ typedef enum {
*
* @since 14
*/
- AUDIOSTREAM_SOURCE_TYPE_UNPROCESSED = 14
+ AUDIOSTREAM_SOURCE_TYPE_UNPROCESSED = 14,
+ /**
+ * Live Broadcast source type.
+ *
+ * @since 20
+ */
+ AUDIOSTREAM_SOURCE_TYPE_LIVE = 17
} OH_AudioStream_SourceType;
/**
@@ -501,6 +591,22 @@ typedef enum {
EFFECT_DEFAULT = 1,
} OH_AudioStream_AudioEffectMode;
+/**
+ * @brief Defines the fast status.
+ *
+ * @since 20
+ */
+typedef enum {
+ /**
+ * normal status
+ */
+ AUDIOSTREAM_FASTSTATUS_NORMAL = 0,
+ /**
+ * fast status
+ */
+ AUDIOSTREAM_FASTSTATUS_FAST = 1
+} OH_AudioStream_FastStatus;
+
/**
* @brief Declaring the audio stream builder.
* The instance of builder is used for creating audio stream.
@@ -528,7 +634,7 @@ typedef struct OH_AudioCapturerStruct OH_AudioCapturer;
/**
* @brief Declaring the callback struct for renderer stream.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead Use the callback type: OH_AudioRenderer_OnWriteDataCallback, OH_AudioRenderer_OutputDeviceChangeCallback,
* OH_AudioRenderer_OnInterruptEvent, OH_AudioRenderer_OnErrorCallback separately.
* @since 10
@@ -538,7 +644,7 @@ typedef struct OH_AudioRenderer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to write audio data
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OnWriteDataCallback.
* @since 10
*/
@@ -552,7 +658,7 @@ typedef struct OH_AudioRenderer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to handle audio renderer stream events.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OutputDeviceChangeCallback.
* @since 10
*/
@@ -565,7 +671,7 @@ typedef struct OH_AudioRenderer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to handle audio interrupt events.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OnInterruptCallback.
* @since 10
*/
@@ -579,7 +685,7 @@ typedef struct OH_AudioRenderer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to handle audio error result.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OnErrorCallback.
* @since 10
*/
@@ -592,7 +698,7 @@ typedef struct OH_AudioRenderer_Callbacks_Struct {
/**
* @brief Declaring the callback struct for capturer stream.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead Use the callback type: OH_AudioCapturer_OnReadDataCallback, OH_AudioCapturer_OnDeviceChangeCallback,
* OH_AudioCapturer_OnInterruptCallback and OH_AudioCapturer_OnErrorCallback separately.
* @since 10
@@ -602,7 +708,7 @@ typedef struct OH_AudioCapturer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to read audio data.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioCapturer_OnReadDataCallback
* @since 10
*/
@@ -616,7 +722,7 @@ typedef struct OH_AudioCapturer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to handle audio capturer stream events.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioRenderer_OutputDeviceChangeCallback
* @since 10
*/
@@ -629,7 +735,7 @@ typedef struct OH_AudioCapturer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to handle audio interrupt events.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioCapturer_OnInterruptCallback
* @since 10
*/
@@ -643,7 +749,7 @@ typedef struct OH_AudioCapturer_Callbacks_Struct {
* This function pointer will point to the callback function that
* is used to handle audio error result.
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead OH_AudioCapturer_OnErrorCallback
* @since 10
*/
@@ -668,6 +774,18 @@ typedef enum {
REASON_OLD_DEVICE_UNAVAILABLE = 2,
/* Device is overrode by user or system. */
REASON_OVERRODE = 3,
+ /**
+ * @brief Device information when the audio session is activated.
+ *
+ * @since 20
+ */
+ REASON_SESSION_ACTIVATED = 4,
+ /**
+ * @brief There is a higher-priority stream, causing the system device to change.
+ *
+ * @since 20
+ */
+ REASON_STREAM_PRIORITY_CHANGED = 5,
} OH_AudioStream_DeviceChangeReason;
/**
@@ -756,13 +874,13 @@ typedef OH_AudioData_Callback_Result (*OH_AudioRenderer_OnWriteDataCallback)(OH_
/**
* @brief Define the audio stream volume mode.
*
- * @since 18
+ * @since 19
*/
typedef enum {
/**
* Indicates this audio stream volume will be affected by system volume, also the default behavior.
*
- * @since 18
+ * @since 19
*/
AUDIOSTREAM_VOLUMEMODE_SYSTEM_GLOBAL = 0,
@@ -770,7 +888,7 @@ typedef enum {
* Indicates this audio stream volume will be affected by app's individual volume percentage which set by yourself
* using the app volume api.
*
- * @since 18
+ * @since 19
*/
AUDIOSTREAM_VOLUMEMODE_APP_INDIVIDUAL = 1
} OH_AudioStream_VolumeMode;
diff --git a/multimedia/audio_framework/common/native_audiostreambuilder.h b/multimedia/audio_framework/common/native_audiostreambuilder.h
index 5fb946d8186ec1649a6d77d79588d82893d23aa6..f8f10479c600afac6c6c701edae17df4c9abfa71 100644
--- a/multimedia/audio_framework/common/native_audiostreambuilder.h
+++ b/multimedia/audio_framework/common/native_audiostreambuilder.h
@@ -197,7 +197,7 @@ OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerInfo(OH_AudioStreamBuilde
/**
* Set the callbacks for the renderer client
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead Set the callback functions separately using OH_AudioStreamBuilder_SetRendererWriteDataCallback,
* OH_AudioStreamBuilder_SetRendererInterruptCallback, OH_AudioStreamBuilder_SetRendererOutputDeviceChangeCallback
* and OH_AudioStreamBuilder_SetRendererErrorCallback.
@@ -251,7 +251,7 @@ OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererPrivacy(OH_AudioStreamBui
/**
* Set the callbacks for the capturer client
*
- * @deprecated since 18
+ * @deprecated since 20
* @useinstead Set the callback functions separately using OH_AudioStreamBuilder_SetCapturerReadDataCallback,
* OH_AudioStreamBuilder_SetCapturerDeviceChangeCallback, OH_AudioStreamBuilder_SetCapturerInterruptCallback
* and OH_AudioStreamBuilder_SetCapturerErrorCallback.
@@ -272,6 +272,21 @@ OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerCallback(OH_AudioStreamBu
/**
* Create the audio renderer client.
*
+ * The AudioRenderer instance is used to play streaming audio data.
+ * When using AudioRenderer apis, there are many instructions for application
+ * to achieve better performance and lower power consumption:
+ * In music or audiobook background playback situation, you can have low power
+ * consumption by following this best practices document **Low-Power Rules in Music Playback Scenarios**.
+ * And for navigation situation, you can follow **Low-Power Rules in Navigation and Positioning Scenarios**.
+ *
+ * Application developer should also be careful when app goes to background, please check if your audio playback
+ * is still needed, see **Audio Resources** in best practices document.
+ * And avoiding to send silence audio data continuously to waste system resources, otherwise system will take
+ * control measures when this behavior is detected, see **Audio Playback** in best practices document.
+ *
+ * If you want to use AudioRenderer api to implement a music playback application, there are also many interactive
+ * scenes to consider, see **Developing an Audio Application** in best practices document.
+ *
* @since 10
*
* @param builder Reference provided by OH_AudioStreamBuilder_Create()
@@ -372,9 +387,26 @@ OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererWriteDataCallback(OH_Audi
OH_AudioRenderer_OnWriteDataCallback callback, void* userData);
/**
- * Set the renderer volume mode of the stream client
+ * @brief Set the callback of writing data to renderer client.
*
- * @since 18
+ * This function is similar with {@link OH_AudioStreamBuilder_SetRendererWriteDataCallback}. Only the last callback set
+ * by OH_AudioStreamBuilder_SetRendererWriteDataCallback or this function will become effective. Different with
+ * OH_AudioStreamBuilder_SetRendererWriteDataCallback, the callback in this function can return audio data of any
+ * length.
+ *
+ * @param builder Builder provided by OH_AudioStreamBuilder_Create()
+ * @param callback Callback to functions that will write audio data to renderer client.
+ * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @return Result code.
+ * {@link AUDIOSTREAM_SUCCESS} Success.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererWriteDataCallbackAdvanced(OH_AudioStreamBuilder* builder,
+ OH_AudioRenderer_OnWriteDataCallbackAdvanced callback, void* userData);
+
+/**
+ * Set the renderer volume mode of the stream client
*
* @param builder Reference provided by OH_AudioStreamBuilder_Create()
* @param volumeMode Set the volume mode for the renderer client.
@@ -383,111 +415,157 @@ OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererWriteDataCallback(OH_Audi
* {@link AUDIOSTREAM_ERROR_INVALID_PARAM}:
* 1.The param of builder is nullptr;
* 2.The param of volumeMode invalid.
+ * @since 19
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetVolumeMode(OH_AudioStreamBuilder* builder,
OH_AudioStream_VolumeMode volumeMode);
/**
- * @brief Set the callback of interrupt event on AudioRenderer.
- *
- * This function is similar with {@link OH_AudioStreamBuilder_SetRendererCallback}. Only the last callback set by
- * OH_AudioStreamBuilder_SetRendererCallback or this function will become effective.
- *
- * @param builder Builder provided by OH_AudioStreamBuilder_Create()
- * @param callback Callback function that will receive the interrupt event.
- * @param userData Pointer to an application data structure that will be passed to the callback functions.
- * @return Result code.
- * {@link AUDIOSTREAM_SUCCESS} Success.
- * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
- * @since 18
+ * @brief Sets a callback to handle interrupt events for an AudioRenderer instance. This function is similar to
+ * {@link OH_AudioStreamBuilder_SetRendererCallback}. If both OH_AudioStreamBuilder_SetRendererCallback and this
+ * function are called, the most recently set callback takes effect.
+ *
+ * @param builder Builder instance, which is generated by OH_AudioStreamBuilder_Create().
+ * @param callback Callback used to handle the interrupt events.
+ * @param userData Pointer to user-defined data, which will be passed back to the application in the callback.
+ * {@link AUDIOSTREAM_SUCCESS} is returned if the operation is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} is returned if a parameter is invalid, for example, if builder
+ * is nullptr.
+ * @since 20
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererInterruptCallback(OH_AudioStreamBuilder* builder,
OH_AudioRenderer_OnInterruptCallback callback, void* userData);
/**
- * @brief Set the callback of error event on AudioRenderer.
- *
- * This function is similar with {@link OH_AudioStreamBuilder_SetRendererCallback}. Only the last callback set by
- * OH_AudioStreamBuilder_SetRendererCallback or this function will become effective.
- *
- * @param builder Builder provided by OH_AudioStreamBuilder_Create()
- * @param callback Callback function that will recevie the error event.
- * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @brief Sets a callback to handle error events for an AudioRenderer instance.
+ * This function is similar to {@link OH_AudioStreamBuilder_SetRendererCallback}. If both
+ * OH_AudioStreamBuilder_SetRendererCallback and this function are called, the most recently set callback takes
+ * effect.
+ *
+ * @param builder Builder instance, which is generated by OH_AudioStreamBuilder_Create().
+ * @param callback Callback used to handle the error events.
+ * @param userData Pointer to user-defined data, which will be passed back to the application in the callback.
* @return Result code.
- * {@link AUDIOSTREAM_SUCCESS} Success.
- * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
- * @since 18
+ * {@link AUDIOSTREAM_SUCCESS} is returned if the operation is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} is returned if a parameter is invalid, for example, if builder
+ * is nullptr.
+ * @since 20
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererErrorCallback(OH_AudioStreamBuilder* builder,
OH_AudioRenderer_OnErrorCallback callback, void* userData);
/**
- * @brief Set the callback of reading data on AudioCapturer.
- *
- * This function is similar with {@link OH_AudioStreamBuilder_SetCapturerCallback}. Only the last callback set by
- * OH_AudioStreamBuilder_SetCapturerCallback or this function will become effective.
- *
- * @param builder Builder provided by OH_AudioStreamBuilder_Create()
- * @param callback Callback function that will recevie the reading data event.
- * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @brief Sets a callback to handle audio data read events for an AudioCapturer instance. This function is
+ * similar to {@link OH_AudioStreamBuilder_SetCapturerCallback}. If both {@link
+ * OH_AudioStreamBuilder_SetCapturerCallback} and this function are called, the most recently set callback takes
+ * effect.
+ *
+ * @param builder Builder instance, which is generated by OH_AudioStreamBuilder_Create().
+ * @param callback Callback used to handle incoming audio data.
+ * @param userData Pointer to user-defined data, which will be passed back to the application in the callback.
* @return Result code.
- * {@link AUDIOSTREAM_SUCCESS} Success.
- * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
- * @since 18
+ * {@link AUDIOSTREAM_SUCCESS} is returned if the operation is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} is returned if a parameter is invalid, for example, if builder
+ * is nullptr.
+ * @since 20
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerReadDataCallback(OH_AudioStreamBuilder* builder,
OH_AudioCapturer_OnReadDataCallback callback, void* userData);
/**
- * @brief Set the callback of device change on AudioCapturer.
+ * @brief Sets a callback to handle device change events for an AudioCapturer instance. This function is
+ * similar to {@link OH_AudioStreamBuilder_SetCapturerCallback}. If both OH_AudioStreamBuilder_SetCapturerCallback
+ * and this function are called, the most recently set callback takes effect.
*
- * This function is similar with {@link OH_AudioStreamBuilder_SetCapturerCallback}. Only the last callback set by
- * OH_AudioStreamBuilder_SetCapturerCallback or this function will become effective.
- *
- * @param builder Builder provided by OH_AudioStreamBuilder_Create()
- * @param callback Callback function that will recevie the device change event.
- * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @param builder Builder instance, which is generated by OH_AudioStreamBuilder_Create().
+ * @param callback Callback used to handle the device change events.
+ * @param userData Pointer to user-defined data, which will be passed back to the application in the callback.
* @return Result code.
- * {@link AUDIOSTREAM_SUCCESS} Success.
- * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
- * @since 18
+ * {@link AUDIOSTREAM_SUCCESS} is returned if the operation is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} is returned if a parameter is invalid, for example, if builder
+ * is nullptr.
+ * @since 20
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerDeviceChangeCallback(OH_AudioStreamBuilder* builder,
OH_AudioCapturer_OnDeviceChangeCallback callback, void* userData);
/**
- * @brief Set the callback of interrupt event on AudioCapturer.
- *
- * This function is similar with {@link OH_AudioStreamBuilder_SetCapturerCallback}. Only the last callback set by
- * OH_AudioStreamBuilder_SetCapturerCallback or this function will become effective.
- *
- * @param builder Builder provided by OH_AudioStreamBuilder_Create()
- * @param callback Callback function that will recevie the interrupt event.
- * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @brief Sets a callback to handle interrupt events for an AudioCapturer instance.
+ * This function is similar to {@link OH_AudioStreamBuilder_SetCapturerCallback}. If both
+ * OH_AudioStreamBuilder_SetCapturerCallback and this function are called, the most recently set callback takes
+ * effect.
+ *
+ * @param builder Builder instance, which is generated by OH_AudioStreamBuilder_Create().
+ * @param callback Callback used to handle the interrupt events.
+ * @param userData Pointer to user-defined data, which will be passed back to the application in the callback.
* @return Result code.
- * {@link AUDIOSTREAM_SUCCESS} Success.
- * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
- * @since 18
+ * {@link AUDIOSTREAM_SUCCESS} is returned if the operation is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} is returned if a parameter is invalid, for example, if builder
+ * is nullptr.
+ * @since 20
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerInterruptCallback(OH_AudioStreamBuilder* builder,
OH_AudioCapturer_OnInterruptCallback callback, void* userData);
/**
- * @brief Set the callback of error event on AudioCapturer.
+ * @brief Sets a callback to handle error events for an AudioCapturer instance. This function is similar to
+ * {@link OH_AudioStreamBuilder_SetCapturerCallback}. If both OH_AudioStreamBuilder_SetCapturerCallback and this
+ * function are called, the most recently set callback takes effect.
*
- * This function is similar with {@link OH_AudioStreamBuilder_SetCapturerCallback}. Only the last callback set by
- * OH_AudioStreamBuilder_SetCapturerCallback or this function will become effective.
- *
- * @param builder Builder provided by OH_AudioStreamBuilder_Create()
- * @param callback Callback function that will recevie the error event.
- * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @param builder Builder instance, which is generated by OH_AudioStreamBuilder_Create().
+ * @param callback Callback used to handle the error events.
+ * @param userData Pointer to user-defined data, which will be passed back to the application in the callback.
* @return Result code.
- * {@link AUDIOSTREAM_SUCCESS} Success.
- * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} Parameter is invalid, e.g. builder is nullptr, e.t.c.
- * @since 18
+ * {@link AUDIOSTREAM_SUCCESS} is returned if the operation is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} is returned if a parameter is invalid, for example, if builder
+ * is nullptr.
+ * @since 20
*/
OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerErrorCallback(OH_AudioStreamBuilder* builder,
OH_AudioCapturer_OnErrorCallback callback, void* userData);
+
+/**
+ * @brief Set audio capturer configuration, if app want its recorder only to be muted instead of interrupted.
+ *
+ * @param builder reference provided by OH_AudioStreamBuilder_Create()
+ * @param muteWhenInterrupted use {@code true} if application want to be muted instead of interrupted.
+ * @return function result code:
+ * {@link AUDIOSTREAM_SUCCESS} if the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} the param of builder is nullptr.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerWillMuteWhenInterrupted(OH_AudioStreamBuilder* builder,
+ bool muteWhenInterrupted);
+
+/**
+ * @brief Set the callback of fast status change event for audio renderer.
+ *
+ * @param builder Builder provided by OH_AudioStreamBuilder_Create()
+ * @param callback Callback function that will recevie the fast status change event.
+ * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @return
+ * {@link AUDIOSTREAM_SUCCESS} if the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} the param of builder or callback is nullptr.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioStreamBuilder_SetRendererFastStatusChangeCallback(OH_AudioStreamBuilder* builder,
+ OH_AudioRenderer_OnFastStatusChange callback, void* userData);
+
+/**
+ * @brief Set the callback of fast status change event for audio capturer.
+ *
+ * @param builder Builder provided by OH_AudioStreamBuilder_Create()
+ * @param callback Callback function that will recevie the fast status change event.
+ * @param userData Pointer to an application data structure that will be passed to the callback functions.
+ * @return
+ * {@link AUDIOSTREAM_SUCCESS} if the execution is successful.
+ * {@link AUDIOSTREAM_ERROR_INVALID_PARAM} the param of builder or callback is nullptr.
+ * @since 20
+ */
+OH_AudioStream_Result OH_AudioStreamBuilder_SetCapturerFastStatusChangeCallback(OH_AudioStreamBuilder* builder,
+ OH_AudioCapturer_OnFastStatusChange callback, void* userData);
+
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/audio_framework/ohaudio.ndk.json b/multimedia/audio_framework/ohaudio.ndk.json
index 9366ddd759a8f380fc8fb8d784be308e011e562a..858a405ccc3ce5403e73550e770a5889ef7e7db3 100644
--- a/multimedia/audio_framework/ohaudio.ndk.json
+++ b/multimedia/audio_framework/ohaudio.ndk.json
@@ -347,6 +347,38 @@
"first_introduced": "12",
"name":"OH_AudioSessionManager_UnregisterSessionDeactivatedCallback"
},
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_SetScene"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_RegisterStateChangeCallback"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_UnregisterStateChangeCallback"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_SetDefaultOutputDevice"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_GetDefaultOutputDevice"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_ReleaseDevices"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_RegisterCurrentOutputDeviceChangeCallback"
+ },
+ {
+ "first_introduced": "12",
+ "name":"OH_AudioSessionManager_UnregisterCurrentOutputDeviceChangeCallback"
+ },
{
"first_introduced": "12",
"name": "OH_GetAudioManager"
@@ -384,31 +416,159 @@
"name": "OH_AudioRenderer_GetAudioTimestampInfo"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_AudioStreamBuilder_SetVolumeMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
+ "name": "OH_AudioManager_GetAudioStreamManager"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_AudioStreamManager_GetDirectPlaybackSupport"
+ },
+ {
+ "first_introduced": "20",
"name": "OH_AudioStreamBuilder_SetRendererInterruptCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
"name": "OH_AudioStreamBuilder_SetRendererErrorCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
"name": "OH_AudioStreamBuilder_SetCapturerReadDataCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
"name": "OH_AudioStreamBuilder_SetCapturerDeviceChangeCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
"name": "OH_AudioStreamBuilder_SetCapturerInterruptCallback"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
"name": "OH_AudioStreamBuilder_SetCapturerErrorCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamManager_IsAcousticEchoCancelerSupported"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamBuilder_SetCapturerWillMuteWhenInterrupted"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioManager_RegisterAudioSceneChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioManager_UnregisterAudioSceneChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioManager_GetAudioVolumeManager"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_GetMaxVolumeByUsage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_GetMinVolumeByUsage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_GetVolumeByUsage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_IsMuteByUsage"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_RegisterStreamVolumeChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_UnregisterStreamVolumeChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_GetRingerMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_RegisterRingerModeChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioVolumeManager_UnregisterRingerModeChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioRenderer_GetFastStatus"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioCapturer_GetFastStatus"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamManager_IsFastPlaybackSupported"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamManager_IsFastRecordingSupported"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamBuilder_SetRendererFastStatusChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamBuilder_SetCapturerFastStatusChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioRenderer_SetLoudnessGain"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioRenderer_GetLoudnessGain"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioManager_GetAudioResourceManager"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioResourceManager_CreateWorkgroup"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioResourceManager_ReleaseWorkgroup"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioWorkgroup_AddCurrentThread"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioWorkgroup_RemoveThread"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioWorkgroup_Start"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioWorkgroup_Stop"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioStreamBuilder_SetRendererWriteDataCallbackAdvanced"
}
]
diff --git a/multimedia/av_codec/audio_codec/libnative_media_acodec.ndk.json b/multimedia/av_codec/audio_codec/libnative_media_acodec.ndk.json
index ec87a5d85222f88972fdd5cc576e2a3bf6493ef4..b857aeaac5fb28aa6b5ff8df131c51be957969f1 100644
--- a/multimedia/av_codec/audio_codec/libnative_media_acodec.ndk.json
+++ b/multimedia/av_codec/audio_codec/libnative_media_acodec.ndk.json
@@ -62,5 +62,21 @@
{
"first_introduced": "12",
"name": "OH_AudioCodec_SetDecryptionConfig"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioCodec_QueryInputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioCodec_GetInputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioCodec_QueryOutputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AudioCodec_GetOutputBuffer"
}
]
diff --git a/multimedia/av_codec/avsource/libnative_media_avsource.ndk.json b/multimedia/av_codec/avsource/libnative_media_avsource.ndk.json
index 759d6231b53d524399f267a0c0eb8ed218710359..ab7e2240d01653c78cb9ad545860cd8e08870372 100644
--- a/multimedia/av_codec/avsource/libnative_media_avsource.ndk.json
+++ b/multimedia/av_codec/avsource/libnative_media_avsource.ndk.json
@@ -3,6 +3,10 @@
"first_introduced": "12",
"name": "OH_AVSource_CreateWithDataSource"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_AVSource_CreateWithDataSourceExt"
+ },
{
"first_introduced": "10",
"name": "OH_AVSource_CreateWithURI"
diff --git a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json
index c84f06a8764f6b2f2f5c05f440080dd77685a450..737c1d69c1acb032adf610819f92e7f3204b0116 100644
--- a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json
+++ b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json
@@ -80,13 +80,21 @@
"name": "OH_AVCODEC_MIMETYPE_AUDIO_RAW"
},
{
- "first_introduced": "18",
+ "first_introduced": "20",
+ "name": "OH_AVCODEC_MIMETYPE_AUDIO_G711A"
+ },
+ {
+ "first_introduced": "17",
"name": "OH_AVCODEC_MIMETYPE_VIDEO_MPEG2"
},
{
- "first_introduced": "18",
+ "first_introduced": "17",
"name": "OH_AVCODEC_MIMETYPE_VIDEO_MPEG4_PART2"
},
+ {
+ "first_introduced": "17",
+ "name": "OH_AVCODEC_MIMETYPE_VIDEO_H263"
+ },
{
"first_introduced": "9",
"name": "OH_ED_KEY_TIME_STAMP"
@@ -419,6 +427,50 @@
"first_introduced": "18",
"name": "OH_MD_KEY_VIDEO_ENCODER_REPEAT_PREVIOUS_MAX_COUNT"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_SQR_FACTOR"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_REFERENCE_TRACK_IDS"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_TRACK_REFERENCE_TYPE"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_TRACK_DESCRIPTION"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_MAX_BITRATE"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_VIDEO_ENCODER_ENABLE_PTS_BASED_RATECONTROL"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_ENABLE_SYNC_MODE"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_VIDEO_ENCODER_ENABLE_B_FRAME"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_VIDEO_ENCODER_MAX_B_FRAMES"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_MD_KEY_VIDEO_DECODER_BLANK_FRAME_ON_SHUTDOWN"
+ },
{
"first_introduced": "10",
"name": "OH_AVCodec_GetCapability"
@@ -458,6 +510,10 @@
{
"name": "OH_AVCapability_GetAudioSupportedSampleRates"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_AVCapability_GetAudioSupportedSampleRateRanges"
+ },
{
"first_introduced": "10",
"name": "OH_AVCapability_GetAudioChannelCountRange"
diff --git a/multimedia/av_codec/native_avcapability.h b/multimedia/av_codec/native_avcapability.h
index dd17584d4298db54d9597ee18d3289351706aa43..1d0af06b2b47a70e57f70e5f8440b67e56dd7d56 100644
--- a/multimedia/av_codec/native_avcapability.h
+++ b/multimedia/av_codec/native_avcapability.h
@@ -86,6 +86,10 @@ typedef enum OH_AVCapabilityFeature {
VIDEO_ENCODER_LONG_TERM_REFERENCE = 1,
/** Feature for codec supports low latency. It is used in video encoder and video decoder. */
VIDEO_LOW_LATENCY = 2,
+ /** Feature for codec supports B-frame encoding. It is only used in video encoder.
+ * @since 20
+ */
+ VIDEO_ENCODER_B_FRAME = 7,
} OH_AVCapabilityFeature;
/**
@@ -207,6 +211,22 @@ OH_AVErrCode OH_AVCapability_GetEncoderComplexityRange(OH_AVCapability *capabili
OH_AVErrCode OH_AVCapability_GetAudioSupportedSampleRates(OH_AVCapability *capability, const int32_t **sampleRates,
uint32_t *sampleRateNum);
+/**
+ * @brief Get the audio codec's supported sample rate ranges.
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @param capability Audio codec capability pointer. Do not give a video codec capability pointer
+ * @param sampleRateRanges Output parameter. A pointer to the sample rate ranges array
+ * @param rangesNum Output parameter. The element number of the sample rate ranges array
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL}, the capability is invalid, the sampleRateRanges is nullptr, or rangesNum is nullptr.
+ * {@link AV_ERR_UNKNOWN}, unknown error.
+ * {@link AV_ERR_NO_MEMORY}, internal use memory malloc failed.
+ * @since 20
+ */
+OH_AVErrCode OH_AVCapability_GetAudioSupportedSampleRateRanges(OH_AVCapability *capability,
+ OH_AVRange **sampleRateRanges, uint32_t *rangesNum);
+
/**
* @brief Get the audio codec's supported audio channel count range.
* @syscap SystemCapability.Multimedia.Media.CodecBase
diff --git a/multimedia/av_codec/native_avcodec_audiocodec.h b/multimedia/av_codec/native_avcodec_audiocodec.h
index 5495a534b089734ce5776ab21deda788b7c1a27c..f9cbd363e7a62d68eaf1ee200f69de65500507c7 100644
--- a/multimedia/av_codec/native_avcodec_audiocodec.h
+++ b/multimedia/av_codec/native_avcodec_audiocodec.h
@@ -295,6 +295,80 @@ OH_AVErrCode OH_AudioCodec_IsValid(OH_AVCodec *codec, bool *isValid);
*/
OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession,
bool secureAudio);
+
+/**
+ * @brief Queries the index of the next available input buffer.
+ *
+ * This API must be followed by calling {@link OH_AudioCodec_GetInputBuffer} to obtain the buffer handle,
+ * which should then be passed to the codec via {@link OH_AudioCodec_PushInputBuffer}.\n
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.AudioCodec
+ * @param codec Pointer to an OH_AVCodec instance.
+ * @param index The index of the input buffer.
+ * @param timeoutUs Timeout duration in microseconds, negative value indicates infinite wait.
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL}, input parameter is empty or invalid.
+ * {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permitted in asynchronous mode.
+ * {@link AV_ERR_TRY_AGAIN_LATER}, query failed, recommended retry after delay.
+ * @since 20
+ */
+OH_AVErrCode OH_AudioCodec_QueryInputBuffer(struct OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
+
+/**
+ * @brief Acquires the handle of an available input buffer.
+ *
+ * Note: It's only applicable in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.AudioCodec
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index Buffer index obtained via {@link OH_AudioCodec_QueryInputBuffer}.
+ * @return Returns a Pointer to an OH_AVBuffer instance.
+ * Return nullptr if no buffer available.
+ * @since 20
+ */
+OH_AVBuffer *OH_AudioCodec_GetInputBuffer(struct OH_AVCodec *codec, uint32_t index);
+
+/**
+ * @brief Queries the index of the next available output buffer.
+ *
+ * The obtained buffer handle through {@link OH_AudioCodec_GetOutputBuffer} must be
+ * return to the audio codec via {@link OH_AudioCodec_FreeOutputBuffer}.\n
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.AudioCodec
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index The index of the output buffer
+ * @param timeoutUs Timeout duration in microseconds, negative value indicates infinite wait.
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL}, input parameter is empty or invalid.
+ * {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permitted in asynchronous mode.
+ * {@link AV_ERR_STREAM_CHANGED}, stream format changed, call {@link OH_AudioCodec_GetOutputDescription} to
+ * retrieve new steam information.
+ * {@link AV_ERR_TRY_AGAIN_LATER}, query failed, recommended retry after delay.
+ * @since 20
+ */
+OH_AVErrCode OH_AudioCodec_QueryOutputBuffer(struct OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
+
+/**
+ * @brief Get the available output buffer handle.
+ *
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.AudioCodec
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index The index value corresponding to the output buffer,
+ * should be given by {@link OH_AudioCodec_QueryOutputBuffer}.
+ * @return Returns a Pointer to an OH_AVBuffer instance.
+ * Return nullptr if no buffer available.
+ * @since 20
+ */
+OH_AVBuffer *OH_AudioCodec_GetOutputBuffer(struct OH_AVCodec *codec, uint32_t index);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h
index ce92ddfee08b5c255f721d09c2c138713696c7a9..222155a1cb0bdedb9576620e6496858e510a02e8 100644
--- a/multimedia/av_codec/native_avcodec_base.h
+++ b/multimedia/av_codec/native_avcodec_base.h
@@ -212,6 +212,34 @@ typedef struct OH_AVDataSource {
OH_AVDataSourceReadAt readAt;
} OH_AVDataSource;
+/**
+ * @brief the function pointer will be called to get sequence media data.
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @param data OH_AVBuffer buffer to fill
+ * @param length expected to read size;
+ * @param pos current read offset
+ * @param userData user-defined data
+ * @return Actual size of data read to the buffer.
+ * @since 20
+ */
+typedef int32_t (*OH_AVDataSourceReadAtExt)(OH_AVBuffer *data, int32_t length, int64_t pos, void *userData);
+
+/**
+ * @brief User customized data source.
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+ */
+typedef struct OH_AVDataSourceExt {
+ /**
+ * Total size of the data source.
+ */
+ int64_t size;
+ /**
+ * Callback interface for reading data from datasource.
+ */
+ OH_AVDataSourceReadAtExt readAt;
+} OH_AVDataSourceExt;
+
/**
* @brief Enumerates the mime types of video avc codec.
*
@@ -362,21 +390,38 @@ extern const char *OH_AVCODEC_MIMETYPE_SUBTITLE_WEBVTT;
* @since 18
*/
extern const char *OH_AVCODEC_MIMETYPE_AUDIO_RAW;
+
+/**
+ * @brief Enumerates the mime types of audio G711 A-law codec.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+ */
+extern const char *OH_AVCODEC_MIMETYPE_AUDIO_G711A;
+
/**
* @brief Enumerates the MIME type of video mpeg2 codec.
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
- * @since 18
+ * @since 17
*/
extern const char *OH_AVCODEC_MIMETYPE_VIDEO_MPEG2;
/**
* @brief Enumerates the MIME type of video mpeg4 part2 codec.
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
- * @since 18
+ * @since 17
*/
extern const char *OH_AVCODEC_MIMETYPE_VIDEO_MPEG4_PART2;
+/**
+ * @brief Enumerates the MIME type of video h263 codec.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 17
+ */
+extern const char *OH_AVCODEC_MIMETYPE_VIDEO_H263;
+
/**
* @brief Key for timeStamp in surface's extraData, value type is int64_t.
*
@@ -1023,6 +1068,129 @@ extern const char *OH_MD_KEY_VIDEO_ENCODER_REPEAT_PREVIOUS_FRAME_AFTER;
* @since 18
*/
extern const char *OH_MD_KEY_VIDEO_ENCODER_REPEAT_PREVIOUS_MAX_COUNT;
+/**
+ * @brief Key to enable B-frame encoding, value type is int32_t (0 or 1): 1 is enabled, 0 otherwise.
+ *
+ * This is an optional key that applies only to video encoder, default is 0.\n
+ * If enabled, the video encoder will use B-frame, the decode order will be different from the display order.\n
+ * For unsupported platforms, Configuring this key will have no effect.\n
+ * Platform capability can be checked via {@link OH_AVCapability_IsFeatureSupported} with
+ * {@link OH_AVCapabilityFeature::VIDEO_ENCODER_B_FRAME}.\n
+ * It's only used in configuration phase.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+*/
+extern const char *OH_MD_KEY_VIDEO_ENCODER_ENABLE_B_FRAME;
+
+/**
+ * @brief Key for describing the maximum B-frame count of video encoder, value type is int32_t.
+ *
+ * Note: This key is only for querying the capability of the codec currently.
+ * Usage specifications:
+ * 1. Check feature support via {@link OH_AVCapability_IsFeatureSupported} with
+ * {@link OH_AVCapabilityFeature::VIDEO_ENCODER_B_FRAME}.\n
+ * 2. Obtain OH_AVFormat handle via {@link OH_AVCapability_GetFeatureProperties} with
+ * {@link OH_AVCapabilityFeature::VIDEO_ENCODER_B_FRAME}.\n
+ * 3. Get maximum B-frame count via {@link OH_AVFormat_GetIntValue} with this key.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+*/
+extern const char *OH_MD_KEY_VIDEO_ENCODER_MAX_B_FRAMES;
+/**
+ * @brief Key to set the region of interest(ROI) as QpOffset-Rects, value type is string in the format
+ * "Top1,Left1-Bottom1,Right1=Offset1;Top2,Left2-Bottom2,Right2=Offset2;". Each "Top,Left-Bottom,Right=Offset"
+ * represents the coordinate information and quantization parameter of one ROI. Each "=Offset" in the string
+ * can be omitted, like "Top1,Left1-Bottom1,Right1;Top2,Left2-Bottom2,Right2=Offset2;", the encoder
+ * will use the default quantization parameter to perform the ROI encoding on the first ROI and
+ * use Offset2 on the second ROI.
+ *
+ * This is an optional key that applies only to video encoder.
+ * It is used in running process and is set with each frame.
+ * In surface mode, it is used in {@link OH_VideoEncoder_OnNeedInputParameter}.
+ * In buffer mode, it is configured via {@link OH_AVBuffer_SetParameter}.
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+ */
+extern const char *OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS;
+/**
+ * @brief Key for the desired encoding quality, value type is int32_t, this key is only
+ * supported for encoders that are configured in Stable Quality RateControl, the higher
+ * values generally result in more efficient(smaller-sized) encoding.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+ */
+extern const char *OH_MD_KEY_SQR_FACTOR;
+/**
+ * @brief Key for maximum bitrate, value type is int64_t.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+ */
+extern const char *OH_MD_KEY_MAX_BITRATE;
+/**
+ * @brief Key for describing the reference relationship between tracks, value type is int32_t*.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+*/
+extern const char *OH_MD_KEY_REFERENCE_TRACK_IDS;
+/**
+ * @brief Key for describing the track reference type, value type is string.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+*/
+extern const char *OH_MD_KEY_TRACK_REFERENCE_TYPE;
+/**
+ * @brief Key for describing the track description, value type is string.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+*/
+extern const char *OH_MD_KEY_TRACK_DESCRIPTION;
+
+/**
+ * @brief Key to enable Bitrate Control Based on Presentation Time Stamp(PTS),
+ * value type is int32_t (0 or 1):1 is enabled, 0 otherwise.
+ *
+ * This is an optional key that applies only to video encoder, default is 0.
+ * If enabled, the PTS information must be carried in each video frame and sent to the encoder.
+ * It is used in configure.
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+*/
+extern const char *OH_MD_KEY_VIDEO_ENCODER_ENABLE_PTS_BASED_RATECONTROL;
+
+/**
+ * @brief Key to enable synchronous mode, value type is (0 or 1): 1 is enabled, 0 otherwise.
+ *
+ * This is an optional key, default is 0.\n
+ * When enabled:
+ * - Callbacks should NOT be set for codecs
+ * - Buffer query APIs must be used instead
+ * - Only used in configuration phase
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 20
+ */
+extern const char *OH_MD_KEY_ENABLE_SYNC_MODE;
+
+/**
+ * @brief Key for specifying whether to output a blank frame during video decoder shutdown,
+ * value type is int32_t (0 or 1): 1 is enabled, 0 otherwise.
+ *
+ * This is an optional key, only used when configuring a video decoder in surface mode.\n
+ * By default, this feature is disabled (0).\n
+ * When enabled, the video decoder will output a blank frame (typically black)
+ * when stop or release to ensure a smooth transition to no-signal state on display devices.\n
+ * This prevents display retention or flickering caused by abrupt termination.\n
+ *
+ * @since 20
+ */
+extern const char *OH_MD_KEY_VIDEO_DECODER_BLANK_FRAME_ON_SHUTDOWN;
/**
* @brief Media type.
@@ -1039,6 +1207,14 @@ typedef enum OH_MediaType {
* @since 12
*/
MEDIA_TYPE_SUBTITLE = 2,
+ /** track is timed meta.
+ * @since 20
+ */
+ MEDIA_TYPE_TIMED_METADATA = 5,
+ /** track is auxiliary.
+ * @since 20
+ */
+ MEDIA_TYPE_AUXILIARY = 6,
} OH_MediaType;
/**
@@ -1136,7 +1312,7 @@ typedef enum OH_VVCProfile {
* @brief MPEG2 Profile
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
- * @since 18
+ * @since 17
*/
typedef enum OH_MPEG2Profile {
/** Simple profile */
@@ -1157,7 +1333,7 @@ typedef enum OH_MPEG2Profile {
* @brief MPEG4 Profile
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
- * @since 18
+ * @since 17
*/
typedef enum OH_MPEG4Profile {
/** Simple profile */
@@ -1192,6 +1368,19 @@ typedef enum OH_MPEG4Profile {
MPEG4_PROFILE_ADVANCED_SIMPLE = 17,
} OH_MPEG4Profile;
+/**
+ * @brief H263 Profile
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 17
+ */
+typedef enum OH_H263Profile {
+ /** Baseline profile */
+ H263_PROFILE_BASELINE = 0,
+ /** Version 1 backward compatibility profile */
+ H263_PROFILE_VERSION_1_BACKWARD_COMPATIBILITY = 2,
+} OH_H263Profile;
+
/**
* @brief Enumerates the muxer output file format
*
@@ -1222,6 +1411,11 @@ typedef enum OH_AVOutputFormat {
* @since 18
*/
AV_OUTPUT_FORMAT_AAC = 11,
+ /**
+ * The muxer output flac file format.
+ * @since 20
+ */
+ AV_OUTPUT_FORMAT_FLAC = 12,
} OH_AVOutputFormat;
/**
@@ -1444,7 +1638,7 @@ typedef enum OH_VVCLevel {
* @brief MPEG2 Level.
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
- * @since 18
+ * @since 17
*/
typedef enum OH_MPEG2Level {
/** Low level */
@@ -1461,7 +1655,7 @@ typedef enum OH_MPEG2Level {
* @brief MPEG4 Level.
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
- * @since 18
+ * @since 17
*/
typedef enum OH_MPEG4Level {
/** 0 level */
@@ -1486,6 +1680,31 @@ typedef enum OH_MPEG4Level {
MPEG4_LEVEL_6 = 9,
} OH_MPEG4Level;
+/**
+ * @brief H263 Level.
+ *
+ * @syscap SystemCapability.Multimedia.Media.CodecBase
+ * @since 17
+ */
+typedef enum OH_H263Level {
+ /** 10 level */
+ H263_LEVEL_10 = 0,
+ /** 20 level */
+ H263_LEVEL_20 = 1,
+ /** 30 level */
+ H263_LEVEL_30 = 2,
+ /** 40 level */
+ H263_LEVEL_40 = 3,
+ /** 45 level */
+ H263_LEVEL_45 = 4,
+ /** 50 level */
+ H263_LEVEL_50 = 5,
+ /** 60 level */
+ H263_LEVEL_60 = 6,
+ /** 70 level */
+ H263_LEVEL_70 = 7,
+} OH_H263Level;
+
/**
* @brief The reference mode in temporal group of picture.
*
@@ -1516,7 +1735,11 @@ typedef enum OH_BitrateMode {
/** Variable Bit rate mode. */
BITRATE_MODE_VBR = 1,
/** Constant Quality mode. */
- BITRATE_MODE_CQ = 2
+ BITRATE_MODE_CQ = 2,
+ /** Stable Quality RateControl.
+ * @since 20
+ */
+ BITRATE_MODE_SQR = 3
} OH_BitrateMode;
#ifdef __cplusplus
diff --git a/multimedia/av_codec/native_avcodec_videodecoder.h b/multimedia/av_codec/native_avcodec_videodecoder.h
index 462d5011d07751e01fed1409fb6d8b60e05dac38..91f9a9095042eb44a0fe17ed020732d37d231056 100644
--- a/multimedia/av_codec/native_avcodec_videodecoder.h
+++ b/multimedia/av_codec/native_avcodec_videodecoder.h
@@ -432,6 +432,87 @@ OH_AVErrCode OH_VideoDecoder_RenderOutputBufferAtTime(OH_AVCodec *codec, uint32_
*/
OH_AVErrCode OH_VideoDecoder_FreeOutputBuffer(OH_AVCodec *codec, uint32_t index);
+/**
+ * @brief Queries the index of the next available input buffer.
+ *
+ * This API must be followed by calling {@link OH_VideoDecoder_GetInputBuffer} to obtain the buffer handle,
+ * which should then be passed to the decoder via {@link OH_VideoDecoder_PushInputBuffer}.\n
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoDecoder
+ * @param codec Pointer to an OH_AVCodec instance.
+ * @param index The index of the input buffer.
+ * @param timeoutUs Timeout duration in microseconds, negative value indicates infinite wait.
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_NO_MEMORY}, internal errors in the input decode instance, such as an abnormal NULL.
+ * {@link AV_ERR_INVALID_VAL}, the decoder is nullptr or invalid.
+ * {@link AV_ERR_UNKNOWN}, unknown error.
+ * {@link AV_ERR_SERVICE_DIED}, avcodec service is died.
+ * {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state.
+
+ * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permitted in asynchronous mode.
+ * {@link AV_ERR_TRY_AGAIN_LATER}, query failed, recommended retry after delay.
+ * @since 20
+ */
+OH_AVErrCode OH_VideoDecoder_QueryInputBuffer(struct OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
+
+/**
+ * @brief Acquires the handle of an available input buffer.
+ *
+ * Note: It's only applicable in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoDecoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index Buffer index obtained via {@link OH_VideoDecoder_QueryInputBuffer}.
+ * @return Returns a Pointer to an OH_AVBuffer instance.
+ * Return nullptr if no buffer available.
+ * @since 20
+ */
+OH_AVBuffer *OH_VideoDecoder_GetInputBuffer(struct OH_AVCodec *codec, uint32_t index);
+
+/**
+ * @brief Queries the index of the next available output buffer.
+ *
+ * The obtained buffer handle through {@link OH_VideoDecoder_GetOutputBuffer} must be:
+ * - Return to the decoder via {@link OH_VideoDecoder_FreeOutputBuffer}, or
+ * - Rendered using {@link OH_VideoDecoder_RenderOutputBuffer}, or
+ * - Scheduled for rendering with {@link OH_VideoDecoder_RenderOutputBufferAtTime}\n
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoDecoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index The index of the output buffer
+ * @param timeoutUs Timeout duration in microseconds, negative value indicates infinite wait.
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_NO_MEMORY}, internal errors in the input decode instance, such as an abnormal NULL.
+ * {@link AV_ERR_INVALID_VAL}, the decoder is nullptr or invalid.
+ * {@link AV_ERR_UNKNOWN}, unknown error.
+ * {@link AV_ERR_SERVICE_DIED}, avcodec service is died.
+ * {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permitted in asynchronous mode.
+ * {@link AV_ERR_STREAM_CHANGED}, stream format changed, call {@link OH_VideoDecoder_GetOutputDescription} to
+ * retrieve new steam information.
+ * {@link AV_ERR_TRY_AGAIN_LATER}, query failed, recommended retry after delay.
+ * @since 20
+ */
+OH_AVErrCode OH_VideoDecoder_QueryOutputBuffer(struct OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
+
+/**
+ * @brief Acquires the handle of an available output buffer.
+ *
+ * Note: It's only applicable in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoDecoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index Buffer index obtained via {@link OH_VideoDecoder_QueryOutputBuffer}.
+ * @return Returns a Pointer to an OH_AVBuffer instance.
+ * Return nullptr if no buffer available.
+ * @since 20
+ */
+OH_AVBuffer *OH_VideoDecoder_GetOutputBuffer(struct OH_AVCodec *codec, uint32_t index);
+
/**
* @brief Check whether the current codec instance is valid. It can be used fault recovery or app
* switchback from the background.
diff --git a/multimedia/av_codec/native_avcodec_videoencoder.h b/multimedia/av_codec/native_avcodec_videoencoder.h
index a0ccb13b6d782a5ea7520a9bc64f7d5d24a346af..7eb5f9a75181cc6a70fdd3d10e19cc56414b99e9 100644
--- a/multimedia/av_codec/native_avcodec_videoencoder.h
+++ b/multimedia/av_codec/native_avcodec_videoencoder.h
@@ -406,6 +406,84 @@ OH_AVErrCode OH_VideoEncoder_PushInputParameter(OH_AVCodec *codec, uint32_t inde
*/
OH_AVErrCode OH_VideoEncoder_FreeOutputBuffer(OH_AVCodec *codec, uint32_t index);
+/**
+ * @brief Queries the index of the next available input buffer.
+ *
+ * This API must be followed by calling {@link OH_VideoEncoder_GetInputBuffer} to obtain the buffer handle,
+ * which should then be passed to the encoder via {@link OH_VideoEncoder_PushInputBuffer}.\n
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoEncoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index The index of the input buffer
+ * @param timeoutUs Timeout duration in microseconds, negative value indicates infinite wait.
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_NO_MEMORY}, internal errors in the input encode instance, such as an abnormal NULL.
+ * {@link AV_ERR_INVALID_VAL}, the encoder is nullptr or invalid.
+ * {@link AV_ERR_UNKNOWN}, unknown error.
+ * {@link AV_ERR_SERVICE_DIED}, avcodec service is died.
+ * {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permitted in asynchronous mode.
+ * {@link AV_ERR_TRY_AGAIN_LATER}, query failed, recommended retry after delay..
+ * @since 20
+ */
+OH_AVErrCode OH_VideoEncoder_QueryInputBuffer(struct OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
+
+/**
+ * @brief Acquires the handle of an available input buffer.
+ *
+ * Note: It's only applicable in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoEncoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index Buffer index obtained via {@link OH_VideoEncoder_QueryInputBuffer}.
+ * @return Returns a Pointer to an OH_AVBuffer instance.
+ * Return nullptr if no buffer available.
+ * @since 20
+ */
+OH_AVBuffer *OH_VideoEncoder_GetInputBuffer(struct OH_AVCodec *codec, uint32_t index);
+
+/**
+ * @brief Queries the index of the next available output buffer.
+ *
+ * The obtained buffer handle through {@link OH_VideoEncoder_GetOutputBuffer} must be
+ * return to the encoder via {@link OH_VideoEncoder_FreeOutputBuffer}.\n
+ * Note: This operation is only supported in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoEncoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index The index value corresponding to the output buffer
+ * @param timeoutUs Timeout duration in microseconds, negative value indicates infinite wait.
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_NO_MEMORY}, internal errors in the input encode instance, such as an abnormal NULL.
+ * {@link AV_ERR_INVALID_VAL}, the encoder is nullptr or invalid.
+ * {@link AV_ERR_UNKNOWN}, unknown error.
+ * {@link AV_ERR_SERVICE_DIED}, avcodec service is died.
+ * {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permitted in asynchronous mode.
+ * {@link AV_ERR_STREAM_CHANGED}, stream format changed, call {@link OH_VideoEncoder_GetOutputDescription} to
+ * retrieve new steam information.
+ * {@link AV_ERR_TRY_AGAIN_LATER}, query failed, recommended retry after delay.
+ * @since 20
+ */
+OH_AVErrCode OH_VideoEncoder_QueryOutputBuffer(struct OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
+
+/**
+ * @brief Acquires the handle of an available output buffer.
+ *
+ * Note: It's only applicable in synchronous mode.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.VideoEncoder
+ * @param codec Pointer to an OH_AVCodec instance
+ * @param index Buffer index obtained via {@link OH_VideoEncoder_QueryOutputBuffer}.
+ * @return Returns a Pointer to an OH_AVBuffer instance.
+ * Return nullptr if no buffer available.
+ * @since 20
+ */
+OH_AVBuffer *OH_VideoEncoder_GetOutputBuffer(struct OH_AVCodec *codec, uint32_t index);
+
/**
* @brief Get the input data description of the encoder after call {@OH_VideoEncoder_Configure},
* refer to {@link OH_AVFormat} for details. It should be noted that the life cycle of the OH_AVFormat
diff --git a/multimedia/av_codec/native_avsource.h b/multimedia/av_codec/native_avsource.h
index f59fe1f2f4ff76e19c4901808f01da9841e8470b..b31f6fa0ee6607607934b5c4b82504821652621d 100644
--- a/multimedia/av_codec/native_avsource.h
+++ b/multimedia/av_codec/native_avsource.h
@@ -68,6 +68,22 @@ typedef struct OH_AVSource OH_AVSource;
*/
OH_AVSource *OH_AVSource_CreateWithDataSource(OH_AVDataSource *dataSource);
+/**
+ * @brief Creates an OH_AVSource instance with dataSource and userData.
+ * @syscap SystemCapability.Multimedia.Media.Spliter
+ * @param dataSource A pointer to the data source structure, which can obtain the input data.
+ * @param userData A pointer to user-defined data.
+ * @return Returns a pointer to an OH_AVSource instance if the execution is successful, otherwise returns nullptr.
+ * Possible failure causes:
+ * 1. dataSource is nullptr.
+ * 2. dataSource->size == 0.
+ * 3. set data source failed.
+ * 4. out of memory.
+ * 5. demuxer engine is nullptr.
+ * @since 20
+ */
+OH_AVSource *OH_AVSource_CreateWithDataSourceExt(OH_AVDataSourceExt *dataSource, void *userData);
+
/**
* @brief Creates an OH_AVSource instance that models the media at the URI.
* @syscap SystemCapability.Multimedia.Media.Spliter
diff --git a/multimedia/av_codec/video_decoder/libnative_media_vdec.ndk.json b/multimedia/av_codec/video_decoder/libnative_media_vdec.ndk.json
index 3e0b2577178759128117962d43684e7369ffd6c2..be50faf10e4edda4ccffaeb8ca15aac7a7101491 100644
--- a/multimedia/av_codec/video_decoder/libnative_media_vdec.ndk.json
+++ b/multimedia/av_codec/video_decoder/libnative_media_vdec.ndk.json
@@ -90,6 +90,22 @@
{
"first_introduced": "12",
"name": "OH_VideoDecoder_RenderOutputBufferAtTime"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoDecoder_QueryInputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoDecoder_QueryOutputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoDecoder_GetInputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoDecoder_GetOutputBuffer"
}
]
diff --git a/multimedia/av_codec/video_encoder/libnative_media_venc.ndk.json b/multimedia/av_codec/video_encoder/libnative_media_venc.ndk.json
index 0f61de3ea0adfc64ec80b58749405368c3855280..87dd03ac84bf6638637fec93a002ed2de94bb7f0 100644
--- a/multimedia/av_codec/video_encoder/libnative_media_venc.ndk.json
+++ b/multimedia/av_codec/video_encoder/libnative_media_venc.ndk.json
@@ -90,5 +90,21 @@
{
"first_introduced": "12",
"name": "OH_VideoEncoder_PushInputParameter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoEncoder_QueryInputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoEncoder_QueryOutputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoEncoder_GetInputBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_VideoEncoder_GetOutputBuffer"
}
]
diff --git a/multimedia/av_session/native_avsession.h b/multimedia/av_session/native_avsession.h
index 50b7e64592b3db56afd3b3ec3048e38300203da7..b877c0c88bed22409fd84699ee0556598043ec6e 100644
--- a/multimedia/av_session/native_avsession.h
+++ b/multimedia/av_session/native_avsession.h
@@ -327,6 +327,7 @@ typedef AVSessionCallback_Result (*OH_AVSessionCallback_OnToggleFavorite)(OH_AVS
* @param avsession Pointer to a viriable to receive the OH_AVSession
* @return Function result code:
* {@link AV_SESSION_ERR_SUCCESS} If the execution is successful.
+ * {@link AV_SESSION_ERR_SERVICE_EXCEPTION} If session already existed or internal server error.
* {@link AV_SESSION_ERR_INVALID_PARAMETER}:
* 1. The param of sessionType is invalid.
* 2. The param of sessionTag is nullptr.
diff --git a/multimedia/camera_framework/camera.h b/multimedia/camera_framework/camera.h
index eecc0d386bda05a25aab781ca73cc34da243689e..c158c5ebe6bfb3f58347fe7147d8713ad33b2e3b 100644
--- a/multimedia/camera_framework/camera.h
+++ b/multimedia/camera_framework/camera.h
@@ -1101,6 +1101,170 @@ typedef enum Camera_QualityPrioritization {
POWER_BALANCE = 1
} Camera_QualityPrioritization;
+/**
+ * @brief Enum for camera concurrent type.
+ *
+ * @since 18
+ * @version 1.0
+ */
+typedef enum Camera_ConcurrentType {
+ /**
+ * Cameras concurrency with limited capability.
+ */
+ CAMERA_CONCURRENT_TYPE_LIMITED_CAPABILITY = 0,
+
+ /**
+ * Cameras concurrenct with full capability.
+ */
+ CAMERA_CONCURRENT_TYPE_FULL_CAPABILITY = 1
+} Camera_ConcurrentType;
+
+/**
+ * @brief Concurrency capability infos.
+ *
+ * @since 18
+ * @version 1.0
+ */
+typedef struct Camera_ConcurrentInfo {
+ /**
+ * Camera instance.
+ */
+ Camera_Device camera;
+
+ /**
+ * Supported concurrent type.
+ */
+ Camera_ConcurrentType type;
+
+ /**
+ * Supported Modes.
+ */
+ Camera_SceneMode* sceneModes;
+
+ /**
+ * Supported outputCapabilities
+ */
+ Camera_OutputCapability* outputCapabilities;
+
+ /**
+ * Supported outputCapabilities size.
+ */
+ uint32_t modeAndCapabilitySize;
+} Camera_ConcurrentInfo;
+
+/**
+ * @brief Enumerates the white balance modes.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef enum Camera_WhiteBalanceMode {
+ /**
+ * Automatic white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_AUTO = 0,
+
+ /**
+ * Cloudy white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_CLOUDY = 1,
+
+ /**
+ * Incandescent white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_INCANDESCENT = 2,
+
+ /**
+ * Fluorescent white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_FLUORESCENT = 3,
+
+ /**
+ * Daylight white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_DAYLIGHT = 4,
+
+ /**
+ * Manual white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_MANUAL = 5,
+
+ /**
+ * Lock white balance mode.
+ */
+ CAMERA_WHITE_BALANCE_MODE_LOCKED = 6
+} Camera_WhiteBalanceMode;
+
+/**
+ * @brief Enumerates the system pressure levels of the current camera session. When the system pressure
+ * increases, you are advised to reduce the load of the current camera session.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef enum Camera_SystemPressureLevel {
+ /**
+ * Normal level. This level indicates the system pressure is normal.
+ */
+ SYSTEM_PRESSURE_NORMAL = 0,
+
+ /**
+ * Mild level. This level indicates the system pressure is slightly elevated.
+ */
+ SYSTEM_PRESSURE_MILD = 1,
+
+ /**
+ * Severe level. This level indicates the system pressure is severely elevated.
+ */
+ SYSTEM_PRESSURE_SEVERE = 2,
+
+ /**
+ * Critical level. This level indicates the system pressure is critically elevated.
+ */
+ SYSTEM_PRESSURE_CRITICAL = 3,
+
+ /**
+ * Shutdown level. This level indicates the system pressure is fatal, so the camera session will be shut down soon.
+ */
+ SYSTEM_PRESSURE_SHUTDOWN = 4
+} Camera_SystemPressureLevel;
+
+/**
+ * @brief Enumerates the control center effect types.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef enum Camera_ControlCenterEffectType {
+ /**
+ * Control center beauty effect type.
+ */
+ CONTROL_CENTER_EFFECT_TYPE_BEAUTY = 0,
+
+ /**
+ * Control center portrait effect type.
+ */
+ CONTROL_CENTER_EFFECT_TYPE_PORTRAIT = 1
+} Camera_ControlCenterEffectType;
+
+/**
+ * @brief Control center status info.
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef struct Camera_ControlCenterStatusInfo {
+ /**
+ * Control center effect type.
+ */
+ Camera_ControlCenterEffectType effectType;
+
+ /**
+ * If control center effect is active.
+ */
+ bool isActive;
+} Camera_ControlCenterStatusInfo;
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/camera_framework/camera.ndk.json b/multimedia/camera_framework/camera.ndk.json
index cc333d32825ff0b8ef44f719e1a8f054264b35aa..8ebef26bc7a7a8ab67830a29f57548a6ce2a73a0 100644
--- a/multimedia/camera_framework/camera.ndk.json
+++ b/multimedia/camera_framework/camera.ndk.json
@@ -650,5 +650,81 @@
{
"first_introduced": "14",
"name": "OH_CaptureSession_SetQualityPrioritization"
+ },
+ {
+ "first_introduced": "18",
+ "name": "OH_CameraManager_GetCameraDevice"
+ },
+ {
+ "first_introduced": "18",
+ "name": "OH_CameraManager_GetCameraConcurrentInfos"
+ },
+ {
+ "first_introduced": "18",
+ "name": "OH_CameraInput_OpenConcurrentCameras"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_CaptureSession_IsMacroSupported"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_CaptureSession_EnableMacro"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_IsWhiteBalanceModeSupported"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_GetWhiteBalanceMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_GetWhiteBalanceRange"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_GetWhiteBalance"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_SetWhiteBalance"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_SetWhiteBalanceMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_RegisterSystemPressureLevelChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_UnregisterSystemPressureLevelChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_IsControlCenterSupported"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_GetSupportedEffectTypes"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_DeleteSupportedEffectTypes"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_EnableControlCenter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_RegisterControlCenterEffectStatusChangeCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_CaptureSession_UnregisterControlCenterEffectStatusChangeCallback"
}
]
diff --git a/multimedia/camera_framework/camera_input.h b/multimedia/camera_framework/camera_input.h
index 1438eda3e638e708da24a7d723f72e2ef7ecee53..a91452d9d46cdef6d27a3e7e68095be23b48bb5e 100644
--- a/multimedia/camera_framework/camera_input.h
+++ b/multimedia/camera_framework/camera_input.h
@@ -135,6 +135,20 @@ Camera_ErrorCode OH_CameraInput_Open(Camera_Input* cameraInput);
*/
Camera_ErrorCode OH_CameraInput_OpenSecureCamera(Camera_Input* cameraInput, uint64_t* secureSeqId);
+/**
+ * @brief Open camera with specified concurrent type.
+ *
+ * @param cameraInput the {@link Camera_Input} instance to be opened.
+ * @param type the {@link Camera_ConcurrentType} instance.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * {@link #CAMERA_CONFLICT_CAMERA} if can not use camera cause of conflict.
+ * {@link #CAMERA_DEVICE_DISABLED} if camera disabled cause of security reason.
+ * {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
+ * @since 18
+ */
+Camera_ErrorCode OH_CameraInput_OpenConcurrentCameras(Camera_Input* cameraInput, Camera_ConcurrentType type);
+
/**
* @brief Close camera.
*
diff --git a/multimedia/camera_framework/camera_manager.h b/multimedia/camera_framework/camera_manager.h
index 71a8f46166f73fda9dea770d94b460e813e77c5b..68e51c29060f037f89ae8793c02a8d4745431be0 100644
--- a/multimedia/camera_framework/camera_manager.h
+++ b/multimedia/camera_framework/camera_manager.h
@@ -470,6 +470,39 @@ Camera_ErrorCode OH_CameraManager_IsTorchSupportedByTorchMode(Camera_Manager* ca
Camera_ErrorCode OH_CameraManager_SetTorchMode(Camera_Manager* cameraManager,
Camera_TorchMode torchMode);
+/**
+ * @brief Queries a specified device based on position and type.
+ *
+ * @param cameraManager the {@link Camera_Manager} instance.
+ * @param position the {@link Camera_Position} instance.
+ * @param type the {@link Camera_Type} instance.
+ * @param camera the {@link Camera_Device} to be set.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
+ * @since 18
+ */
+Camera_ErrorCode OH_CameraManager_GetCameraDevice(Camera_Manager* cameraManager, Camera_Position position,
+ Camera_Type type, Camera_Device* camera);
+
+/**
+ * @brief Obtains the concurrent information of specified cameras, the empty return means concurrency is not supported.
+ *
+ * @param cameraManager the {@link Camera_Manager} instance.
+ * @param camera the {@link Camera_Device} instance.
+ * @param deviceSize length of the input device array.
+ * @param cameraConcurrentInfo the {@link Camera_ConcurrentInfo} to be set.
+ * @param infoSize length of the returned concurrency information array.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
+ * @since 18
+ */
+Camera_ErrorCode OH_CameraManager_GetCameraConcurrentInfos(Camera_Manager* cameraManager, const Camera_Device* camera,
+ uint32_t deviceSize,
+ Camera_ConcurrentInfo** cameraConcurrentInfo,
+ uint32_t* infoSize);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/camera_framework/capture_session.h b/multimedia/camera_framework/capture_session.h
index bbccf4e81b6e25290f39ca1b4254e8997bc8d54f..80c46e731e9f3baaa82608d2d67c8d4abf564831 100644
--- a/multimedia/camera_framework/capture_session.h
+++ b/multimedia/camera_framework/capture_session.h
@@ -104,6 +104,16 @@ typedef void (*OH_CaptureSession_OnSmoothZoomInfo)(Camera_CaptureSession* sessio
typedef void (*OH_CaptureSession_OnAutoDeviceSwitchStatusChange)(Camera_CaptureSession* session,
Camera_AutoDeviceSwitchStatusInfo* autoDeviceSwitchStatusInfo);
+/**
+ * @brief Capture session system pressure level callback.
+ *
+ * @param session the {@link Camera_CaptureSession} which deliver the callback.
+ * @param systemPressureLevel the {@link Camera_SystemPressureLevel} which delivered by the callback.
+ * @since 20
+ */
+typedef void (*OH_CaptureSession_OnSystemPressureLevelChange)(Camera_CaptureSession* session,
+ Camera_SystemPressureLevel* systemPressureLevel);
+
/**
* @brief A listener for capture session.
*
@@ -929,6 +939,230 @@ Camera_ErrorCode OH_CaptureSession_EnableAutoDeviceSwitch(Camera_CaptureSession*
Camera_ErrorCode OH_CaptureSession_SetQualityPrioritization(
Camera_CaptureSession* session, Camera_QualityPrioritization qualityPrioritization);
+/**
+ * @brief Checks whether the macro capability is supported.
+ *
+ * @param session Pointer to an {@link Camera_CaptureSession} instance.
+ * @param isSupported Pointer to the check result. The value true means that the macro capability is supported, and false means the opposite.
+ * @return {@link Camera_ErrorCode}:
+ * CAMERA_OK = 0: The function call is successful.\n
+ * CAMERA_INVALID_ARGUMENT = 7400101: A parameter is missing or the parameter type is incorrect.\n
+ * CAMERA_SESSION_NOT_CONFIG = 7400103: The capture session is not configured.
+ * @since 19
+ */
+Camera_ErrorCode OH_CaptureSession_IsMacroSupported(Camera_CaptureSession* session, bool* isSupported);
+
+/**
+ * @brief Enables or disables the macro capability of the camera device.
+ *
+ * @param session Pointer to an {@link Camera_CaptureSession} instance.
+ * @param enabled Whether to enable the macro capability. The value true means to enable the macro capability, and false means to disable it.
+ * @return {@link Camera_ErrorCode}:
+ * CAMERA_OK = 0: The function call is successful.\n
+ * CAMERA_INVALID_ARGUMENT = 7400101: A parameter is missing or the parameter type is incorrect.\n
+ * CAMERA_SESSION_NOT_CONFIG = 7400103: The capture session is not configured.\n
+ * CAMERA_OPERATION_NOT_ALLOWED = 7400102: The operation is not allowed.
+ * @since 19
+ */
+Camera_ErrorCode OH_CaptureSession_EnableMacro(Camera_CaptureSession* session, bool enabled);
+
+/**
+ * @brief Checks whether the specified white balance mode is supported.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param whiteBalanceMode White balance mode.
+ * @param isSupported Pointer to the check result.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if the input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the camera session is not configured.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_IsWhiteBalanceModeSupported(
+ Camera_CaptureSession *session, Camera_WhiteBalanceMode whiteBalanceMode, bool *isSupported);
+
+/**
+ * @brief Obtains the white balance mode in use.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param whiteBalanceMode Pointer to the white balance mode.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the session is not configured when the function is called.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_GetWhiteBalanceMode(
+ Camera_CaptureSession *session, Camera_WhiteBalanceMode *whiteBalanceMode);
+
+/**
+ * @brief Obtains the supported white balance color temperature range.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param minColorTemperature Pointer to the minimum color temperature.
+ * @param maxColorTemperature Pointer to the maximum color temperature.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the session is not configured when the function is called.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_GetWhiteBalanceRange(
+ Camera_CaptureSession *session, int32_t *minColorTemperature, int32_t *maxColorTemperature);
+
+/**
+ * @brief Obtains the white balance color temperature.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param colorTemperature Pointer to the color temperature.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the session is not configured when the function is called.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_GetWhiteBalance(Camera_CaptureSession *session, int32_t *colorTemperature);
+
+/**
+ * @brief Sets the white balance color temperature.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param colorTemperature Color temperature.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the session is not configured when the function is called.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_SetWhiteBalance(Camera_CaptureSession *session, int32_t colorTemperature);
+
+/**
+ * @brief Sets a white balance mode.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param whiteBalanceMode White balance mode.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the session is not configured when the function is called.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_SetWhiteBalanceMode(
+ Camera_CaptureSession *session, Camera_WhiteBalanceMode whiteBalanceMode);
+
+/**
+ * @brief Register system pressure level changes callback.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param systemPressureLevelChange the {@link OH_CaptureSession_OnSystemPressureLevelChange} to be registered.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_RegisterSystemPressureLevelChangeCallback(Camera_CaptureSession* session,
+ OH_CaptureSession_OnSystemPressureLevelChange systemPressureLevelChange);
+
+/**
+ * @brief Unregister system pressure level changes callback.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param systemPressureLevelChange the {@link OH_CaptureSession_OnSystemPressureLevelChange} to be unregistered.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if an input parameter is missing or the parameter type is incorrect.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_UnregisterSystemPressureLevelChangeCallback(Camera_CaptureSession* session,
+ OH_CaptureSession_OnSystemPressureLevelChange systemPressureLevelChange);
+
+/**
+ * @brief Checks whether the control center is supported.
+ *
+ * @param session Pointer to a {@link Camera_CaptureSession} instance.
+ * @param isSupported Pointer to the check result. The value true means that the control center is supported, and false means the opposite.
+ * @return Result code.
+ * {@link #CAMERA_OK} is returned if the function is called successfully.
+ * {@link #CAMERA_INVALID_ARGUMENT} is returned if the input parameter is missing or the parameter type is incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} is returned if the camera session is not configured.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_IsControlCenterSupported(Camera_CaptureSession* session, bool* isSupported);
+
+/**
+ * @brief Get the supported effect types .
+ *
+ * @param session the {@link Camera_CaptureSession} instance.
+ * @param types the supported {@link Camera_ControlCenterEffectType} list to be filled if the method call succeeds.
+ * @param size the size of supported effect types queried.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} if the capture session not config.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_GetSupportedEffectTypes(
+ Camera_CaptureSession* session, Camera_ControlCenterEffectType** types, uint32_t* size);
+
+/**
+ * @brief Delete the effect types.
+ *
+ * @param session the {@link Camera_CaptureSession} instance.
+ * @param types the target {@link Camera_ControlCenterEffectType} list to be deleted if the method call succeeds.
+ * @param size the size of supported effect types to be deleted.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_DeleteSupportedEffectTypes(Camera_CaptureSession* session,
+ Camera_ControlCenterEffectType* types, uint32_t size);
+
+/**
+ * @brief Enables or disables the control center.
+ *
+ * @param session the {@link Camera_CaptureSession} instance.
+ * @param enabled Whether to enable the control center. The value true means to enable the control center, and false means to disable it.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * {@link #CAMERA_SESSION_NOT_CONFIG} if the capture session not config.
+ * {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_EnableControlCenter(Camera_CaptureSession* session, bool enabled);
+
+/**
+ * @brief Capture session control center effect status info callback.
+ *
+ * @param session the {@link Camera_CaptureSession} which deliver the callback.
+ * @param controlCenterStatusInfo the {@link Camera_ControlCenterStatusInfo} which delivered by the callback.
+ * @since 20
+ */
+typedef void (*OH_CaptureSession_OnControlCenterEffectStatusChange)(Camera_CaptureSession* session,
+ Camera_ControlCenterStatusInfo* controlCenterStatusInfo);
+
+/**
+ * @brief Register control center effect status information event callback.
+ *
+ * @param session the {@link Camera_CaptureSession} instance.
+ * @param controlCenterEffectStatusChange the {@link OH_CaptureSession_OnControlCenterEffectStatusChange} to be registered.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_RegisterControlCenterEffectStatusChangeCallback(Camera_CaptureSession* session,
+ OH_CaptureSession_OnControlCenterEffectStatusChange controlCenterEffectStatusChange);
+
+/**
+ * @brief Unregister control center effect status information event callback.
+ *
+ * @param session the {@link Camera_CaptureSession} instance.
+ * @param controlCenterEffectStatusChange the {@link OH_CaptureSession_OnControlCenterEffectStatusChange} to be unregistered.
+ * @return {@link #CAMERA_OK} if the method call succeeds.
+ * {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
+ * @since 20
+ */
+Camera_ErrorCode OH_CaptureSession_UnregisterControlCenterEffectStatusChangeCallback(Camera_CaptureSession* session,
+ OH_CaptureSession_OnControlCenterEffectStatusChange controlCenterEffectStatusChange);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/image_effect/image_effect.h b/multimedia/image_effect/image_effect.h
index db65c16e4f0dd1adefa49191e099835b530cb2cb..225906bd6d43e6be2b4d7f8da74c0a862a072d33 100644
--- a/multimedia/image_effect/image_effect.h
+++ b/multimedia/image_effect/image_effect.h
@@ -343,6 +343,36 @@ ImageEffect_ErrorCode OH_ImageEffect_SetInputPicture(OH_ImageEffect *imageEffect
*/
ImageEffect_ErrorCode OH_ImageEffect_SetOutputPicture(OH_ImageEffect *imageEffect, OH_PictureNative *picture);
+/**
+ * @brief Sets the ID of the input texture that contains the image information.
+ *
+ * @syscap SystemCapability.Multimedia.ImageEffect.Core
+ * @param { OH_ImageEffect } imageEffect Pointer to an instance of the OH_ImageEffect struct.
+ * @param textureId ID of the texture that contains the image information. This ID must be valid and have been
+ * bound bound to a texture of a GL_TEXTURE_2D type.
+ * @param colorSpace Color space of the image.
+ * @return Returns EFFECT_SUCCESS if the operation is successful; returns EFFECT_ERROR_PARAM_INVALID if the
+ * parameter parameter is missing or incorrect.
+ * @since 20
+ */
+ImageEffect_ErrorCode OH_ImageEffect_SetInputTextureId(OH_ImageEffect *imageEffect, int32_t textureId,
+ int32_t colorSpace);
+
+/**
+ * @brief Sets the ID of the output texture that contains the rendered image information.
+ *
+ * @syscap SystemCapability.Multimedia.ImageEffect.Core
+ * @param imageEffect Pointer to an instance of the OH_ImageEffect struct.
+ * @param textureId ID of the texture that contains the rendered image information. This ID must be valid. If
+ * it it is not bound to a texture, it will automatically be bound to a GL_TEXTURE_2D type. If the texture is
+ * already already bound and the size is inappropriate, the rendered result may be cropped or partially filled
+ * into into this texture.
+ * @return Returns EFFECT_SUCCESS if the operation is successful; returns EFFECT_ERROR_PARAM_INVALID if the
+ * parameter parameter is missing or incorrect.
+ * @since 20
+ */
+ImageEffect_ErrorCode OH_ImageEffect_SetOutputTextureId(OH_ImageEffect *imageEffect, int32_t textureId);
+
/**
* @brief Render the filter effects that can be a single filter or a chain of filters
*
diff --git a/multimedia/image_effect/image_effect_filter.h b/multimedia/image_effect/image_effect_filter.h
index d42de85d79a133d034657731d24c0339bdd72839..9307189da155784f3c9332b7a7d335cb6b80ec6e 100644
--- a/multimedia/image_effect/image_effect_filter.h
+++ b/multimedia/image_effect/image_effect_filter.h
@@ -534,6 +534,30 @@ ImageEffect_ErrorCode OH_EffectBufferInfo_SetTimestamp(OH_EffectBufferInfo *info
*/
ImageEffect_ErrorCode OH_EffectBufferInfo_GetTimestamp(OH_EffectBufferInfo *info, int64_t *timestamp);
+/**
+ * @brief Sets the texture ID of the image for an OH_EffectBufferInfo struct.
+ *
+ * @syscap SystemCapability.Multimedia.ImageEffect.Core
+ * @param info Pointer to an instance of the OH_EffectBufferInfo struct.
+ * @param textureId Pointer to the texture ID of the image.
+ * @return Returns EFFECT_SUCCESS if the operation is successful; returns EFFECT_ERROR_PARAM_INVALID if the
+ * parameter parameter is missing.
+ * @since 20
+ */
+ImageEffect_ErrorCode OH_EffectBufferInfo_SetTextureId(OH_EffectBufferInfo *info, int32_t textureId);
+
+/**
+ * @brief Obtains the texture ID of an image from an OH_EffectBufferInfo struct.
+ *
+ * @syscap SystemCapability.Multimedia.ImageEffect.Core
+ * @param info Pointer to an instance of the OH_EffectBufferInfo struct.
+ * @param textureId Texture ID of the image.
+ * @return Returns EFFECT_SUCCESS if the operation is successful; returns EFFECT_ERROR_PARAM_INVALID if the
+ * parameter parameter is missing.
+ * @since 20
+ */
+ImageEffect_ErrorCode OH_EffectBufferInfo_GetTextureId(OH_EffectBufferInfo *info, int32_t *textureId);
+
/**
* @brief Clear the internal resources of the OH_EffectBufferInfo and destroy the OH_EffectBufferInfo instance
*
@@ -765,6 +789,25 @@ ImageEffect_ErrorCode OH_EffectFilter_LookupFilterInfo(const char *name, OH_Effe
ImageEffect_ErrorCode OH_EffectFilter_Render(OH_EffectFilter *filter, OH_PixelmapNative *inputPixelmap,
OH_PixelmapNative *outputPixelmap);
+/**
+ * @brief Applies the filter effect using texture IDs. This function does not support using the same texture
+ * for for both input and output.
+ *
+ * @syscap SystemCapability.Multimedia.ImageEffect.Core
+ * @param filter Pointer to an instance of the OH_EffectFilter struct.
+ * @param inputTextureId ID of the input texture. This ID must be valid and bound to a texture of the
+ * GL_TEXTURE_2D GL_TEXTURE_2D type.
+ * @param outputTextureId ID of the output texture. This ID must be valid. If it is not bound to a texture, it
+ * will will automatically be bound to a GL_TEXTURE_2D type. If the texture is already bound and the size is
+ * inappropriate, inappropriate, the rendered result may be cropped or partially filled into this texture.
+ * @param colorSpace Color space of the image.
+ * @return Returns EFFECT_SUCCESS if the operation is successful; returns EFFECT_ERROR_PARAM_INVALID if the
+ * parameter parameter is missing.
+ * @since 20
+ */
+ImageEffect_ErrorCode OH_EffectFilter_RenderWithTextureId(OH_EffectFilter *filter, int32_t inputTextureId,
+ int32_t outputTextureId, int32_t colorSpace);
+
/**
* @brief Clear the internal resources of the OH_EffectFilter and destroy the OH_EffectFilter instance
*
diff --git a/multimedia/image_effect/libimage_effect.ndk.json b/multimedia/image_effect/libimage_effect.ndk.json
index 16f31e29f19a30b0443d3c5c819da543c176fcbe..abaca9dcbe23271a4bac92648fb267104145e107 100644
--- a/multimedia/image_effect/libimage_effect.ndk.json
+++ b/multimedia/image_effect/libimage_effect.ndk.json
@@ -83,6 +83,14 @@
"first_introduced": "12",
"name": "OH_EffectBufferInfo_GetTimestamp"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_EffectBufferInfo_SetTextureId"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_EffectBufferInfo_GetTextureId"
+ },
{
"first_introduced": "12",
"name": "OH_EffectBufferInfo_Release"
@@ -119,6 +127,10 @@
"first_introduced": "12",
"name": "OH_EffectFilter_Render"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_EffectFilter_RenderWithTextureId"
+ },
{
"first_introduced": "12",
"name": "OH_EffectFilter_Release"
@@ -211,6 +223,14 @@
"first_introduced": "13",
"name": "OH_ImageEffect_SetOutputPicture"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageEffect_SetInputTextureId"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageEffect_SetOutputTextureId"
+ },
{
"first_introduced": "12",
"name": "OH_ImageEffect_Start"
diff --git a/multimedia/image_framework/BUILD.gn b/multimedia/image_framework/BUILD.gn
index f28533e28e769816c6eb39a75af6db2577eb1905..0dd62b74eeb8480ea221854c5886465658de708d 100644
--- a/multimedia/image_framework/BUILD.gn
+++ b/multimedia/image_framework/BUILD.gn
@@ -17,6 +17,11 @@ ohos_ndk_library("libpixelmap_ndk") {
ndk_description_file = "./libimage_pixelmap_napi.ndk.json"
min_compact_version = "1"
output_name = "pixelmap_ndk"
+ system_capability = "SystemCapability.Multimedia.Image.Core"
+ system_capability_headers = [
+ "multimedia/image_framework/image_pixel_map_mdk.h",
+ "multimedia/image_framework/image_pixel_map_napi.h",
+ ]
}
ohos_ndk_headers("image_header") {
@@ -80,6 +85,11 @@ ohos_ndk_library("libimage_ndk") {
ndk_description_file = "./libimage_ndk.ndk.json"
min_compact_version = "1"
output_name = "image_ndk"
+ system_capability = "SystemCapability.Multimedia.Image.Core"
+ system_capability_headers = [
+ "multimedia/image_framework/image_mdk.h",
+ "multimedia/image_framework/image_mdk_common.h",
+ ]
}
ohos_ndk_headers("image_ndk_header") {
@@ -94,6 +104,9 @@ ohos_ndk_library("libimage_receiver_ndk") {
ndk_description_file = "./libimage_receiver_ndk.ndk.json"
min_compact_version = "1"
output_name = "image_receiver_ndk"
+ system_capability = "SystemCapability.Multimedia.Image.Core"
+ system_capability_headers =
+ [ "multimedia/image_framework/image_receiver_mdk.h" ]
}
ohos_ndk_headers("image_receiver_ndk_header") {
@@ -105,6 +118,9 @@ ohos_ndk_library("libimage_source_ndk") {
ndk_description_file = "./libimage_source_ndk.ndk.json"
min_compact_version = "1"
output_name = "image_source_ndk"
+ system_capability = "SystemCapability.Multimedia.Image.Core"
+ system_capability_headers =
+ [ "multimedia/image_framework/image_source_mdk.h" ]
}
ohos_ndk_headers("image_source_ndk_header") {
@@ -132,6 +148,9 @@ ohos_ndk_headers("libimage_source_header") {
ohos_ndk_library("libimage_packer_ndk") {
ndk_description_file = "./libimage_packer_ndk.ndk.json"
output_name = "image_packer_ndk"
+ system_capability = "SystemCapability.Multimedia.Image.Core"
+ system_capability_headers =
+ [ "multimedia/image_framework/image_packer_mdk.h" ]
}
ohos_ndk_headers("image_packer_ndk_header") {
diff --git a/multimedia/image_framework/include/image/image_common.h b/multimedia/image_framework/include/image/image_common.h
index 67d972adf0b506d2c1961fcad25b835fd64e85c6..29d7be412e896f23e69ac363da31165fab71d8f6 100644
--- a/multimedia/image_framework/include/image/image_common.h
+++ b/multimedia/image_framework/include/image/image_common.h
@@ -27,7 +27,7 @@
*
* @brief Declares the common enums and structs used by the image interface.
*
- * @library libpixelmap.so
+ * @library libimage_common.so
* @kit ImageKit
* @syscap SystemCapability.Multimedia.Image.Core
* @since 12
@@ -170,6 +170,11 @@ typedef enum {
* @since 13
*/
IMAGE_UNSUPPORTED_MEMORY_FORMAT = 7600205,
+ /**
+ * @error Invalid parameter.
+ * @since 19
+ */
+ IMAGE_INVALID_PARAMETER = 7600206,
/** failed to allocate memory */
IMAGE_ALLOC_FAILED = 7600301,
/** memory copy failed */
@@ -179,6 +184,12 @@ typedef enum {
* @since 15
*/
IMAGE_LOCK_UNLOCK_FAILED = 7600303,
+ /**
+ * @error unsupported allocator mode, e.g., use share memory to create a HDR image as only
+ * DMA supported hdr metadata.
+ * @since 20
+ */
+ IMAGE_ALLOCATOR_MODE_UNSUPPORTED = 7600501,
/** unknown error */
IMAGE_UNKNOWN_ERROR = 7600901,
/** decode data source exception */
@@ -203,6 +214,11 @@ typedef enum {
* @since 15
*/
IMAGE_SOURCE_UNSUPPORTED_OPTIONS = 7700203,
+ /**
+ * @error Invalid parameter.
+ * @since 19
+ */
+ IMAGE_SOURCE_INVALID_PARAMETER = 7700204,
/** decode failed */
IMAGE_DECODE_FAILED = 7700301,
/**
@@ -210,8 +226,18 @@ typedef enum {
* @since 15
*/
IMAGE_SOURCE_ALLOC_FAILED = 7700302,
+ /**
+ * @error Invalid parameter for ImagePacker.
+ * @since 19
+ */
+ IMAGE_PACKER_INVALID_PARAMETER = 7800202,
/** encode failed */
IMAGE_ENCODE_FAILED = 7800301,
+ /**
+ * @error Invalid parameter for ImageReceiver.
+ * @since 20
+ */
+ IMAGE_RECEIVER_INVALID_PARAMETER = 7900201,
} Image_ErrorCode;
/**
@@ -220,16 +246,50 @@ typedef enum {
* @since 13
*/
typedef enum {
- /*
- * EXIF metadata.
- */
+ /**
+ * EXIF metadata.
+ */
EXIF_METADATA = 1,
- /*
- * Fragment metadata.
- */
+
+ /**
+ * Fragment metadata.
+ */
FRAGMENT_METADATA = 2,
+
+ /**
+ * Metadata of a GIF image.
+ *
+ * @since 20
+ */
+ GIF_METADATA = 5
} Image_MetadataType;
+/**
+ * @brief Type of allocator used to allocate memory of a PixelMap.
+ *
+ * @since 20
+ */
+typedef enum {
+ /**
+ * The system determines which memory to use to create the PixelMap.
+ *
+ * @since 20
+ */
+ IMAGE_ALLOCATOR_MODE_AUTO = 0,
+ /**
+ * Use DMA buffer to create the PixelMap.
+ *
+ * @since 20
+ */
+ IMAGE_ALLOCATOR_MODE_DMA = 1,
+ /**
+ * Use share memory to create the PixelMap.
+ *
+ * @since 20
+ */
+ IMAGE_ALLOCATOR_MODE_SHARED_MEMORY = 2,
+} IMAGE_ALLOCATOR_MODE;
+
/**
* @brief Creates a PictureMetadata object.
*
@@ -272,6 +332,21 @@ Image_ErrorCode OH_PictureMetadata_GetProperty(OH_PictureMetadata *metadata, Ima
*/
Image_ErrorCode OH_PictureMetadata_SetProperty(OH_PictureMetadata *metadata, Image_String *key, Image_String *value);
+/**
+ * @brief Obtains the property of picture metadata. The output value.data is null-terminated.
+ *
+ * @param metadata Pointer to OH_PictureMetadata.
+ * @param key Pointer to property's key.
+ * @param value Pointer to property's value. Output parameter.
+ * @return Image functions result code.
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_INVALID_PARAMETER} metadata is nullptr, or key is nullptr, or value is nullptr.
+ * {@link IMAGE_UNSUPPORTED_METADATA} unsupported metadata type, or the metadata type does not match the
+ * auxiliary picture type.
+ * @since 19
+ */
+Image_ErrorCode OH_PictureMetadata_GetPropertyWithNull(OH_PictureMetadata *metadata, Image_String *key, Image_String *value);
+
/**
* @brief Releases this PictureMetadata object.
*
@@ -1519,6 +1594,20 @@ static const char *OHOS_IMAGE_PROPERTY_FRAGMENT_WIDTH = "FragmentImageWidth";
* @since 13
*/
static const char *OHOS_IMAGE_PROPERTY_FRAGMENT_HEIGHT = "FragmentImageHeight";
+
+/**
+ * @brief Delay time of each frame in a GIF image in milliseconds.
+ *
+ * @since 20
+ */
+static const char *IMAGE_PROPERTY_GIF_DELAY_TIME = "GifDelayTime";
+
+/**
+ * @brief Disposal type of each frame in gif.
+ *
+ * @since 20
+ */
+static const char *IMAGE_PROPERTY_GIF_DISPOSAL_TYPE = "GifDisposalType";
#ifdef __cplusplus
};
#endif
diff --git a/multimedia/image_framework/include/image/image_packer_native.h b/multimedia/image_framework/include/image/image_packer_native.h
index 0a1498f3ac1ca8f4dbdfb18190d9d0293ff63064..7149c5fd80dfbabdb8ed17de305889f58e3cc6ba 100644
--- a/multimedia/image_framework/include/image/image_packer_native.h
+++ b/multimedia/image_framework/include/image/image_packer_native.h
@@ -110,6 +110,19 @@ Image_ErrorCode OH_PackingOptions_Create(OH_PackingOptions **options);
Image_ErrorCode OH_PackingOptions_GetMimeType(OH_PackingOptions *options,
Image_MimeType *format);
+/**
+ * @brief Gets MIME type from OH_PackingOptions. The output format.data is null-terminated.
+ *
+ * @param options The OH_PackingOptions pointer will be operated.
+ * @param format MimeType set in the OH_PackingOptions.
+ * @return Returns functions result code.
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_PACKER_INVALID_PARAMETER} if options or format is nullptr.
+ * @since 19
+ */
+Image_ErrorCode OH_PackingOptions_GetMimeTypeWithNull(OH_PackingOptions *options,
+ Image_MimeType *format);
+
/**
* @brief Set format number for OH_PackingOptions struct.
*
@@ -466,6 +479,18 @@ Image_ErrorCode OH_ImagePackerNative_PackToFileFromPixelmapSequence(OH_ImagePack
*/
Image_ErrorCode OH_ImagePackerNative_Release(OH_ImagePackerNative *imagePacker);
+/**
+ * @brief Obtains the supported image formats that can be encoded.
+ *
+ * @param supportedFormats Double pointer to an array of the supported image formats.
+ * @param length Pointer to the length of the array.
+ * @return One of the following result codes:
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_PACKER_INVALID_PARAMETER} if supportedFormats or length is empty.
+ * @since 20
+ */
+Image_ErrorCode OH_ImagePackerNative_GetSupportedFormats(Image_MimeType **supportedFormats, size_t *length);
+
#ifdef __cplusplus
};
#endif
diff --git a/multimedia/image_framework/include/image/image_receiver_native.h b/multimedia/image_framework/include/image/image_receiver_native.h
index 09fef3b1bf4b489e1d845f9f49922c2b175ccf33..526cd49ed865873b955e2b08f34fe999404da2a8 100644
--- a/multimedia/image_framework/include/image/image_receiver_native.h
+++ b/multimedia/image_framework/include/image/image_receiver_native.h
@@ -76,6 +76,13 @@ typedef struct OH_ImageReceiverOptions OH_ImageReceiverOptions;
*/
typedef void (*OH_ImageReceiver_OnCallback)(OH_ImageReceiverNative *receiver);
+/**
+ * @brief Defines the callback for the ImageArrive event.
+ *
+ * @since 20
+ */
+typedef void (*OH_ImageReceiver_ImageArriveCallback)(OH_ImageReceiverNative *receiver, void *userData);
+
/**
* @brief Creates an OH_ImageReceiverOptions object at the application layer.
*
@@ -223,6 +230,32 @@ Image_ErrorCode OH_ImageReceiverNative_On(OH_ImageReceiverNative* receiver, OH_I
*/
Image_ErrorCode OH_ImageReceiverNative_Off(OH_ImageReceiverNative* receiver);
+/**
+ * Registers an {@link OH_ImageReceiver_ImageArriveCallback} callback.
+ *
+ * @param receiver Pointer to an OH_ImageReceiverNative object that processes the callback.
+ * @param callback OH_ImageReceiver_ImageArriveCallback to register.
+ * @param userData Pointer to the user data passed to the callback.
+ * @return Result code. {@link Image_ErrorCode} IMAGE_SUCCESS is returned if the operation is successful.
+ * {@link Image_ErrorCode} IMAGE_RECEIVER_INVALID_PARAMETER is returned if receiver or callback is null.
+ * @since 20
+ */
+Image_ErrorCode OH_ImageReceiverNative_OnImageArrive(OH_ImageReceiverNative *receiver,
+ OH_ImageReceiver_ImageArriveCallback callback, void *userData);
+
+/**
+ * Unregisters an {@link OH_ImageReceiver_ImageArriveCallback} callback.
+ *
+ * @param receiver Pointer to an OH_ImageReceiverNative object that processes the callback.
+ * @param callback OH_ImageReceiver_ImageArriveCallback callback to unregister.
+ * @return {@link Image_ErrorCode} IMAGE_SUCCESS - Operation succeeded.
+ * {@link Image_ErrorCode} IMAGE_RECEIVER_INVALID_PARAMETER - receiver is empty or callback is not
+ * registered.
+ * @since 20
+*/
+Image_ErrorCode OH_ImageReceiverNative_OffImageArrive(OH_ImageReceiverNative *receiver,
+ OH_ImageReceiver_ImageArriveCallback callback);
+
/**
* @brief Obtains the size of the image receiver through an {@link OH_ImageReceiverNative} object.
*
diff --git a/multimedia/image_framework/include/image/image_source_native.h b/multimedia/image_framework/include/image/image_source_native.h
index faa192067303cfafd71b3f43de4814321a02ae55..1a970bfae715102748875123e9db5a0c00d286b2 100644
--- a/multimedia/image_framework/include/image/image_source_native.h
+++ b/multimedia/image_framework/include/image/image_source_native.h
@@ -176,6 +176,18 @@ Image_ErrorCode OH_ImageSourceInfo_GetHeight(OH_ImageSource_Info *info, uint32_t
*/
Image_ErrorCode OH_ImageSourceInfo_GetDynamicRange(OH_ImageSource_Info *info, bool *isHdr);
+/**
+ * @brief Obtains the MIME type of an image source.
+ *
+ * @param info Pointer to the OH_ImageSource_Info struct.
+ * @param mimeType Pointer to the MIME type of the image source.
+ * @return Returns one of the following result codes:
+ * {@link IMAGE_SUCCESS}: The execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER}: info or mimeType is a null pointer.
+ * @since 20
+ */
+Image_ErrorCode OH_ImageSourceInfo_GetMimeType(OH_ImageSource_Info *info, Image_MimeType *mimeType);
+
/**
* @brief delete OH_ImageSource_Info pointer.
*
@@ -362,6 +374,54 @@ Image_ErrorCode OH_DecodingOptions_GetCropAndScaleStrategy(OH_DecodingOptions *o
Image_ErrorCode OH_DecodingOptions_SetDesiredDynamicRange(OH_DecodingOptions *options,
int32_t desiredDynamicRange);
+/**
+ * @brief Sets the crop region for the decoding options.
+ *
+ * @param options Pointer to the decoding options.
+ * @param cropRegion The target region will be cropped from the image.
+ * @return Returns one of the following result codes:
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER} if options or cropRegion is null pointer.
+ * @since 19
+ */
+Image_ErrorCode OH_DecodingOptions_SetCropRegion(OH_DecodingOptions *options, Image_Region *cropRegion);
+
+/**
+ * @brief Gets the crop region for the decoding options.
+ *
+ * @param options Pointer to the decoding options.
+ * @param cropRegion The target region will be cropped from the image.
+ * @return Returns one of the following result codes:
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER} if options or cropRegion is null pointer.
+ * @since 19
+ */
+Image_ErrorCode OH_DecodingOptions_GetCropRegion(OH_DecodingOptions *options, Image_Region *cropRegion);
+
+/**
+ * @brief Obtains the color space set in the decoding options.
+ *
+ * @param options Pointer to the decoding options.
+ * @param colorSpace Pointer to the color space, {@link ColorSpaceName}.
+ * @return Returns one of the following result codes:
+ * {@link IMAGE_SUCCESS}: if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER}: if options or colorSpace is null pointer.
+ * @since 20
+ */
+Image_ErrorCode OH_DecodingOptions_GetDesiredColorSpace(OH_DecodingOptions *options, int32_t *colorSpace);
+
+/**
+ * @brief Sets desired color space for decoding options.
+ *
+ * @param options Pointer to the decoding options.
+ * @param colorSpace Desired color space, {@link ColorSpaceName}.
+ * @return Returns one of the following result codes:
+ * {@link IMAGE_SUCCESS}: if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER}: if options is a null pointer or colorSpace is not supported.
+ * @since 20
+ */
+Image_ErrorCode OH_DecodingOptions_SetDesiredColorSpace(OH_DecodingOptions *options, int32_t colorSpace);
+
/**
* @brief delete OH_DecodingOptions pointer.
*
@@ -403,6 +463,21 @@ Image_ErrorCode OH_ImageSourceNative_CreateFromFd(int32_t fd, OH_ImageSourceNati
*/
Image_ErrorCode OH_ImageSourceNative_CreateFromData(uint8_t *data, size_t dataSize, OH_ImageSourceNative **res);
+/**
+ * @brief Create an image source from data buffer. The data buffer is directly accessed by the image source
+ * object, and therefore the data buffer must remain accessible within the lifecycle of the image source object.
+ *
+ * @param data Pointer to the data buffer.
+ * @param datalength Length of the data buffer.
+ * @param imageSource Double pointer to the image source.
+ * @return Result code.
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER} if data or imageSource is a null pointer or if datalength is 0.
+ * @since 20
+ */
+Image_ErrorCode OH_ImageSourceNative_CreateFromDataWithUserBuffer(uint8_t *data, size_t datalength,
+ OH_ImageSourceNative **imageSource);
+
/**
* @brief Creates an void pointer
*
@@ -442,7 +517,7 @@ Image_ErrorCode OH_ImageSourceNative_CreatePixelmap(OH_ImageSourceNative *source
* {@link IMAGE_SUCCESS} if the execution is successful.
* {@link IMAGE_BAD_PARAMETER} source is nullptr, or picture is nullptr.
* {@link IMAGE_BAD_SOURCE} data source exception.
- * {@link IMAGE_SOURCE_UNSUPPORTED_MIMETYPE} unsupported mime type.
+ * {@link IMAGE_SOURCE_UNSUPPORTED_MIME_TYPE} unsupported mime type.
* {@link IMAGE_SOURCE_TOO_LARGE} image to large.
* {@link IMAGE_SOURCE_UNSUPPORTED_ALLOCATOR_TYPE} unsupported allocator type,
* e.g., use share memory to decode a HDR image as only DMA supported hdr metadata.
@@ -490,6 +565,24 @@ Image_ErrorCode OH_ImageSourceNative_CreatePixelmapList(OH_ImageSourceNative *so
Image_ErrorCode OH_ImageSourceNative_CreatePicture(OH_ImageSourceNative *source, OH_DecodingOptionsForPicture *options,
OH_PictureNative **picture);
+/**
+ * @brief Decodes an image at the specified index into a Picture object.
+ *
+ * @param source Pointer to the image source.
+ * @param index Image index.
+ * @param picture Double pointer to the Picture object obtained after decoding.
+ * @return Returns one of the following result codes:
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_BAD_SOURCE} if the data source is abnormal.
+ * {@link IMAGE_SOURCE_UNSUPPORTED_MIME_TYPE} if the image format is unsupported.
+ * {@link IMAGE_SOURCE_TOO_LARGE} if the image is too large.
+ * {@link IMAGE_SOURCE_UNSUPPORTED_OPTIONS} if the operation is not supported, for example, invalid index.
+ * {@link IMAGE_DECODE_FAILED} if decoding failed.
+ * @since 20
+ */
+Image_ErrorCode OH_ImageSourceNative_CreatePictureAtIndex(OH_ImageSourceNative *source, uint32_t index,
+ OH_PictureNative **picture);
+
/**
* @brief Obtains the delay time list from some ImageSource objects (such as GIF image sources).
*
@@ -528,6 +621,20 @@ Image_ErrorCode OH_ImageSourceNative_GetImageInfo(OH_ImageSourceNative *source,
Image_ErrorCode OH_ImageSourceNative_GetImageProperty(OH_ImageSourceNative *source, Image_String *key,
Image_String *value);
+/**
+ * @brief Obtains the value of an image property from an ImageSource object. The output value.data is null-terminated.
+ *
+ * @param source Pointer to ImageSource.
+ * @param key Pointer to the property key.
+ * @param value Pointer to the property value. Output Parameter.
+ * @return Returns One of the following result codes:
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER} if source, key or value is nullptr.
+ * @since 19
+ */
+Image_ErrorCode OH_ImageSourceNative_GetImagePropertyWithNull(OH_ImageSourceNative *source, Image_String *key,
+ Image_String *value);
+
/**
* @brief Modifies the value of an image property of an ImageSource object.
* @param source Indicates a void pointer(from ImageSource pointer convert).
@@ -610,6 +717,18 @@ Image_ErrorCode OH_DecodingOptionsForPicture_SetDesiredAuxiliaryPictures(OH_Deco
* @since 13
*/
Image_ErrorCode OH_DecodingOptionsForPicture_Release(OH_DecodingOptionsForPicture *options);
+
+/**
+ * @brief Obtains the supported image formats that can be decoded.
+ *
+ * @param supportedFormats Double pointer to an array of the supported image formats.
+ * @param length Pointer to the length of the array.
+ * @return One of the following result codes:
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_SOURCE_INVALID_PARAMETER} if supportedFormats or length is empty.
+ * @since 20
+ */
+Image_ErrorCode OH_ImageSourceNative_GetSupportedFormats(Image_MimeType **supportedFormats, size_t *length);
#ifdef __cplusplus
};
#endif
diff --git a/multimedia/image_framework/include/image/pixelmap_native.h b/multimedia/image_framework/include/image/pixelmap_native.h
index 1fa825babfacc4b023c3723d85738ea176de5e9f..6df63d863565067deac90a28b530c749452b1ec0 100644
--- a/multimedia/image_framework/include/image/pixelmap_native.h
+++ b/multimedia/image_framework/include/image/pixelmap_native.h
@@ -99,11 +99,6 @@ typedef enum {
*/
PIXEL_FORMAT_UNKNOWN = 0,
/*
- * ARGB_8888 format
- * @since 18
- */
- PIXEL_FORMAT_ARGB_8888 = 1,
- /*
* RGB_565 format
*/
PIXEL_FORMAT_RGB_565 = 2,
@@ -576,6 +571,18 @@ Image_ErrorCode OH_PixelmapImageInfo_GetWidth(OH_Pixelmap_ImageInfo *info, uint3
*/
Image_ErrorCode OH_PixelmapImageInfo_GetHeight(OH_Pixelmap_ImageInfo *info, uint32_t *height);
+/**
+ * @brief Get alphaMode number for imageinfo struct.
+ *
+ * @param info The imageinfo pointer will be operated.
+ * @param alphaMode The number of imageinfo alphaMode.
+ * @return Image functions result code.
+ * {@link IMAGE_SUCCESS} if the execution is successful.
+ * {@link IMAGE_BAD_PARAMETER} info is nullptr, or alphaMode is nullptr.
+ * @since 20
+ */
+Image_ErrorCode OH_PixelmapImageInfo_GetAlphaMode(OH_Pixelmap_ImageInfo *info, int32_t *alphaMode);
+
/**
* @brief Get rowStride number for imageinfo struct.
*
@@ -639,6 +646,30 @@ Image_ErrorCode OH_PixelmapImageInfo_Release(OH_Pixelmap_ImageInfo *info);
Image_ErrorCode OH_PixelmapNative_CreatePixelmap(uint8_t *data, size_t dataLength,
OH_Pixelmap_InitializationOptions *options, OH_PixelmapNative **pixelmap);
+/**
+ * @brief Creates a pixelmap based on options {@link OH_Pixelmap_InitializationOptions}, the memory type used by the
+ * pixelmap can be specified by allocatorType {@link IMAGE_ALLOCATOR_MODE}. By default, the system selects the memory
+ * type based on the image type, image size, platform capability, etc. When processing the pixelmap returned by this
+ * interface, please always consider the impact of stride.
+ *
+ * @param data Input color buffer in BGRA_8888 format by default.
+ * @param dataLength Length of input buffer in bytes.
+ * @param options Pixelmap initialization properties including size, pixel format, alpha type, and editable flags.
+ * @param allocator Indicate which memory type will be used by the returned pixelmap.
+ * @param pixelmap Output parameter receiving the created pixelmap object pointer.
+ * @return Function result code:
+ * {@link IMAGE_SUCCESS} If the operation is successful.
+ * {@link IMAGE_BAD_PARAMETER} If the param is nullptr or invalid.
+ * {@link IMAGE_TOO_LARGE} too large data or image.
+ * {@link IMAGE_UNSUPPORTED_OPERATION} unsupported operations.
+ * {@link IMAGE_DMA_OPERATION_FAILED} DMA operation failed.
+ * {@link IMAGE_ALLOCATOR_MODE_UNSUPPORTED} unsupported allocator mode, e.g.,
+ * use share memory to create a HDR image as only DMA supported hdr metadata.
+ * @since 20
+ */
+Image_ErrorCode OH_PixelmapNative_CreatePixelmapUsingAllocator(uint8_t *data, size_t dataLength,
+ OH_Pixelmap_InitializationOptions *options, IMAGE_ALLOCATOR_MODE allocator, OH_PixelmapNative **pixelmap);
+
/**
* @brief Convert a native PixelMap object to PixelMap napi object.
*
@@ -886,6 +917,27 @@ Image_ErrorCode OH_PixelmapNative_ConvertAlphaFormat(OH_PixelmapNative* srcpixel
Image_ErrorCode OH_PixelmapNative_CreateEmptyPixelmap(
OH_Pixelmap_InitializationOptions *options, OH_PixelmapNative **pixelmap);
+/**
+ * @brief Creates a empty pixelmap based on options {@link OH_Pixelmap_InitializationOptions}, the memory type used by the
+ * pixelmap can be specified by allocatorType {@link IMAGE_ALLOCATOR_MODE}. By default, the system selects the memory
+ * type based on the image type, image size, platform capability, etc. When processing the pixelmap returned by this
+ * interface, please always consider the impact of stride.
+ *
+ * @param options Pixelmap initialization properties including size, pixel format, alpha type, and editable flags.
+ * @param allocator Indicate which memory type will be used by the returned pixelmap.
+ * @param pixelmap Output parameter receiving the created pixelmap object pointer.
+ * @return Function result code:
+ * {@link IMAGE_SUCCESS} If the operation is successful.
+ * {@link IMAGE_BAD_PARAMETER} If the param is nullptr or invalid.
+ * {@link IMAGE_TOO_LARGE} too large data or image.
+ * {@link IMAGE_UNSUPPORTED_OPERATION} unsupported operations.
+ * {@link IMAGE_ALLOCATOR_MODE_UNSUPPORTED} unsupported allocator mode, e.g., use
+ * share memory to create a HDR image as only DMA supported hdr metadata.
+ * @since 20
+ */
+Image_ErrorCode OH_PixelmapNative_CreateEmptyPixelmapUsingAllocator(
+ OH_Pixelmap_InitializationOptions *options, IMAGE_ALLOCATOR_MODE allocator, OH_PixelmapNative **pixelmap);
+
/**
* @brief Get metadata.
*
diff --git a/multimedia/image_framework/include/image_mdk.h b/multimedia/image_framework/include/image_mdk.h
index 053fbde05571147789851c2019d9eea8cdd7997f..47a9ca07cdf97fc67cd2690d1c565ac4ee3865ea 100644
--- a/multimedia/image_framework/include/image_mdk.h
+++ b/multimedia/image_framework/include/image_mdk.h
@@ -19,7 +19,7 @@
*
* @brief Provides APIs for access to the image interface.
*
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 2.0
*/
@@ -32,7 +32,7 @@
*
* @library libimage_ndk.z.so
* @kit ImageKit
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 2.0
*/
diff --git a/multimedia/image_framework/include/image_mdk_common.h b/multimedia/image_framework/include/image_mdk_common.h
index c34252403a8b34489a563fc2807eb7dffe343365..d9b7493a8ab89912d3d63f33be37af18edf0b645 100644
--- a/multimedia/image_framework/include/image_mdk_common.h
+++ b/multimedia/image_framework/include/image_mdk_common.h
@@ -19,7 +19,7 @@
*
* @brief Provides APIs for access to the image interface.
*
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 2.0
*/
@@ -31,7 +31,7 @@
*
* @kit ImageKit
* @library libimage_ndk.z.so
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 2.0
*/
diff --git a/multimedia/image_framework/include/image_packer_mdk.h b/multimedia/image_framework/include/image_packer_mdk.h
index c7783cfc09a86d1f83794bb580fffa92b036468d..be9c73fa5196b35dc2aff4d657a4d276847d68b9 100644
--- a/multimedia/image_framework/include/image_packer_mdk.h
+++ b/multimedia/image_framework/include/image_packer_mdk.h
@@ -42,7 +42,7 @@
*
* @library libimage_packer_ndk.z.so
* @kit ImageKit
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 11
* @version 4.1
*/
diff --git a/multimedia/image_framework/include/image_pixel_map_mdk.h b/multimedia/image_framework/include/image_pixel_map_mdk.h
index 2fd6f9f2214007b9dac2998e2e68af481e08d53b..1bd622bc6a6de58417867c444c481da6da64c082 100644
--- a/multimedia/image_framework/include/image_pixel_map_mdk.h
+++ b/multimedia/image_framework/include/image_pixel_map_mdk.h
@@ -19,7 +19,7 @@
*
* @brief Provides APIs for obtaining pixel map data and information.
*
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 1.0
*/
@@ -31,7 +31,7 @@
* Need link libpixelmapndk.z.so
*
* @library libpixelmap_ndk.so
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @kit ImageKit
* @since 10
* @version 1.0
diff --git a/multimedia/image_framework/include/image_pixel_map_napi.h b/multimedia/image_framework/include/image_pixel_map_napi.h
index 91328b45e8e601639aed7a76f8cbf19b9645f184..d5ec6829003247cbeaa4146458bb1c5e0513321a 100644
--- a/multimedia/image_framework/include/image_pixel_map_napi.h
+++ b/multimedia/image_framework/include/image_pixel_map_napi.h
@@ -19,7 +19,7 @@
*
* @brief Provides APIs for obtaining pixel map data and information.
*
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 8
* @version 1.0
*/
@@ -30,7 +30,7 @@
* @brief Declares the APIs that can lock, access, and unlock a pixel map.
*
* @library libpixelmap_ndk.so
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @kit ImageKit
* @since 8
* @version 1.0
diff --git a/multimedia/image_framework/include/image_receiver_mdk.h b/multimedia/image_framework/include/image_receiver_mdk.h
index 9f90dc94720a83d82ce92f06d90a0c1aae98f0a3..a8ebee884a7fb6d0d54601fa1f1d6784c2ff8d95 100644
--- a/multimedia/image_framework/include/image_receiver_mdk.h
+++ b/multimedia/image_framework/include/image_receiver_mdk.h
@@ -19,7 +19,7 @@
*
* @brief Provides APIs for obtaining image data from the native layer.
*
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 2.0
*/
@@ -32,7 +32,7 @@
*
* @library libimage_receiver_ndk.z.so
* @kit ImageKit
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 2.0
*/
diff --git a/multimedia/image_framework/include/image_source_mdk.h b/multimedia/image_framework/include/image_source_mdk.h
index 35278f5aa847bb62bf75ea4cb590342c11e32e61..b9095e9983707a3fa0269b8e331932be5c3397be 100644
--- a/multimedia/image_framework/include/image_source_mdk.h
+++ b/multimedia/image_framework/include/image_source_mdk.h
@@ -19,7 +19,7 @@
*
* @brief Provides native APIs for image sources.
*
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 4.0
*/
@@ -31,7 +31,7 @@
*
* @library libimage_source_ndk.z.so
* @kit ImageKit
- * @syscap SystemCapability.Multimedia.Image
+ * @syscap SystemCapability.Multimedia.Image.Core
* @since 10
* @version 4.0
*/
diff --git a/multimedia/image_framework/libimage_common.ndk.json b/multimedia/image_framework/libimage_common.ndk.json
index 63d2820cc1fb4da91e3e0f1b9efea3415c20312b..2a242c3eb098bd704d8929cb7a762adb766b42e0 100644
--- a/multimedia/image_framework/libimage_common.ndk.json
+++ b/multimedia/image_framework/libimage_common.ndk.json
@@ -11,6 +11,10 @@
"first_introduced": "13",
"name": "OH_PictureMetadata_SetProperty"
},
+ {
+ "first_introduced": "19",
+ "name": "OH_PictureMetadata_GetPropertyWithNull"
+ },
{
"first_introduced": "13",
"name": "OH_PictureMetadata_Release"
diff --git a/multimedia/image_framework/libimage_packer.ndk.json b/multimedia/image_framework/libimage_packer.ndk.json
index 5684b6584c97749e90b4408202c1b0662c81f5b4..284840815710a6f297859df04b841f2b99da95de 100644
--- a/multimedia/image_framework/libimage_packer.ndk.json
+++ b/multimedia/image_framework/libimage_packer.ndk.json
@@ -7,6 +7,10 @@
"first_introduced": "12",
"name": "OH_PackingOptions_GetMimeType"
},
+ {
+ "first_introduced": "19",
+ "name": "OH_PackingOptions_GetMimeTypeWithNull"
+ },
{
"first_introduced": "12",
"name": "OH_PackingOptions_SetMimeType"
@@ -118,5 +122,9 @@
{
"first_introduced": "12",
"name": "OH_ImagePackerNative_Release"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ImagePackerNative_GetSupportedFormats"
}
]
\ No newline at end of file
diff --git a/multimedia/image_framework/libimage_receiver.ndk.json b/multimedia/image_framework/libimage_receiver.ndk.json
index 95058723f5c2455b4ffd8eb1c03ccd6f1a6d1ee9..2ff42d64319862310faa9044a89b6aae267067b6 100644
--- a/multimedia/image_framework/libimage_receiver.ndk.json
+++ b/multimedia/image_framework/libimage_receiver.ndk.json
@@ -47,6 +47,14 @@
"first_introduced": "12",
"name": "OH_ImageReceiverNative_Off"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageReceiverNative_OnImageArrive"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageReceiverNative_OffImageArrive"
+ },
{
"first_introduced": "12",
"name": "OH_ImageReceiverNative_GetSize"
diff --git a/multimedia/image_framework/libimage_source.ndk.json b/multimedia/image_framework/libimage_source.ndk.json
index ca6fab1a3a7049fe5b1e2cb062fcc0fc1078472e..2e8e996127f93cca4ef16682f0c8e57f33cd3081 100644
--- a/multimedia/image_framework/libimage_source.ndk.json
+++ b/multimedia/image_framework/libimage_source.ndk.json
@@ -15,6 +15,10 @@
"first_introduced": "12",
"name": "OH_ImageSourceInfo_GetDynamicRange"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageSourceInfo_GetMimeType"
+ },
{
"first_introduced": "12",
"name": "OH_ImageSourceInfo_Release"
@@ -79,6 +83,22 @@
"first_introduced": "18",
"name": "OH_DecodingOptions_GetCropAndScaleStrategy"
},
+ {
+ "first_introduced": "19",
+ "name": "OH_DecodingOptions_SetCropRegion"
+ },
+ {
+ "first_introduced": "19",
+ "name": "OH_DecodingOptions_GetCropRegion"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_DecodingOptions_GetDesiredColorSpace"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_DecodingOptions_SetDesiredColorSpace"
+ },
{
"first_introduced": "12",
"name": "OH_DecodingOptions_Release"
@@ -95,6 +115,10 @@
"first_introduced": "12",
"name": "OH_ImageSourceNative_CreateFromData"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageSourceNative_CreateFromDataWithUserBuffer"
+ },
{
"first_introduced": "12",
"name": "OH_ImageSourceNative_CreateFromRawFile"
@@ -127,6 +151,10 @@
"first_introduced": "12",
"name": "OH_ImageSourceNative_GetImageProperty"
},
+ {
+ "first_introduced": "19",
+ "name": "OH_ImageSourceNative_GetImagePropertyWithNull"
+ },
{
"first_introduced": "12",
"name": "OH_ImageSourceNative_ModifyImageProperty"
@@ -154,5 +182,13 @@
{
"first_introduced": "13",
"name": "OH_DecodingOptionsForPicture_Release"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageSourceNative_GetSupportedFormats"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ImageSourceNative_CreatePictureAtIndex"
}
]
\ No newline at end of file
diff --git a/multimedia/image_framework/libpixelmap.ndk.json b/multimedia/image_framework/libpixelmap.ndk.json
index 68d85046276151ae05e2923ec77bb88316355363..f52699ef6d0da891a2527337596a9dc8098f80ab 100644
--- a/multimedia/image_framework/libpixelmap.ndk.json
+++ b/multimedia/image_framework/libpixelmap.ndk.json
@@ -15,6 +15,10 @@
"first_introduced": "12",
"name": "OH_PixelmapInitializationOptions_GetHeight"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_PixelmapImageInfo_GetAlphaMode"
+ },
{
"first_introduced": "12",
"name": "OH_PixelmapInitializationOptions_SetHeight"
@@ -99,6 +103,10 @@
"first_introduced": "12",
"name": "OH_PixelmapNative_CreatePixelmap"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_PixelmapNative_CreatePixelmapUsingAllocator"
+ },
{
"first_introduced": "12",
"name": "OH_PixelmapNative_ReadPixels"
@@ -171,6 +179,10 @@
"first_introduced": "12",
"name": "OH_PixelmapNative_CreateEmptyPixelmap"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_PixelmapNative_CreateEmptyPixelmapUsingAllocator"
+ },
{
"first_introduced": "12",
"name": "OH_PixelmapNative_GetMetadata"
diff --git a/multimedia/media_foundation/core/libnative_media_core.ndk.json b/multimedia/media_foundation/core/libnative_media_core.ndk.json
index 06942afd5f025d28a538f7950b006bf2a397b41f..47050bfe4871f0daa59647fd76ca5babfd4665a9 100644
--- a/multimedia/media_foundation/core/libnative_media_core.ndk.json
+++ b/multimedia/media_foundation/core/libnative_media_core.ndk.json
@@ -10,6 +10,7 @@
{ "name": "OH_AVFormat_SetDoubleValue" },
{ "name": "OH_AVFormat_SetStringValue" },
{ "name": "OH_AVFormat_SetBuffer" },
+ { "name": "OH_AVFormat_SetIntBuffer" },
{ "name": "OH_AVFormat_GetIntValue" },
{ "name": "OH_AVFormat_GetLongValue" },
{ "name": "OH_AVFormat_GetFloatValue" },
@@ -17,6 +18,7 @@
{ "name": "OH_AVFormat_GetStringValue" },
{ "name": "OH_AVFormat_GetBuffer" },
{ "name": "OH_AVFormat_DumpInfo" },
+ { "name": "OH_AVFormat_GetIntBuffer" },
{ "name": "OH_AVMemory_Create" },
{ "name": "OH_AVMemory_GetAddr" },
{ "name": "OH_AVMemory_GetSize" },
diff --git a/multimedia/media_foundation/native_avbuffer.h b/multimedia/media_foundation/native_avbuffer.h
index 29ff41d31536af91b853ac9913aa96a421a5d150..49452cee96e0cc43d06a4031c3a0396bff2bcae6 100644
--- a/multimedia/media_foundation/native_avbuffer.h
+++ b/multimedia/media_foundation/native_avbuffer.h
@@ -133,7 +133,7 @@ OH_AVFormat *OH_AVBuffer_GetParameter(OH_AVBuffer *buffer);
* @return Function result code.
* {@link AV_ERR_OK} if the execution is successful.
* {@link AV_ERR_INVALID_VAL} if input buffer is nullptr, buffer's magic error,
- * input buffer's buffer is nulllptr, input format is nullptr, buffer's magic error, or input meta is nullptr.
+ * input buffer's buffer is nulllptr, input format is nullptr or input meta is nullptr.
* @since 11
*/
OH_AVErrCode OH_AVBuffer_SetParameter(OH_AVBuffer *buffer, const OH_AVFormat *format);
diff --git a/multimedia/media_foundation/native_averrors.h b/multimedia/media_foundation/native_averrors.h
index 398a16f0fc334460d5a1d30647f198677c9def9a..93b6704f77a4f4e8e6ce87bee48faf7e2eadf94f 100644
--- a/multimedia/media_foundation/native_averrors.h
+++ b/multimedia/media_foundation/native_averrors.h
@@ -180,6 +180,22 @@ typedef enum OH_AVErrCode {
* @since 14
*/
AV_ERR_IO_UNSUPPORTED_REQUEST = 5411011,
+ /**
+ * @error Signals a stream format change in synchronous mode.
+ * Required follow-up actions:
+ * - For video encoders: Call {@link OH_VideoEncoder_GetOutputDescription}
+ * - For video decoders: Call {@link OH_VideoDecoder_GetOutputDescription}
+ * - For audio decoders : Call {@link OH_AudioCodec_GetOutputDescription}
+ * to retrieve updated stream configuration.
+ * @since 20
+ */
+ AV_ERR_STREAM_CHANGED = 5410005,
+ /**
+ * @error Indicates temporary buffer query failure in synchronous mode,
+ * it's recommended to wait and retry the operation after a short interval.
+ * @since 20
+ */
+ AV_ERR_TRY_AGAIN_LATER = 5410006,
} OH_AVErrCode;
#ifdef __cplusplus
diff --git a/multimedia/media_foundation/native_avformat.h b/multimedia/media_foundation/native_avformat.h
index ac30d2d47e37ffb44167ee56b6eef7c65b8f52b0..95e8455a4f68ba67e643cdcaa07438c90a14ec5e 100644
--- a/multimedia/media_foundation/native_avformat.h
+++ b/multimedia/media_foundation/native_avformat.h
@@ -80,6 +80,10 @@ typedef enum OH_AVPixelFormat {
* RGBA8888
*/
AV_PIXEL_FORMAT_RGBA = 5,
+ /** RGBA1010102
+ * @since 20
+ */
+ AV_PIXEL_FORMAT_RGBA1010102 = 6,
} OH_AVPixelFormat;
/**
@@ -322,6 +326,49 @@ bool OH_AVFormat_GetBuffer(struct OH_AVFormat *format, const char *key, uint8_t
*/
const char *OH_AVFormat_DumpInfo(struct OH_AVFormat *format);
+/**
+ * @brief Read an array of int32_t values from an OH_AVFormat object.
+ *
+ * Note that the obtained buffer's lifetime bound to the OH_AVFormat object,
+ * it's automatically invalidated when the format object is destroyed.\n
+ * Applications must explicitly copy the data to newly allocated memory if
+ * the data needs to outlive the OH_AVFormat instance.\n
+ *
+ * @syscap SystemCapability.Multimedia.Media.Core
+ * @param format pointer to an OH_AVFormat instance
+ * @param key Data identifier key
+ * @param addr Pointer to receive the data buffer reference
+ * @param size Pointer to receive the element count
+ * @return The return value is TRUE for success, FALSE for failure
+ * Possible failure causes:
+ * 1. input format is nullptr.
+ * 2. input format's magic error.
+ * 3. key is nullptr.
+ * 4. addr is nullptr.
+ * 5. size is nullptr.
+ * @since 20
+ */
+bool OH_AVFormat_GetIntBuffer(struct OH_AVFormat *format, const char *key, int32_t **addr, size_t *size);
+
+/**
+ * @brief Write an array of int32_t values to an OH_AVFormat object.
+ *
+ * @syscap SystemCapability.Multimedia.Media.Core
+ * @param format pointer to an OH_AVFormat instance
+ * @param key Data identifier key
+ * @param addr Pointer to the source data buffer
+ * @param size Number of elements to write (in elements, not bytes)
+ * @return The return value is TRUE for success, FALSE for failure
+ * Possible failure causes:
+ * 1. input format is nullptr.
+ * 2. input format's magic error.
+ * 3. key is nullptr.
+ * 4. addr is nullptr.
+ * 5. size is zero.
+ * @since 20
+ */
+bool OH_AVFormat_SetIntBuffer(struct OH_AVFormat *format, const char *key, const int32_t *addr, size_t size);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/media_library/media_asset_base_capi.h b/multimedia/media_library/media_asset_base_capi.h
index 53380d6deedf25720000929db83002e18daa86cf..4c117ed6845e2d7553e7e3d08291ccb7ce9c2fde 100644
--- a/multimedia/media_library/media_asset_base_capi.h
+++ b/multimedia/media_library/media_asset_base_capi.h
@@ -246,7 +246,14 @@ typedef enum MediaLibrary_ResourceType {
*/
typedef enum MediaLibrary_ImageFileType {
/*JPEG type*/
- MEDIA_LIBRARY_IMAGE_JPEG = 1
+ MEDIA_LIBRARY_IMAGE_JPEG = 1,
+
+ /**
+ * @brief MPEG type
+ *
+ * @since 19
+ */
+ MEDIA_LIBRARY_FILE_VIDEO = 3,
} MediaLibrary_ImageFileType;
/**
diff --git a/multimedia/player_framework/avplayer.h b/multimedia/player_framework/avplayer.h
index f87d5b2bcdf5fe9cef44aaacaed63e0b5f3711f3..1261bdd3b10c18efbed98887ede2416eefb081f2 100644
--- a/multimedia/player_framework/avplayer.h
+++ b/multimedia/player_framework/avplayer.h
@@ -308,6 +308,20 @@ OH_AVErrCode OH_AVPlayer_GetVideoHeight(OH_AVPlayer *player, int32_t *videoHeigh
*/
OH_AVErrCode OH_AVPlayer_SetPlaybackSpeed(OH_AVPlayer *player, AVPlaybackSpeed speed);
+/**
+ * @brief Sets playback rate.
+ * Supported states: prepared/playing/paused/completed.
+ * @syscap SystemCapability.Multimedia.Media.AVPlayer
+ * @param player Pointer to OH_AVPlayer instance
+ * @param rate Playback rate, valid range is 0.125 ~ 4.
+ * @return OH_AVErrCode Operation result code
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if called in unsupported state or during live streaming.
+ * {@link AV_ERR_INVALID_VAL} if input player is nullptr, or rate is out of range.
+ * @since 20
+ */
+OH_AVErrCode OH_AVPlayer_SetPlaybackRate(OH_AVPlayer *player, float rate);
+
/**
* @brief get the current player playback rate
* @syscap SystemCapability.Multimedia.Media.AVPlayer
@@ -593,16 +607,17 @@ OH_AVErrCode OH_AVPlayer_SetOnInfoCallback(OH_AVPlayer *player, OH_AVPlayerOnInf
OH_AVErrCode OH_AVPlayer_SetOnErrorCallback(OH_AVPlayer *player, OH_AVPlayerOnErrorCallback callback, void *userData);
/**
- * @brief Set volume mode of the player
- * @param player Pointer to an OH_AVPlayer instance
- * @param volumeMode The value {@link OH_AudioStream_VolumeMode} indicated volume mode of the player.
- * @return Function result code.
- * {@link AV_ERR_OK} if the execution is successful.
- * {@link AV_ERR_INVALID_VAL} if input player is nullptr or volumeMode value is invalid.
- * {@link AV_ERR_INVALID_STATE} function called in invalid state, should before prepare state.
- * {@link AV_ERR_SERVICE_DIED} media service died, system error.
- * @since 18
- * @version 1.0
+ * @brief Sets the volume mode of the AVPlayer.
+ * @param player Pointer to an OH_AVPlayer instance.
+ * @param volumeMode Volume mode, which is defined in {@link OH_AudioStream_VolumeMode}.
+ * @return Result code.
+ * {@link AV_ERR_OK}: The execution is successful.
+ * {@link AV_ERR_INVALID_VAL}: The value of player is a null pointer or
+ * the value of volumeMode is invalid.
+ * {@link AV_ERR_INVALID_STATE}: The function is called in an incorrect state.
+ * This function should be called prior to prepare.
+ * {@link AV_ERR_SERVICE_DIED}: System errors such as media service breakdown.
+ * @since 19
*/
OH_AVErrCode OH_AVPlayer_SetVolumeMode(OH_AVPlayer *player, OH_AudioStream_VolumeMode volumeMode);
diff --git a/multimedia/player_framework/avplayer/libavplayer.ndk.json b/multimedia/player_framework/avplayer/libavplayer.ndk.json
index 28f2b2b13e4a378b88a8c650c121d16e6f761ba0..7f6d8b5bb7e8c1661a0550e673f96fb15a090a46 100644
--- a/multimedia/player_framework/avplayer/libavplayer.ndk.json
+++ b/multimedia/player_framework/avplayer/libavplayer.ndk.json
@@ -75,6 +75,10 @@
"first_introduced": "12",
"name": "OH_PLAYER_PLAYBACK_SPEED"
},
+ {
+ "first_introduced": "20",
+ "name": "OH_PLAYER_PLAYBACK_RATE"
+ },
{
"first_introduced": "12",
"name": "OH_PLAYER_BITRATE"
@@ -136,7 +140,11 @@
"name": "OH_AVPlayer_SetAudioEffectMode"
},
{
- "first_introduced": "18",
+ "first_introduced": "19",
"name": "OH_AVPlayer_SetVolumeMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVPlayer_SetPlaybackRate"
}
]
\ No newline at end of file
diff --git a/multimedia/player_framework/avplayer_base.h b/multimedia/player_framework/avplayer_base.h
index b351f5cdd3a9a58ed8184b4a4b9da3ab693b071e..03c72912fc40b9e1a83149fe13138fc516777cb6 100644
--- a/multimedia/player_framework/avplayer_base.h
+++ b/multimedia/player_framework/avplayer_base.h
@@ -191,6 +191,15 @@ typedef enum AVPlayerOnInfoType {
* {@link OH_AVPlayerOnInfo} is the same as {@OH_AudioStream_DeviceChangeReason} in audio framework.
*/
AV_INFO_TYPE_AUDIO_OUTPUT_DEVICE_CHANGE = 17,
+ /**
+ * @brief Event type indicating playback rate configuration completed.
+ *
+ * Triggered when playback rate are successfully applied,
+ * notifying the application of the actual effective value.
+ * Use defined key {@link OH_PLAYER_PLAYBACK_RATE} to retrieve value from the event data.
+ * @since 20
+ */
+ AV_INFO_TYPE_PLAYBACK_RATE_DONE = 18,
} AVPlayerOnInfoType;
/**
@@ -307,6 +316,13 @@ extern const char* OH_PLAYER_SEEK_POSITION;
*/
extern const char* OH_PLAYER_PLAYBACK_SPEED;
+/**
+ * @brief Key for retrieving effective playback rate, the value type is float.
+ * @syscap SystemCapability.Multimedia.Media.AVPlayer
+ * @since 20
+ */
+extern const char* OH_PLAYER_PLAYBACK_RATE;
+
/**
* @brief Key to get bitrate, value type is uint32_t.
* @syscap SystemCapability.Multimedia.Media.AVPlayer
diff --git a/multimedia/player_framework/avrecorder.h b/multimedia/player_framework/avrecorder.h
index b94e92b97e0fa7ddef4d986de7a68a2605660124..7a83727ef9fb41c59b093cd46c85d9c77fb80fb9 100644
--- a/multimedia/player_framework/avrecorder.h
+++ b/multimedia/player_framework/avrecorder.h
@@ -78,6 +78,7 @@ OH_AVErrCode OH_AVRecorder_Prepare(OH_AVRecorder *recorder, OH_AVRecorder_Config
* @return Function result code.
* {@link AV_ERR_OK} if the execution is successful.
* {@link AV_ERR_INVALID_VAL} if input recorder is nullptr or config is null.
+ * {@link AV_ERR_NO_MEMORY} failed to malloc memory.
* @since 18
*/
OH_AVErrCode OH_AVRecorder_GetAVRecorderConfig(OH_AVRecorder *recorder, OH_AVRecorder_Config **config);
@@ -181,6 +182,7 @@ OH_AVErrCode OH_AVRecorder_Release(OH_AVRecorder *recorder);
* @return Function result code.
* {@link AV_ERR_OK} if the execution is successful.
* {@link AV_ERR_INVALID_VAL} if input recorder is nullptr.
+ * {@link AV_ERR_NO_MEMORY} failed to malloc memory.
* @since 18
*/
OH_AVErrCode OH_AVRecorder_GetAvailableEncoder(OH_AVRecorder *recorder, OH_AVRecorder_EncoderInfo **info,
@@ -229,6 +231,19 @@ OH_AVErrCode OH_AVRecorder_SetErrorCallback(OH_AVRecorder *recorder, OH_AVRecord
*/
OH_AVErrCode OH_AVRecorder_SetUriCallback(OH_AVRecorder *recorder, OH_AVRecorder_OnUri callback, void *userData);
+/**
+ * @brief Set recorder configuration, if app want its recorder only to be muted instead of interrupted.
+ *
+ * @param recorder Pointer to an OH_AVRecorder instance
+ * @param muteWhenInterrupted use {@code true} if application want to be muted instead of interrupted.
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input recorder is nullptr.
+ * {@link AV_ERR_INVALID_STATE} function called in invalid state, only available before prepare state.
+ * @since 20
+ */
+OH_AVErrCode OH_AVRecorder_SetWillMuteWhenInterrupted(OH_AVRecorder *recorder, bool muteWhenInterrupted);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/player_framework/avrecorder/libavrecorder.ndk.json b/multimedia/player_framework/avrecorder/libavrecorder.ndk.json
index 29ca772eb3296ac465832e3328160b55d9e49c30..e0ff0014471bdd144d0ae34590108ad41d1534a1 100644
--- a/multimedia/player_framework/avrecorder/libavrecorder.ndk.json
+++ b/multimedia/player_framework/avrecorder/libavrecorder.ndk.json
@@ -58,5 +58,9 @@
{
"first_introduced": "18",
"name": "OH_AVRecorder_SetUriCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVRecorder_SetWillMuteWhenInterrupted"
}
]
\ No newline at end of file
diff --git a/multimedia/player_framework/avrecorder_base.h b/multimedia/player_framework/avrecorder_base.h
index 4e668f781f8be9860d2370a467251f8ded34dc1c..561e24f9850a2ded7dbe013d384efd06cc308e0f 100644
--- a/multimedia/player_framework/avrecorder_base.h
+++ b/multimedia/player_framework/avrecorder_base.h
@@ -125,6 +125,11 @@ typedef enum OH_AVRecorder_ContainerFormatType {
AVRECORDER_CFT_MP3 = 9,
/* An audio container format type wav. */
AVRECORDER_CFT_WAV = 10,
+ /**
+ * @brief A audio container format type aac with ADTS.
+ * @since 20
+ */
+ AVRECORDER_CFT_AAC = 11,
} OH_AVRecorder_ContainerFormatType;
/**
diff --git a/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json b/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json
index d175c78a730a8663fa828c1bc08125b1291ba346..078df5d3fd9b3c4a9918840c8a5b13e4b4c56041 100644
--- a/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json
+++ b/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json
@@ -108,7 +108,59 @@
"name": "OH_AVScreenCapture_ShowCursor"
},
{
- "first_introduced": "18",
+ "first_introduced": "15",
"name": "OH_AVScreenCapture_SetDisplayCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_CreateCaptureStrategy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_ReleaseCaptureStrategy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_SetCaptureStrategy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_StrategyForKeepCaptureDuringCall"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_SetCaptureContentChangedCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_SetCaptureArea"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_StrategyForPrivacyMaskMode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_StrategyForCanvasFollowRotation"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_SetSelectionCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_GetCaptureTypeSelected"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_GetDisplayIdSelected"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_StrategyForBFramesEncoding"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVScreenCapture_StrategyForPickerPopUp"
}
]
\ No newline at end of file
diff --git a/multimedia/player_framework/avtranscoder.h b/multimedia/player_framework/avtranscoder.h
new file mode 100644
index 0000000000000000000000000000000000000000..612afa710639c3aace1976fae4963f04cb4c1a50
--- /dev/null
+++ b/multimedia/player_framework/avtranscoder.h
@@ -0,0 +1,308 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+ /**
+ * @addtogroup AVTranscoder
+ * @{
+ *
+ * @brief Provides APIs of request capability for Transcoder.
+ *
+ * @syscap SystemCapability.Multimedia.Media.AVTranscoder
+ * @since 20
+ * @}
+ */
+
+ /**
+ * @file avtranscoder.h
+ *
+ * @brief Defines the avtranscoder APIs. Uses the Native APIs provided by Media AVTranscoder
+ * to transcode a source video file to a new video file.
+ *
+ * @kit MediaKit
+ * @library libavtranscoder.so
+ * @syscap SystemCapability.Multimedia.Media.AVTranscoder
+ * @since 20
+ */
+
+#ifndef MULTIMEDIA_PLAYER_FRAMEWORK_AVTRANSCODER_H
+#define MULTIMEDIA_PLAYER_FRAMEWORK_AVTRANSCODER_H
+
+#include
+#include
+#include "avtranscoder_base.h"
+#include "native_avcodec_base.h"
+#include "native_averrors.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Create a transcoder config
+ * @return Returns a pointer to an OH_AVTranscoder_Config instance for success, nullptr for failure
+ * @since 20
+ */
+OH_AVTranscoder_Config *OH_AVTranscoderConfig_Create();
+
+/**
+ * @brief release a transcoder config instance.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance.
+ * @return @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_Release(OH_AVTranscoder_Config* config);
+
+/**
+ * @brief Set Source file descriptor for transcoding.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance.
+ * @param {int32_t} srcFd Source file descriptor.
+ * @param {int64_t} srcOffset The offset into the file where the data to be read, in bytes.
+ * @param {int64_t} length The length in bytes of the data to be read
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or file related parameter error.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetSrcFD(
+ OH_AVTranscoder_Config *config, int32_t srcFd, int64_t srcOffset, int64_t length);
+
+/**
+ * @brief Set destination file descriptor for transcoding.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {int32_t} dstFd Destination file descriptor
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or dstFd is invalid.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstFD(OH_AVTranscoder_Config *config, int32_t dstFd);
+
+/**
+ * @brief Set destination video mime type.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {const char*} mimeType Destination video mime type. See native_avcodec_base.h
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or mimeType is unrecognized.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstVideoType(OH_AVTranscoder_Config *config, const char *mimeType);
+
+/**
+ * @brief Set destination audio mime type.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {const char*} mimeType Destination audio mime type. See native_avcodec_base.h
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or mimeType is unrecognized.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstAudioType(OH_AVTranscoder_Config *config, const char *mimeType);
+
+/**
+ * @brief Set destination file type.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {OH_AVOutputFormat} mimeType Destination file type. See native_avcodec_base.h
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or mimeType is invalid.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstFileType(OH_AVTranscoder_Config *config, OH_AVOutputFormat mimeType);
+
+/**
+ * @brief Set destination audio bitrate.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {int32_t} bitrate Destination audio bitrate.
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or bitrate value is invalid.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstAudioBitrate(OH_AVTranscoder_Config *config, int32_t bitrate);
+
+/**
+ * @brief Set destination video bitrate.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {int32_t} bitrate Destination video bitrate.
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or bitrate value is invalid.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstVideoBitrate(OH_AVTranscoder_Config *config, int32_t bitrate);
+
+/**
+ * @brief Set destination video resolution.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {int32_t} width Destination for video width.
+ * @param {int32_t} height Destination for video height.
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr or width/height value is invalid.
+* @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_SetDstVideoResolution(OH_AVTranscoder_Config *config, int32_t width, int32_t height);
+
+/**
+ * @brief Create a transcoder
+ * @return {OH_AVTranscoder*} Returns a pointer to an OH_AVTranscoder instance for success, nullptr for failure
+ * @since 20
+ */
+OH_AVTranscoder *OH_AVTranscoder_Create(void);
+
+/**
+ * @brief Prepare for transcoding with a config.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance,
+ * see {@link OH_AVTranscoder_Config}
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or transcoder Prepare failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if the operation of Prepare not allowed.
+ * {@link AV_ERR_IO} if Errors related to IO access
+ * {@link AV_ERR_SERVICE_DIED} if media service died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if unsupported format.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_Prepare(OH_AVTranscoder *transcoder, OH_AVTranscoder_Config *config);
+
+/**
+ * @brief Start AVTranscoder.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or transcoder start failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if the operation of Start not allowed.
+ * {@link AV_ERR_IO} if errors related to IO access.
+ * {@link AV_ERR_SERVICE_DIED} if media service died.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_Start(OH_AVTranscoder *transcoder);
+
+/**
+ * @brief Pause AVTranscoder.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or transcoder pause failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if the operation of Start not allowed.
+ * {@link AV_ERR_IO} if errors related to IO access.
+ * {@link AV_ERR_SERVICE_DIED} if media service died.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_Pause(OH_AVTranscoder *transcoder);
+
+/**
+ * @brief Resume AVTranscoder.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or transcoder resume failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if the operation of Start not allowed.
+ * {@link AV_ERR_IO} if errors related to IO access.
+ * {@link AV_ERR_SERVICE_DIED} if media service died.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_Resume(OH_AVTranscoder *transcoder);
+
+/**
+ * @brief Cancel AVTranscoder.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or transcoder stop failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if the operation of Start not allowed.
+ * {@link AV_ERR_IO} if errors related to IO access.
+ * {@link AV_ERR_SERVICE_DIED} if media service died.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_Cancel(OH_AVTranscoder *transcoder);
+
+/**
+ * @brief Release AVTranscoder.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or transcoder release failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if the operation of Start not allowed.
+ * {@link AV_ERR_IO} if errors related to IO access.
+ * {@link AV_ERR_SERVICE_DIED} if media service died.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_Release(OH_AVTranscoder *transcoder);
+
+/**
+ * @brief Set the state callback function so that your application can respond to the
+ * state change events generated by the avtranscoder. This interface must be called before Start is called.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @param {OH_AVTranscoder_OnStateChange} callback State callback function, see {@link OH_AVTranscoder_OnStateChange}
+ * @param {void*} userData Pointer to user specific data
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or input callback is nullptr.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_SetStateCallback(
+ OH_AVTranscoder *transcoder, OH_AVTranscoder_OnStateChange callback, void *userData);
+
+/**
+ * @brief Set the error callback function so that your application can respond to the
+ * error events generated by the avtranscoder. This interface must be called before Start is called.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @param {OH_AVTranscoder_OnError} callback Error callback function, see {@link OH_AVTranscoder_OnError}
+ * @param {void*} userData Pointer to user specific data
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or input callback is nullptr.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_SetErrorCallback(
+ OH_AVTranscoder *transcoder, OH_AVTranscoder_OnError callback, void *userData);
+
+/**
+ * @brief Set the progress updating callback function so that your application can respond to the
+ * progress updating events generated by the avtranscoder. This interface must be called before Start is called.
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance
+ * @param {OH_AVTranscoder_OnProgressUpdate} callback Uri callback function,
+ * see {@link OH_AVTranscoder_OnProgressUpdate}
+ * @param {void*} userData Pointer to user specific data
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input transcoder is nullptr or input callback is nullptr.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoder_SetProgressUpdateCallback(
+ OH_AVTranscoder *transcoder, OH_AVTranscoder_OnProgressUpdate callback, void *userData);
+
+/**
+ * @brief Enable B frame in destination video.
+ * @param {OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance
+ * @param {bool} enabled Whecher enable B Frame. If this function is not called, B Frame is disabled.
+ * @return Function result code.
+ * {@link AV_ERR_OK} if the execution is successful.
+ * {@link AV_ERR_INVALID_VAL} if input config is nullptr.
+ * @since 20
+ */
+OH_AVErrCode OH_AVTranscoderConfig_EnableBFrame(OH_AVTranscoder_Config *config, bool enabled);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // MULTIMEDIA_PLAYER_FRAMEWORK_AVTRANSCODER_H
\ No newline at end of file
diff --git a/multimedia/player_framework/avtranscoder/BUILD.gn b/multimedia/player_framework/avtranscoder/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..044f95901f9a75e227a50be7ea35ecceda204f0f
--- /dev/null
+++ b/multimedia/player_framework/avtranscoder/BUILD.gn
@@ -0,0 +1,35 @@
+# Copyright (C) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+import("//build/ohos/ndk/ndk.gni")
+import("//foundation/multimedia/player_framework/config.gni")
+
+ohos_ndk_headers("avtranscoder_header") {
+ dest_dir = "$ndk_headers_out_dir/multimedia/player_framework"
+ sources = [
+ "../avtranscoder.h",
+ "../avtranscoder_base.h",
+ ]
+}
+
+ohos_ndk_library("libavtranscoder") {
+ ndk_description_file = "./libavtranscoder.ndk.json"
+ output_name = "avtranscoder"
+ output_extension = "so"
+ system_capability = "SystemCapability.Multimedia.Media.AVTranscoder"
+ system_capability_headers = [
+ "multimedia/player_framework/avtranscoder.h",
+ "multimedia/player_framework/avtranscoder_base.h",
+ ]
+}
diff --git a/multimedia/player_framework/avtranscoder/libavtranscoder.ndk.json b/multimedia/player_framework/avtranscoder/libavtranscoder.ndk.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d818f87f1437fad041226bcb4cf4792332f2992
--- /dev/null
+++ b/multimedia/player_framework/avtranscoder/libavtranscoder.ndk.json
@@ -0,0 +1,86 @@
+[
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_Release"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetSrcFD"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstFD"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstVideoType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstAudioType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstFileType"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstAudioBitrate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstVideoBitrate"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_SetDstVideoResolution"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Prepare"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Start"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Pause"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Resume"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Cancel"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_Release"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_SetStateCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_SetErrorCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoder_SetProgressUpdateCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVTranscoderConfig_EnableBFrame"
+ }
+]
\ No newline at end of file
diff --git a/multimedia/player_framework/avtranscoder_base.h b/multimedia/player_framework/avtranscoder_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..71d83dd9fedd9ea6c16a456990cb58388d689c40
--- /dev/null
+++ b/multimedia/player_framework/avtranscoder_base.h
@@ -0,0 +1,116 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup AVTranscoder
+ * @{
+ *
+ * @brief Provides APIs of request capability for Transcoder.
+ *
+ * @syscap SystemCapability.Multimedia.Media.AVTranscoder
+ * @since 20
+ * @}
+ */
+
+/**
+ * @file avtranscoder_base.h
+ *
+ * @brief Defines the structure and enumeration for Media AVTranscoder.
+ *
+ * @kit MediaKit
+ * @library libavtranscoder.so
+ * @syscap SystemCapability.Multimedia.Media.AVTranscoder
+ * @since 20
+ */
+
+#ifndef MULTIMEDIA_PLAYER_FRAMEWORK_AVTRANSCODER_BASE_H
+#define MULTIMEDIA_PLAYER_FRAMEWORK_AVTRANSCODER_BASE_H
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief definiton of avtranscoder
+ * @since 20
+*/
+typedef struct OH_AVTranscoder OH_AVTranscoder;
+
+/**
+ * @brief definiton of avtranscoder config
+ * @since 20
+ */
+typedef struct OH_AVTranscoder_Config OH_AVTranscoder_Config;
+
+/**
+ * @brief Transcoder States
+ * @since 20
+ */
+typedef enum OH_AVTranscoder_State {
+ /** prepared states */
+ AVTRANSCODER_PREPARED = 1,
+ /** started states */
+ AVTRANSCODER_STARTED = 2,
+ /** paused states */
+ AVTRANSCODER_PAUSED = 3,
+ /** cancelled states */
+ AVTRANSCODER_CANCELLED = 4,
+ /** completed states */
+ AVTRANSCODER_COMPLETED = 5
+} OH_AVTranscoder_State;
+
+/**
+ * @brief Called when the state changed of current transcoding.
+ * @param {OH_AVTranscoder*} transcoder The pointer to an OH_AVTranscoder instance.
+ * @param {OH_AVTranscoder_State} state Indicates the transcoder state. For details, see {@link OH_AVTranscoder_State}.
+ * @param {void*} userData Pointer to user specific data.
+ * @since 20
+ */
+typedef void (*OH_AVTranscoder_OnStateChange)(OH_AVTranscoder *transcoder, OH_AVTranscoder_State state, void *userData);
+
+/**
+ * @brief Called when an error occurred during transcoding
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance.
+ * @param {int32_t} errorCode Error code.
+ * {@link AV_ERR_NO_MEMORY} if memory is insufficient.
+ * {@link AV_ERR_IO} if IO access failed.
+ * {@link AV_ERR_INVALID_STATE} if the current state does not support this operation.
+ * {@link AV_ERR_UNSUPPORT} if unsurpport function.
+ * {@link AV_ERR_INVALID_VAL} if the parameter check failed.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} if operation not allowed.
+ * @param {const char*} errorMsg Error message.
+ * @param {void*} userData Pointer to user specific data.
+ * @since 20
+ */
+typedef void (*OH_AVTranscoder_OnError)(OH_AVTranscoder *transcoder, int32_t errorCode, const char *errorMsg,
+ void *userData);
+
+/**
+ * @brief Progress indicator function definition, called when transcoding progress is updated
+ * @param {OH_AVTranscoder*} transcoder Pointer to an OH_AVTranscoder instance.
+ * @param {int32_t} progress Transcoding progress.
+ * @param {void*} userData Pointer to user specific data.
+ * @since 20
+ */
+typedef void (*OH_AVTranscoder_OnProgressUpdate)(OH_AVTranscoder *transcoder, int32_t progress, void *userData);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // MULTIMEDIA_PLAYER_FRAMEWORK_AVTRANSCODER_BASE_H
\ No newline at end of file
diff --git a/multimedia/player_framework/lowpower_audio_sink.h b/multimedia/player_framework/lowpower_audio_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d033371e5c050241fa75948e9ac0cf0c921493b
--- /dev/null
+++ b/multimedia/player_framework/lowpower_audio_sink.h
@@ -0,0 +1,409 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup LowPowerAudioSink
+ * @{
+ *
+ * @brief The LowPowerAudioSink sub module provides variables, properties, and functions
+ * for lowpower audio sink.
+ *
+ * @since 20
+ */
+
+/**
+ * @file lowpower_audio_sink.h
+ *
+ * @brief Declare the Native API used for lowpower audio sink.
+ *
+ * @library liblowpower_avsink.so
+ * @kit MediaKit
+ * @syscap SystemCapability.Multimedia.Media.LowPowerAVSink
+ * @since 20
+ */
+
+#ifndef NATIVE_LOWPOWER_AUDIO_SINK_H
+#define NATIVE_LOWPOWER_AUDIO_SINK_H
+
+#include
+#include
+#include "native_averrors.h"
+#include "native_avformat.h"
+#include "lowpower_audio_sink_base.h"
+#include "ohaudio/native_audiostream_base.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Creates a lowpower audio sink instance from the mime type, which is recommended in most cases.
+ *
+ * @param {const char*} mime mime type description string, refer to {@link AVCODEC_MIME_TYPE}
+ * @return Returns a Pointer to an LowPowerAudioSink instance.
+ * Return nullptr if memory ran out or the mime type is not supported.
+ * @since 20
+ */
+OH_LowPowerAudioSink* OH_LowPowerAudioSink_CreateByMime(const char* mime);
+
+/**
+ * @brief To configure the lowpower audio sink, typically, you need to configure the description information of the
+ * decoded audio track, which can be extracted from the OH_AVSource. This interface must be called before Prepare
+ * is called.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSinkinstance
+ * @param {OH_AVFormat*} format A pointer to an OH_AVFormat to give the description of the audio track to be decoded
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Configure(OH_LowPowerAudioSink* sink, const OH_AVFormat* format);
+
+/**
+ * @brief Set dynamic parameters to the lowpower audio sink.
+ * Note: This interface can only be called after the decoder is started.
+ * At the same time, incorrect parameter settings may cause audio sink failure.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @param {OH_AVFormat*} format pointer to an OH_AVFormat instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_SetParameter(OH_LowPowerAudioSink* sink, const OH_AVFormat* format);
+
+/**
+ * @brief Get parameter of current lowpower audio sink.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @param {OH_AVFormat*} format pointer to an OH_AVFormat instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_GetParameter(OH_LowPowerAudioSink* sink, OH_AVFormat* format);
+
+/**
+ * @brief To prepare the internal resources of the lowpower audio sink, the Configure interface must be called before
+ * calling this interface.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Prepare(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Start the lowpower audio sink, this interface must be called after the Prepare is successful.
+ * After being successfully started, the lowpower audio sink will start reporting DataNeeded events.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Start(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Pause the lowpower audio sink, this interface must be called after the Start or Resume is successful.
+ * After being successfully paused, the lowpower audio sink will pause reporting DataNeeded events..
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Pause(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Resume the lowpower audio sink, this interface must be called after the Pause is successful.
+ * After being successfully resumed, the lowpower audio sink will resume reporting DataNeeded events.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Resume(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Clear cache data in the lowpower audio sink, this interface is suggested to not be called after the Start
+ * or Resume. It should be noted that need to re-enter if the codec has been input before Codec-Specific-Data.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Flush(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Stop the lowpower audio sink.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Stop(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Reset the lowpower audio sink. Too reuse this instance, you need to call the Configure.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Reset(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Clear the internal resources of the lowpower audio sink and destroy the lowpower audio sink instance.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_Destroy(OH_LowPowerAudioSink* sink);
+
+/**
+ * @brief Set volume of current lowpower audio sink.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @param {const float} volume Volume to set which changes from 0.0 to 1.0
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_SetVolume(OH_LowPowerAudioSink* sink, const float volume);
+
+/**
+ * @brief Set playback speed for the lowpower audio sink.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @param {const float} speed The playback speed value needs to be specified, the valid value is 0.1-4.0
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_SetPlaybackSpeed(OH_LowPowerAudioSink* sink, const float speed);
+
+/**
+ * @brief Return frame packet buffer to lowpower audio sink.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @param {OH_AVSamplesBuffer*} samples Pointer to an OH_AVSamplesBuffer instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_ReturnSamples(OH_LowPowerAudioSink* sink, OH_AVSamplesBuffer* samples);
+
+/**
+ * @brief Regsister callback instance for lowpower audio sink.
+ *
+ * @param {OH_LowPowerAudioSink*} sink Pointer to an OH_LowPowerAudioSink instance
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSink_RegisterCallback(OH_LowPowerAudioSink* sink, OH_LowPowerAudioSinkCallback* callback);
+
+/**
+ * @brief Creates a lowpower audio sink callback instance.
+ *
+ * @return Returns a Pointer to an OH_LowPowerAudioSinkCallback instance.
+ * Return nullptr if memory ran out.
+ * @since 20
+ */
+OH_LowPowerAudioSinkCallback* OH_LowPowerAudioSinkCallback_Create(void);
+
+/**
+ * @brief Destroy the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_Destroy(OH_LowPowerAudioSinkCallback* callback);
+
+/**
+ * @brief Add onPositionUpdated listener to the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @param {OH_LowPowerAudioSink_OnPositionUpdated} onPositionUpdated OH_LowPowerAudioSink_OnPositionUpdated function,
+ * refer to {@link OH_LowPowerAudioSink_OnPositionUpdated}
+ * @param userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_SetPositionUpdateListener(
+ OH_LowPowerAudioSinkCallback* callback,
+ OH_LowPowerAudioSink_OnPositionUpdated onPositionUpdated,
+ void* userData);
+
+/**
+ * @brief Add onDataNeeded listener to the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @param {OH_LowPowerAudioSink_OnDataNeeded} onDataNeeded OH_LowPowerAudioSink_OnDataNeeded function,
+ * refer to {@link OH_LowPowerAudioSink_OnDataNeeded}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_SetDataNeededListener(
+ OH_LowPowerAudioSinkCallback* callback,
+ OH_LowPowerAudioSink_OnDataNeeded onDataNeeded,
+ void* userData);
+
+/**
+ * @brief Add onError listener to the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @param {OH_LowPowerAudioSink_OnError} onError OH_LowPowerAudioSink_OnError function,
+ * refer to {@link OH_LowPowerAudioSink_OnError}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_SetErrorListener(
+ OH_LowPowerAudioSinkCallback* callback,
+ OH_LowPowerAudioSink_OnError onError,
+ void* userData);
+
+/**
+ * @brief Add onInterrupted listener to the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @param {OH_LowPowerAudioSink_OnInterrupted} onInterrupted OH_LowPowerAudioSink_OnInterrupted function,
+ * refer to {@link OH_LowPowerAudioSink_OnInterrupted}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_SetInterruptListener(
+ OH_LowPowerAudioSinkCallback* callback,
+ OH_LowPowerAudioSink_OnInterrupted onInterrupted,
+ void* userData);
+
+/**
+ * @brief Add onDeviceChanged listener to the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSink Callback instance
+ * @param {OH_LowPowerAudioSink_OnDeviceChanged} onDeviceChanged OH_LowPowerAudioSink_OnDeviceChanged function,
+ * refer to {@link OH_LowPowerAudioSink_OnDeviceChanged}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_SetDeviceChangeListener(
+ OH_LowPowerAudioSinkCallback* callback,
+ OH_LowPowerAudioSink_OnDeviceChanged onDeviceChanged,
+ void* userData);
+
+/**
+ * @brief Add onEos listener to the lowpower audio sink callback instance.
+ *
+ * @param {OH_LowPowerAudioSinkCallback*} callback Pointer to an OH_LowPowerAudioSinkCallback instance
+ * @param {OH_LowPowerAudioSink_OnEos} onEos OH_LowPowerAudioSink_OnEos function,
+ * refer to {@link OH_LowPowerAudioSink_OnEos}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerAudioSinkCallback_SetEosListener(
+ OH_LowPowerAudioSinkCallback *callback,
+ OH_LowPowerAudioSink_OnEos onEos,
+ void* userData);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NATIVE_LOWPOWER_AUDIO_SINK_H
+
+/** @} */
\ No newline at end of file
diff --git a/multimedia/player_framework/lowpower_audio_sink_base.h b/multimedia/player_framework/lowpower_audio_sink_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..f532f5c6d8a6669112dbd7466605e8e4626d1948
--- /dev/null
+++ b/multimedia/player_framework/lowpower_audio_sink_base.h
@@ -0,0 +1,154 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+/**
+ * @addtogroup LowPowerAudioSink
+ * @{
+ *
+ * @brief The LowPowerAudioSink sub module provides variables, properties,
+ * and functions for lowpower audio sink.
+ *
+ * @since 20
+ */
+
+/**
+ * @file lowpower_audio_sink_base.h
+ *
+ * @brief Declare the Native API used for lowpower audio sink.
+ *
+ * @library liblowpower_avsink.so
+ * @kit MediaKit
+ * @syscap SystemCapability.Multimedia.Media.LowPowerAVSink
+ * @since 20
+ */
+
+#ifndef NATIVE_LOWPOWER_AUDIO_SINK_BASE_H
+#define NATIVE_LOWPOWER_AUDIO_SINK_BASE_H
+
+#include
+#include "lowpower_avsink_base.h"
+#include "ohaudio/native_audiostream_base.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Forward declaration of OH_LowPowerAudioSink.
+ *
+ * @since 20
+ */
+typedef struct OH_LowPowerAudioSink OH_LowPowerAudioSink;
+
+/**
+ * @brief Forward declaration of OH_LowPowerAudioSinkCallback.
+ *
+ * @since 20
+ */
+typedef struct OH_LowPowerAudioSinkCallback OH_LowPowerAudioSinkCallback;
+
+/**
+ * @brief When an error occurs in the running of the OH_LowPowerAudioSink instance, the function pointer will be called
+ * to report specific error information.
+ *
+ * @param {OH_LowPowerAudioSink*} sink OH_LowPowerAudioSink instance
+ * @param {OH_AVErrCode} errorCode Error code when an error occurs
+ * @param {const char*} errorMsg Error description information
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerAudioSink_OnError)(
+ OH_LowPowerAudioSink* sink,
+ OH_AVErrCode errCode,
+ const char* errorMsg,
+ void* userData);
+
+/**
+ * @brief When the OH_LowPowerAudioSink instance report current play position, the function pointer will be called
+ * to report position information.
+ *
+ * @param {OH_LowPowerAudioSink*} sink OH_LowPowerAudioSink instance
+ * @param {int64_t} currentPosition Returns the current playback progress value of the service
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerAudioSink_OnPositionUpdated)(
+ OH_LowPowerAudioSink* sink,
+ int64_t currentPosition,
+ void* userData);
+
+/**
+ * @brief When the OH_LowPowerAudioSink instance report to need data, the function pointer will be called
+ * to request data.
+ *
+ * @param {OH_LowPowerAudioSink*} sink OH_LowPowerAudioSink instance
+ * @param {OH_AVSamplesBuffer*} samples OH_AVSamplesBuffer instance that will be written in
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerAudioSink_OnDataNeeded)(
+ OH_LowPowerAudioSink* sink,
+ OH_AVSamplesBuffer* samples,
+ void* userData);
+
+/**
+ * @brief This function pointer will point to the callback function that
+ * is used to handle audio interrupt events.
+ *
+ * @param {OH_LowPowerAudioSink*} sink OH_LowPowerAudioSink instance
+ * @param {OH_AudioInterrupt_ForceType} type The audio interrupt type,
+ * please refer to {@link OH_AudioInterrupt_ForceType}
+ * @param {OH_AudioInterrupt_Hint} hint The audio interrupt hint type, please refer to {@link OH_AudioInterrupt_Hint}
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerAudioSink_OnInterrupted)(
+ OH_LowPowerAudioSink* sink,
+ OH_AudioInterrupt_ForceType type,
+ OH_AudioInterrupt_Hint hint,
+ void* userData);
+
+/**
+ * @brief When the output device of an audio renderer changed, the function pointer will be called
+ * to report device change reason.
+ *
+ * @param {OH_LowPowerAudioSink*} sink OH_LowPowerAudioSink instance
+ * @param {OH_AudioStream_DeviceChangeReason} reason Indicates that why does the output device changes,
+ * please refer to {@link OH_AudioStream_DeviceChangeReason}
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerAudioSink_OnDeviceChanged)(
+ OH_LowPowerAudioSink* sink,
+ OH_AudioStream_DeviceChangeReason reason,
+ void* userData);
+
+/**
+ * @brief When the lowpower audio sink play to end of stream, the function pointer will be called
+ * to report play completed event.
+ *
+ * @param {OH_LowPowerAudioSink*} sink OH_LowPowerAudioSinkinstance
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerAudioSink_OnEos)(OH_LowPowerAudioSink* sink, void* userData);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // NATIVE_LOWERPOWER_AUDIOSINK_BASH_H
+
+/** @} */
diff --git a/multimedia/player_framework/lowpower_avsink/BUILD.gn b/multimedia/player_framework/lowpower_avsink/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..d008d467ac1c90e059fe9ee4818649c8b1bd4ffa
--- /dev/null
+++ b/multimedia/player_framework/lowpower_avsink/BUILD.gn
@@ -0,0 +1,41 @@
+# Copyright (C) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+import("//build/ohos/ndk/ndk.gni")
+import("//foundation/multimedia/player_framework/config.gni")
+
+ohos_ndk_headers("lowpower_avsink_header") {
+ dest_dir = "$ndk_headers_out_dir/multimedia/player_framework"
+ sources = [
+ "../lowpower_audio_sink.h",
+ "../lowpower_audio_sink_base.h",
+ "../lowpower_avsink_base.h",
+ "../lowpower_video_sink.h",
+ "../lowpower_video_sink_base.h",
+ ]
+}
+
+ohos_ndk_library("liblowpower_avsink") {
+ ndk_description_file = "./liblowpower_avsink.ndk.json"
+ output_name = "lowpower_avsink"
+ output_extension = "so"
+ system_capability = "SystemCapability.Multimedia.Media.LowPowerAVSink"
+ system_capability_headers = [
+ "multimedia/player_framework/lowpower_audio_sink_base.h",
+ "multimedia/player_framework/lowpower_audio_sink.h",
+ "multimedia/player_framework/lowpower_avsink_base.h",
+ "multimedia/player_framework/lowpower_video_sink_base.h",
+ "multimedia/player_framework/lowpower_video_sink.h",
+ ]
+}
diff --git a/multimedia/player_framework/lowpower_avsink/liblowpower_avsink.ndk.json b/multimedia/player_framework/lowpower_avsink/liblowpower_avsink.ndk.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ff5cef3b23fc15c3ffa33e28ab7b13257b6ee3b
--- /dev/null
+++ b/multimedia/player_framework/lowpower_avsink/liblowpower_avsink.ndk.json
@@ -0,0 +1,222 @@
+[
+ {
+ "first_introduced": "20",
+ "name": "OH_AVSamplesBuffer_AppendOneBuffer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_AVSamplesBuffer_GetRemainedCapacity"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_CreateByMime"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Configure"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_SetParameter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_GetParameter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Prepare"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Start"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Pause"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Resume"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Flush"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Stop"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Reset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_SetVolume"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_SetPlaybackSpeed"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_ReturnSamples"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSink_RegisterCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_SetPositionUpdateListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_SetDataNeededListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_SetErrorListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_SetInterruptListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_SetDeviceChangeListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerAudioSinkCallback_SetEosListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_CreateByMime"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Configure"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_SetParameter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_GetParameter"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_SetVideoSurface"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Prepare"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_StartDecoder"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_RenderFirstFrame"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_StartRenderer"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Pause"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Resume"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Flush"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Stop"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Reset"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_SetSyncAudioSink"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_SetTargetStartFrame"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_SetPlaybackSpeed"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_ReturnSamples"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSink_RegisterCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_Create"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_Destroy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetDataNeededListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetAnchorUpdateListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetErrorListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetRenderStartListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetStreamChangedListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetFirstFrameDecodedListener"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_LowPowerVideoSinkCallback_SetEosListener"
+ }
+]
\ No newline at end of file
diff --git a/multimedia/player_framework/lowpower_avsink_base.h b/multimedia/player_framework/lowpower_avsink_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..fbb65514be1bc0084a98b97e3e490048d9582549
--- /dev/null
+++ b/multimedia/player_framework/lowpower_avsink_base.h
@@ -0,0 +1,85 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup AVSinkBase
+ * @{
+ *
+ * @brief The AVSinkBase module provides variables, properties, and functions
+ * for lowpower audio sink and lowpower video sink.
+ *
+ * @since 20
+ */
+
+/**
+ * @file lowpower_avsink_base.h
+ *
+ * @brief Declare the Native API used for lowpower audio sink
+ * and lowpower video sink.
+ *
+ * @library liblowpower_avsink.so
+ * @kit MediaKit
+ * @syscap SystemCapability.Multimedia.Media.LowPowerAVSink
+ * @since 20
+ */
+
+#ifndef NATIVE_LOWPOWER_AVSINK_BASE_H
+#define NATIVE_LOWPOWER_AVSINK_BASE_H
+
+#include
+#include "native_averrors.h"
+#include "native_avbuffer.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Forward declaration of OH_AVSamplesBuffer.
+ *
+ * @since 20
+ */
+typedef struct OH_AVSamplesBuffer OH_AVSamplesBuffer;
+
+/**
+ * @brief Append one OH_AVBuffer data to framePacketBuffer instance.
+ *
+ * @param samplesBuffer OH_AVSamplesBuffer instance
+ * @param avBuffer OH_AVBuffer buffer will be appended to
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL}, the samplesBuffer or the avBuffer or data pointer is nullptr or invalid.
+ * {@link AV_ERR_NO_MEMORY}, the framePacketBuffer has no enough remained capacity to append one OH_AVBuffer.
+ * {@link AV_ERR_UNKNOWN}, unknown error.
+ * @since 20
+ */
+OH_AVErrCode OH_AVSamplesBuffer_AppendOneBuffer(OH_AVSamplesBuffer *samplesBuffer, OH_AVBuffer *avBuffer);
+
+/**
+ * @brief Get remained capacity of OH_AVSamplesBuffer instance.
+ *
+ * @param {OH_AVSamplesBuffer} samplesBuffer OH_AVSamplesBuffer instance
+ * @return Returns remained capacity of OH_AVSamplesBuffer instance,
+ * return -1 if samplesBuffer or data poniter is is nullptr or invalid.
+ * @since 20
+ */
+int32_t OH_AVSamplesBuffer_GetRemainedCapacity(OH_AVSamplesBuffer *samplesBuffer);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // NATIVE_LOWPOWER_AVSINK_BASE_H
+
+/** @} */
\ No newline at end of file
diff --git a/multimedia/player_framework/lowpower_video_sink.h b/multimedia/player_framework/lowpower_video_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..52c77f14c4a3e9056c69c96720b405f143ecd6fc
--- /dev/null
+++ b/multimedia/player_framework/lowpower_video_sink.h
@@ -0,0 +1,469 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup LowPowerVideoSink
+ * @{
+ *
+ * @brief The LowPowerVideoSink sub module provides variables, properties, and functions
+ * for lowpower video sink.
+ *
+ * @since 20
+ */
+
+/**
+ * @file lowpower_video_sink.h
+ *
+ * @brief Declare the Native API used for lowpower video sink.
+ *
+ * @library liblowpower_avsink.so
+ * @kit MediaKit
+ * @syscap SystemCapability.Multimedia.Media.LowPowerAVSink
+ * @since 20
+ */
+
+#ifndef NATIVE_LOWPOWER_VIDEO_SINK_H
+#define NATIVE_LOWPOWER_VIDEO_SINK_H
+
+#include
+#include "native_averrors.h"
+#include "native_avformat.h"
+#include "lowpower_avsink_base.h"
+#include "lowpower_video_sink_base.h"
+#include "lowpower_audio_sink_base.h"
+#include "native_window/external_window.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Creates a lowpower video sink instance from the mime type, which is recommended in most cases.
+ *
+ * @param {const char*} mime mime type description string, refer to {@link AVCODEC_MIME_TYPE}
+ * @return Returns a Pointer to an OH_LowPowerVideoSink instance.
+ * Return nullptr if memory ran out or the mime type is not supported.
+ * @since 20
+ */
+OH_LowPowerVideoSink* OH_LowPowerVideoSink_CreateByMime(const char* mime);
+
+/**
+ * @brief To configure the lowpower video sink, typically, you need to configure the description information of the
+ * decoded video track, which can be extracted from the OH_AVSource. This interface must be called before Prepare
+ * is called.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OH_AVFormat*} format A pointer to an OH_AVFormat to give the description of the video track to be decoded,
+ * key of format refer to lowpower_avsink_base.h
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Configure(OH_LowPowerVideoSink* sink, const OH_AVFormat* format);
+
+/**
+ * @brief Set dynamic parameters to the lowpower video sink.
+ * Note: This interface can only be called after the decoder is started.
+ * At the same time, incorrect parameter settings may cause video sink failure.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OH_AVFormat*} format pointer to an OH_AVFormat instance, key of format refer to lowpower_avsink_base.h
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_SetParameter(OH_LowPowerVideoSink* sink, const OH_AVFormat* format);
+
+/**
+ * @brief Get parameter of current lowpower video sink.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OH_AVFormat*} format pointer to an OH_AVFormat instance, key of format refer to lowpower_avsink_base.h
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_GetParameter(OH_LowPowerVideoSink* sink, OH_AVFormat* format);
+
+/**
+ * @brief Specify the output Surface to provide decoded lowpower video sink,
+ * this interface must be called before Prepare is called. In the executing state, it can be called directly.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OHNativeWindow*} surface A pointer to a OHNativeWindow instance, see {@link OHNativeWindow}
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_SetVideoSurface(OH_LowPowerVideoSink* sink, const OHNativeWindow* surface);
+
+/**
+ * @brief To prepare the internal resources of the lowpower video sink, the Configure interface must be called before
+ * calling this interface.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Prepare(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Start decoder of the lowpower video sink, this interface must be called after the Prepare is successful.
+ * After being successfully started, the lowpower audio sink will start reporting DataNeeded events.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_StartDecoder(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Render first frame of video sink, this interface must be called after the StartDecode is successful and
+ * onFirstFrameDecoded is called.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_RenderFirstFrame(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Start renderer of the lowpower video sink, this interface must be called after the StartDecode is successful.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_UNSUPPORT} unsupported format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_StartRenderer(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Pause the lowpower video sink, this interface must be called after the StartRender or Resume is successful.
+ * After being successfully paused, the lowpower video sink will pause reporting DataNeeded events..
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Pause(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Resume the lowpower video sink, this interface must be called after the Pause is successful.
+ * After being successfully resumed, the lowpower video sink will resume reporting DataNeeded events.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSinkinstance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Resume(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Clear cache data in the lowpower video sink, this interface is suggested to not be called after the Start
+ * or Resume. It should be noted that need to re-enter if the codec has been input before Codec-Specific-Data.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Flush(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Stop the lowpower video sink.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}.
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Stop(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Reset the lowpower video sink. Too reuse this instance, you need to call the Configure.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Reset(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Clear the internal resources of the lowpower video sink and destroy the lowpower video sink instance.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_Destroy(OH_LowPowerVideoSink* sink);
+
+/**
+ * @brief Set the lowpower audio sink instance to the lowpower video sink instance for audio video sync.
+ *
+ * @param {OH_LowPowerVideoSink*} videoSink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OH_LowPowerAudioSink*} audioSink Pointer to an OH_LowPowerAudioSink instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_SetSyncAudioSink(
+ OH_LowPowerVideoSink* videoSink, OH_LowPowerAudioSink* audioSink);
+
+/**
+ * @brief Set target start frame pts, and the video frame will be renderred from the target pts.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {const int64_t} framePts target video frame pts
+ * @param {OH_LowPowerVideoSink_OnTargetArrived*} onTargetArrived OH_LowPowerVideoSink_OnTargetArrived func,
+ * will be called once, refer to {@link OH_LowPowerVideoSink_OnTargetArrived}
+ * @param {const int64_t} timeoutMs if wait first frame over timeoutMs, onTargetArrived will be called directly.
+ * @param {void *} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_SetTargetStartFrame(
+ OH_LowPowerVideoSink* sink,
+ const int64_t framePts,
+ OH_LowPowerVideoSink_OnTargetArrived onTargetArrived,
+ const int64_t timeoutMs,
+ void* userData);
+
+/**
+ * @brief Set playback speed for the lowpower video sink
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {const float} speed Indicates the value of the playback rate.
+ * The current version is valid in the range of 0.1-4.0
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_SetPlaybackSpeed(OH_LowPowerVideoSink* sink, const float speed);
+
+/**
+ * @brief Return frame packet buffer to lowpower video sink.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OH_AVSamplesBuffer*} samples Pointer to an OH_AVSamplesBuffer instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_ReturnSamples(OH_LowPowerVideoSink* sink, OH_AVSamplesBuffer* samples);
+
+/**
+ * @brief Regsister callback instance for lowpower video sink.
+ *
+ * @param {OH_LowPowerVideoSink*} sink Pointer to an OH_LowPowerVideoSink instance
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the sink or format is nullptr or invalid. Invalid param in format.
+ * {@link AV_ERR_SERVICE_DIED} media service is died.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSink_RegisterCallback(OH_LowPowerVideoSink* sink, OH_LowPowerVideoSinkCallback* callback);
+
+/**
+ * @brief Creates a lowpower video sink callback instance.
+ *
+ * @return Returns a Pointer to an OH_LowPowerVideoSinkCallback instance.
+ * Return nullptr if memory ran out.
+ * @since 20
+ */
+OH_LowPowerVideoSinkCallback* OH_LowPowerVideoSinkCallback_Create(void);
+
+/**
+ * @brief Destroy the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_Destroy(OH_LowPowerVideoSinkCallback* callback);
+
+/**
+ * @brief Add onDataNeeded listener to the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @param {OH_LowPowerVideoSink_OnDataNeeded} onDataNeeded OH_LowPowerVideoSink_OnDataNeeded function,
+ * refer to {@link OH_LowPowerVideoSink_OnDataNeeded}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_SetDataNeededListener(
+ OH_LowPowerVideoSinkCallback *callback, OH_LowPowerVideoSink_OnDataNeeded onDataNeeded, void *userData);
+
+/**
+ * @brief Add onError listener to the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @param {OH_LowPowerVideoSink_OnError} onError OH_LowPowerVideoSink_OnError function,
+ * refer to {@link OH_LowPowerVideoSink_OnError}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_SetErrorListener(
+ OH_LowPowerVideoSinkCallback* callback, OH_LowPowerVideoSink_OnError onError, void* userData);
+
+/**
+ * @brief Add onRenderStarted listener to the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @param {OH_LowPowerVideoSink_OnRenderStarted} onRenderStarted OH_LowPowerVideoSink_OnRenderStarted function,
+ * refer to {@link OH_LowPowerVideoSink_OnRenderStarted}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_SetRenderStartListener(
+ OH_LowPowerVideoSinkCallback* callback, OH_LowPowerVideoSink_OnRenderStarted onRenderStarted, void* userData);
+
+/**
+ * @brief Add onStreamChanged listener to the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @param {OH_LowPowerVideoSink_OnStreamChanged} onStreamChanged OH_LowPowerVideoSink_OnStreamChanged function,
+ * refer to {@link OH_LowPowerVideoSink_OnStreamChanged}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_SetStreamChangedListener(
+ OH_LowPowerVideoSinkCallback* callback, OH_LowPowerVideoSink_OnStreamChanged onStreamChanged, void* userData);
+
+/**
+ * @brief Add onRenderStarted listener to the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @param {OH_LowPowerVideoSink_OnFirstFrameDecoded} onFirstFrameDecoded OH_LowPowerVideoSink_OnFirstFrameDecoded
+ * function,
+ * refer to {@link OH_LowPowerVideoSink_OnFirstFrameDecoded}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_SetFirstFrameDecodedListener(
+ OH_LowPowerVideoSinkCallback* callback,
+ OH_LowPowerVideoSink_OnFirstFrameDecoded onFirstFrameDecoded,
+ void* userData);
+
+/**
+ * @brief Add onEos listener to the lowpower video sink callback instance.
+ *
+ * @param {OH_LowPowerVideoSinkCallback*} callback Pointer to an OH_LowPowerVideoSinkCallback instance
+ * @param {OH_LowPowerVideoSink_OnEos} onEos OH_LowPowerVideoSink_OnEos function,
+ * refer to {@link OH_LowPowerVideoSink_OnEos}
+ * @param {void*} userData User specific data
+ * @return Returns AV_ERR_OK if the execution is successful,
+ * otherwise returns a specific error code, refer to {@link OH_AVErrCode}
+ * {@link AV_ERR_INVALID_VAL} the callback is nullptr or invalid.
+ * {@link AV_ERR_OPERATE_NOT_PERMIT} operation not permitted.
+ * @since 20
+ */
+OH_AVErrCode OH_LowPowerVideoSinkCallback_SetEosListener(OH_LowPowerVideoSinkCallback* callback,
+ OH_LowPowerVideoSink_OnEos onEos, void* userData);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NATIVE_LOWPOWER_VIDEO_SINK_H
+
+/** @} */
diff --git a/multimedia/player_framework/lowpower_video_sink_base.h b/multimedia/player_framework/lowpower_video_sink_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..7bf47f59f015f9f65c8f359fa1e2658e365f0912
--- /dev/null
+++ b/multimedia/player_framework/lowpower_video_sink_base.h
@@ -0,0 +1,156 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+/**
+ * @addtogroup LowPowerVideoSink
+ * @{
+ *
+ * @brief The LowPowerVideoSink submodule provides variables, properties, and functions
+ * for lowpower video sink.
+ *
+ * @since 20
+ */
+
+/**
+ * @file lowpower_video_sink_base.h
+ *
+ * @brief Declare the Native API used for lowpower video sink.
+ *
+ * @library liblowpower_avsink.so
+ * @kit MediaKit
+ * @syscap SystemCapability.Multimedia.Media.LowPowerAVSink
+ * @since 20
+ */
+
+#ifndef NATIVE_LOWPOWER_VIDEO_SINK_BASE_H
+#define NATIVE_LOWPOWER_VIDEO_SINK_BASE_H
+
+#include
+#include
+#include "native_avformat.h"
+#include "lowpower_avsink_base.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Forward declaration of OH_LowPowerVideoSink.
+ *
+ * @since 20
+ */
+typedef struct OH_LowPowerVideoSink OH_LowPowerVideoSink;
+
+/**
+ * @brief Forward declaration of OH_LowPowerVideoSinkCallback.
+ *
+ * @since 20
+ */
+typedef struct OH_LowPowerVideoSinkCallback OH_LowPowerVideoSinkCallback;
+
+/**
+ * @brief When the OH_LowPowerVideoSink instance report to need data, the function pointer will be called
+ * to request data.
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {OH_AVSamplesBuffer*} buffer OH_AVSamplesBuffer instance that will be written in
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnDataNeeded)(
+ OH_LowPowerVideoSink* sink,
+ OH_AVSamplesBuffer* buffer,
+ void *userData);
+
+/**
+ * @brief When an error occurs in the running of the OH_LowPowerVideoSink instance, the function pointer will be called
+ * to report specific error information.
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {OH_AVErrCode} errorCode The error code returned when an error occurs during service operation.
+ * See the definition of {@OH_AVErrCode}
+ * @param {const char*} errorMsg string of Error description information returned when an error occurs
+ * during service operation
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnError)(
+ OH_LowPowerVideoSink* sink,
+ OH_AVErrCode errCode,
+ const char* errMsg,
+ void* userData);
+
+/**
+ * @brief When the OH_LowPowerVideoSink instance report target video frame arrived, the function pointer will be called.
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {const int64_t} targetPts Target pts of renderred frame
+ * @param {const bool} isTimeout If wait target pts timeout, it is false
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnTargetArrived)(
+ OH_LowPowerVideoSink* sink,
+ const int64_t targetPts,
+ const bool isTimeout,
+ void* userData);
+
+/**
+ * @brief When the OH_LowPowerVideoSink instance report first frame renderred, the function pointer will be called.
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnRenderStarted)(OH_LowPowerVideoSink* sink, void* userData);
+
+/**
+ * @brief When the OH_LowPowerVideoSink instance reports that the parameters of the video stream have changed,
+ * the application is notified through this function
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {OH_AVFormat*} format Carrying changing parameters and corresponding values
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnStreamChanged)(OH_LowPowerVideoSink* sink, OH_AVFormat* format, void* userData);
+
+/**
+ * @brief When the first frame of the OH_LowPowerVideoSink instance is decoded successfully, this function pointer will
+ * be called.
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnFirstFrameDecoded)(OH_LowPowerVideoSink* sink, void* userData);
+
+/**
+ * @brief When the OH_LowPowerVideoSinkinstance play to end of stream, the function pointer will be called
+ * to report play completed event.
+ *
+ * @param {OH_LowPowerVideoSink*} sink OH_LowPowerVideoSink instance
+ * @param {void*} userData User specific data
+ * @since 20
+ */
+typedef void (*OH_LowPowerVideoSink_OnEos)(OH_LowPowerVideoSink* sink, void* userData);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // NATIVE_LOWPOWER_VIDEOSINK_BASH_H
+
+/** @} */
diff --git a/multimedia/player_framework/native_avscreen_capture.h b/multimedia/player_framework/native_avscreen_capture.h
index 150ebef4f1755430aca165442f0d158ecef65138..7d52b610bb2424c24356ddcbdeaf5cda7d846605 100644
--- a/multimedia/player_framework/native_avscreen_capture.h
+++ b/multimedia/player_framework/native_avscreen_capture.h
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/**
* @addtogroup AVScreenCapture
* @{
@@ -74,16 +74,14 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_Init(struct OH_AVScreenCapture *c
/**
* @brief Start the av screen capture
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param type Information describing the data type of the capture
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support certain configurations. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted, set privacy authority enabled
* failed or start ScreenCapture failed.
* @since 10
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StartScreenCapture(struct OH_AVScreenCapture *capture);
@@ -102,15 +100,14 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StopScreenCapture(struct OH_AVScr
/**
* @brief Start av screen record use to start save screen record file.
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support certain configurations. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted, set privacy authority enabled
* failed or start ScreenRecording failed.
* @since 10
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StartScreenRecording(struct OH_AVScreenCapture *capture);
@@ -288,33 +285,31 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetErrorCallback(struct OH_AVScre
OH_AVScreenCapture_OnError callback, void *userData);
/**
- * @brief Start the av screen capture, video data provided by OHNativeWindow
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param window Pointer to an OHNativeWindow instance
+ * @brief Start the av screen capture, video data provided by OHNativeWindow.
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance.
+ * @param {OHNativeWindow*} window Pointer to an OHNativeWindow instance.
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr or input window is nullptr or
* input windowSurface is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support certain configurations. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted, set privacy authority enabled
* failed or start ScreenCaptureWithSurface failed.
* @since 12
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StartScreenCaptureWithSurface(struct OH_AVScreenCapture *capture,
OHNativeWindow *window);
/**
* @brief Set canvas rotation when capturing screen
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param canvasRotation whether to rotate the canvas
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
+ * @param {bool} canvasRotation whether to rotate the canvas
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support current interface. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted, set CanvasRotation failed.
* @since 12
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCanvasRotation(struct OH_AVScreenCapture *capture,
bool canvasRotation);
@@ -386,63 +381,59 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ContentFilter_AddWindowContent(
/**
* @brief Resize the Resolution of the Screen
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param width Video frame width of avscreeencapture
- * @param height Video frame height of avscreeencapture
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
+ * @param {int32_t} width Video frame width of avscreeencapture
+ * @param {int32_t} height Video frame height of avscreeencapture
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support current interface. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted.
* @since 12
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ResizeCanvas(struct OH_AVScreenCapture *capture,
int32_t width, int32_t height);
/**
* @brief skip some windows' privacy mode of current app during the screen recording
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param windowIDs Pointer of windowID list
- * @param windowCount length of windowID list
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
+ * @param {int32_t*} windowIDs Pointer of windowID list
+ * @param {int32_t} windowCount length of windowID list
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr or input windowIDs are not belong current
* app.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support current interface. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted.
* @since 12
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SkipPrivacyMode(struct OH_AVScreenCapture *capture,
int32_t *windowIDs, int32_t windowCount);
/**
* @brief set up the max number of video frame per second
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param frameRate max frame rate of video
+ * @param {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
+ * @param {int32_t} frameRate max frame rate of video
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr or frameRate is not support.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support current interface. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted.
* @since 14
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetMaxVideoFrameRate(struct OH_AVScreenCapture *capture,
int32_t frameRate);
/**
* @brief determines whether the cursor is visible in the session
- * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
- * @param capture Pointer to an OH_AVScreenCapture instance
- * @param showCursor The switch of the cursor
+ * @param {struct OH_AVScreenCapture* } capture Pointer to an OH_AVScreenCapture instance
+ * @param {bool} showCursor The switch of the cursor
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_UNSUPPORT} device doesn't support current interface. add since api20.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted, show cursor failed.
* @since 15
- * @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ShowCursor(struct OH_AVScreenCapture *capture,
bool showCursor);
@@ -463,6 +454,185 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ShowCursor(struct OH_AVScreenCapt
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetDisplayCallback(struct OH_AVScreenCapture *capture,
OH_AVScreenCapture_OnDisplaySelected callback, void *userData);
+
+/**
+ * @brief Create a screen capture Strategy object
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @return Returns a pointer to the screen capture strategy object, or null if failure
+ * @since 20
+ */
+OH_AVScreenCapture_CaptureStrategy* OH_AVScreenCapture_CreateCaptureStrategy(void);
+
+/**
+ * @brief Release the screen capture Strategy object
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input strategy is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ReleaseCaptureStrategy(OH_AVScreenCapture_CaptureStrategy* strategy);
+
+/**
+ * @brief set the screen capture strategy for the specified screen capture
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture which need to be setted.
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy which want to
+ * set.
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} capture or strategyvalue is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_STATE} This interface should be called before Start is called.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureStrategy(
+ struct OH_AVScreenCapture *capture, OH_AVScreenCapture_CaptureStrategy *strategy);
+
+/**
+ * @brief Call Settings Policy value for whether to allow screen capture during cellular calls
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
+ * @param {bool} value The default value is false, which means that screen recording is not allowed during cellular
+ * calls.
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy value is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForKeepCaptureDuringCall(
+ OH_AVScreenCapture_CaptureStrategy *strategy, bool value);
+
+/**
+ * @brief Set the Capture Content Changed callback function so that your application can
+ * customize event handler generated by the screen capture. This interface must be called before Start is called.
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param capture Pointer to an OH_AVScreenCapture instance
+ * @param callback contentchanged callback function, see {@link OH_AVScreenCapture_OnCaptureContentChanged}
+ * @param userData Pointer to user specific data
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr or input callback is nullptr.
+ * {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted, set ErrorCallback failed.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureContentChangedCallback(struct OH_AVScreenCapture *capture,
+ OH_AVScreenCapture_OnCaptureContentChanged callback, void *userData);
+
+/**
+ * @brief Set or update the captureArea
+ * @param {struct OH_AVScreenCapture*} capture capture Pointer to an OH_AVScreenCapture instance
+ * @param {uint64_t} displayId Indicates the screen index for setting area recording
+ * @param {OH_Rect*} area Pointer to an object describing the location and size of the region
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr or displayid not exist or area is
+ * invalid.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureArea(struct OH_AVScreenCapture *capture,
+ uint64_t displayId, OH_Rect* area);
+
+/**
+ * @brief Set the fill mode for screen capture when a privacy window exists
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
+ * @param {int32_t} value
+ * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black.
+ * If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output
+ * screen becomes black, and other values returns an error.
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForPrivacyMaskMode(
+ OH_AVScreenCapture_CaptureStrategy *strategy, int32_t value);
+
+/**
+ * @brief Set the canvas to rotate with the screen when capturing the screen
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
+ * @param {bool} value The default value is False, which means that the width and height of the VirtualDisplay
+ * remain the initial settings. If set to True, it means that the width and height of the VirtualDisplay rotates
+ * with the rotation of the screen..
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy value is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForCanvasFollowRotation(
+ OH_AVScreenCapture_CaptureStrategy *strategy, bool value);
+
+/**
+ * @brief Register user selection notification callback function
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture*} capture Pointer to OH_AVScreenCapture which want to handle user selection info
+ * @param {OH_AVScreenCapture_OnUserSelected} callback user selection callback function, see
+ * {@link OH_AVScreenCapture_OnUserSelected}
+ * @param {void*} userData The control block pointer passed by the application is carried to the application when it
+ * is returned
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetSelectionCallback(struct OH_AVScreenCapture *capture,
+ OH_AVScreenCapture_OnUserSelected callback, void *userData);
+
+/**
+ * @brief Get the recording content type selected by the user in the confirmation interface
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture_UserSelectionInfo*} selection Pointer to an OH_AVScreenCapture_UserSelectionInfo instance
+ * @param {int32_t*} type The capture object type selected by the user, 0: represents the screen, 1: represents the
+ * window.
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} if selections is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_GetCaptureTypeSelected(OH_AVScreenCapture_UserSelectionInfo *selection,
+ int32_t* type);
+
+/**
+ * @brief Get the Display ID of user selections in the confirmation interface
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture_UserSelectionInfo*} selection Pointer to an OH_AVScreenCapture_UserSelectionInfo instance
+ * @param {uint64_t*} displayId Returns the screen ID value selected by the user
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} if selections is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_GetDisplayIdSelected(OH_AVScreenCapture_UserSelectionInfo *selection,
+ uint64_t* displayId);
+
+/**
+ * @brief Indicates whether to enable B-frame encoding, which is used to reduce the size of the recorded file.
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
+ * @param {bool} value The default value is false, which means B frames encoding are disabled.
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForBFramesEncoding(
+ OH_AVScreenCapture_CaptureStrategy *strategy, bool value);
+
+/**
+ * @brief set whether to pop up the screen capture Picker
+ * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
+ * @param {bool} value
+ * If set to false, it means that the APP don’t need to pop up the Picker after screen capture starts;
+ * if set to True, the Picker will pop up uniformly after screen capture starts;
+ * If not set, it means using the system recommended behavior.
+ * @return Function result code.
+ * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
+ * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy value is nullptr.
+ * @since 20
+ */
+OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForPickerPopUp(
+ OH_AVScreenCapture_CaptureStrategy *strategy, bool value);
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/player_framework/native_avscreen_capture_base.h b/multimedia/player_framework/native_avscreen_capture_base.h
index 85b1280d10cdf856dadf3dc95455a06119f0a192..966a09b4eabc013ae6d7d9667ec1935b3822ca76 100644
--- a/multimedia/player_framework/native_avscreen_capture_base.h
+++ b/multimedia/player_framework/native_avscreen_capture_base.h
@@ -481,6 +481,21 @@ typedef enum OH_AVScreenCaptureFilterableAudioContent {
OH_SCREEN_CAPTURE_CURRENT_APP_AUDIO = 1,
} OH_AVScreenCaptureFilterableAudioContent;
+/**
+ * @brief Enumerates screen capture content state.
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ *
+ * @since 20
+ */
+typedef enum OH_AVScreenCaptureContentChangedEvent_Enum {
+ /* Content is hidden */
+ OH_SCREEN_CAPTURE_CONTENT_HIDE = 0,
+ /* Content is visible */
+ OH_SCREEN_CAPTURE_CONTENT_VISIBLE = 1,
+ /* ScreenCapture stopped by user */
+ OH_SCREEN_CAPTURE_CONTENT_UNAVAILABLE = 2,
+} OH_AVScreenCaptureContentChangedEvent;
+
/**
* @brief When state of OH_AVScreenCapture is changed, the function pointer will be called.
* @syscap SystemCapability.Multimedia.Media.AVScreenCapture
@@ -532,6 +547,49 @@ typedef void (*OH_AVScreenCapture_OnBufferAvailable)(OH_AVScreenCapture *capture
*/
typedef void (*OH_AVScreenCapture_OnDisplaySelected)(OH_AVScreenCapture *capture, uint64_t displayId, void *userData);
+/**
+ * @brief Initialization of OH_AVScreenCapture_CaptureStrategy
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ *
+ * @since 20
+ */
+typedef struct OH_AVScreenCapture_CaptureStrategy OH_AVScreenCapture_CaptureStrategy;
+
+/**
+ * @brief When Capture Content info changes, the function will be called to notify user
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ * @param {OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
+ * @param {OH_AVScreenCaptureContentChangedEvent} event enum for content change event
+ * @param {OH_Rect*} area capture content rect position
+ * @param { void*} userData Pointer to user specific data
+ *
+ * @since 20
+ * @version 1.0
+ */
+typedef void (*OH_AVScreenCapture_OnCaptureContentChanged)(OH_AVScreenCapture* capture,
+ OH_AVScreenCaptureContentChangedEvent event, OH_Rect* area, void *userData);
+
+/**
+ * @brief Initialization of OH_AVScreenCapture_UserSelectionInfo
+ * @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+ *
+ * @since 20
+ */
+typedef struct OH_AVScreenCapture_UserSelectionInfo OH_AVScreenCapture_UserSelectionInfo;
+
+/**
+* @brief When the user selects parameters in the authorization interface (selection interface),
+* the function interface returns the parameters to the application.
+* @syscap SystemCapability.Multimedia.Media.AVScreenCapture
+* @param {OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
+* @param {OH_AVScreenCapture_UserSelectionInfo*} selections The recording parameter information
+* selected by the user on the authorization interface
+* @param {void*} userData Pointer to user specific data
+*
+* @since 20
+*/
+typedef void (*OH_AVScreenCapture_OnUserSelected)(OH_AVScreenCapture* capture,
+ OH_AVScreenCapture_UserSelectionInfo* selections, void *userData);
#ifdef __cplusplus
}
#endif
diff --git a/multimedia/player_framework/native_avscreen_capture_errors.h b/multimedia/player_framework/native_avscreen_capture_errors.h
index 673d53bcf7c4639bc8c3e2e93c05a1e2c46f1ed4..581a9f90bc067904cf7556336f946ff985756578 100644
--- a/multimedia/player_framework/native_avscreen_capture_errors.h
+++ b/multimedia/player_framework/native_avscreen_capture_errors.h
@@ -60,7 +60,7 @@ typedef enum OH_AVSCREEN_CAPTURE_ErrCode {
*/
AV_SCREEN_CAPTURE_ERR_NO_MEMORY = AV_SCREEN_CAPTURE_ERR_BASE + 1,
/**
- * @error opertation not be permitted.
+ * @error operation not be permitted.
*/
AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT = AV_SCREEN_CAPTURE_ERR_BASE + 2,
/**
diff --git a/multimodalinput/kits/c/input/oh_input_manager.h b/multimodalinput/kits/c/input/oh_input_manager.h
index 3934be3b9a6cb19b0627d706c5bd9dc89ee03dfb..52b878d79c55d36aaf5a7e3e4318d34f690f84a4 100644
--- a/multimodalinput/kits/c/input/oh_input_manager.h
+++ b/multimodalinput/kits/c/input/oh_input_manager.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2024 Huawei Device Co., Ltd.
+ * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -166,6 +166,20 @@ typedef enum Input_KeyboardType {
KEYBOARD_TYPE_REMOTE_CONTROL = 5,
} Input_KeyboardType;
+/**
+ * @brief Enumerates the injection authorization status.
+ *
+ * @since 20
+ */
+typedef enum Input_InjectionStatus {
+ /** Unauthorized */
+ UNAUTHORIZED = 0,
+ /** Authorizing */
+ AUTHORIZING = 1,
+ /** Authorized */
+ AUTHORIZED = 2,
+} Input_InjectionStatus;
+
/**
* @brief Enumerates event source types.
*
@@ -269,7 +283,37 @@ typedef enum Input_Result {
* @error No keyboard device connected
* @since 15
*/
- INPUT_KEYBOARD_DEVICE_NOT_EXIST = 3900002
+ INPUT_KEYBOARD_DEVICE_NOT_EXIST = 3900002,
+ /**
+ * @error Authorizing
+ * @since 20
+ */
+ INPUT_INJECTION_AUTHORIZING = 3900005,
+ /**
+ * @error Too many operations
+ * @since 20
+ */
+ INPUT_INJECTION_OPERATION_FREQUENT = 3900006,
+ /**
+ * @error Authorized
+ * @since 20
+ */
+ INPUT_INJECTION_AUTHORIZED = 3900007,
+ /**
+ * @error Authorized to other applications
+ * @since 20
+ */
+ INPUT_INJECTION_AUTHORIZED_OTHERS = 3900008,
+ /**
+ * @error App is not the focused app
+ * @since 20
+ */
+ INPUT_APP_NOT_FOCUSED = 3900009,
+ /**
+ * @error The device has no pointer
+ * @since 20
+ */
+ INPUT_DEVICE_NO_POINTER = 3900010,
} Input_Result;
/**
@@ -331,6 +375,13 @@ typedef void (*Input_DeviceAddedCallback)(int32_t deviceId);
*/
typedef void (*Input_DeviceRemovedCallback)(int32_t deviceId);
+/**
+ * @brief Defines the event injection callback.
+ * @param authorizedStatus Authorization status.
+ * @since 20
+ */
+typedef void (*Input_InjectAuthorizeCallback)(Input_InjectionStatus authorizedStatus);
+
/**
* @brief Defines the structure for the interceptor of event callbacks,
* including mouseCallback, touchCallback, and axisCallback.
@@ -598,6 +649,18 @@ int32_t OH_Input_GetKeyEventDisplayId(const struct Input_KeyEvent* keyEvent);
*/
int32_t OH_Input_InjectMouseEvent(const struct Input_MouseEvent* mouseEvent);
+/**
+ * @brief Inject mouse event using global coordinate.
+ *
+ * @param mouseEvent - the mouse event to be injected, set up effective globalX globalY.
+ * @return OH_Input_InjectMouseEventGlobal function result code.
+ * {@link INPUT_SUCCESS} inject mouseEvent success.\n
+ * {@link INPUT_PERMISSION_DENIED} Permission verification failed.\n
+ * {@link INPUT_PARAMETER_ERROR} Parameter check failed.\n
+ * @since 20
+ */
+int32_t OH_Input_InjectMouseEventGlobal(const struct Input_MouseEvent* mouseEvent);
+
/**
* @brief Creates a mouse event object.
*
@@ -798,6 +861,42 @@ void OH_Input_SetMouseEventDisplayId(struct Input_MouseEvent* mouseEvent, int32_
*/
int32_t OH_Input_GetMouseEventDisplayId(const struct Input_MouseEvent* mouseEvent);
+/**
+ * @brief Set the global X coordinate of the mouse event.
+ *
+ * @param mouseEvent Mouse event object.
+ * @param globalX Global X coordinate.
+ * @since 20
+ */
+void OH_Input_SetMouseEventGlobalX(struct Input_MouseEvent* mouseEvent, int32_t globalX);
+
+/**
+ * @brief Queries the global X coordinate of the mouse event.
+ *
+ * @param mouseEvent Mouse event object.
+ * @return Global X coordinate.
+ * @since 20
+ */
+int32_t OH_Input_GetMouseEventGlobalX(const struct Input_MouseEvent* mouseEvent);
+
+/**
+ * @brief Set the global Y coordinate of the mouse event.
+ *
+ * @param mouseEvent Mouse event object.
+ * @param globalY Global Y coordinate.
+ * @since 20
+ */
+void OH_Input_SetMouseEventGlobalY(struct Input_MouseEvent* mouseEvent, int32_t globalY);
+
+/**
+ * @brief Queries the global Y coordinate of the mouse event.
+ *
+ * @param mouseEvent Mouse event object.
+ * @return Global Y coordinate.
+ * @since 20
+ */
+int32_t OH_Input_GetMouseEventGlobalY(const struct Input_MouseEvent* mouseEvent);
+
/**
* @brief Inject touch event.
*
@@ -810,6 +909,17 @@ int32_t OH_Input_GetMouseEventDisplayId(const struct Input_MouseEvent* mouseEven
*/
int32_t OH_Input_InjectTouchEvent(const struct Input_TouchEvent* touchEvent);
+/**
+ * @brief Inject touch event using global coordinate.
+ *
+ * @param touchEvent - the touch event to be injected, set up effective globalX globalY.
+ * @return OH_Input_InjectTouchEventGlobal function result code.
+ * {@link INPUT_SUCCESS} inject touchEvent success.\n
+ * {@link INPUT_PARAMETER_ERROR} Parameter check failed.\n
+ * @since 20
+ */
+int32_t OH_Input_InjectTouchEventGlobal(const struct Input_TouchEvent* touchEvent);
+
/**
* @brief Creates a touch event object.
*
@@ -969,6 +1079,42 @@ void OH_Input_SetTouchEventDisplayId(struct Input_TouchEvent* touchEvent, int32_
*/
int32_t OH_Input_GetTouchEventDisplayId(const struct Input_TouchEvent* touchEvent);
+/**
+ * @brief Set the global X coordinate of the touch event.
+ *
+ * @param touchEvent Touch event object.
+ * @param globalX Global X coordinate.
+ * @since 20
+ */
+void OH_Input_SetTouchEventGlobalX(struct Input_TouchEvent* touchEvent, int32_t globalX);
+
+/**
+ * @brief Queries the global X coordinate of the touch event.
+ *
+ * @param touchEvent Touch event object.
+ * @return Global X coordinate.
+ * @since 20
+ */
+int32_t OH_Input_GetTouchEventGlobalX(const struct Input_TouchEvent* touchEvent);
+
+/**
+ * @brief Set the global Y coordinate of the touch event.
+ *
+ * @param touchEvent Touch event object.
+ * @param globalY Global Y coordinate.
+ * @since 20
+ */
+void OH_Input_SetTouchEventGlobalY(struct Input_TouchEvent* touchEvent, int32_t globalY);
+
+/**
+ * @brief Queries the global Y coordinate of the touch event.
+ *
+ * @param touchEvent Touch event object.
+ * @return Global Y coordinate.
+ * @since 20
+ */
+int32_t OH_Input_GetTouchEventGlobalY(const struct Input_TouchEvent* touchEvent);
+
/**
* @brief Cancels event injection and revokes authorization.
*
@@ -977,6 +1123,37 @@ int32_t OH_Input_GetTouchEventDisplayId(const struct Input_TouchEvent* touchEven
*/
void OH_Input_CancelInjection();
+/**
+ * @brief Requests for injection authorization.
+ *
+ * @param callback - callback used to return the result.
+ * @return OH_Input_RequestInjection function result code.
+ * {@link INPUT_SUCCESS} Success.\n
+ * {@link INPUT_PARAMETER_ERROR} The callback is NULL.\n
+ * {@INPUT_DEVICE_NOT_SUPPORTED} Capability not supported.\n
+ * {@link INPUT_SERVICE_EXCEPTION} Service error.\n
+ * {@link INPUT_INJECTION_AUTHORIZING} Authorizing.\n
+ * {@link INPUT_INJECTION_OPERATION_FREQUENT} Too many operations.\n
+ * {@link INPUT_INJECTION_AUTHORIZED} Authorized.\n
+ * {@link INPUT_INJECTION_AUTHORIZED_OTHERS} Authorized to other applications.\n
+ * @since 20
+ */
+
+Input_Result OH_Input_RequestInjection(Input_InjectAuthorizeCallback callback);
+
+/**
+ * @brief Queries the injection authorization status.
+ *
+ * @param status Injection authorization status. For details, see {@Link Input_InjectionStatus}.
+ * @return OH_Input_QueryAuthorizedStatus function result code.
+ * {@link INPUT_SUCCESS} Success.\n
+ * {@link INPUT_PARAMETER_ERROR} The status is NULL\n
+ * {@link INPUT_SERVICE_EXCEPTION} Service error.\n
+ * @since 20
+ */
+
+Input_Result OH_Input_QueryAuthorizedStatus(Input_InjectionStatus* status);
+
/**
* @brief Creates an axis event object.
*
@@ -1238,6 +1415,54 @@ Input_Result OH_Input_SetAxisEventDisplayId(Input_AxisEvent* axisEvent, int32_t
*/
Input_Result OH_Input_GetAxisEventDisplayId(const Input_AxisEvent* axisEvent, int32_t* displayId);
+/**
+ * @brief Set the global X coordinate of the axis event.
+ *
+ * @param axisEvent Axis event object. For details, see {@Link Input_AxisEvent}.
+ * @param globalX Global X coordinate.
+ * @return OH_Input_SetAxisEventGlobalX function result code.
+ * {@link INPUT_SUCCESS} Success.\n
+ * {@link INPUT_PARAMETER_ERROR} The axisEvent is NULL.\n
+ * @since 20
+ */
+Input_Result OH_Input_SetAxisEventGlobalX(struct Input_AxisEvent* axisEvent, int32_t globalX);
+
+/**
+ * @brief Queries the global X coordinate of the axis event.
+ *
+ * @param axisEvent Axis event object. For details, see {@Link Input_AxisEvent}.
+ * @param globalX Global X coordinate.
+ * @return OH_Input_GetAxisEventGlobalX function result code.
+ * {@link INPUT_SUCCESS} Success.\n
+ * {@link INPUT_PARAMETER_ERROR} The axisEvent is NULL or the globalX is NULL.\n
+ * @since 20
+ */
+Input_Result OH_Input_GetAxisEventGlobalX(const Input_AxisEvent* axisEvent, int32_t* globalX);
+
+/**
+ * @brief Set the global Y coordinate of the axis event.
+ *
+ * @param axisEvent Axis event object. For details, see {@Link Input_AxisEvent}.
+ * @param globalY Global Y coordinate.
+ * @return OH_Input_SetAxisEventGlobalY function result code.
+ * {@link INPUT_SUCCESS} Success.\n
+ * {@link INPUT_PARAMETER_ERROR} The axisEvent is NULL.\n
+ * @since 20
+ */
+Input_Result OH_Input_SetAxisEventGlobalY(struct Input_AxisEvent* axisEvent, int32_t globalY);
+
+/**
+ * @brief Queries the global Y coordinate of the axis event.
+ *
+ * @param axisEvent Axis event object. For details, see {@Link Input_AxisEvent}.
+ * @param globalY Global Y coordinate.
+ * @return OH_Input_GetAxisEventGlobalY function result code.
+ * {@link INPUT_SUCCESS} Success.\n
+ * {@link INPUT_PARAMETER_ERROR} The axisEvent is NULL or the globalY is NULL.\n
+ * @since 20
+ */
+Input_Result OH_Input_GetAxisEventGlobalY(const Input_AxisEvent* axisEvent, int32_t* globalY);
+
/**
* @brief Adds a listener of key events.
*
@@ -1634,44 +1859,6 @@ Input_Result OH_Input_AddHotkeyMonitor(const Input_Hotkey* hotkey, Input_HotkeyC
*/
Input_Result OH_Input_RemoveHotkeyMonitor(const Input_Hotkey* hotkey, Input_HotkeyCallback callback);
-/**
- * @brief Registers a listener for device hot swap events.
- *
- * @param listener Pointer to an {@Link Input_DeviceListener} object.
- *
- * @return OH_Input_RegisterDeviceListener status code, specifically,
- * {@link INPUT_SUCCESS} if the operation is successful;\n
- * {@link INPUT_PARAMETER_ERROR} if listener is NULL;
- * @syscap SystemCapability.MultimodalInput.Input.Core
- * @since 13
- */
-Input_Result OH_Input_RegisterDeviceListener(Input_DeviceListener* listener);
-
-/**
- * @brief Unregisters the listener for device hot swap events.
- *
- * @param listener Pointer to the listener for device hot swap events. For details, see {@Link Input_DeviceListener}.
- *
- * @return OH_Input_UnregisterDeviceListener status code, specifically,
- * {@link INPUT_SUCCESS} if the operation is successful;\n
- * {@link INPUT_PARAMETER_ERROR} if listener is NULL or no listener is registered;
- * {@link INPUT_SERVICE_EXCEPTION} if the service is abnormal.
- * @syscap SystemCapability.MultimodalInput.Input.Core
- * @since 13
- */
-Input_Result OH_Input_UnregisterDeviceListener(Input_DeviceListener* listener);
-
-/**
- * @brief Unregisters the listener for all device hot swap events.
- *
- * @return OH_Input_UnregisterDeviceListener status code, specifically,
- * {@link INPUT_SUCCESS} if the operation is successful;\n
- * {@link INPUT_SERVICE_EXCEPTION} if the service is abnormal.
- * @syscap SystemCapability.MultimodalInput.Input.Core
- * @since 13
- */
-Input_Result OH_Input_UnregisterDeviceListeners();
-
/**
* @brief Obtains the IDs of all input devices.
*
@@ -1823,6 +2010,44 @@ Input_Result OH_Input_GetDeviceVendor(Input_DeviceInfo *deviceInfo, int32_t *ven
*/
Input_Result OH_Input_GetDeviceAddress(Input_DeviceInfo *deviceInfo, char **address);
+/**
+ * @brief Registers a listener for device hot swap events.
+ *
+ * @param listener Pointer to an {@Link Input_DeviceListener} object.
+ *
+ * @return OH_Input_RegisterDeviceListener status code, specifically,
+ * {@link INPUT_SUCCESS} if the operation is successful;\n
+ * {@link INPUT_PARAMETER_ERROR} if listener is NULL;
+ * @syscap SystemCapability.MultimodalInput.Input.Core
+ * @since 13
+ */
+Input_Result OH_Input_RegisterDeviceListener(Input_DeviceListener* listener);
+
+/**
+ * @brief Unregisters the listener for device hot swap events.
+ *
+ * @param listener Pointer to the listener for device hot swap events. For details, see {@Link Input_DeviceListener}.
+ *
+ * @return OH_Input_UnregisterDeviceListener status code, specifically,
+ * {@link INPUT_SUCCESS} if the operation is successful;\n
+ * {@link INPUT_PARAMETER_ERROR} if listener is NULL or no listener is registered;
+ * {@link INPUT_SERVICE_EXCEPTION} if the service is abnormal.
+ * @syscap SystemCapability.MultimodalInput.Input.Core
+ * @since 13
+ */
+Input_Result OH_Input_UnregisterDeviceListener(Input_DeviceListener* listener);
+
+/**
+ * @brief Unregisters the listener for all device hot swap events.
+ *
+ * @return OH_Input_UnregisterDeviceListener status code, specifically,
+ * {@link INPUT_SUCCESS} if the operation is successful;\n
+ * {@link INPUT_SERVICE_EXCEPTION} if the service is abnormal.
+ * @syscap SystemCapability.MultimodalInput.Input.Core
+ * @since 13
+ */
+Input_Result OH_Input_UnregisterDeviceListeners();
+
/**
* @brief Obtains the function key status.
*
@@ -1837,6 +2062,35 @@ Input_Result OH_Input_GetDeviceAddress(Input_DeviceInfo *deviceInfo, char **addr
* @since 15
*/
Input_Result OH_Input_GetFunctionKeyState(int32_t keyCode, int32_t *state);
+
+/**
+ * @brief Get pointer location.
+ *
+ * @param displayId The displayId for the pointer location.
+ * @param displayX The displayX for the pointer location.
+ * @param displayY The displayY for the pointer location.
+ * @return OH_Input_GetPointerLocation function api result code
+ * {@link INPUT_SUCCESS} if the operation is successful;
+ * {@link INPUT_PARAMETER_ERROR} if parameter is a null pointer;
+ * {@link INPUT_APP_NOT_FOCUSED} if the app is not the focused app;
+ * {@link INPUT_DEVICE_NO_POINTER} if the device has no pointer;
+ * {@link INPUT_SERVICE_EXCEPTION} if the service is exception.
+ * @since 20
+ */
+Input_Result OH_Input_GetPointerLocation(int32_t *displayId, double *displayX, double *displayY);
+
+/**
+ * @brief Queries the maximum number of touch points supported by the current device.
+ * If -1 is returned, the number is unknown.
+ *
+ * @param count Maximum number of touch points supported.
+ * @return OH_Input_QueryMaxTouchPoints function api result code
+ * {@link INPUT_SUCCESS} if the operation is successful;
+ * {@link INPUT_PARAMETER_ERROR} if count is a null pointer.
+ * @since 20
+*/
+Input_Result OH_Input_QueryMaxTouchPoints(int32_t *count);
+
#ifdef __cplusplus
}
#endif
diff --git a/multimodalinput/kits/c/ohinput.ndk.json b/multimodalinput/kits/c/ohinput.ndk.json
index ed19a127abf21626e7e1cb6a0c0ca3786106effa..2747b8fa116a9a466fdf8ea14418d3bb98e44bde 100644
--- a/multimodalinput/kits/c/ohinput.ndk.json
+++ b/multimodalinput/kits/c/ohinput.ndk.json
@@ -315,10 +315,6 @@
"first_introduced": "12",
"name": "OH_Input_RemoveInputEventInterceptor"
},
- {
- "first_introduced": "14",
- "name": "OH_Input_GetIntervalSinceLastInput"
- },
{
"first_introduced": "14",
"name": "OH_Input_CreateAllSystemHotkeys"
@@ -371,6 +367,10 @@
"first_introduced": "14",
"name": "OH_Input_GetRepeat"
},
+ {
+ "first_introduced": "14",
+ "name": "OH_Input_GetIntervalSinceLastInput"
+ },
{
"first_introduced": "13",
"name": "OH_Input_GetDeviceIds"
@@ -498,5 +498,76 @@
{
"first_introduced": "15",
"name": "OH_Input_GetAxisEventDisplayId"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_QueryMaxTouchPoints"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_RequestInjection"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_QueryAuthorizedStatus"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetPointerLocation"
+ },
+ {
+ "name": "OH_Input_SetMouseEventGlobalX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetMouseEventGlobalX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_SetMouseEventGlobalY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetMouseEventGlobalY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_SetTouchEventGlobalX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetTouchEventGlobalX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_SetTouchEventGlobalY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetTouchEventGlobalY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_SetAxisEventGlobalX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetAxisEventGlobalX"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_SetAxisEventGlobalY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_GetAxisEventGlobalY"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_InjectMouseEventGlobal"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Input_InjectTouchEventGlobal"
}
]
\ No newline at end of file
diff --git a/ndk_targets.gni b/ndk_targets.gni
index 25da4956f0ebd55ca422b24b0de722e5394c0dcc..f7aa24617db5bf1e9d0e2c376574aa47a3333ae1 100644
--- a/ndk_targets.gni
+++ b/ndk_targets.gni
@@ -35,6 +35,8 @@ _ndk_library_targets = [
"//interface/sdk_c/hiviewdfx/hitrace:libhitrace_ndk",
"//interface/sdk_c/network/netstack/net_websocket:libnet_websocket",
"//interface/sdk_c/network/netstack/net_websocket:websocket_header",
+ "//interface/sdk_c/network/netstack/net_http:libnet_http",
+ "//interface/sdk_c/network/netstack/net_http:nethttp_header",
"//interface/sdk_c/network/netssl:libnet_ssl_ndk",
"//interface/sdk_c/network/netssl:net_ssl_header",
"//interface/sdk_c/security/access_token:libability_access_control",
@@ -77,6 +79,8 @@ _ndk_library_targets = [
"//interface/sdk_c/graphic/graphic_2d/GLES2:GLES2_header",
"//interface/sdk_c/graphic/graphic_2d/GLES3:libGLESv3_ndk",
"//interface/sdk_c/graphic/graphic_2d/GLES3:GLES3_header",
+ "//interface/sdk_c/graphic/graphic_2d/GL4:libGLv4_ndk",
+ "//interface/sdk_c/graphic/graphic_2d/GL4:GL4_header",
"//interface/sdk_c/graphic/graphic_2d/KHR:KHR_header",
"//interface/sdk_c/graphic/graphic_2d/native_window:libnative_window_ndk",
"//interface/sdk_c/graphic/graphic_2d/native_window:native_window_header",
@@ -86,6 +90,8 @@ _ndk_library_targets = [
"//interface/sdk_c/graphic/graphic_2d/native_image:native_image_header",
"//interface/sdk_c/graphic/graphic_2d/native_vsync:libnative_vsync_ndk",
"//interface/sdk_c/graphic/graphic_2d/native_vsync:native_vsync_header",
+ "//interface/sdk_c/graphic/graphic_2d/native_fence:libnative_fence_ndk",
+ "//interface/sdk_c/graphic/graphic_2d/native_fence:native_fence_header",
"//interface/sdk_c/graphic/graphic_2d/native_color_space_manager:libnative_color_space_manager_ndk",
"//interface/sdk_c/graphic/graphic_2d/native_color_space_manager:native_color_space_manager_header",
"//interface/sdk_c/graphic/graphic_2d/native_drawing:libnative_drawing_ndk",
@@ -136,12 +142,16 @@ _ndk_library_targets = [
"//interface/sdk_c/multimedia/player_framework/avscreen_capture:native_avscreen_capture_header",
"//interface/sdk_c/multimedia/player_framework/avplayer:libavplayer",
"//interface/sdk_c/multimedia/player_framework/avplayer:avplayer_header",
+ "//interface/sdk_c/multimedia/player_framework/lowpower_avsink:lowpower_avsink_header",
+ "//interface/sdk_c/multimedia/player_framework/lowpower_avsink:liblowpower_avsink",
"//interface/sdk_c/multimedia/player_framework/avrecorder:libavrecorder",
"//interface/sdk_c/multimedia/player_framework/avrecorder:avrecorder_header",
"//interface/sdk_c/multimedia/player_framework/avmetadata_extractor:libavmetadata_extractor",
"//interface/sdk_c/multimedia/player_framework/avmetadata_extractor:avmetadata_extractor_header",
"//interface/sdk_c/multimedia/player_framework/avimage_generator:libavimage_generator",
"//interface/sdk_c/multimedia/player_framework/avimage_generator:avimage_generator_header",
+ "//interface/sdk_c/multimedia/player_framework/avtranscoder:libavtranscoder",
+ "//interface/sdk_c/multimedia/player_framework/avtranscoder:avtranscoder_header",
"//interface/sdk_c/multimedia/audio_framework:libohaudio_ndk",
"//interface/sdk_c/multimedia/audio_framework:ohaudio_header",
"//interface/sdk_c/multimedia/av_session:libohavsession_ndk",
@@ -190,6 +200,8 @@ _ndk_library_targets = [
"//interface/sdk_c/distributeddatamgr/pasteboard:pasteboard_ndk_header",
"//interface/sdk_c/distributeddatamgr/preferences:preferences_ndk_header",
"//interface/sdk_c/distributeddatamgr/preferences:libohpreferences",
+ "//interface/sdk_c/distributedhardware/device_manager:libdevicemanager_ndk",
+ "//interface/sdk_c/distributedhardware/device_manager:devicemanager_ndk_header",
"//interface/sdk_c/drivers/external_device_manager/usb:libusb_ndk",
"//interface/sdk_c/drivers/external_device_manager/usb:usb_header",
"//interface/sdk_c/drivers/external_device_manager/usb_serial:libusb_serial",
@@ -254,6 +266,8 @@ _ndk_library_targets = [
"//interface/sdk_c/telephony/core_service:telephony_radio_header",
"//interface/sdk_c/ConnectivityKit/wifi:libwifi_ndk",
"//interface/sdk_c/ConnectivityKit/wifi:wifi_ndk_header",
+ "//interface/sdk_c/TEEKit:libteec",
+ "//interface/sdk_c/TEEKit:tee_ndk_header",
]
_ndk_base_libs = [
@@ -297,8 +311,12 @@ if (host_os == "mac") {
]
}
-all_ndk_targets_list = _ndk_library_targets + _ndk_base_libs +
- _ndk_sysroot_uapi + _ndk_cmake + _ndk_ninja
+_ndk_tee_build_tool =
+ [ "//base/tee/tee_dev_kit/sdk/build:tee_ndk_ta_linux_compile" ]
+
+all_ndk_targets_list =
+ _ndk_library_targets + _ndk_base_libs + _ndk_sysroot_uapi + _ndk_cmake +
+ _ndk_ninja + _ndk_tee_build_tool
if (build_windows_ndk_target) {
all_ndk_targets_list +=
diff --git a/network/netmanager/include/net_connection.h b/network/netmanager/include/net_connection.h
index 1cd795d0568fa1e3baf0a249651b974108324c83..0ab63a063080a619c9d6d44964064b819a5e8a44 100644
--- a/network/netmanager/include/net_connection.h
+++ b/network/netmanager/include/net_connection.h
@@ -371,6 +371,36 @@ NetConn_ErrorCode OH_NetConn_SetPacUrl(const char *pacUrl);
* @since 15
*/
NetConn_ErrorCode OH_NetConn_GetPacUrl(char *pacUrl);
+
+/**
+ * @brief Query a network probe result.
+ *
+ * @param destination Pointer to the destination.
+ * @param duration probe duration. Unit: second.
+ * @param probeResultInfo Pointer to probe loss rate and rtt.
+ * @return 0 - Success.
+ * 201 - Missing permissions.
+ * 401 - Parameter error.
+ * 2100003 - Internal error.
+ * @permission ohos.permission.INTERNET
+ * @since 20
+ */
+int32_t OH_NetConn_QueryProbeResult(char *destination, int32_t duration, NetConn_ProbeResultInfo *probeResultInfo);
+
+/**
+ * @brief Query a network trace route.
+ *
+ * @param destination Pointer to the destination.
+ * @param option Pointer to the trace route option
+ * @param traceRouteInfo Pointer to trace route result.
+ * @return 0 - Success.
+ * 201 - Missing permissions.
+ * @permission ohos.permission.INTERNET and ohos.permission.LOCATION and ohos.permission.ACCESS_TRACE_ROUTE_INFO
+ * @since 20
+ */
+int32_t OH_NetConn_QueryTraceRoute(char *destination, NetConn_TraceRouteOption *option,
+ NetConn_TraceRouteInfo *traceRouteInfo);
+
#ifdef __cplusplus
}
#endif
diff --git a/network/netmanager/include/net_connection_type.h b/network/netmanager/include/net_connection_type.h
index 664656fd5a7410eca228c7c32ae8108ff43b41b8..2fa5511905387b611e2d3a4b40c604a69b720440 100644
--- a/network/netmanager/include/net_connection_type.h
+++ b/network/netmanager/include/net_connection_type.h
@@ -53,6 +53,7 @@ extern "C" {
#define NETCONN_MAX_ROUTE_SIZE 64
#define NETCONN_MAX_EXCLUSION_SIZE 256
#define NETCONN_MAX_STR_LEN 256
+#define NETCONN_MAX_RTT_NUM 4
/**
* @brief Defines network capabilities.
@@ -130,6 +131,18 @@ typedef enum NetConn_ErrorCode {
NETCONN_INTERNAL_ERROR = 2100003
} NetConn_ErrorCode;
+/**
+ * @brief Enumerates packets type of trace route.
+ *
+ * @since 20
+ */
+typedef enum NetConn_PacketsType {
+ /** ICMP */
+ NETCONN_PACKETS_ICMP = 0,
+ /** UDP */
+ NETCONN_PACKETS_UDP = 1
+} NetConn_PacketsType;
+
/**
* @brief Defines the network handle.
*
@@ -380,6 +393,44 @@ typedef struct NetConn_NetConnCallback {
OH_NetConn_NetBlockStatusChange onNetBlockStatusChange;
} NetConn_NetConnCallback;
+/**
+ * @brief Defines the probe result information.
+ *
+ * @since 20
+ */
+typedef struct NetConn_ProbeResultInfo {
+ /** Number of jumps */
+ uint8_t lossRate;
+ /** RTT in micro seconds, min/avg/max/std */
+ uint32_t rtt[NETCONN_MAX_RTT_NUM];
+} NetConn_ProbeResultInfo;
+
+/**
+ * @brief Defines the network trace route option.
+ *
+ * @since 20
+ */
+typedef struct NetConn_TraceRouteOption {
+ /** Maximum number of jumps, default is 30 */
+ uint8_t maxJumpNumber;
+ /** Packets type */
+ NetConn_PacketsType packetsType;
+} NetConn_TraceRouteOption;
+
+/**
+ * @brief Defines the trace route information.
+ *
+ * @since 20
+ */
+typedef struct NetConn_TraceRouteInfo {
+ /** Number of jumps */
+ uint8_t jumpNo;
+ /** host name or address */
+ char address[NETCONN_MAX_STR_LEN];
+ /** RTT in micro seconds */
+ uint32_t rtt[NETCONN_MAX_RTT_NUM];
+} NetConn_TraceRouteInfo;
+
#ifdef __cplusplus
}
#endif
diff --git a/network/netmanager/libnet_connection.ndk.json b/network/netmanager/libnet_connection.ndk.json
index 56325004e9c7e6378d22ad0f7fb94f20b2d53ad6..ed2a16131598098e136c2718e19eecb1c6c753e1 100644
--- a/network/netmanager/libnet_connection.ndk.json
+++ b/network/netmanager/libnet_connection.ndk.json
@@ -86,5 +86,13 @@
{
"first_introduced": "15",
"name": "OH_NetConn_GetPacUrl"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NetConn_QueryProbeResult"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NetConn_QueryTraceRoute"
}
]
\ No newline at end of file
diff --git a/network/netssl/BUILD.gn b/network/netssl/BUILD.gn
index a561b30af7b8f4d2829f6dd12b5cdd03f3ef112c..3f3a388fe1fa03641bc618efceb8f98df93f750a 100644
--- a/network/netssl/BUILD.gn
+++ b/network/netssl/BUILD.gn
@@ -19,7 +19,7 @@ ohos_ndk_library("libnet_ssl_ndk") {
output_extension = "so"
ndk_description_file = "./libnet_ssl_c.json"
min_compact_version = "1"
- system_capability = "SystemCapability.Communication.Netstack"
+ system_capability = "SystemCapability.Communication.NetStack"
system_capability_headers = [
"network/netstack/net_ssl/net_ssl_c.h",
diff --git a/network/netssl/include/net_ssl_c.h b/network/netssl/include/net_ssl_c.h
index 15d86407af31f76d38115ec32d6e9ed0a26a0aa6..ac4ae595993759f4a584606e9078b236c3ada69a 100644
--- a/network/netssl/include/net_ssl_c.h
+++ b/network/netssl/include/net_ssl_c.h
@@ -137,6 +137,21 @@ int32_t OH_Netstack_IsCleartextPermitted(bool *isCleartextPermitted);
*/
int32_t OH_Netstack_IsCleartextPermittedByHostName(const char *hostname, bool *isCleartextPermitted);
+
+/**
+ * @brief Checks whether the component is configured for Cleartext traffic interception.
+ *
+ * @return 0 - Success.
+ * 202 - Non-system applications use system APIs.
+ * 2100001 - Invalid parameter value.
+ * @param component Indicates the component name.
+ * @param componentCfg Indicates output parameter,
+ * {@code true} if the component is configured for Cleartext traffic interception, {@code false} otherwise.
+ * @systemapi Hide this for inner system use.
+ * @since 20
+ */
+int32_t OH_Netstack_IsCleartextCfgByComponent(const char *component, bool *componentCfg);
+
#ifdef __cplusplus
}
#endif
diff --git a/network/netssl/libnet_ssl_c.json b/network/netssl/libnet_ssl_c.json
index 4336fd70a34482a4ad1d7740f228abca28576ae3..9bf9f66d131e28653ffdc8daaaa29b52f7f72e13 100644
--- a/network/netssl/libnet_ssl_c.json
+++ b/network/netssl/libnet_ssl_c.json
@@ -22,5 +22,9 @@
{
"first_introduced":"18",
"name": "OH_Netstack_IsCleartextPermittedByHostName"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Netstack_IsCleartextCfgByComponent"
}
]
diff --git a/network/netstack/net_http/BUILD.gn b/network/netstack/net_http/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..1e95172283bfa492e2ca8dbdfd64df16f1be0bcc
--- /dev/null
+++ b/network/netstack/net_http/BUILD.gn
@@ -0,0 +1,34 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+
+ohos_ndk_library("libnet_http") {
+ output_name = "net_http"
+ output_extension = "so"
+ ndk_description_file = "./libnet_http.ndk.json"
+ min_compact_version = "1"
+ system_capability = "SystemCapability.Communication.NetStack"
+ system_capability_headers = [
+ "network/netstack/net_http.h",
+ "network/netstack/net_http_type.h",
+ ]
+}
+
+ohos_ndk_headers("nethttp_header") {
+ dest_dir = "$ndk_headers_out_dir/network/netstack"
+ sources = [
+ "net_http.h",
+ "net_http_type.h",
+ ]
+}
diff --git a/network/netstack/net_http/libnet_http.ndk.json b/network/netstack/net_http/libnet_http.ndk.json
new file mode 100644
index 0000000000000000000000000000000000000000..5a00aa6f2e8511bf6bc1cffefff8260590a71d2c
--- /dev/null
+++ b/network/netstack/net_http/libnet_http.ndk.json
@@ -0,0 +1,38 @@
+[
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_CreateHeaders"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_DestroyHeaders"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_SetHeaderValue"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_CreateRequest"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_Request"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_Destroy"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_GetHeaderValue"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_GetHeaderEntries"
+ },
+ {
+ "first_introduced":"20",
+ "name": "OH_Http_DestroyHeaderEntries"
+ }
+]
\ No newline at end of file
diff --git a/network/netstack/net_http/net_http.h b/network/netstack/net_http/net_http.h
new file mode 100644
index 0000000000000000000000000000000000000000..24878f4da63d389fe98b71b811af5b6a2c64675c
--- /dev/null
+++ b/network/netstack/net_http/net_http.h
@@ -0,0 +1,144 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup netstack
+ * @{
+ *
+ * @brief Defines the APIs for http.
+ *
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+
+/**
+ * @file net_http.h
+ * @brief Defines the APIs for http.
+ *
+ * @library libnet_http.so
+ * @kit NetworkKit
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+
+#ifndef NET_HTTP_H
+#define NET_HTTP_H
+
+#include
+#include
+
+#include "net_http_type.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Creates headers for a request or response.
+ *
+ * @return Http_Headers* Pointer to {@link Http_Headers}.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+Http_Headers *OH_Http_CreateHeaders(void);
+
+/**
+ * @brief Destroys the headers of a request or response.
+ *
+ * @param headers Pointer to the {@link Http_Headers} to be destroyed, headers ends with null.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+void OH_Http_DestroyHeaders(Http_Headers **headers);
+
+/**
+ * @brief Sets the key-value pair of the request or response header.
+ *
+ * @param headers Pointer to the {@link Http_Headers} to be set.
+ * @param name Key.
+ * @param value Value.
+ * @return uint32_t 0 - success. 401 - Parameter error. 2300027 - Out of memory.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+uint32_t OH_Http_SetHeaderValue(struct Http_Headers *headers, const char *name, const char *value);
+
+/**
+ * @brief Obtains the value of a request or response header by key.
+ *
+ * @param headers Pointer to {@link Http_Headers}.
+ * @param name Key.
+ * @return Http_HeaderValue* Pointer to the obtained {@link Http_HeaderValue}.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+Http_HeaderValue *OH_Http_GetHeaderValue(Http_Headers *headers, const char *name);
+
+/**
+ * @brief Obtains all the key-value pairs of a request or response header.
+ *
+ * @param headers Pointer to {@link Http_Headersaders}.
+ * @return Http_HeaderEntry* Pointers to all obtained key-value pairs {@link Http_HeaderEntry}.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+Http_HeaderEntry *OH_Http_GetHeaderEntries(Http_Headers *headers);
+
+/**
+ * @brief Destroys all key-value pairs obtained in {@link OH_Http_GetHeaderEntries}.
+ *
+ * @param headerEntry Pointer to the {@link Http_HeaderEntry} to be destroyed, headerEntry ends with null.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+void OH_Http_DestroyHeaderEntries(Http_HeaderEntry **headerEntry);
+
+/**
+ * @brief Create a http request.
+ *
+ * @param url Http request url.
+ * @return Pointer of HttpRequest if success; Null otherwise.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+Http_Request *OH_Http_CreateRequest(const char *url);
+
+/**
+ * @brief Initiates an HTTP request.
+ *
+ * @param request Pointer to {@link Http_Request}.
+ * @param callback Http response info, pointer to {@link Http_ResponseCallback}
+ * @param handler Callbacks to watch different events, pointer to {@link Http_EventsHandler}.
+ * @return 0 if success; non-0 otherwise. For details about error codes, see {@link Http_ErrCode}.
+ * @permission ohos.permission.INTERNET
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+int OH_Http_Request(Http_Request *request, Http_ResponseCallback callback, Http_EventsHandler handler);
+
+/**
+ * @brief Destroy the HTTP request.
+ *
+ * @param request Pointer to the http request {@link Http_Request}.
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+void OH_Http_Destroy(struct Http_Request **request);
+#ifdef __cplusplus
+}
+#endif
+#endif // NET_HTTP_H
+
+/** @} */
\ No newline at end of file
diff --git a/network/netstack/net_http/net_http_type.h b/network/netstack/net_http/net_http_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..612d0b9235d741f9f1912fea25cac2a408e6063e
--- /dev/null
+++ b/network/netstack/net_http/net_http_type.h
@@ -0,0 +1,570 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup netstack
+ * @{
+ *
+ * @brief Provides C APIs for the Http client module.
+ *
+ * @since 20
+ */
+
+/**
+ * @file net_http_type.h
+ * @brief Defines the data structure for the C APIs of the http module.
+ *
+ * @library libnet_http.so
+ * @kit NetworkKit
+ * @syscap SystemCapability.Communication.NetStack
+ * @since 20
+ */
+
+#ifndef NET_HTTP_TYPE_H
+#define NET_HTTP_TYPE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define OHOS_HTTP_MAX_PATH_LEN 128
+#define OHOS_HTTP_MAX_STR_LEN 256
+#define OHOS_HTTP_DNS_SERVER_NUM_MAX 3
+
+/**
+ * @brief Defines http error code.
+ *
+ * @since 20
+ */
+typedef enum Http_ErrCode {
+ /** Operation success. */
+ OH_HTTP_RESULT_OK = 0,
+ /** @brief Parameter error. */
+ OH_HTTP_PARAMETER_ERROR = 401,
+ /** @brief Permission denied. */
+ OH_HTTP_PERMISSION_DENIED = 201,
+ /** @brief Error code base. */
+ OH_HTTP_NETSTACK_E_BASE = 2300000,
+ /** @brief Unsupported protocol. */
+ OH_HTTP_UNSUPPORTED_PROTOCOL = (OH_HTTP_NETSTACK_E_BASE + 1),
+ /** @brief Invalid URL format or missing URL. */
+ OH_HTTP_INVALID_URL = (OH_HTTP_NETSTACK_E_BASE + 3),
+ /** @brief Failed to resolve the proxy name. */
+ OH_HTTP_RESOLVE_PROXY_FAILED = (OH_HTTP_NETSTACK_E_BASE + 5),
+ /** @brief Failed to resolve the host name. */
+ OH_HTTP_RESOLVE_HOST_FAILED = (OH_HTTP_NETSTACK_E_BASE + 6),
+ /** @brief Failed to connect to the server. */
+ OH_HTTP_CONNECT_SERVER_FAILED = (OH_HTTP_NETSTACK_E_BASE + 7),
+ /** @brief Invalid server response. */
+ OH_HTTP_INVALID_SERVER_RESPONSE = (OH_HTTP_NETSTACK_E_BASE + 8),
+ /** @brief Access to the remote resource denied. */
+ OH_HTTP_ACCESS_REMOTE_DENIED = (OH_HTTP_NETSTACK_E_BASE + 9),
+ /** @brief Error in the HTTP2 framing layer. */
+ OH_HTTP_HTTP2_FRAMING_ERROR = (OH_HTTP_NETSTACK_E_BASE + 16),
+ /** @brief Transferred a partial file. */
+ OH_HTTP_TRANSFER_PARTIAL_FILE = (OH_HTTP_NETSTACK_E_BASE + 18),
+ /** @brief Failed to write the received data to the disk or application. */
+ OH_HTTP_WRITE_DATA_FAILED = (OH_HTTP_NETSTACK_E_BASE + 23),
+ /** @brief Upload failed. */
+ OH_HTTP_UPLOAD_FAILED = (OH_HTTP_NETSTACK_E_BASE + 25),
+ /** @brief Failed to open or read local data from the file or application. */
+ OH_HTTP_OPEN_LOCAL_DATA_FAILED = (OH_HTTP_NETSTACK_E_BASE + 26),
+ /** @brief Out of memory. */
+ OH_HTTP_OUT_OF_MEMORY = (OH_HTTP_NETSTACK_E_BASE + 27),
+ /** @brief Operation timeout. */
+ OH_HTTP_OPERATION_TIMEOUT = (OH_HTTP_NETSTACK_E_BASE + 28),
+ /** @brief The number of redirections reaches the maximum allowed. */
+ OH_HTTP_TOO_MANY_REDIRECTIONS = (OH_HTTP_NETSTACK_E_BASE + 47),
+ /** @brief The server returned nothing (no header or data). */
+ OH_HTTP_SERVER_RETURNED_NOTHING = (OH_HTTP_NETSTACK_E_BASE + 52),
+ /** @brief Failed to send data to the peer. */
+ OH_HTTP_SEND_DATA_FAILED = (OH_HTTP_NETSTACK_E_BASE + 55),
+ /** @brief Failed to receive data from the peer. */
+ OH_HTTP_RECEIVE_DATA_FAILED = (OH_HTTP_NETSTACK_E_BASE + 56),
+ /** @brief Local SSL certificate error. */
+ OH_HTTP_SSL_CERTIFICATE_ERROR = (OH_HTTP_NETSTACK_E_BASE + 58),
+ /** @brief The specified SSL cipher cannot be used. */
+ OH_HTTP_SSL_CIPHER_USED_ERROR = (OH_HTTP_NETSTACK_E_BASE + 59),
+ /** @brief Invalid SSL peer certificate or SSH remote key. */
+ OH_HTTP_INVALID_SSL_PEER_CERT = (OH_HTTP_NETSTACK_E_BASE + 60),
+ /** @brief Invalid HTTP encoding format. */
+ OH_HTTP_INVALID_ENCODING_FORMAT = (OH_HTTP_NETSTACK_E_BASE + 61),
+ /** @brief Maximum file size exceeded. */
+ OH_HTTP_FILE_TOO_LARGE = (OH_HTTP_NETSTACK_E_BASE + 63),
+ /** @brief Remote disk full. */
+ OH_HTTP_REMOTE_DISK_FULL = (OH_HTTP_NETSTACK_E_BASE + 70),
+ /** @brief Remote file already exists. */
+ OH_HTTP_REMOTE_FILE_EXISTS = (OH_HTTP_NETSTACK_E_BASE + 73),
+ /** @brief The SSL CA certificate does not exist or is inaccessible. */
+ OH_HTTP_SSL_CA_NOT_EXIST = (OH_HTTP_NETSTACK_E_BASE + 77),
+ /** @brief Remote file not found. */
+ OH_HTTP_REMOTE_FILE_NOT_FOUND = (OH_HTTP_NETSTACK_E_BASE + 78),
+ /** @brief Authentication error. */
+ OH_HTTP_AUTHENTICATION_ERROR = (OH_HTTP_NETSTACK_E_BASE + 94),
+ /** @brief It is not allowed to access this domain. */
+ OH_HTTP_ACCESS_DOMAIN_NOT_ALLOWED = (OH_HTTP_NETSTACK_E_BASE + 998),
+ /** @brief Unknown error. */
+ OH_HTTP_UNKNOWN_ERROR = (OH_HTTP_NETSTACK_E_BASE + 999)
+} Http_ErrCode;
+
+/**
+ * @brief Defines http response code.
+ *
+ * @since 20
+ */
+typedef enum Http_ResponseCode {
+ /** @brief The request was successful. */
+ OH_HTTP_OK = 200,
+ /** @brief Successfully requested and created a new resource. */
+ OH_HTTP_CREATED = 201,
+ /** @brief The request has been accepted but has not been processed completely. */
+ OH_HTTP_ACCEPTED = 202,
+ /** @brief Unauthorized information. The request was successful. */
+ OH_HTTP_NON_AUTHORITATIVE_INFO = 203,
+ /** @brief No content. The server successfully processed, but did not return content. */
+ OH_HTTP_NO_CONTENT = 204,
+ /** @brief Reset the content. */
+ OH_HTTP_RESET = 205,
+ /** @brief Partial content. The server successfully processed some GET requests. */
+ OH_HTTP_PARTIAL = 206,
+ /** @brief Multiple options. */
+ OH_HTTP_MULTI_CHOICE = 300,
+ /**
+ * @brief Permanently move. The requested resource has been permanently moved to a new URI,
+ * and the returned information will include the new URI. The browser will automatically redirect to the new URI.
+ */
+ OH_HTTP_MOVED_PERM = 301,
+ /** @brief Temporary movement. */
+ OH_HTTP_MOVED_TEMP = 302,
+ /** @brief View other addresses. */
+ OH_HTTP_SEE_OTHER = 303,
+ /** @brief Not modified. */
+ OH_HTTP_NOT_MODIFIED = 304,
+ /** @brief Using proxies. */
+ OH_HTTP_USE_PROXY = 305,
+ /** @brief The server cannot understand the syntax error error requested by the client. */
+ OH_HTTP_BAD_REQUEST = 400,
+ /** @brief Request for user authentication. */
+ OH_HTTP_UNAUTHORIZED = 401,
+ /** @brief Reserved for future use. */
+ OH_HTTP_PAYMENT_REQUIRED = 402,
+ /** @brief The server understands the request from the requesting client, but refuses to execute it. */
+ OH_HTTP_FORBIDDEN = 403,
+ /** @brief The server was unable to find resources (web pages) based on the client's request. */
+ OH_HTTP_NOT_FOUND = 404,
+ /** @brief The method in the client request is prohibited. */
+ OH_HTTP_BAD_METHOD = 405,
+ /** @brief The server unabled to complete request based on the content characteristics requested by the client. */
+ OH_HTTP_NOT_ACCEPTABLE = 406,
+ /** @brief Request authentication of the proxy's identity. */
+ OH_HTTP_PROXY_AUTH = 407,
+ /** @brief The request took too long and timed out. */
+ OH_HTTP_CLIENT_TIMEOUT = 408,
+ /**
+ * @brief The server may have returned this code when completing the client's PUT request,
+ * as there was a conflict when the server was processing the request.
+ */
+ OH_HTTP_CONFLICT = 409,
+ /** @brief The resource requested by the client no longer exists. */
+ OH_HTTP_GONE = 410,
+ /** @brief The server is unable to process request information sent by the client without Content Length. */
+ OH_HTTP_LENGTH_REQUIRED = 411,
+ /** @brief The prerequisite for requesting information from the client is incorrect. */
+ OH_HTTP_PRECON_FAILED = 412,
+ /** @brief The request was rejected because the requested entity was too large for the server to process. */
+ OH_HTTP_ENTITY_TOO_LARGE = 413,
+ /** @brief The requested URI is too long (usually a URL) and the server cannot process it. */
+ OH_HTTP_REQUEST_TOO_LONG = 414,
+ /** @brief The server is unable to process the requested format. */
+ OH_HTTP_UNSUPPORTED_TYPE = 415,
+ /** @brief Requested Range not satisfiable. */
+ OH_HTTP_RANGE_NOT_MET = 416,
+ /** @brief Internal server error, unable to complete the request. */
+ OH_HTTP_INTERNAL_ERROR = 500,
+ /** @brief The server does not support the requested functionality and cannot complete the request. */
+ OH_HTTP_NOT_IMPLEMENTED = 501,
+ /** @brief The server acting as a gateway or proxy received an invalid request from the remote server. */
+ OH_HTTP_BAD_GATEWAY = 502,
+ /** @brief Due to overload or system maintenance, the server is temporarily unable to process client requests. */
+ OH_HTTP_UNAVAILABLE = 503,
+ /** @brief The server acting as gateway did not obtain requests from the remote server in a timely manner. */
+ OH_HTTP_GATEWAY_TIMEOUT = 504,
+ /** @brief The version of the HTTP protocol requested by the server. */
+ OH_HTTP_VERSION = 505
+} Http_ResponseCode;
+
+/**
+ * @brief Buffer.
+ *
+ * @since 20
+ */
+typedef struct Http_Buffer {
+ /** Content. Buffer will not be copied. */
+ const char *buffer;
+ /** Buffer length. */
+ uint32_t length;
+} Http_Buffer;
+
+/**
+ * @brief Defines the address Family.
+ *
+ * @since 20
+ */
+typedef enum Http_AddressFamilyType {
+ /** Default, The system automatically selects the IPv4 or IPv6 address of the domain name. */
+ HTTP_ADDRESS_FAMILY_DEFAULT = 0,
+ /** IPv4, Selects the IPv4 address of the domain name. */
+ HTTP_ADDRESS_FAMILY_ONLY_V4 = 1,
+ /** IPv6, Selects the IPv4 address of the domain name. */
+ HTTP_ADDRESS_FAMILY_ONLY_V6 = 2
+} Http_AddressFamilyType;
+
+/**
+ * @brief HTTP get method.
+ *
+ * @since 20
+ */
+#define NET_HTTP_METHOD_GET "GET"
+
+/**
+ * @brief HTTP head method.
+ *
+ * @since 20
+ */
+#define NET_HTTPMETHOD_HEAD "HEAD"
+
+/**
+ * @brief HTTP options method.
+ *
+ * @since 20
+ */
+#define NET_HTTPMETHOD_OPTIONS "OPTIONS"
+
+/**
+ * @brief HTTP trace method.
+ *
+ * @since 20
+ */
+#define NET_HTTPMETHOD_TRACE "TRACE"
+/**
+ * @brief HTTP delete method.
+ * @since 20
+ */
+#define NET_HTTPMETHOD_DELETE "DELETE"
+
+/**
+ * @brief HTTP post method.
+ *
+ * @since 20
+ */
+#define NET_HTTP_METHOD_POST "POST"
+
+/**
+ * @brief HTTP put method.
+ *
+ * @since 20
+ */
+#define NET_HTTP_METHOD_PUT "PUT"
+
+/**
+ * @brief HTTP connect method.
+ *
+ * @since 20
+ */
+#define NET_HTTP_METHOD_PATCH "CONNECT"
+
+/**
+ * @brief Defines the HTTP version.
+ *
+ * @since 20
+ */
+typedef enum Http_HttpProtocol {
+ /** Default choose by curl. */
+ OH_HTTP_NONE = 0,
+ /** HTTP 1.1 version. */
+ OH_HTTP1_1,
+ /** HTTP 2 version. */
+ OH_HTTP2,
+ /** HTTP 3 version. */
+ OH_HTTP3
+} Http_HttpProtocol;
+
+/**
+ * @brief Defines the Cert Type.
+ *
+ * @since 20
+ */
+typedef enum Http_CertType {
+ /** PEM Cert Type. */
+ OH_HTTP_PEM = 0,
+ /** DER Cert Type. */
+ OH_HTTP_DER = 1,
+ /** P12 Cert Type. */
+ OH_HTTP_P12 = 2
+} Http_CertType;
+
+/**
+ * @brief Headers of the request or response.
+ *
+ * @since 20
+ */
+typedef struct Http_Headers Http_Headers;
+
+/**
+ * @brief The value type of the header map of the request or response.
+ *
+ * @since 20
+ */
+typedef struct Http_HeaderValue {
+ /** Value. */
+ char *value;
+ /** Point to the next {@link Http_HeaderValue}. */
+ struct Http_HeaderValue *next;
+} Http_HeaderValue;
+
+/**
+ * @brief All key-value pairs of the headers of the request or response.
+ *
+ * @since 20
+ */
+typedef struct Http_HeaderEntry {
+ /** Key. */
+ char *key;
+ /** Value, see {@link Http_HeaderValue}. */
+ Http_HeaderValue *value;
+ /** Points to the next key-value pair {@link Http_HeaderEntry} */
+ struct Http_HeaderEntry *next;
+} Http_HeaderEntry;
+
+/**
+ * @brief Client certificate which is sent to the remote server, the the remote server will use it to verify the
+ * client's identification.
+ *
+ * @since 20
+ */
+typedef struct Http_ClientCert {
+ /** A path to a client certificate. */
+ char *certPath;
+ /** Client certificate type, see {@link Http_CertType}. */
+ Http_CertType type;
+ /** File path of your client certificate private key. */
+ char *keyPath;
+ /** Password for your client certificate private key. */
+ char *keyPassword;
+} Http_ClientCert;
+
+/**
+ * @brief Proxy type. Used to distinguish different proxy configurations.
+ *
+ * @since 20
+ */
+typedef enum Http_ProxyType {
+ /** No proxy */
+ HTTP_PROXY_NOT_USE,
+ /** System proxy */
+ HTTP_PROXY_SYSTEM,
+ /** Use custom proxy */
+ HTTP_PROXY_CUSTOM
+} Http_ProxyType;
+
+/**
+ * @brief Custom proxy configuration.
+ *
+ * @since 20
+ */
+typedef struct Http_CustomProxy {
+ /** Indicates the URL of the proxy server. If you do not set port explicitly, port will be 1080. */
+ const char *host;
+ int32_t port;
+ const char *exclusionLists;
+} Http_CustomProxy;
+
+/**
+ * @brief Proxy configuration.
+ *
+ * @since 20
+ */
+typedef struct Http_Proxy {
+ /** Distinguish the proxy type used by the request, see {@link Http_ProxyType}. */
+ Http_ProxyType proxyType;
+ /** Custom proxy configuration, see {@link Http_CustomProxy}. */
+ Http_CustomProxy customProxy;
+} Http_Proxy;
+
+/**
+ * @brief Response timing information. It will be collected in {@link Http_Response.performanceTiming}.
+ *
+ * @since 20
+ */
+typedef struct Http_PerformanceTiming {
+ /** The total time in milliseconds for the HTTP transfer, including name resolving, TCP connect etc. */
+ double dnsTiming;
+ /** The time in milliseconds from the start until the remote host name was resolved. */
+ double tcpTiming;
+ /** The time in milliseconds from the start until the connection to the remote host (or proxy) was completed. */
+ double tlsTiming;
+ /** The time in milliseconds, it took from the start until the transfer is just about to begin. */
+ double firstSendTiming;
+ /** The time in milliseconds from last modification time of the remote file. */
+ double firstReceiveTiming;
+ /** The time in milliseconds, it took from the start until the first byte is received. */
+ double totalFinishTiming;
+ /** The time in milliseconds it took for all redirection steps including name lookup, connect, etc.*/
+ double redirectTiming;
+} Http_PerformanceTiming;
+
+/**
+ * @brief Defines the parameters for http request options.
+ *
+ * @since 20
+ */
+typedef struct Http_RequestOptions {
+ /** Request method. */
+ const char *method;
+ /** Priority of http requests. A larger value indicates a higher priority. */
+ uint32_t priority;
+ /** Header of http requests, see {@link Http_Headers}. */
+ Http_Headers *headers;
+ /** Read timeout interval. */
+ uint32_t readTimeout;
+ /** Connection timeout interval. */
+ uint32_t connectTimeout;
+ /** Use the protocol. The default value is automatically specified by the system, see {@link Http_HttpProtocol}. */
+ Http_HttpProtocol httpProtocol;
+ /**
+ * Indicates whether to use the HTTP proxy. The default value is false,
+ * and http proxy config, see {@link Http_Proxy}.
+ */
+ Http_Proxy *httpProxy;
+ /** CA certificate of the user-specified path. */
+ const char *caPath;
+ /** Set the download start position. This parameter can be used only in the GET method. */
+ int64_t resumeFrom;
+ /** Set the download end position. This parameter can be used only in the GET method. */
+ int64_t resumeTo;
+ /** Client certificates can be transferred, see {@link Http_ClientCert}. */
+ Http_ClientCert *clientCert;
+ /** Set the DNS resolution for the https server. */
+ const char *dnsOverHttps;
+ /** The address family can be specified when target domain name is resolved, see {@link Http_AddressFamilyType}. */
+ Http_AddressFamilyType addressFamily;
+} Http_RequestOptions;
+
+/**
+ * @brief Defines the parameters for http response.
+ *
+ * @since 20
+ */
+typedef struct Http_Response {
+ /** Response body, see {@link Http_Buffer}. */
+ Http_Buffer body;
+ /** Server status code, see {@link Http_ResponseCode}. */
+ Http_ResponseCode responseCode;
+ /** Header of http response, see {@link Http_Headers}. */
+ Http_Headers *headers;
+ /** Cookies returned by the server. */
+ char *cookies;
+ /** The time taken of various stages of HTTP request, see {@link Http_PerformanceTiming}. */
+ Http_PerformanceTiming *performanceTiming;
+ /**
+ * @brief Response deletion function.
+ *
+ * @param response Indicates the response to be deleted. It is a pointer that points to {@link Http_Response}.
+ * @since 20
+ */
+ void (*destroyResponse)(struct Http_Response **response);
+} Http_Response;
+
+/**
+ * @brief Http request.
+ *
+ * @since 20
+ */
+typedef struct Http_Request {
+ /** The request id for every single request. Generated by system. */
+ uint32_t requestId;
+ /** Request url. */
+ char *url;
+ /** Request options, see {@link Http_RequestOptions}. */
+ Http_RequestOptions *options;
+} Http_Request;
+
+/**
+ * @brief Callback function that is invoked when response is received.
+ *
+ * @param response Http response struct, see {@link Http_Response}.
+ * @param errCode Response error code.
+ * @since 20
+ */
+typedef void (*Http_ResponseCallback)(struct Http_Response *response, uint32_t errCode);
+
+/**
+ * @brief Callback function that is invoked when a response body is received.
+ *
+ * @param data Response body.
+ * @param length Length of response body.
+ * @since 20
+ */
+typedef void (*Http_OnDataReceiveCallback)(const char *data, size_t length);
+
+/**
+ * @brief Callback function invoked during request/response data transmission.
+ *
+ * @param totalSize total size.
+ * @param transferredSize transferred size.
+ * @since 20
+ */
+typedef void (*Http_OnProgressCallback)(uint64_t totalSize, uint64_t transferredSize);
+
+/**
+ * @brief Callback called when header are received.
+ *
+ * @param headers Headers of the received requests, which points to the pointer of {@link Http_Headers}.
+ * @since 20
+ */
+typedef void (*Http_OnHeaderReceiveCallback)(Http_Headers *headers);
+
+/**
+ * @brief Empty callback function for requested DataEnd or Canceled event callback.
+ *
+ * @since 20
+ */
+typedef void (*Http_OnVoidCallback)(void);
+
+/**
+ * @brief Callbacks to watch different events.
+ *
+ * @since 20
+ */
+typedef struct Http_EventsHandler {
+ /** Callback function when the response body is received */
+ Http_OnDataReceiveCallback onDataReceive;
+ /** Callback function during uploading */
+ Http_OnProgressCallback onUploadProgress;
+ /** Callback function during downloading */
+ Http_OnProgressCallback onDownloadProgress;
+ /** Callback function when a header is received */
+ Http_OnHeaderReceiveCallback onHeadersReceive;
+ /** Callback function at the end of the transfer */
+ Http_OnVoidCallback onDataEnd;
+ /** Callback function when a request is canceled */
+ Http_OnVoidCallback onCanceled;
+} Http_EventsHandler;
+#ifdef __cplusplus
+}
+#endif
+#endif // NET_HTTP_TYPE_H
+
+/** @} */
\ No newline at end of file
diff --git a/resourceschedule/background_process_manager/background_process_manager.ndk.json b/resourceschedule/background_process_manager/background_process_manager.ndk.json
index 022e9497562bd27122e3edbccbeea32394f87f61..db04aecf143c3582923491dfbe5a6468b58cf7c5 100644
--- a/resourceschedule/background_process_manager/background_process_manager.ndk.json
+++ b/resourceschedule/background_process_manager/background_process_manager.ndk.json
@@ -1,10 +1,10 @@
[
{
- "first_introduced": "15",
+ "first_introduced": "17",
"name": "OH_BackgroundProcessManager_SetProcessPriority"
},
{
- "first_introduced": "15",
+ "first_introduced": "17",
"name": "OH_BackgroundProcessManager_ResetProcessPriority"
}
]
\ No newline at end of file
diff --git a/resourceschedule/background_process_manager/include/background_process_manager.h b/resourceschedule/background_process_manager/include/background_process_manager.h
index c9e3c085c02b91e650e312fc88b457118bcbf6e8..b2049aaadfe5d7b15eebffdaf9a8f7137a5819fc 100644
--- a/resourceschedule/background_process_manager/include/background_process_manager.h
+++ b/resourceschedule/background_process_manager/include/background_process_manager.h
@@ -19,7 +19,7 @@
*
* @brief BackgroundProcessManager provides APIs.
*
- * @since 15
+ * @since 17
*/
/**
@@ -32,7 +32,7 @@
* @library libbackground_process_manager.z.so
* @kit BackgroundTasksKit
* @syscap SystemCapability.Resourceschedule.BackgroundProcessManager
- * @since 15
+ * @since 17
*/
#ifndef RESOURCESCHEDULE_BACKGROUND_PROCESS_MANAGER_H
@@ -45,7 +45,7 @@ extern "C" {
/**
* @brief Describes the level of BackgroundProcessManager priority.
*
- * @since 15
+ * @since 17
*/
typedef enum BackgroundProcessManager_ProcessPriority {
/**
@@ -62,7 +62,7 @@ typedef enum BackgroundProcessManager_ProcessPriority {
/**
* @brief Enum for BackgroundProcessManager error code.
*
- * @since 15
+ * @since 17
*/
typedef enum BackgroundProcessManager_ErrorCode {
/**
@@ -91,8 +91,7 @@ typedef enum BackgroundProcessManager_ErrorCode {
Specific priority can be referenced {@link BackgroundProcessManager_ProcessPriority}.
* @return {@link ERR_BACKGROUND_PROCESS_MANAGER_SUCCESS} 0 - Success.
* {@link ERR_BACKGROUND_PROCESS_MANAGER_INVALID_PARAM} 401 - Parameter error.
- * {@link ERR_BACKGROUND_PROCESS_MANAGER_REMOTE_ERROR} 31800001 - Remote error.
- * @since 15
+ * @since 17
*/
int OH_BackgroundProcessManager_SetProcessPriority(int pid, BackgroundProcessManager_ProcessPriority priority);
@@ -101,8 +100,7 @@ int OH_BackgroundProcessManager_SetProcessPriority(int pid, BackgroundProcessMan
*
* @param pid Indicates the pid of the process to be reset.
* @return {@link ERR_BACKGROUND_PROCESS_MANAGER_SUCCESS} 0 - Success.
- * {@link ERR_BACKGROUND_PROCESS_MANAGER_REMOTE_ERROR} 31800001 - Remote error.
- * @since 15
+ * @since 17
*/
int OH_BackgroundProcessManager_ResetProcessPriority(int pid);
#ifdef __cplusplus
diff --git a/resourceschedule/ffrt/BUILD.gn b/resourceschedule/ffrt/BUILD.gn
index 8fb7e35b645fca609ace368aba41a469e2487ded..0e48ac34e8c364d7830b42ff57c733b5a1402973 100644
--- a/resourceschedule/ffrt/BUILD.gn
+++ b/resourceschedule/ffrt/BUILD.gn
@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
-# limitations under the License.
+# limitations under the License.
import("//build/ohos.gni")
import("//build/ohos/ndk/ndk.gni")
@@ -18,9 +18,11 @@ ohos_ndk_headers("ffrt_header") {
dest_dir = "$ndk_headers_out_dir/ffrt"
sources = [
"c/condition_variable.h",
+ "c/fiber.h",
"c/loop.h",
"c/mutex.h",
"c/queue.h",
+ "c/shared_mutex.h",
"c/sleep.h",
"c/task.h",
"c/timer.h",
@@ -34,9 +36,11 @@ ohos_ndk_library("libffrt_ndk") {
system_capability = "SystemCapability.Resourceschedule.Ffrt.Core"
system_capability_headers = [
"ffrt/condition_variable.h",
+ "ffrt/fiber.h",
"ffrt/loop.h",
"ffrt/mutex.h",
"ffrt/queue.h",
+ "ffrt/shared_mutex.h",
"ffrt/sleep.h",
"ffrt/task.h",
"ffrt/timer.h",
diff --git a/resourceschedule/ffrt/c/condition_variable.h b/resourceschedule/ffrt/c/condition_variable.h
index d044dbcb6a1cb3b15afbb8114541801665ed00d5..21984d0e72568686dbd4ec598da5255ed7cb93b6 100644
--- a/resourceschedule/ffrt/c/condition_variable.h
+++ b/resourceschedule/ffrt/c/condition_variable.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 10
- * @version 1.0
*/
#ifndef FFRT_API_C_CONDITION_VARIABLE_H
@@ -48,7 +47,6 @@
* @return Returns ffrt_success if the condition variable is initialized;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_cond_init(ffrt_cond_t* cond, const ffrt_condattr_t* attr);
@@ -59,7 +57,6 @@ FFRT_C_API int ffrt_cond_init(ffrt_cond_t* cond, const ffrt_condattr_t* attr);
* @return Returns ffrt_success if the thread is unblocked;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_cond_signal(ffrt_cond_t* cond);
@@ -70,7 +67,6 @@ FFRT_C_API int ffrt_cond_signal(ffrt_cond_t* cond);
* @return Returns ffrt_success if the threads are unblocked;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_cond_broadcast(ffrt_cond_t* cond);
@@ -82,7 +78,6 @@ FFRT_C_API int ffrt_cond_broadcast(ffrt_cond_t* cond);
* @return Returns ffrt_success if the thread is unblocked after being blocked;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_cond_wait(ffrt_cond_t* cond, ffrt_mutex_t* mutex);
@@ -99,7 +94,6 @@ FFRT_C_API int ffrt_cond_wait(ffrt_cond_t* cond, ffrt_mutex_t* mutex);
returns ffrt_error_timedout if the maximum duration reaches;
returns ffrt_error_inval if the blocking fails.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_cond_timedwait(ffrt_cond_t* cond, ffrt_mutex_t* mutex, const struct timespec* time_point);
@@ -110,7 +104,6 @@ FFRT_C_API int ffrt_cond_timedwait(ffrt_cond_t* cond, ffrt_mutex_t* mutex, const
* @return Returns ffrt_success if the condition variable is destroyed;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_cond_destroy(ffrt_cond_t* cond);
diff --git a/resourceschedule/ffrt/c/fiber.h b/resourceschedule/ffrt/c/fiber.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5096c38ad1463d707134d88cca289cca5a7eef4
--- /dev/null
+++ b/resourceschedule/ffrt/c/fiber.h
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup FFRT
+ * @{
+ *
+ * @brief Provides FFRT C APIs.
+ *
+ * @since 20
+ */
+
+/**
+ * @file fiber.h
+ *
+ * @brief Declares the fiber interfaces in C.
+ *
+ * @library libffrt.z.so
+ * @kit FunctionFlowRuntimeKit
+ * @syscap SystemCapability.Resourceschedule.Ffrt.Core
+ * @since 20
+ */
+
+#ifndef FFRT_API_C_FIBER_H
+#define FFRT_API_C_FIBER_H
+
+#include "type_def.h"
+
+/**
+ * @brief Initializes a fiber.
+ *
+ * This function initializes a fiber structure, preparing it for execution.
+ *
+ * @param fiber Indicates the pointer to the fiber structure to be initialized.
+ * @param func Indicates the entry point function that the fiber will execute.
+ * @param arg Indicates the argument to be passed to the entry point function.
+ * @param stack Indicates the pointer to the memory region to be used as the fiber's stack.
+ * @param stack_size Indicates the size of the stack in bytes.
+ * @return Returns ffrt_success if the fiber is initialized;
+ returns ffrt_error otherwise.
+ * @since 20
+ */
+FFRT_C_API int ffrt_fiber_init(ffrt_fiber_t* fiber, void(*func)(void*), void* arg, void* stack, size_t stack_size);
+
+
+/**
+ * @brief Switch execution context between two fibers.
+ *
+ * Switches the execution context by saving the current context into the fiber specified
+ * by @c from and restoring the context from the fiber specified by @c to.
+ *
+ * @param from Indicates the pointer to the fiber into which the current context will be saved.
+ * @param to Indicates the pointer to the fiber from which the context will be restored.
+ * @since 20
+ */
+FFRT_C_API void ffrt_fiber_switch(ffrt_fiber_t* from, ffrt_fiber_t* to);
+
+#endif // FFRT_API_C_FIBER_H
+/** @} */
\ No newline at end of file
diff --git a/resourceschedule/ffrt/c/loop.h b/resourceschedule/ffrt/c/loop.h
index 88dacad1eabf2a96393d4823f9920739d313da82..35d76cedbb1d024918331dc83aa3de0870326839 100644
--- a/resourceschedule/ffrt/c/loop.h
+++ b/resourceschedule/ffrt/c/loop.h
@@ -31,14 +31,14 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 12
- * @version 1.0
*/
#ifndef FFRT_API_C_LOOP_H
#define FFRT_API_C_LOOP_H
-#include "queue.h"
+#include
#include "type_def.h"
+#include "queue.h"
/**
* @brief Defines the loop handle, which identifies different loops.
@@ -54,7 +54,6 @@ typedef void* ffrt_loop_t;
* @return Returns a non-null loop handle if the loop is created;
returns a null pointer otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_loop_t ffrt_loop_create(ffrt_queue_t queue);
@@ -65,7 +64,6 @@ FFRT_C_API ffrt_loop_t ffrt_loop_create(ffrt_queue_t queue);
* @return Returns 0 if the loop is destroyed;
returns -1 otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_loop_destroy(ffrt_loop_t loop);
@@ -76,7 +74,6 @@ FFRT_C_API int ffrt_loop_destroy(ffrt_loop_t loop);
* @return Returns -1 if loop run fail;
returns 0 otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_loop_run(ffrt_loop_t loop);
@@ -85,7 +82,6 @@ FFRT_C_API int ffrt_loop_run(ffrt_loop_t loop);
*
* @param loop Indicates a loop handle.
* @since 12
- * @version 1.0
*/
FFRT_C_API void ffrt_loop_stop(ffrt_loop_t loop);
@@ -101,7 +97,6 @@ FFRT_C_API void ffrt_loop_stop(ffrt_loop_t loop);
* @return Returns 0 if success;
returns -1 otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_loop_epoll_ctl(ffrt_loop_t loop, int op, int fd, uint32_t events, void *data, ffrt_poller_cb cb);
@@ -115,7 +110,6 @@ FFRT_C_API int ffrt_loop_epoll_ctl(ffrt_loop_t loop, int op, int fd, uint32_t ev
* @param repeat Indicates whether to repeat this timer.
* @return Returns a timer handle.
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_timer_t ffrt_loop_timer_start(
ffrt_loop_t loop, uint64_t timeout, void* data, ffrt_timer_cb cb, bool repeat);
@@ -128,7 +122,6 @@ FFRT_C_API ffrt_timer_t ffrt_loop_timer_start(
* @return Returns 0 if success;
returns -1 otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_loop_timer_stop(ffrt_loop_t loop, ffrt_timer_t handle);
diff --git a/resourceschedule/ffrt/c/mutex.h b/resourceschedule/ffrt/c/mutex.h
index 731af32139c460cc94271432f1192ff3485f22bf..f343f38d5b2e0de05e25d62ddfe088a03f387cd2 100644
--- a/resourceschedule/ffrt/c/mutex.h
+++ b/resourceschedule/ffrt/c/mutex.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 10
- * @version 1.0
*/
#ifndef FFRT_API_C_MUTEX_H
@@ -46,7 +45,6 @@
* @return Returns ffrt_success if the mutex attribute is initialized;
returns ffrt_error_inval otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_mutexattr_init(ffrt_mutexattr_t* attr);
@@ -59,7 +57,6 @@ FFRT_C_API int ffrt_mutexattr_init(ffrt_mutexattr_t* attr);
returns ffrt_error_inval if attr is a null pointer or
the mutex attribute type is not ffrt_mutex_normal or ffrt_mutex_recursive.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_mutexattr_settype(ffrt_mutexattr_t* attr, int type);
@@ -71,7 +68,6 @@ FFRT_C_API int ffrt_mutexattr_settype(ffrt_mutexattr_t* attr, int type);
* @return Returns ffrt_success if the mutex attribute type is get successfully;
returns ffrt_error_inval if attr or type is a null pointer.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_mutexattr_gettype(ffrt_mutexattr_t* attr, int* type);
@@ -82,7 +78,6 @@ FFRT_C_API int ffrt_mutexattr_gettype(ffrt_mutexattr_t* attr, int* type);
* @return Returns ffrt_success if the mutex attribute is destroyed;
returns ffrt_error_inval otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_mutexattr_destroy(ffrt_mutexattr_t* attr);
@@ -94,7 +89,6 @@ FFRT_C_API int ffrt_mutexattr_destroy(ffrt_mutexattr_t* attr);
* @return Returns ffrt_success if the mutex is initialized;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_mutex_init(ffrt_mutex_t* mutex, const ffrt_mutexattr_t* attr);
@@ -105,7 +99,6 @@ FFRT_C_API int ffrt_mutex_init(ffrt_mutex_t* mutex, const ffrt_mutexattr_t* attr
* @return Returns ffrt_success if the mutex is locked;
returns ffrt_error_inval or blocks the calling thread otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_mutex_lock(ffrt_mutex_t* mutex);
@@ -116,7 +109,6 @@ FFRT_C_API int ffrt_mutex_lock(ffrt_mutex_t* mutex);
* @return Returns ffrt_success if the mutex is unlocked;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_mutex_unlock(ffrt_mutex_t* mutex);
@@ -127,7 +119,6 @@ FFRT_C_API int ffrt_mutex_unlock(ffrt_mutex_t* mutex);
* @return Returns ffrt_success if the mutex is locked;
returns ffrt_error_inval or ffrt_error_busy otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_mutex_trylock(ffrt_mutex_t* mutex);
@@ -138,7 +129,6 @@ FFRT_C_API int ffrt_mutex_trylock(ffrt_mutex_t* mutex);
* @return Returns ffrt_success if the mutex is destroyed;
returns ffrt_error_inval otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_mutex_destroy(ffrt_mutex_t* mutex);
diff --git a/resourceschedule/ffrt/c/queue.h b/resourceschedule/ffrt/c/queue.h
index 9d202edfb5074fe9665e3cb6991477fdd6713efe..5bdf7c7dadc42451a2f0012fd5967a86f66ca52c 100644
--- a/resourceschedule/ffrt/c/queue.h
+++ b/resourceschedule/ffrt/c/queue.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 10
- * @version 1.0
*/
#ifndef FFRT_API_C_QUEUE_H
@@ -67,7 +66,6 @@ typedef void* ffrt_queue_t;
* @return Returns 0 if the queue attribute is initialized;
returns -1 otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_queue_attr_init(ffrt_queue_attr_t* attr);
@@ -76,7 +74,6 @@ FFRT_C_API int ffrt_queue_attr_init(ffrt_queue_attr_t* attr);
*
* @param attr Indicates a pointer to the queue attribute.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_attr_destroy(ffrt_queue_attr_t* attr);
@@ -86,7 +83,6 @@ FFRT_C_API void ffrt_queue_attr_destroy(ffrt_queue_attr_t* attr);
* @param attr Indicates a pointer to the queue attribute.
* @param qos Indicates the QoS.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_attr_set_qos(ffrt_queue_attr_t* attr, ffrt_qos_t qos);
@@ -96,17 +92,17 @@ FFRT_C_API void ffrt_queue_attr_set_qos(ffrt_queue_attr_t* attr, ffrt_qos_t qos)
* @param attr Indicates a pointer to the queue attribute.
* @return Returns the QoS.
* @since 10
- * @version 1.0
*/
FFRT_C_API ffrt_qos_t ffrt_queue_attr_get_qos(const ffrt_queue_attr_t* attr);
/**
* @brief Sets the execution timeout of a serial queue attribute.
*
+ * The lower limit of timeout value is 1 ms, if the value is less than 1 ms, it will be set to 1 ms.
+ *
* @param attr Serial queue attribute pointer.
* @param timeout_us Serial queue task execution timeout.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_attr_set_timeout(ffrt_queue_attr_t* attr, uint64_t timeout_us);
@@ -116,7 +112,6 @@ FFRT_C_API void ffrt_queue_attr_set_timeout(ffrt_queue_attr_t* attr, uint64_t ti
* @param attr Serial queue attribute pointer.
* @return Returns the serial queue task execution timeout.
* @since 10
- * @version 1.0
*/
FFRT_C_API uint64_t ffrt_queue_attr_get_timeout(const ffrt_queue_attr_t* attr);
@@ -126,7 +121,6 @@ FFRT_C_API uint64_t ffrt_queue_attr_get_timeout(const ffrt_queue_attr_t* attr);
* @param attr Serial queue attribute pointer.
* @param f Serial queue timeout callback function.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_attr_set_callback(ffrt_queue_attr_t* attr, ffrt_function_header_t* f);
@@ -136,7 +130,6 @@ FFRT_C_API void ffrt_queue_attr_set_callback(ffrt_queue_attr_t* attr, ffrt_funct
* @param attr Serial queue attribute pointer.
* @return Returns the serial queue task timeout callback function.
* @since 10
- * @version 1.0
*/
FFRT_C_API ffrt_function_header_t* ffrt_queue_attr_get_callback(const ffrt_queue_attr_t* attr);
@@ -146,7 +139,6 @@ FFRT_C_API ffrt_function_header_t* ffrt_queue_attr_get_callback(const ffrt_queue
* @param attr Queue attribute pointer.
* @param max_concurrency queue max_concurrency.
* @since 12
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_attr_set_max_concurrency(ffrt_queue_attr_t* attr, const int max_concurrency);
@@ -156,10 +148,36 @@ FFRT_C_API void ffrt_queue_attr_set_max_concurrency(ffrt_queue_attr_t* attr, con
* @param attr Queue attribute pointer.
* @return Returns the queue max concurrency.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_queue_attr_get_max_concurrency(const ffrt_queue_attr_t* attr);
+/**
+ * @brief Sets the execution mode of a queue attribute.
+ *
+ * This interface specifies whether tasks in the queue are executed in coroutine mode or thread mode.
+ * By default, tasks are executed in coroutine mode.
+ * Set legacy_mode to true to enable thread-based execution.
+ *
+ * @param attr Queue attribute pointer.
+ * @param legacy_mode Indicates whether to enable thread-based execution mode.
+ - true: Tasks are executed as native threads (legacy mode).
+ - false: Tasks are executed as coroutines (default).
+ * @since 20
+ */
+FFRT_C_API void ffrt_queue_attr_set_mode(ffrt_queue_attr_t* attr, const bool legacy_mode);
+
+/**
+ * @brief Gets the execution mode of a queue attribute.
+ *
+ * This interface returns whether tasks in the queue are configured to run in thread-based execution mode (legacy mode).
+ *
+ * @param attr Queue attribute pointer.
+ * @return Returns true if tasks are executed as native threads (legacy mode);
+ returns false if tasks are executed as coroutines (default).
+ * @since 20
+ */
+FFRT_C_API bool ffrt_queue_attr_get_mode(const ffrt_queue_attr_t* attr);
+
/**
* @brief Creates a queue.
*
@@ -169,7 +187,6 @@ FFRT_C_API int ffrt_queue_attr_get_max_concurrency(const ffrt_queue_attr_t* attr
* @return Returns a non-null queue handle if the queue is created;
returns a null pointer otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API ffrt_queue_t ffrt_queue_create(ffrt_queue_type_t type, const char* name, const ffrt_queue_attr_t* attr);
@@ -178,7 +195,6 @@ FFRT_C_API ffrt_queue_t ffrt_queue_create(ffrt_queue_type_t type, const char* na
*
* @param queue Indicates a queue handle.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_destroy(ffrt_queue_t queue);
@@ -189,7 +205,6 @@ FFRT_C_API void ffrt_queue_destroy(ffrt_queue_t queue);
* @param f Indicates a pointer to the task executor.
* @param attr Indicates a pointer to the task attribute.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_submit(ffrt_queue_t queue, ffrt_function_header_t* f, const ffrt_task_attr_t* attr);
@@ -202,17 +217,54 @@ FFRT_C_API void ffrt_queue_submit(ffrt_queue_t queue, ffrt_function_header_t* f,
* @return Returns a non-null task handle if the task is submitted;
returns a null pointer otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API ffrt_task_handle_t ffrt_queue_submit_h(
ffrt_queue_t queue, ffrt_function_header_t* f, const ffrt_task_attr_t* attr);
+/**
+ * @brief Submits a task to a queue, simplified from of the ffrt_queue_submit interface.
+ *
+ * This interface wraps the provided task function and its argument into a task wrapper designed
+ * for queue submission (ffrt_function_kind_queue). The task destroy callback (after_func), which
+ * would normally handle any post-execution cleanup, is automatically set to NULL in this wrapper,
+ * thus omitting any additional cleanup actions. The resulting task wrapper is then submitted to
+ * the specified queue via the ffrt_queue_submit interface.
+ *
+ * @param queue Indicates a queue handle.
+ * @param func Indicates a task function to be executed.
+ * @param arg Indicates a pointer to the argument or closure data that will be passed to the task function.
+ * @param attr Indicates a pointer to the task attribute.
+ * @see ffrt_queue_submit
+ * @since 20
+ */
+FFRT_C_API void ffrt_queue_submit_f(ffrt_queue_t queue, ffrt_function_t func, void* arg, const ffrt_task_attr_t* attr);
+
+/**
+ * @brief Submits a task to a queue, and obtains a task handle, simplified from the ffrt_queue_submit_h interface.
+ *
+ * This interface wraps the provided task function and its argument into a task wrapper designed
+ * for queue submission (ffrt_function_kind_queue). The task destroy callback (after_func), which
+ * would normally handle any post-execution cleanup, is automatically set to NULL in this wrapper,
+ * thus omitting any additional cleanup actions. The resulting task wrapper is then submitted to
+ * the specified queue via the ffrt_queue_submit_h interface.
+ *
+ * @param queue Indicates a queue handle.
+ * @param func Indicates a task function to be executed.
+ * @param arg Indicates a pointer to the argument or closure data that will be passed to the task function.
+ * @param attr Indicates a pointer to the task attribute.
+ * @return Returns a non-null task handle if the task is submitted;
+ returns a null pointer otherwise.
+ * @see ffrt_queue_submit_h
+ * @since 20
+ */
+FFRT_C_API ffrt_task_handle_t ffrt_queue_submit_h_f(
+ ffrt_queue_t queue, ffrt_function_t func, void* arg, const ffrt_task_attr_t* attr);
+
/**
* @brief Waits until a task in the queue is complete.
*
* @param handle Indicates a task handle.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_queue_wait(ffrt_task_handle_t handle);
@@ -223,7 +275,6 @@ FFRT_C_API void ffrt_queue_wait(ffrt_task_handle_t handle);
* @return Returns 0 if the task is canceled;
returns -1 otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_queue_cancel(ffrt_task_handle_t handle);
@@ -232,7 +283,6 @@ FFRT_C_API int ffrt_queue_cancel(ffrt_task_handle_t handle);
*
* @return Returns application main thread queue.
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_queue_t ffrt_get_main_queue(void);
@@ -240,9 +290,8 @@ FFRT_C_API ffrt_queue_t ffrt_get_main_queue(void);
* @brief Gets the application worker(ArkTs) thread queue.
*
* @return Returns application worker(ArkTs) thread queue.
- * @deprecated since 15
+ * @deprecated since 18
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_queue_t ffrt_get_current_queue(void);
diff --git a/resourceschedule/ffrt/c/shared_mutex.h b/resourceschedule/ffrt/c/shared_mutex.h
new file mode 100644
index 0000000000000000000000000000000000000000..b295c54c21befa84de69dea15449bb2a69d7ac5b
--- /dev/null
+++ b/resourceschedule/ffrt/c/shared_mutex.h
@@ -0,0 +1,113 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @addtogroup FFRT
+ * @{
+ *
+ * @brief Provides FFRT C APIs.
+ *
+ * @since 18
+ */
+
+/**
+ * @file shared_mutex.h
+ *
+ * @brief Declares the shared mutex interfaces in C.
+ *
+ * @library libffrt.z.so
+ * @kit FunctionFlowRuntimeKit
+ * @syscap SystemCapability.Resourceschedule.Ffrt.Core
+ * @since 18
+ */
+
+#ifndef FFRT_API_C_SHARED_MUTEX_H
+#define FFRT_API_C_SHARED_MUTEX_H
+
+#include "type_def.h"
+
+/**
+ * @brief Initializes a rwlock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @param attr Indicates a pointer to the rwlock attribute.
+ * @return Returns ffrt_success if the rwlock is initialized;
+ returns ffrt_error_inval otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_init(ffrt_rwlock_t* rwlock, const ffrt_rwlockattr_t* attr);
+
+/**
+ * @brief Locks a write lock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @return Returns ffrt_success if the rwlock is locked;
+ returns ffrt_error_inval or blocks the calling thread otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_wrlock(ffrt_rwlock_t* rwlock);
+
+/**
+ * @brief Attempts to lock a write lock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @return Returns ffrt_success if the rwlock is locked;
+ returns ffrt_error_inval or ffrt_error_busy otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_trywrlock(ffrt_rwlock_t* rwlock);
+
+/**
+ * @brief Locks a read lock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @return Returns ffrt_success if the rwlock is locked;
+ returns ffrt_error_inval or blocks the calling thread otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_rdlock(ffrt_rwlock_t* rwlock);
+
+/**
+ * @brief Attempts to lock a read lock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @return Returns ffrt_success if the rwlock is locked;
+ returns ffrt_error_inval or ffrt_error_busy otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_tryrdlock(ffrt_rwlock_t* rwlock);
+
+/**
+ * @brief Unlocks a rwlock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @return Returns ffrt_success if the rwlock is unlocked;
+ returns ffrt_error_inval otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_unlock(ffrt_rwlock_t* rwlock);
+
+/**
+ * @brief Destroys a rwlock.
+ *
+ * @param rwlock Indicates a pointer to the rwlock.
+ * @return Returns ffrt_success if the rwlock is destroyed;
+ returns ffrt_error_inval otherwise.
+ * @since 18
+ */
+FFRT_C_API int ffrt_rwlock_destroy(ffrt_rwlock_t* rwlock);
+
+#endif // FFRT_API_C_SHARED_MUTEX_H
+/** @} */
\ No newline at end of file
diff --git a/resourceschedule/ffrt/c/sleep.h b/resourceschedule/ffrt/c/sleep.h
index 025e54f65f08aa4404220fd8e66e6c8cbc789ed0..fc6a9f25be7f787ce8b6daebfc5e71debf839d3f 100644
--- a/resourceschedule/ffrt/c/sleep.h
+++ b/resourceschedule/ffrt/c/sleep.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 10
- * @version 1.0
*/
#ifndef FFRT_API_C_SLEEP_H
@@ -47,7 +46,6 @@
* @return Returns ffrt_success if the thread is suspended;
returns ffrt_error otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_usleep(uint64_t usec);
@@ -55,7 +53,6 @@ FFRT_C_API int ffrt_usleep(uint64_t usec);
* @brief Passes control to other tasks so that they can be executed.
*
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_yield(void);
diff --git a/resourceschedule/ffrt/c/task.h b/resourceschedule/ffrt/c/task.h
index b8b4fa65346e5fc88e85f9b049de799923338652..39cc6ed83ffea3b552a100588830de733781ffa6 100644
--- a/resourceschedule/ffrt/c/task.h
+++ b/resourceschedule/ffrt/c/task.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 10
- * @version 1.0
*/
#ifndef FFRT_API_C_TASK_H
@@ -47,7 +46,6 @@
* @return Returns 0 if the task attribute is initialized;
returns -1 otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_task_attr_init(ffrt_task_attr_t* attr);
@@ -57,7 +55,6 @@ FFRT_C_API int ffrt_task_attr_init(ffrt_task_attr_t* attr);
* @param attr Indicates a pointer to the task attribute.
* @param name Indicates a pointer to the task name.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_task_attr_set_name(ffrt_task_attr_t* attr, const char* name);
@@ -68,7 +65,6 @@ FFRT_C_API void ffrt_task_attr_set_name(ffrt_task_attr_t* attr, const char* name
* @return Returns a non-null pointer to the task name if the name is obtained;
returns a null pointer otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API const char* ffrt_task_attr_get_name(const ffrt_task_attr_t* attr);
@@ -77,7 +73,6 @@ FFRT_C_API const char* ffrt_task_attr_get_name(const ffrt_task_attr_t* attr);
*
* @param attr Indicates a pointer to the task attribute.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_task_attr_destroy(ffrt_task_attr_t* attr);
@@ -87,7 +82,6 @@ FFRT_C_API void ffrt_task_attr_destroy(ffrt_task_attr_t* attr);
* @param attr Indicates a pointer to the task attribute.
* @param qos Indicates the QoS.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_task_attr_set_qos(ffrt_task_attr_t* attr, ffrt_qos_t qos);
@@ -97,7 +91,6 @@ FFRT_C_API void ffrt_task_attr_set_qos(ffrt_task_attr_t* attr, ffrt_qos_t qos);
* @param attr Indicates a pointer to the task attribute.
* @return Returns the QoS, which is ffrt_qos_default by default.
* @since 10
- * @version 1.0
*/
FFRT_C_API ffrt_qos_t ffrt_task_attr_get_qos(const ffrt_task_attr_t* attr);
@@ -107,7 +100,6 @@ FFRT_C_API ffrt_qos_t ffrt_task_attr_get_qos(const ffrt_task_attr_t* attr);
* @param attr Indicates a pointer to the task attribute.
* @param delay_us Indicates the delay time, in microseconds.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_task_attr_set_delay(ffrt_task_attr_t* attr, uint64_t delay_us);
@@ -117,7 +109,6 @@ FFRT_C_API void ffrt_task_attr_set_delay(ffrt_task_attr_t* attr, uint64_t delay_
* @param attr Indicates a pointer to the task attribute.
* @return Returns the delay time.
* @since 10
- * @version 1.0
*/
FFRT_C_API uint64_t ffrt_task_attr_get_delay(const ffrt_task_attr_t* attr);
@@ -127,7 +118,6 @@ FFRT_C_API uint64_t ffrt_task_attr_get_delay(const ffrt_task_attr_t* attr);
* @param attr Indicates a pointer to the task attribute.
* @param priority Indicates the execute priority of concurrent queue task.
* @since 12
- * @version 1.0
*/
FFRT_C_API void ffrt_task_attr_set_queue_priority(ffrt_task_attr_t* attr, ffrt_queue_priority_t priority);
@@ -137,7 +127,6 @@ FFRT_C_API void ffrt_task_attr_set_queue_priority(ffrt_task_attr_t* attr, ffrt_q
* @param attr Indicates a pointer to the task attribute.
* @return Returns the priority of concurrent queue task.
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_queue_priority_t ffrt_task_attr_get_queue_priority(const ffrt_task_attr_t* attr);
@@ -147,7 +136,6 @@ FFRT_C_API ffrt_queue_priority_t ffrt_task_attr_get_queue_priority(const ffrt_ta
* @param attr Indicates a pointer to the task attribute.
* @param size Indicates the task stack size, unit is byte.
* @since 12
- * @version 1.0
*/
FFRT_C_API void ffrt_task_attr_set_stack_size(ffrt_task_attr_t* attr, uint64_t size);
@@ -157,7 +145,6 @@ FFRT_C_API void ffrt_task_attr_set_stack_size(ffrt_task_attr_t* attr, uint64_t s
* @param attr Indicates a pointer to the task attribute.
* @return Returns the task stack size, unit is byte.
* @since 12
- * @version 1.0
*/
FFRT_C_API uint64_t ffrt_task_attr_get_stack_size(const ffrt_task_attr_t* attr);
@@ -168,7 +155,6 @@ FFRT_C_API uint64_t ffrt_task_attr_get_stack_size(const ffrt_task_attr_t* attr);
* @return Returns 0 if the QoS is updated;
returns -1 otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API int ffrt_this_task_update_qos(ffrt_qos_t qos);
@@ -177,7 +163,6 @@ FFRT_C_API int ffrt_this_task_update_qos(ffrt_qos_t qos);
*
* @return Returns the task qos.
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_qos_t ffrt_this_task_get_qos(void);
@@ -186,7 +171,6 @@ FFRT_C_API ffrt_qos_t ffrt_this_task_get_qos(void);
*
* @return Returns the task ID.
* @since 10
- * @version 1.0
*/
FFRT_C_API uint64_t ffrt_this_task_get_id(void);
@@ -197,7 +181,6 @@ FFRT_C_API uint64_t ffrt_this_task_get_id(void);
* @return Returns a non-null pointer if the memory is allocated;
returns a null pointer otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API void *ffrt_alloc_auto_managed_function_storage_base(ffrt_function_kind_t kind);
@@ -209,7 +192,6 @@ FFRT_C_API void *ffrt_alloc_auto_managed_function_storage_base(ffrt_function_kin
* @param out_deps Indicates a pointer to the output dependencies.
* @param attr Indicates a pointer to the task attribute.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_submit_base(ffrt_function_header_t* f, const ffrt_deps_t* in_deps, const ffrt_deps_t* out_deps,
const ffrt_task_attr_t* attr);
@@ -224,18 +206,58 @@ FFRT_C_API void ffrt_submit_base(ffrt_function_header_t* f, const ffrt_deps_t* i
* @return Returns a non-null task handle if the task is submitted;
returns a null pointer otherwise.
* @since 10
- * @version 1.0
*/
FFRT_C_API ffrt_task_handle_t ffrt_submit_h_base(ffrt_function_header_t* f, const ffrt_deps_t* in_deps,
const ffrt_deps_t* out_deps, const ffrt_task_attr_t* attr);
+/**
+ * @brief Submits a task, simplified from the ffrt_submit_base interface.
+ *
+ * This interface wraps the provided task function and its argument into a task wrapper
+ * designated as a general task (ffrt_function_kind_general). During wrapper creation, the
+ * task destroy callback (after_func), which is intended to handle any post-execution cleanup,
+ * is simplified to NULL. The resulting task wrapper is then submitted using the underlying
+ * ffrt_submit_base interface.
+ *
+ * @param func Indicates a task function to be executed.
+ * @param arg Indicates a pointer to the argument or closure data that will be passed to the task function.
+ * @param in_deps Indicates a pointer to the input dependencies.
+ * @param out_deps Indicates a pointer to the output dependencies.
+ * @param attr Indicates a pointer to the task attribute.
+ * @see ffrt_submit_base
+ * @since 20
+ */
+FFRT_C_API void ffrt_submit_f(ffrt_function_t func, void* arg, const ffrt_deps_t* in_deps, const ffrt_deps_t* out_deps,
+ const ffrt_task_attr_t* attr);
+
+/**
+ * @brief Submits a task, and obtains a task handle, simplified from the ffrt_submit_h_base interface.
+ *
+ * This interface wraps the provided task function and its argument into a task wrapper
+ * designated as a general task (ffrt_function_kind_general). During wrapper creation, the
+ * task destroy callback (after_func), which is intended to handle any post-execution cleanup,
+ * is simplified to NULL. The resulting task wrapper is then submitted using the underlying
+ * ffrt_submit_h_base interface.
+ *
+ * @param func Indicates a task function to be executed.
+ * @param arg Indicates a pointer to the argument or closure data that will be passed to the task function.
+ * @param in_deps Indicates a pointer to the input dependencies.
+ * @param out_deps Indicates a pointer to the output dependencies.
+ * @param attr Indicates a pointer to the task attribute.
+ * @return Returns a non-null task handle if the task is submitted;
+ returns a null pointer otherwise.
+ * @see ffrt_submit_h_base
+ * @since 20
+ */
+FFRT_C_API ffrt_task_handle_t ffrt_submit_h_f(ffrt_function_t func, void* arg, const ffrt_deps_t* in_deps,
+ const ffrt_deps_t* out_deps, const ffrt_task_attr_t* attr);
+
/**
* @brief Increases reference count of a task.
*
* @param handle Indicates a task handle.
* @return Returns the task handle original reference count.
* @since 12
- * @version 1.0
*/
FFRT_C_API uint32_t ffrt_task_handle_inc_ref(ffrt_task_handle_t handle);
@@ -245,7 +267,6 @@ FFRT_C_API uint32_t ffrt_task_handle_inc_ref(ffrt_task_handle_t handle);
* @param handle Indicates a task handle.
* @return Returns the task handle original reference count.
* @since 12
- * @version 1.0
*/
FFRT_C_API uint32_t ffrt_task_handle_dec_ref(ffrt_task_handle_t handle);
@@ -254,7 +275,6 @@ FFRT_C_API uint32_t ffrt_task_handle_dec_ref(ffrt_task_handle_t handle);
*
* @param handle Indicates a task handle.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_task_handle_destroy(ffrt_task_handle_t handle);
@@ -263,7 +283,6 @@ FFRT_C_API void ffrt_task_handle_destroy(ffrt_task_handle_t handle);
*
* @param deps Indicates a pointer to the dependent tasks.
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_wait_deps(const ffrt_deps_t* deps);
@@ -271,7 +290,6 @@ FFRT_C_API void ffrt_wait_deps(const ffrt_deps_t* deps);
* @brief Waits until all submitted tasks are complete.
*
* @since 10
- * @version 1.0
*/
FFRT_C_API void ffrt_wait(void);
diff --git a/resourceschedule/ffrt/c/timer.h b/resourceschedule/ffrt/c/timer.h
index 9cbc4267fb6e68b6797a52849fa7d65fdaccd8e7..1f13a4dffe037407146f584764fd982215607b36 100644
--- a/resourceschedule/ffrt/c/timer.h
+++ b/resourceschedule/ffrt/c/timer.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 12
- * @version 1.0
*/
#ifndef FFRT_API_C_TIMER_H
@@ -50,7 +49,6 @@
* @param repeat Indicates whether to repeat this timer.
* @return Returns a timer handle.
* @since 12
- * @version 1.0
*/
FFRT_C_API ffrt_timer_t ffrt_timer_start(ffrt_qos_t qos, uint64_t timeout, void* data, ffrt_timer_cb cb, bool repeat);
@@ -62,7 +60,6 @@ FFRT_C_API ffrt_timer_t ffrt_timer_start(ffrt_qos_t qos, uint64_t timeout, void*
* @return Returns 0 if success;
returns -1 otherwise.
* @since 12
- * @version 1.0
*/
FFRT_C_API int ffrt_timer_stop(ffrt_qos_t qos, ffrt_timer_t handle);
diff --git a/resourceschedule/ffrt/c/type_def.h b/resourceschedule/ffrt/c/type_def.h
index 0d1dfb8d1173ad1932065ca6a7afa027acdb87f8..b91ceeb5162b823d3de363081a248103411daf74 100644
--- a/resourceschedule/ffrt/c/type_def.h
+++ b/resourceschedule/ffrt/c/type_def.h
@@ -31,7 +31,6 @@
* @kit FunctionFlowRuntimeKit
* @syscap SystemCapability.Resourceschedule.Ffrt.Core
* @since 10
- * @version 1.0
*/
#ifndef FFRT_API_C_TYPE_DEF_H
@@ -124,6 +123,30 @@ typedef enum {
ffrt_cond_storage_size = 64,
/** Queue storage size. */
ffrt_queue_attr_storage_size = 128,
+ /** Rwlock storage size.
+ *
+ * @since 18
+ */
+ ffrt_rwlock_storage_size = 64,
+ /** Fiber storage size.
+ *
+ * This constant defines the fiber storage size.
+ * The actual value depends on the target architecture:
+ * - __aarch64__: 22
+ * - __arm__: 64
+ * - __x86_64__: 8
+ *
+ * @since 20
+ */
+#if defined(__aarch64__)
+ ffrt_fiber_storage_size = 22,
+#elif defined(__arm__)
+ ffrt_fiber_storage_size = 64,
+#elif defined(__x86_64__)
+ ffrt_fiber_storage_size = 8,
+#else
+#error "unsupported architecture"
+#endif
} ffrt_storage_size_t;
/**
@@ -241,6 +264,16 @@ typedef struct {
long storage;
} ffrt_mutexattr_t;
+/**
+ * @brief Defines the rwlock attribute structure.
+ *
+ * @since 18
+ */
+typedef struct {
+ /** A long integer used to store the rwlock attribute. */
+ long storage;
+} ffrt_rwlockattr_t;
+
/**
* @brief Enumerates the mutex types.
*
@@ -268,6 +301,16 @@ typedef struct {
uint32_t storage[(ffrt_mutex_storage_size + sizeof(uint32_t) - 1) / sizeof(uint32_t)];
} ffrt_mutex_t;
+/**
+ * @brief Defines the rwlock structure.
+ *
+ * @since 18
+ */
+typedef struct {
+ /** An array of uint32_t used to store the rwlock. */
+ uint32_t storage[(ffrt_rwlock_storage_size + sizeof(uint32_t) - 1) / sizeof(uint32_t)];
+} ffrt_rwlock_t;
+
/**
* @brief Defines the condition variable structure.
*
@@ -278,6 +321,16 @@ typedef struct {
uint32_t storage[(ffrt_cond_storage_size + sizeof(uint32_t) - 1) / sizeof(uint32_t)];
} ffrt_cond_t;
+/**
+ * @brief Defines the fiber structure.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** An array of uint32_t used to store the fiber. */
+ uintptr_t storage[ffrt_fiber_storage_size];
+} ffrt_fiber_t;
+
/**
* @brief Defines the poller callback function type.
*
diff --git a/resourceschedule/ffrt/ffrt.ndk.json b/resourceschedule/ffrt/ffrt.ndk.json
index e0e760ce774511ebb8f48602912019c3672e5e9b..9cb99963f60f9cca284f3a4f76fd7dc6d0c45088 100644
--- a/resourceschedule/ffrt/ffrt.ndk.json
+++ b/resourceschedule/ffrt/ffrt.ndk.json
@@ -26,6 +26,34 @@
{ "name": "ffrt_mutex_unlock" },
{ "name": "ffrt_mutex_trylock" },
{ "name": "ffrt_mutex_destroy" },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_init"
+ },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_wrlock"
+ },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_trywrlock"
+ },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_rdlock"
+ },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_tryrdlock"
+ },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_unlock"
+ },
+ {
+ "first_introduced": "18",
+ "name": "ffrt_rwlock_destroy"
+ },
{ "name": "ffrt_queue_attr_init" },
{ "name": "ffrt_queue_attr_destroy" },
{ "name": "ffrt_queue_attr_set_qos" },
@@ -37,7 +65,15 @@
{ "name": "ffrt_queue_create" },
{ "name": "ffrt_queue_destroy" },
{ "name": "ffrt_queue_submit" },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_queue_submit_f"
+ },
{ "name": "ffrt_queue_submit_h" },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_queue_submit_h_f"
+ },
{ "name": "ffrt_queue_wait" },
{ "name": "ffrt_queue_cancel" },
{ "name": "ffrt_usleep" },
@@ -62,7 +98,15 @@
{ "name": "ffrt_this_task_get_id" },
{ "name": "ffrt_alloc_auto_managed_function_storage_base" },
{ "name": "ffrt_submit_base" },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_submit_f"
+ },
{ "name": "ffrt_submit_h_base" },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_submit_h_f"
+ },
{
"first_introduced": "12",
"name": "ffrt_task_handle_inc_ref"
@@ -71,6 +115,22 @@
"first_introduced": "12",
"name": "ffrt_task_handle_dec_ref"
},
+ {
+ "first_introduced": "20",
+ "name": "ffrt_fiber_init"
+ },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_fiber_switch"
+ },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_queue_attr_set_mode"
+ },
+ {
+ "first_introduced": "20",
+ "name": "ffrt_queue_attr_get_mode"
+ },
{ "name": "ffrt_task_handle_destroy" },
{ "name": "ffrt_wait_deps" },
{ "name": "ffrt_wait" },
diff --git a/resourceschedule/qos_manager/c/qos.h b/resourceschedule/qos_manager/c/qos.h
index 8cc30a05140862f673485e221c82ec70d12d06f4..fb0633962a23c1d9fa18d6a2861e66383ec005c3 100644
--- a/resourceschedule/qos_manager/c/qos.h
+++ b/resourceschedule/qos_manager/c/qos.h
@@ -114,6 +114,192 @@ int OH_QoS_ResetThreadQoS();
* @since 12
*/
int OH_QoS_GetThreadQoS(QoS_Level *level);
+
+/**
+ * @brief Session id
+ *
+ * @since 20
+ */
+typedef unsigned int OH_QoS_GewuSession;
+#define OH_QOS_GEWU_INVALID_SESSION_ID (static_cast(0xffffffffU))
+/**
+ * @brief Request id
+ *
+ * @since 20
+ */
+typedef unsigned int OH_QoS_GewuRequest;
+#define OH_QOS_GEWU_INVALID_REQUEST_ID (static_cast(0xffffffffU))
+
+
+/**
+ * @brief Gewu error codes.
+ *
+ * @since 20
+ */
+typedef enum {
+ OH_QOS_GEWU_OK = 0,
+ OH_QOS_GEWU_NOPERM = 201,
+ OH_QOS_GEWU_NOMEM = 203,
+ OH_QOS_GEWU_INVAL = 401,
+ OH_QOS_GEWU_EXIST = 501,
+ OH_QOS_GEWU_NOENT = 502,
+ OH_QOS_GEWU_NOSYS = 801,
+ OH_QOS_GEWU_FAULT = 901,
+} OH_QoS_GewuErrorCode;
+
+/**
+ * @param session The created session id
+ * @param error Error code of CreateSession
+ * - OH_QOS_GEWU_OK will be returned if the session is created successfully.
+ * - OH_QOS_GEWU_NOMEM will be returned if the system does not have sufficient memory to
+ * create the session.
+ *
+ * @since 20
+ */
+typedef struct {
+ OH_QoS_GewuSession session;
+ OH_QoS_GewuErrorCode error;
+} OH_QoS_GewuCreateSessionResult;
+
+/**
+ * @param request The created request id
+ * @param error Error code of request submission.
+ * - OH_QOS_GEWU_OK will be returned if the request is submitted successfully.
+ * - OH_QOS_GEWU_NOMEM will be returned if the system does not have sufficient memory to
+ * submit the request.
+ *
+ * @since 20
+ */
+typedef struct {
+ OH_QoS_GewuRequest request;
+ OH_QoS_GewuErrorCode error;
+} OH_QoS_GewuSubmitRequestResult;
+
+
+/**
+ * @brief Callback to receive response of the request.
+ *
+ * @param context The user context specified when submitting the request.
+ * @param reponse The json string of the response, including the following parameters:
+ * - message: A message that contains the following fields.
+ * - role: string. Must be "assistant".
+ * - content: string. The message generated by the model in response to user messages.
+ * - finish_reason: string or null. The reason the inference stopped. Possible values:
+ * - null: Not finished yet, only present in streaming mode.
+ * - "stop": The model stopped natually.
+ * - "abort": The inference request was aborted.
+ * - "length": The generated tokens reached the limit.
+ *
+ * @since 20
+ */
+typedef void (*OH_QoS_GewuOnResponse)(void* context, const char* response);
+
+/**
+ * @brief Create a gewu session for inference.
+ * The lifecycle of the returned session object spans from the return of CreateSession
+ * to the call to DestroySession.
+ *
+ * json string of session attributes.
+ *
+ * The json string of session attributes include the following parameters
+ * - model: string. The directory of the model of the session.
+ *
+ * An example of json string of session attributes:
+ * @code{.json}
+ * {
+ * "model": "/data/storage/el2/base/files/qwen2/"
+ * }
+ * @endcode
+ *
+ * @param attributes The json string of session attributes.
+ *
+ * @return Result of CreateSession.
+ *
+ * @since 20
+ */
+OH_QoS_GewuCreateSessionResult OH_QoS_GewuCreateSession(const char* attributes);
+
+/**
+ * @brief Destroy the specified session.
+ * It is recommended that the client shall wait until all ongoing requests are done before calling
+ * this interface to destroy the session. If there are remaining requests in the session when this
+ * interface is called, those requests will be aborted and no further responses for those requests
+ * will be sent to the client.
+ * Note that after calling this function successfully, the session cannot be used by the user code
+ * any more.
+ *
+ * @param session The session that will be destroyed.
+ *
+ * @return Error code.
+ * - OH_QOS_GEWU_OK will be returned if the session is destroyed successfully.
+ * - OH_QOS_GEWU_NOENT will be returned if the session is not found.
+ *
+ * @since 20
+ */
+OH_QoS_GewuErrorCode OH_QoS_GewuDestroySession(OH_QoS_GewuSession session);
+
+/**
+ * @brief Abort the specified request.
+ * Note that after calling this function successfully, the client will not receive further responses
+ * for this request, and the request object cannot be used by the user code any more.
+ *
+ * @param session The session that the request was submitted through.
+ * @param request The request object.
+ *
+ * @return Error code.
+ * - OH_QOS_GEWU_OK will be returned if the request is aborted successfully.
+ * - OH_QOS_GEWU_NOENT will be returned if the request is not found.
+ *
+ * @since 20
+ */
+OH_QoS_GewuErrorCode OH_QoS_GewuAbortRequest(OH_QoS_GewuSession session, OH_QoS_GewuRequest request);
+
+/**
+ * @brief Submit a request.
+ *
+ * json string of completion request.
+ * Completion request is a json string that specifies the following parameters:
+ * - messages: array. A list of messages. Each message contains the following fields:
+ * - role: string. The message type, which could be one of the following:
+ * - "developer": Developer-provided instructions.
+ * - "user": User-provided instructions.
+ * - "assistant": Message generated by the model in response to user messages.
+ * - content: string. The message content.
+ * - stream: boolean or null; optional. Enable streaming mode or not. If set to true, partial
+ * responses will be sent. If null or not set, defaults to nonstreaming mode.
+ *
+ * An example of completion request:
+ * @code{.json}
+ * {
+ * "messages": [
+ * {
+ * "role": "developer",
+ * "content": "Your are a helpful assistant."
+ * },
+ * {
+ * "role": "user",
+ * "content": "What is OpenHarmony"
+ * }
+ * ],
+ * "stream": true
+ * }
+ * @endcode
+ *
+ * @param session The session object that the request should be submitted through.
+ * @param request The json string of request.
+ * @param callback The callback to receive response.
+ * @param context The user context that should be passed to the response callback.
+ *
+ * @return Gewu request submission result.
+ * - OH_QOS_GEWU_OK will be returned if the request is accepted.
+ * - OH_QOS_GEWU_NOMEM will be returned if the system does not have sufficient memory
+ * to accept the request.
+ *
+ * @since 20
+ */
+OH_QoS_GewuSubmitRequestResult OH_QoS_GewuSubmitRequest(OH_QoS_GewuSession session, const char* request,
+ OH_QoS_GewuOnResponse callback, void* context);
+
#ifdef __cplusplus
};
#endif
diff --git a/resourceschedule/qos_manager/libqos.ndk.json b/resourceschedule/qos_manager/libqos.ndk.json
index 6c21f98392fa5e1206ed70bd5a6c47e075e6aa6a..0e1d22af4611107137ef007ae1379a948c05fd36 100644
--- a/resourceschedule/qos_manager/libqos.ndk.json
+++ b/resourceschedule/qos_manager/libqos.ndk.json
@@ -10,5 +10,21 @@
{
"first_introduced": "12",
"name": "OH_QoS_GetThreadQoS"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_QoS_GewuCreateSession"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_QoS_GewuDestroySession"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_QoS_GewuAbortRequest"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_QoS_GewuSubmitRequest"
}
-]
\ No newline at end of file
+]
diff --git a/security/asset/BUILD.gn b/security/asset/BUILD.gn
index 18ec0924e89b88cb5a9fbc84d882d6cb82c0bbb4..422690b4d84ee544f4f0490d2dfcc617d106ad56 100755
--- a/security/asset/BUILD.gn
+++ b/security/asset/BUILD.gn
@@ -20,8 +20,8 @@ ohos_ndk_library("libasset_ndk") {
min_compact_version = "11"
system_capability = "SystemCapability.Security.Asset"
system_capability_headers = [
- "inc/asset_api.h",
- "inc/asset_type.h",
+ "asset/asset_api.h",
+ "asset/asset_type.h",
]
}
diff --git a/security/asset/inc/asset_api.h b/security/asset/inc/asset_api.h
index cda927aac42a5993ee6f13785d945feb0adb171e..e896de82a117f63187135a1d0bbd26e001bfc729 100755
--- a/security/asset/inc/asset_api.h
+++ b/security/asset/inc/asset_api.h
@@ -203,6 +203,25 @@ int32_t OH_Asset_Query(const Asset_Attr *query, uint32_t queryCnt, Asset_ResultS
*/
int32_t OH_Asset_PostQuery(const Asset_Attr *handle, uint32_t handleCnt);
+/**
+ * @brief Query the result of synchronization.
+ *
+ * @param query Pointer to the search criteria.
+ * @param queryCnt Number of the search criteria.
+ * @param syncResult Pointer to the synchronization result obtained.
+ * @return {@link ASSET_SUCCESS} 0 - The operation is successful.
+ * {@link ASSET_SERVICE_UNAVAILABLE} 24000001 - The ASSET service is unavailable.
+ * {@link ASSET_OUT_OF_MEMORY} 24000006 - Insufficient memory.
+ * {@link ASSET_IPC_ERROR} 24000010 - IPC failed.
+ * {@link ASSET_BMS_ERROR} 24000011 - Calling the Bundle Manager service failed.
+ * {@link ASSET_ACCOUNT_ERROR} 24000012 - Calling the OS Account service failed.
+ * {@link ASSET_ACCESS_TOKEN_ERROR} 24000013 - Calling the Access Token service failed.
+ * {@link ASSET_FILE_OPERATION_ERROR} 24000014 - The file operation failed.
+ * {@link ASSET_PARAM_VERIFICATION_FAILED} 24000018 - Parameter verification failed.
+ * @since 20
+ */
+int32_t OH_Asset_QuerySyncResult(const Asset_Attr *query, uint32_t queryCnt, Asset_SyncResult *syncResult);
+
/**
* @brief Parses the query result to obtain the specified attribute value.
*
diff --git a/security/asset/inc/asset_type.h b/security/asset/inc/asset_type.h
index 1706eb602a1d20748d9300114d888cc427a6f8be..0e72c06e2177314b969a8bdf1f02a6fb88613a70 100755
--- a/security/asset/inc/asset_type.h
+++ b/security/asset/inc/asset_type.h
@@ -271,6 +271,12 @@ typedef enum {
ASSET_LIMIT_EXCEEDED = 24000016,
/** @error The capability is not supported. */
ASSET_UNSUPPORTED = 24000017,
+ /**
+ * @error Parameter verification failed.
+ *
+ * @since 20
+ */
+ ASSET_PARAM_VERIFICATION_FAILED = 24000018,
} Asset_ResultCode;
/**
@@ -485,6 +491,26 @@ typedef struct {
Asset_Result *results;
} Asset_ResultSet;
+/**
+ * @brief Represents information about the synchronization result.
+ *
+ * @since 20
+ */
+typedef struct {
+ /**
+ * The result code of synchronization.
+ */
+ int32_t resultCode;
+ /**
+ * The total count of synchronized Assets.
+ */
+ uint32_t totalCount;
+ /**
+ * The count of Assets that fail to synchronize.
+ */
+ uint32_t failedCount;
+} Asset_SyncResult;
+
#ifdef __cplusplus
}
#endif
diff --git a/security/asset/libasset.ndk.json b/security/asset/libasset.ndk.json
index 7ea9eec4457b1896c0c74be9f99cf496e6caa172..e8acf76b33af19836e95b254d25ab14e8fc8521e 100755
--- a/security/asset/libasset.ndk.json
+++ b/security/asset/libasset.ndk.json
@@ -17,6 +17,9 @@
{
"name": "OH_Asset_PostQuery"
},
+ {
+ "name": "OH_Asset_QuerySyncResult"
+ },
{
"name": "OH_Asset_ParseAttr"
},
diff --git a/security/huks/BUILD.gn b/security/huks/BUILD.gn
index 9c8b729850b37665f960c1e4138b4815aaa2f2eb..16d0d9872c476ce464ac308778722c1d431a1659 100644
--- a/security/huks/BUILD.gn
+++ b/security/huks/BUILD.gn
@@ -19,7 +19,12 @@ ohos_ndk_library("libhuks_ndk") {
ndk_description_file = "./libhuks.ndk.json"
min_compact_version = "1"
- # system_capability = "SystemCapability.Security.Huks"
+ system_capability = "SystemCapability.Security.Huks.Core"
+ system_capability_headers = [
+ "huks/native_huks_api.h",
+ "huks/native_huks_param.h",
+ "huks/native_huks_type.h",
+ ]
}
ohos_ndk_headers("huks_header") {
diff --git a/security/huks/include/native_huks_api.h b/security/huks/include/native_huks_api.h
index 37d74511b6a9d3e1b1e1b2d3f03092aec10e2b63..bbd5dfdf2bee32d4341e915582dbe9d3df6d5ca2 100644
--- a/security/huks/include/native_huks_api.h
+++ b/security/huks/include/native_huks_api.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
+ * Copyright (c) 2022-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -21,7 +21,6 @@
* cryptography operations, provided for applications.
* The keys managed by HUKS can be imported by applications or generated by calling the HUKS APIs.
*
- * @syscap SystemCapability.Security.Huks
* @since 9
* @version 1.0
*/
@@ -32,7 +31,7 @@
* @brief Defines the Universal Keystore Kit APIs.
*
* @library libhuks_ndk.z.so
- * @syscap SystemCapability.Security.Huks
+ * @syscap SystemCapability.Security.Huks.Core
*
* include "huks/include/native_huks_type.h"
* @kit UniversalKeystoreKit
@@ -72,7 +71,8 @@ struct OH_Huks_Result OH_Huks_GetSdkVersion(struct OH_Huks_Blob *sdkVersion);
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSetIn or
* paramSetOut is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
* or if failed to write file.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
@@ -83,13 +83,46 @@ struct OH_Huks_Result OH_Huks_GetSdkVersion(struct OH_Huks_Blob *sdkVersion);
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CRYPTO_FAIL} 12000006 - If crypto engine failed.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If connect userIam failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If Failed to obtain
+ * the security information via UserIAM.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_DEVICE_PASSWORD_UNSET} 12000016 - If device password is required
* but not set.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
* @since 9
* @version 1.0
*/
+/**
+ * @brief Generates a key.
+ *
+ * @param keyAlias Indicates the pointer to the alias of the key to generate.
+ * The alias must be unique in the process of the service. Otherwise, the key will be overwritten.
+ * @param paramSetIn Indicates the pointer to the parameter set for generating the key.
+ * @param paramSetOut Indicates the pointer to a temporary key generated. If the generated key is
+ * not of a temporary type, this parameter is a null pointer.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSetIn or
+ * paramSetOut is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
+ * or if failed to write file.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
+ * is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the base key file is not exit.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT} 12000002 - If failed to
+ * get key argument.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CRYPTO_FAIL} 12000006 - If crypto engine failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If Failed to obtain
+ * the security information via UserIAM.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_DEVICE_PASSWORD_UNSET} 12000016 - If device password is required
+ * but not set.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_ALREADY_EXIST} 12000017 - If the key with same alias is
+ * already exist.
+ * @since 20
+ */
struct OH_Huks_Result OH_Huks_GenerateKeyItem(const struct OH_Huks_Blob *keyAlias,
const struct OH_Huks_ParamSet *paramSetIn, struct OH_Huks_ParamSet *paramSetOut);
@@ -103,7 +136,8 @@ struct OH_Huks_Result OH_Huks_GenerateKeyItem(const struct OH_Huks_Blob *keyAlia
* For details, see {@link HuksTypeApi}.
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet or key is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
* or if failed to write file.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
@@ -112,11 +146,39 @@ struct OH_Huks_Result OH_Huks_GenerateKeyItem(const struct OH_Huks_Blob *keyAlia
* get key argument.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If connect userIam failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If Failed to obtain
+ * the security information via UserIAM.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
* @since 9
* @version 1.0
*/
+/**
+ * @brief Imports a key in plaintext.
+ *
+ * @param keyAlias Indicates the pointer to the alias of the key to import.
+ * The alias must be unique in the process of the service. Otherwise, the key will be overwritten.
+ * @param paramSet Indicates the pointer to the parameters of the key to import.
+ * @param key Indicates the pointer to the key to import. The key must be in the format required by the HUKS.
+ * For details, see {@link HuksTypeApi}.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet or key is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
+ * or if failed to write file.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
+ * is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT} 12000002 - If failed to
+ * get key argument.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If Failed to obtain
+ * the security information via UserIAM.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_ALREADY_EXIST} 12000017 - If the key with same alias is
+ * already exist.
+ * @since 20
+ */
struct OH_Huks_Result OH_Huks_ImportKeyItem(const struct OH_Huks_Blob *keyAlias,
const struct OH_Huks_ParamSet *paramSet, const struct OH_Huks_Blob *key);
@@ -133,7 +195,8 @@ struct OH_Huks_Result OH_Huks_ImportKeyItem(const struct OH_Huks_Blob *keyAlias,
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or wrappingKeyAlias or
* paramSet or wrappedKeyData is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
* or if failed to write file.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
@@ -143,11 +206,43 @@ struct OH_Huks_Result OH_Huks_ImportKeyItem(const struct OH_Huks_Blob *keyAlias,
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CRYPTO_FAIL} 12000006 - If crypto engine failed.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If connect userIam failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If Failed to obtain
+ * the security information via UserIAM.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
* @since 9
* @version 1.0
*/
+/**
+ * @brief Imports a wrapped key.
+ *
+ * @param keyAlias Indicates the pointer to the alias of the key to import.
+ * The alias must be unique in the process of the service. Otherwise, the key will be overwritten.
+ * @param wrappingKeyAlias Indicates the pointer to the alias of the wrapping key,
+ * which is obtained through key agreement and used to decrypt the key to import.
+ * @param paramSet Indicates the pointer to the parameters of the wrapped key to import.
+ * @param wrappedKeyData Indicates the pointer to the wrapped key to import.
+ * The key must be in the format required by the HUKS. For details, see {@link OH_Huks_AlgSuite}.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or wrappingKeyAlias or
+ * paramSet or wrappedKeyData is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
+ * or if failed to write file.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
+ * is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT} 12000002 - If failed to
+ * get key argument.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CRYPTO_FAIL} 12000006 - If crypto engine failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If Failed to obtain
+ * the security information via UserIAM.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_ALREADY_EXIST} 12000017 - If the key with same alias is
+ * already exist.
+ * @since 20
+ */
struct OH_Huks_Result OH_Huks_ImportWrappedKeyItem(const struct OH_Huks_Blob *keyAlias,
const struct OH_Huks_Blob *wrappingKeyAlias, const struct OH_Huks_ParamSet *paramSet,
const struct OH_Huks_Blob *wrappedKeyData);
@@ -161,7 +256,8 @@ struct OH_Huks_Result OH_Huks_ImportWrappedKeyItem(const struct OH_Huks_Blob *ke
* @param key Indicates the pointer to the public key exported.
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet or key is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
@@ -185,7 +281,8 @@ struct OH_Huks_Result OH_Huks_ExportPublicKeyItem(const struct OH_Huks_Blob *key
* By default, this parameter is a null pointer.
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
@@ -209,7 +306,8 @@ struct OH_Huks_Result OH_Huks_DeleteKeyItem(const struct OH_Huks_Blob *keyAlias,
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSetIn or
* paramSetOut is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
@@ -232,7 +330,8 @@ struct OH_Huks_Result OH_Huks_GetKeyItemParamSet(const struct OH_Huks_Blob *keyA
* By default, this parameter is a null pointer.
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
@@ -256,7 +355,8 @@ struct OH_Huks_Result OH_Huks_IsKeyItemExist(const struct OH_Huks_Blob *keyAlias
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or
* paramSet or certChain is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
@@ -283,7 +383,8 @@ struct OH_Huks_Result OH_Huks_AttestKeyItem(const struct OH_Huks_Blob *keyAlias,
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or
* paramSet or certChain is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
@@ -314,7 +415,8 @@ struct OH_Huks_Result OH_Huks_AnonAttestKeyItem(const struct OH_Huks_Blob *keyAl
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet or handle or
* token is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit.
@@ -346,7 +448,8 @@ struct OH_Huks_Result OH_Huks_InitSession(const struct OH_Huks_Blob *keyAlias,
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If handle or paramSet or inData or
* outData is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit,
@@ -383,7 +486,8 @@ struct OH_Huks_Result OH_Huks_UpdateSession(const struct OH_Huks_Blob *handle,
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If handle or paramSet or inData or
* outData is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit,
@@ -407,6 +511,42 @@ struct OH_Huks_Result OH_Huks_UpdateSession(const struct OH_Huks_Blob *handle,
* @see OH_Huks_UpdateSession
* @see OH_Huks_AbortSession
*/
+/**
+ * @brief Ends the key session.
+ *
+ * @param handle Indicates the pointer to the key session handle, which is generated by {@link OH_Huks_InitSession}.
+ * @param paramSet Indicates the pointer to the parameters required for the key operation.
+ * @param inData Indicates the pointer to the data to be processed.
+ * @param outData Indicates the pointer to the output data.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If handle or paramSet or inData or
+ * outData is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
+ * is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - If the key file is not exit,
+ * or if the handle is not exist.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT} 12000002 - If failed to
+ * get key argument.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST} 12000013 - If credemtial is not exist.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CRYPTO_FAIL} 12000006 - If crypto engine failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED} 12000008 - If auth token verify failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED} 12000007 - If auth token info
+ * verify failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_AUTH_TIME_OUT} 12000009 - If authentication token timed out.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_DEVICE_PASSWORD_UNSET} 12000016 - If device password is required
+ * but not set.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED} 12000001 - If the feature is not support.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_KEY_ALREADY_EXIST} 12000017 - If the key with same alias is
+ * already exist.
+ * @since 20
+ * @see OH_Huks_InitSession
+ * @see OH_Huks_UpdateSession
+ * @see OH_Huks_AbortSession
+ */
struct OH_Huks_Result OH_Huks_FinishSession(const struct OH_Huks_Blob *handle,
const struct OH_Huks_ParamSet *paramSet, const struct OH_Huks_Blob *inData, struct OH_Huks_Blob *outData);
@@ -419,7 +559,8 @@ struct OH_Huks_Result OH_Huks_FinishSession(const struct OH_Huks_Blob *handle,
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If handle or paramSet or inData or
* outData is invalid.
- * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT} 12000003 - If the key argument
* is invalid.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ITEM_NOT_EXIST} 12000011 - or if the handle is not exist.
@@ -437,6 +578,65 @@ struct OH_Huks_Result OH_Huks_FinishSession(const struct OH_Huks_Blob *handle,
struct OH_Huks_Result OH_Huks_AbortSession(const struct OH_Huks_Blob *handle,
const struct OH_Huks_ParamSet *paramSet);
+/**
+ * @brief Get key alias list.
+ *
+ * @param paramSet Indicates the pointer to the parameters required for getting key alias list.
+ * By default, this parameter is a null pointer.
+ * @param outData Indicates the pointer to the output data.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If paramSet or outData is invalid.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If Device environment or
+ * input parameter abnormal..
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * @since 20
+ * @version 1.0
+ */
+struct OH_Huks_Result OH_Huks_ListAliases(const struct OH_Huks_ParamSet *paramSet,
+ struct OH_Huks_KeyAliasSet **outData);
+
+/**
+ * @brief Export the wrapped key encrypted by a specific key.
+ *
+ * @param keyAlias Indicates the pointer to the alias of the key to export.
+ * @param paramSet Indicates the pointer to the export parameters.
+ * @param wrappedKey Indicates the - indicates the wrapped key to export.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_NOT_SUPPORTED_API} 801 - api is not supported
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
+ * or if failed to write file.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CRYPTO_FAIL} 12000011 - If the base key file is not exit.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_ARGUMENT} 12000018 - If the input parameter is invalid.
+ * @since 20
+ */
+struct OH_Huks_Result OH_Huks_WrapKey(const struct OH_Huks_Blob *keyAlias, const struct OH_Huks_ParamSet *paramSet,
+ struct OH_Huks_Blob *wrappedKey);
+
+/**
+ * @brief Import the wrapped key encrypted by a specific key.
+ *
+ * @param keyAlias Indicates the pointer to the alias of the key to import.
+ * The alias must be unique in the process of the service. Otherwise, the key will be overwritten.
+ * @param paramSet Indicates the pointer to the import parameters.
+ * @param wrappedKey Indicates the - indicates the wrapped key to import.
+ * @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_NOT_SUPPORTED_API} 801 - api is not supported
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL} 12000004 - If failed to remove file,
+ * or if failed to write file.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_COMMUNICATION_FAIL} 12000005 - If Ipc commuication failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INTERNAL_ERROR} 12000012 - If system error ocurred.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY} 12000014 - If the memory is insufficient.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED} 12000015 - If connect userIam failed.
+ * {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_INVALID_ARGUMENT} 12000018 - If the input parameter is invalid.
+ * @since 20
+ */
+struct OH_Huks_Result OH_Huks_UnwrapKey(const struct OH_Huks_Blob *keyAlias, const struct OH_Huks_ParamSet *paramSet,
+ struct OH_Huks_Blob *wrappedKey);
+
#ifdef __cplusplus
}
#endif
diff --git a/security/huks/include/native_huks_param.h b/security/huks/include/native_huks_param.h
index 8866a8b564e235979af7a858fc6a80e39a447150..85b0aecfbb0d828057b11d86d51a34ab9263d86b 100644
--- a/security/huks/include/native_huks_param.h
+++ b/security/huks/include/native_huks_param.h
@@ -23,7 +23,6 @@
* a parameter set, and destroying a parameter set.
* They can also be used to obtain parameters, copy parameter sets, and check parameter validity.
*
- * @syscap SystemCapability.Security.Huks
* @since 9
* @version 1.0
*/
@@ -34,7 +33,7 @@
* @brief Provides APIs for constructing, using, and destroying parameter sets.
*
* @library libhuks_ndk.z.so
- * @syscap SystemCapability.Security.Huks
+ * @syscap SystemCapability.Security.Huks.Core
*
* include "huks/include/native_huks_type.h"
* @kit UniversalKeystoreKit
@@ -181,6 +180,15 @@ struct OH_Huks_Result OH_Huks_IsParamSetValid(const struct OH_Huks_ParamSet *par
*/
struct OH_Huks_Result OH_Huks_CheckParamMatch(const struct OH_Huks_Param *baseParam, const struct OH_Huks_Param *param);
+/**
+ * @brief Destroys a parameter set.
+ *
+ * @param keyAliasSet Indicates the pointer to the parameter set to destroy.
+ * @since 20
+ * @version 1.0
+ */
+void OH_Huks_FreeKeyAliasSet(struct OH_Huks_KeyAliasSet *keyAliasSet);
+
#ifdef __cplusplus
}
#endif
diff --git a/security/huks/include/native_huks_type.h b/security/huks/include/native_huks_type.h
index b3c1838c969889380fb9084428d64a5ca9fd095d..a51128f30f43736b01a4d32420ed591500c36b50 100644
--- a/security/huks/include/native_huks_type.h
+++ b/security/huks/include/native_huks_type.h
@@ -20,7 +20,6 @@
* @brief Defines the macros, enumerated values, data structures,
* and error codes used by OpenHarmony Universal KeyStore (HUKS) APIs.
*
- * @syscap SystemCapability.Security.Huks
* @since 9
* @version 1.0
*/
@@ -31,7 +30,7 @@
* @brief Defines the structure and enumeration.
*
* @library libhuks_ndk.z.so
- * @syscap SystemCapability.Security.Huks
+ * @syscap SystemCapability.Security.Huks.Core
*
* @kit UniversalKeystoreKit
* @since 9
@@ -451,6 +450,18 @@ enum OH_Huks_ErrCode {
* @since 11
*/
OH_HUKS_ERR_CODE_DEVICE_PASSWORD_UNSET = 12000016,
+ /**
+ * The key with same alias is already exist.
+ *
+ * @since 20
+ */
+ OH_HUKS_ERR_CODE_KEY_ALREADY_EXIST = 12000017,
+ /**
+ * The input parameter is invalid..
+ *
+ * @since 20
+ */
+ OH_HUKS_ERR_CODE_INVALID_ARGUMENT = 12000018
};
/**
@@ -488,6 +499,12 @@ enum OH_Huks_UserAuthType {
OH_HUKS_USER_AUTH_TYPE_FACE = 1 << 1,
/** PIN authentication. */
OH_HUKS_USER_AUTH_TYPE_PIN = 1 << 2,
+ /**
+ * Enum for tui pin auth type.
+ *
+ * @since 20
+ */
+ OH_HUKS_USER_AUTH_TYPE_TUI_PIN = 1 << 5,
};
/**
@@ -594,13 +611,31 @@ enum OH_Huks_ChallengePosition {
*/
enum OH_Huks_SecureSignType {
/**
- * The signature carries authentication information. This field is specified when a key
- * is generated or imported. When the key is used to sign data, the data will be added with
- * the authentication information and then be signed.
+ * The signature carries authentication information. This field is specified when a key
+ * is generated or imported. When the key is used to sign data, the data will be added with
+ * the authentication information and then be signed.
+ * NOTICE:
+ * The carried authentication information contains personal identification details. Developers are required
+ * to clearly state the purpose of use, retention policy, and destruction method of such personal information in
+ * their privacy statement.
*/
OH_HUKS_SECURE_SIGN_WITH_AUTHINFO = 1,
};
+/**
+ * Enum for key wrap type
+ *
+ * @since 20
+ */
+enum OH_Huks_KeyWrapType {
+ /**
+ * The hardware unique key wrap type.
+ *
+ * @since 20
+ */
+ OH_HUKS_KEY_WRAP_TYPE_HUK_BASED = 2,
+};
+
/**
* @brief Enumerates the tag values used in parameter sets.
*
@@ -975,6 +1010,19 @@ struct OH_Huks_KeyMaterial25519 {
uint32_t reserved;
};
+/**
+ * @brief Defines the structure of the alias set.
+ *
+ * @since 20
+ * @version 1.0
+ */
+struct OH_Huks_KeyAliasSet {
+ /** Number of aliases. */
+ uint32_t aliasesCnt;
+ /** Aliases array. */
+ struct OH_Huks_Blob *aliases;
+};
+
#ifdef __cplusplus
}
#endif
diff --git a/security/huks/libhuks.ndk.json b/security/huks/libhuks.ndk.json
index dac8b7470d519766b25694283c5a0d75e713c067..efd4d8784f3990b135438262566f8a530ece04f8 100644
--- a/security/huks/libhuks.ndk.json
+++ b/security/huks/libhuks.ndk.json
@@ -1,74 +1,114 @@
[
{
+ "first_introduced": "9",
"name": "OH_Huks_GetSdkVersion"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_GenerateKeyItem"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_ImportKeyItem"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_ImportWrappedKeyItem"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_ExportPublicKeyItem"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_DeleteKeyItem"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_GetKeyItemParamSet"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_IsKeyItemExist"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_AttestKeyItem"
},
{
+ "first_introduced": "11",
"name": "OH_Huks_AnonAttestKeyItem"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_InitSession"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_UpdateSession"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_FinishSession"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_AbortSession"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_InitParamSet"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_AddParams"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_BuildParamSet"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_FreeParamSet"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_CopyParamSet"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_GetParam"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_FreshParamSet"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_IsParamSetTagValid"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_IsParamSetValid"
},
{
+ "first_introduced": "9",
"name": "OH_Huks_CheckParamMatch"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Huks_ListAliases"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Huks_FreeKeyAliasSet"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Huks_WrapKey"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_Huks_UnwrapKey"
}
]
\ No newline at end of file
diff --git a/sensors/miscdevice/vibrator/BUILD.gn b/sensors/miscdevice/vibrator/BUILD.gn
index d843b2d080399168c78c88735938a42ce24bc662..e73f0d6b6559c65017dbc84d70ec72880e602181 100644
--- a/sensors/miscdevice/vibrator/BUILD.gn
+++ b/sensors/miscdevice/vibrator/BUILD.gn
@@ -25,4 +25,9 @@ ohos_ndk_library("lib_vibrator_ndk") {
output_name = "ohvibrator"
ndk_description_file = "./lib_vibrator.ndk.json"
min_compact_version = "11"
+ system_capability = "SystemCapability.Sensors.MiscDevice"
+ system_capability_headers = [
+ "sensors/vibrator_type.h",
+ "sensors/vibrator.h",
+ ]
}
diff --git a/sensors/sensor/BUILD.gn b/sensors/sensor/BUILD.gn
index 8a12ddf2ac2de2f6337ff8a8620c63858837b280..594835f9d48717311f7561d105c20359f4c39291 100644
--- a/sensors/sensor/BUILD.gn
+++ b/sensors/sensor/BUILD.gn
@@ -27,4 +27,9 @@ ohos_ndk_library("libsensor_ndk") {
output_name = "ohsensor"
output_extension = "so"
min_compact_version = "11"
+ system_capability = "SystemCapability.Sensors.Sensor"
+ system_capability_headers = [
+ "sensors/oh_sensor_type.h",
+ "sensors/oh_sensor.h",
+ ]
}
diff --git a/startup/init/syscap/BUILD.gn b/startup/init/syscap/BUILD.gn
index d28cab6c0d542a72463e255c22a9acef653a5712..b5ab10fee11a67fa055331024efe42da1c8e53e9 100644
--- a/startup/init/syscap/BUILD.gn
+++ b/startup/init/syscap/BUILD.gn
@@ -18,6 +18,11 @@ ohos_ndk_library("libdeviceinfo_ndk") {
output_name = "deviceinfo_ndk"
ndk_description_file = "./libdeviceinfo.ndk.json"
min_compact_version = "1"
+ system_capability = "SystemCapability.Startup.SystemInfo"
+ system_capability_headers = [
+ "deviceinfo.h",
+ "syscap_ndk.h",
+ ]
}
ohos_ndk_headers("deviceinfo_header") {
diff --git a/third_party/icu4c/libicu.ndk.json b/third_party/icu4c/libicu.ndk.json
index 40397f05313206cd8d4413e4e0f1142a8aabc6a3..42149b48ee8e15acef291cf765991bbae222c418 100644
--- a/third_party/icu4c/libicu.ndk.json
+++ b/third_party/icu4c/libicu.ndk.json
@@ -187,6 +187,10 @@
"first_introduced": "12",
"name":"ubrk_setText"
},
+ {
+ "first_introduced": "20",
+ "name":"ubrk_setUText"
+ },
{
"first_introduced": "12",
"name":"ubrk_current"
diff --git a/third_party/icu4c/ndk_headers/unicode/ubrk.h b/third_party/icu4c/ndk_headers/unicode/ubrk.h
index 9724bcf56944e66b2a0093d4e2fde6c576494540..98a27959a3cc28c526d41aa55caf7d2fca8738e6 100644
--- a/third_party/icu4c/ndk_headers/unicode/ubrk.h
+++ b/third_party/icu4c/ndk_headers/unicode/ubrk.h
@@ -12,6 +12,7 @@
#include "unicode/utypes.h"
#include "unicode/uloc.h"
+#include "unicode/utext.h"
#if U_SHOW_CPLUSPLUS_API
#include "unicode/localpointer.h"
@@ -338,6 +339,28 @@ ubrk_setText(UBreakIterator* bi,
int32_t textLength,
UErrorCode* status);
+/**
+ * Sets an existing iterator to point to a new piece of text.
+ *
+ * All index positions returned by break iterator functions are
+ * native indices from the UText. For example, when breaking UTF-8
+ * encoded text, the break positions returned by \ref ubrk_next, \ref ubrk_previous, etc.
+ * will be UTF-8 string indices, not UTF-16 positions.
+ *
+ * @param bi The iterator to use
+ * @param text The text to be set.
+ * This function makes a shallow clone of the supplied UText. This means
+ * that the caller is free to immediately close or otherwise reuse the
+ * UText that was passed as a parameter, but that the underlying text itself
+ * must not be altered while being referenced by the break iterator.
+ * @param status The error code
+ * @stable ICU 3.4
+ */
+U_CAPI void U_EXPORT2
+ubrk_setUText(UBreakIterator* bi,
+ UText* text,
+ UErrorCode* status);
+
/**
* Determine the most recently-returned text boundary.
*
diff --git a/third_party/mindspore/kits/BUILD.gn b/third_party/mindspore/kits/BUILD.gn
index 294ac2da5c08d371f8a9fefaf660143a2b70e6c7..3871f016bf7608b75cf93f8276ef40806e3c6549 100644
--- a/third_party/mindspore/kits/BUILD.gn
+++ b/third_party/mindspore/kits/BUILD.gn
@@ -1,37 +1,46 @@
-# Copyright 2022 Huawei Technologies Co., Ltd
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Copyright 2022 Huawei Technologies Co., Ltd
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# ============================================================================
-
-import("//build/ohos.gni")
-
-ohos_ndk_headers("mindspore_header") {
- dest_dir = "$ndk_headers_out_dir/mindspore"
- sources = [
- "context.h",
- "data_type.h",
- "format.h",
- "model.h",
- "status.h",
- "tensor.h",
- "types.h",
- ]
-}
-
-ohos_ndk_library("mindspore_lib") {
- output_name = "mindspore_lite_ndk"
- output_extension = "so"
- ndk_description_file = "./mindspore_lib.ndk.json"
- system_capability = "SystemCapability.Ai.MindSpore"
- min_compact_version = "9"
-}
+
+import("//build/ohos.gni")
+
+ohos_ndk_headers("mindspore_header") {
+ dest_dir = "$ndk_headers_out_dir/mindspore"
+ sources = [
+ "context.h",
+ "data_type.h",
+ "format.h",
+ "model.h",
+ "status.h",
+ "tensor.h",
+ "types.h",
+ ]
+}
+
+ohos_ndk_library("mindspore_lib") {
+ output_name = "mindspore_lite_ndk"
+ output_extension = "so"
+ ndk_description_file = "./mindspore_lib.ndk.json"
+ system_capability = "SystemCapability.Ai.MindSpore"
+ min_compact_version = "9"
+ system_capability_headers = [
+ "mindspore/context.h",
+ "mindspore/data_type.h",
+ "mindspore/format.h",
+ "mindspore/model.h",
+ "mindspore/status.h",
+ "mindspore/tensor.h",
+ "mindspore/types.h",
+ ]
+}
diff --git a/third_party/musl/ndk_musl_include/malloc.h b/third_party/musl/ndk_musl_include/malloc.h
index 4817d5a5ebf8ad655c947b290d2771779043beb0..f5854dadc55d8bb0d9620c975829742dde343084 100644
--- a/third_party/musl/ndk_musl_include/malloc.h
+++ b/third_party/musl/ndk_musl_include/malloc.h
@@ -1,3 +1,35 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License"),
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * @addtogroup MuslMalloc
+ * @{
+ *
+ * @brief Provide some methods related to memory management.
+ * @since 12
+ */
+/**
+ * @file malloc.h
+ *
+ * @brief Includes some memory-related methods and structures,
+ * such as: malloc, calloc, realloc, and so on.
+ *
+ * @library libc.so
+ * @kit CstandardLibrary
+ * @since 12
+ */
+
#ifndef _MALLOC_H
#define _MALLOC_H
@@ -35,6 +67,18 @@ void *memalign(size_t, size_t);
size_t malloc_usable_size(void *);
int mallopt(int param, int value);
+/**
+ * @brief This function determines whether a given memory block was allocated using
+ * Standard C library Memory Allocator.
+ * This function is MT-Safe(multi-thread safe) but not signal-safe.
+ * @param {void *} ptr A pointer to the memory block to be checked.
+ * @return 1 - The memory block was allocated using Standard C library Memory Allocator.
+ * 0 - The memory block was not allocated using Standard C library Memory Allocator.
+ * -1 - The function is not implemented or other error.
+ * @since 19
+ */
+int malloc_check_from_ptr(void *ptr);
+
struct mallinfo {
int arena;
int ordblks;
@@ -61,8 +105,24 @@ struct mallinfo2 {
size_t keepcost;
};
+/**
+ * @brief Obtains the memory information allocated by malloc-related operations.
+ * @return A mallinfo struct containing details about memory allocation.
+ * @since 20
+ */
+struct mallinfo mallinfo(void);
+
+/**
+ * @brief Obtains the memory information allocated by malloc-related operations.
+ * @return A mallinfo2 struct containing details about memory allocation. Unlike mallinfo, this struct uses
+ * size_t for its counters, providing a larger range.
+ * @since 20
+ */
+struct mallinfo2 mallinfo2(void);
+
#ifdef __cplusplus
}
#endif
#endif
+/** @} */
\ No newline at end of file
diff --git a/third_party/musl/ndk_script/BUILD.gn b/third_party/musl/ndk_script/BUILD.gn
index f23416e99cb1e7c904936282bff95feefcb3a1bb..a6e1f689b64f2a797d3e99090d861d816774b626 100644
--- a/third_party/musl/ndk_script/BUILD.gn
+++ b/third_party/musl/ndk_script/BUILD.gn
@@ -89,13 +89,13 @@ if (host_os == "mac") {
args += [ "-o" ] + [ rebase_path("${ndk_linux_toolchains_out_dir}") ]
args +=
[ "-l" ] + [ rebase_path("${linux_aarch64_toolchains_dir}/llvm/bin") ]
-
deps = [ ":linux_arm64" ]
}
} else {
windows_x86_64_toolchain_dir = "${toolchains_dir}/windows-x86_64"
ohos_arm64_toolchain_dir = "${toolchains_dir}/ohos-arm64"
linux_x86_64_toolchains_dir = "${toolchains_dir}/linux-x86_64"
+ prebuilts_python = "//prebuilts/python"
ohos_ndk_toolchains("linux_x86_64") {
dest_dir = "$ndk_linux_toolchains_out_dir"
sources = [
@@ -147,6 +147,7 @@ if (host_os == "mac") {
args += [ "-o" ] + [ rebase_path("${ndk_linux_toolchains_out_dir}") ]
args +=
[ "-l" ] + [ rebase_path("${linux_x86_64_toolchains_dir}/llvm/bin") ]
+ args += [ "-p" ] + [ rebase_path("${prebuilts_python}/linux-x86") ]
deps = [ ":linux_x86_64" ]
}
@@ -163,6 +164,7 @@ if (host_os == "mac") {
} else {
args +=
[ "-l" ] + [ rebase_path("${linux_x86_64_toolchains_dir}/llvm/bin") ]
+ args += [ "-p" ] + [ rebase_path("${prebuilts_python}/windows-x86") ]
}
deps = [ ":windows_x86_64" ]
}
diff --git a/third_party/musl/ndk_script/adapter/libc.ndk.json b/third_party/musl/ndk_script/adapter/libc.ndk.json
index 4a86a82df107f76a5c8e4da3cf210456a4b94a51..14cb1dc8553712a7339abb0a3af6d4dd7cf43e21 100644
--- a/third_party/musl/ndk_script/adapter/libc.ndk.json
+++ b/third_party/musl/ndk_script/adapter/libc.ndk.json
@@ -757,6 +757,14 @@
{ "name": "madvise" },
{ "name": "malloc" },
{ "name": "mallopt" },
+ {
+ "first_introduced":"20",
+ "name": "mallinfo"
+ },
+ {
+ "first_introduced":"20",
+ "name": "mallinfo2"
+ },
{ "name": "malloc_usable_size" },
{ "name": "mblen" },
{ "name": "mbrlen" },
@@ -1588,5 +1596,6 @@
{ "name": "__recv_chk"},
{ "name": "__recvfrom_chk"},
{ "name": "__open_chk"},
- { "name": "__strlcat_chk"}
+ { "name": "__strlcat_chk"},
+ { "name": "malloc_check_from_ptr"}
]
diff --git a/third_party/musl/ndk_script/toolchain.sh b/third_party/musl/ndk_script/toolchain.sh
index 1bdc1baffa44181f65361af650ec98a8c9414a57..db0cf489e508e0aa596db564b527679d41069a8f 100755
--- a/third_party/musl/ndk_script/toolchain.sh
+++ b/third_party/musl/ndk_script/toolchain.sh
@@ -2,7 +2,7 @@
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2030. All rights reserved.
set -e
-while getopts "o:i:l:t:h" arg
+while getopts "o:i:l:t:p:h" arg
do
case "${arg}" in
"o")
@@ -14,6 +14,9 @@ do
"l")
TOOL_DIR=${OPTARG}
;;
+ "p")
+ PYTHON_DIR=${OPTARG}
+ ;;
"h")
echo "help"
;;
@@ -36,6 +39,17 @@ done
cp -rfp ${SOURCE_DIR}/lib ${OUT_DIR}
cp -rfp ${SOURCE_DIR}/include ${OUT_DIR}
+if [ -n "${PYTHON_DIR+x}" ]; then
+ if [ -e "${OUT_DIR}/python3" ]; then
+ rm -rf ${OUT_DIR}/python3
+ fi
+ VERSION_NAME=$(ls -1 "${PYTHON_DIR}" | head -n 1)
+ cp -rfp ${PYTHON_DIR}/${VERSION_NAME} ${OUT_DIR}/python3
+ if [ -e "${OUT_DIR}/bin/libpython3.11.dll" ]; then
+ cp -rfp ${PYTHON_DIR}/3.11.4/bin/libpython3.11.dll ${OUT_DIR}/bin/libpython3.11.dll
+ fi
+fi
+
function strip_dir() {
for file in `ls $1`
do
@@ -49,7 +63,7 @@ function strip_dir() {
fi
done
}
-function remove_unnecessary_file {
+function remove_unnecessary_file() {
file_list=("bin/llvm-ifs" "bin/llvm-ifs.exe" "lib/clang/current" "lib/arm-liteos-ohos" "lib/loongarch64-linux-ohos" "lib/mipsel-linux-ohos" "lib/riscv64-linux-ohos" "lib/clang/15.0.4/bin/loongarch64-linux-ohos" "lib/clang/15.0.4/lib/arm-liteos-ohos" "lib/clang/15.0.4/lib/i386-unknown-linux-gnu" "lib/clang/15.0.4/lib/loongarch64-linux-ohos" "lib/clang/15.0.4/lib/mipsel-linux-ohos" "lib/clang/15.0.4/lib/riscv64-linux-ohos" "lib/clang/15.0.4/lib/windows")
for i in "${file_list[@]}"; do
diff --git a/third_party/openGLES/GL/gl.h b/third_party/openGLES/GL/gl.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a21b0befca4420e7ce8eb9e299913cf6c522ea3
--- /dev/null
+++ b/third_party/openGLES/GL/gl.h
@@ -0,0 +1,2098 @@
+/*
+ * Mesa 3-D graphics library
+ *
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
+ * Copyright (C) 2009 VMware, Inc. All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+#ifndef __gl_h_
+#define __gl_h_
+
+/**********************************************************************
+ * Begin system-specific stuff.
+ */
+
+#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__)
+#define __WIN32__
+#endif
+
+#if defined(__WIN32__) && !defined(__CYGWIN__)
+# define GLAPI extern
+# if !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
+ /* Win32 but not WinCE */
+# define GLAPIENTRY __stdcall
+# else
+# define GLAPIENTRY
+# endif
+#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
+# define GLAPI extern
+# define GLAPIENTRY __stdcall
+#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
+# define GLAPI extern
+# define GLAPIENTRY
+#endif /* WIN32 && !CYGWIN */
+
+/*
+ * WINDOWS: Include windows.h here to define APIENTRY.
+ * It is also useful when applications include this file by
+ * including only glut.h, since glut.h depends on windows.h.
+ * Applications needing to include windows.h with parms other
+ * than "WIN32_LEAN_AND_MEAN" may include windows.h before
+ * glut.h or gl.h.
+ */
+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include
+#endif
+
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+
+#ifndef GLAPIENTRY
+#define GLAPIENTRY
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY GLAPIENTRY
+#endif
+
+/* "P" suffix to be used for a pointer to a function */
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+
+#ifndef GLAPIENTRYP
+#define GLAPIENTRYP GLAPIENTRY *
+#endif
+
+/*
+ * End system-specific stuff.
+ **********************************************************************/
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
+#define GL_VERSION_1_1 1
+#define GL_VERSION_1_2 1
+#define GL_VERSION_1_3 1
+#define GL_ARB_imaging 1
+
+
+/*
+ * Datatypes
+ */
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+
+
+
+/*
+ * Constants
+ */
+
+/* Boolean values */
+#define GL_FALSE 0
+#define GL_TRUE 1
+
+/* Data types */
+#define GL_BYTE 0x1400
+#define GL_UNSIGNED_BYTE 0x1401
+#define GL_SHORT 0x1402
+#define GL_UNSIGNED_SHORT 0x1403
+#define GL_INT 0x1404
+#define GL_UNSIGNED_INT 0x1405
+#define GL_FLOAT 0x1406
+#define GL_2_BYTES 0x1407
+#define GL_3_BYTES 0x1408
+#define GL_4_BYTES 0x1409
+#define GL_DOUBLE 0x140A
+
+/* Primitives */
+#define GL_POINTS 0x0000
+#define GL_LINES 0x0001
+#define GL_LINE_LOOP 0x0002
+#define GL_LINE_STRIP 0x0003
+#define GL_TRIANGLES 0x0004
+#define GL_TRIANGLE_STRIP 0x0005
+#define GL_TRIANGLE_FAN 0x0006
+#define GL_QUADS 0x0007
+#define GL_QUAD_STRIP 0x0008
+#define GL_POLYGON 0x0009
+
+/* Vertex Arrays */
+#define GL_VERTEX_ARRAY 0x8074
+#define GL_NORMAL_ARRAY 0x8075
+#define GL_COLOR_ARRAY 0x8076
+#define GL_INDEX_ARRAY 0x8077
+#define GL_TEXTURE_COORD_ARRAY 0x8078
+#define GL_EDGE_FLAG_ARRAY 0x8079
+#define GL_VERTEX_ARRAY_SIZE 0x807A
+#define GL_VERTEX_ARRAY_TYPE 0x807B
+#define GL_VERTEX_ARRAY_STRIDE 0x807C
+#define GL_NORMAL_ARRAY_TYPE 0x807E
+#define GL_NORMAL_ARRAY_STRIDE 0x807F
+#define GL_COLOR_ARRAY_SIZE 0x8081
+#define GL_COLOR_ARRAY_TYPE 0x8082
+#define GL_COLOR_ARRAY_STRIDE 0x8083
+#define GL_INDEX_ARRAY_TYPE 0x8085
+#define GL_INDEX_ARRAY_STRIDE 0x8086
+#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
+#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
+#define GL_VERTEX_ARRAY_POINTER 0x808E
+#define GL_NORMAL_ARRAY_POINTER 0x808F
+#define GL_COLOR_ARRAY_POINTER 0x8090
+#define GL_INDEX_ARRAY_POINTER 0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
+#define GL_V2F 0x2A20
+#define GL_V3F 0x2A21
+#define GL_C4UB_V2F 0x2A22
+#define GL_C4UB_V3F 0x2A23
+#define GL_C3F_V3F 0x2A24
+#define GL_N3F_V3F 0x2A25
+#define GL_C4F_N3F_V3F 0x2A26
+#define GL_T2F_V3F 0x2A27
+#define GL_T4F_V4F 0x2A28
+#define GL_T2F_C4UB_V3F 0x2A29
+#define GL_T2F_C3F_V3F 0x2A2A
+#define GL_T2F_N3F_V3F 0x2A2B
+#define GL_T2F_C4F_N3F_V3F 0x2A2C
+#define GL_T4F_C4F_N3F_V4F 0x2A2D
+
+/* Matrix Mode */
+#define GL_MATRIX_MODE 0x0BA0
+#define GL_MODELVIEW 0x1700
+#define GL_PROJECTION 0x1701
+#define GL_TEXTURE 0x1702
+
+/* Points */
+#define GL_POINT_SMOOTH 0x0B10
+#define GL_POINT_SIZE 0x0B11
+#define GL_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_POINT_SIZE_RANGE 0x0B12
+
+/* Lines */
+#define GL_LINE_SMOOTH 0x0B20
+#define GL_LINE_STIPPLE 0x0B24
+#define GL_LINE_STIPPLE_PATTERN 0x0B25
+#define GL_LINE_STIPPLE_REPEAT 0x0B26
+#define GL_LINE_WIDTH 0x0B21
+#define GL_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_LINE_WIDTH_RANGE 0x0B22
+
+/* Polygons */
+#define GL_POINT 0x1B00
+#define GL_LINE 0x1B01
+#define GL_FILL 0x1B02
+#define GL_CW 0x0900
+#define GL_CCW 0x0901
+#define GL_FRONT 0x0404
+#define GL_BACK 0x0405
+#define GL_POLYGON_MODE 0x0B40
+#define GL_POLYGON_SMOOTH 0x0B41
+#define GL_POLYGON_STIPPLE 0x0B42
+#define GL_EDGE_FLAG 0x0B43
+#define GL_CULL_FACE 0x0B44
+#define GL_CULL_FACE_MODE 0x0B45
+#define GL_FRONT_FACE 0x0B46
+#define GL_POLYGON_OFFSET_FACTOR 0x8038
+#define GL_POLYGON_OFFSET_UNITS 0x2A00
+#define GL_POLYGON_OFFSET_POINT 0x2A01
+#define GL_POLYGON_OFFSET_LINE 0x2A02
+#define GL_POLYGON_OFFSET_FILL 0x8037
+
+/* Display Lists */
+#define GL_COMPILE 0x1300
+#define GL_COMPILE_AND_EXECUTE 0x1301
+#define GL_LIST_BASE 0x0B32
+#define GL_LIST_INDEX 0x0B33
+#define GL_LIST_MODE 0x0B30
+
+/* Depth buffer */
+#define GL_NEVER 0x0200
+#define GL_LESS 0x0201
+#define GL_EQUAL 0x0202
+#define GL_LEQUAL 0x0203
+#define GL_GREATER 0x0204
+#define GL_NOTEQUAL 0x0205
+#define GL_GEQUAL 0x0206
+#define GL_ALWAYS 0x0207
+#define GL_DEPTH_TEST 0x0B71
+#define GL_DEPTH_BITS 0x0D56
+#define GL_DEPTH_CLEAR_VALUE 0x0B73
+#define GL_DEPTH_FUNC 0x0B74
+#define GL_DEPTH_RANGE 0x0B70
+#define GL_DEPTH_WRITEMASK 0x0B72
+#define GL_DEPTH_COMPONENT 0x1902
+
+/* Lighting */
+#define GL_LIGHTING 0x0B50
+#define GL_LIGHT0 0x4000
+#define GL_LIGHT1 0x4001
+#define GL_LIGHT2 0x4002
+#define GL_LIGHT3 0x4003
+#define GL_LIGHT4 0x4004
+#define GL_LIGHT5 0x4005
+#define GL_LIGHT6 0x4006
+#define GL_LIGHT7 0x4007
+#define GL_SPOT_EXPONENT 0x1205
+#define GL_SPOT_CUTOFF 0x1206
+#define GL_CONSTANT_ATTENUATION 0x1207
+#define GL_LINEAR_ATTENUATION 0x1208
+#define GL_QUADRATIC_ATTENUATION 0x1209
+#define GL_AMBIENT 0x1200
+#define GL_DIFFUSE 0x1201
+#define GL_SPECULAR 0x1202
+#define GL_SHININESS 0x1601
+#define GL_EMISSION 0x1600
+#define GL_POSITION 0x1203
+#define GL_SPOT_DIRECTION 0x1204
+#define GL_AMBIENT_AND_DIFFUSE 0x1602
+#define GL_COLOR_INDEXES 0x1603
+#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
+#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
+#define GL_LIGHT_MODEL_AMBIENT 0x0B53
+#define GL_FRONT_AND_BACK 0x0408
+#define GL_SHADE_MODEL 0x0B54
+#define GL_FLAT 0x1D00
+#define GL_SMOOTH 0x1D01
+#define GL_COLOR_MATERIAL 0x0B57
+#define GL_COLOR_MATERIAL_FACE 0x0B55
+#define GL_COLOR_MATERIAL_PARAMETER 0x0B56
+#define GL_NORMALIZE 0x0BA1
+
+/* User clipping planes */
+#define GL_CLIP_PLANE0 0x3000
+#define GL_CLIP_PLANE1 0x3001
+#define GL_CLIP_PLANE2 0x3002
+#define GL_CLIP_PLANE3 0x3003
+#define GL_CLIP_PLANE4 0x3004
+#define GL_CLIP_PLANE5 0x3005
+
+/* Accumulation buffer */
+#define GL_ACCUM_RED_BITS 0x0D58
+#define GL_ACCUM_GREEN_BITS 0x0D59
+#define GL_ACCUM_BLUE_BITS 0x0D5A
+#define GL_ACCUM_ALPHA_BITS 0x0D5B
+#define GL_ACCUM_CLEAR_VALUE 0x0B80
+#define GL_ACCUM 0x0100
+#define GL_ADD 0x0104
+#define GL_LOAD 0x0101
+#define GL_MULT 0x0103
+#define GL_RETURN 0x0102
+
+/* Alpha testing */
+#define GL_ALPHA_TEST 0x0BC0
+#define GL_ALPHA_TEST_REF 0x0BC2
+#define GL_ALPHA_TEST_FUNC 0x0BC1
+
+/* Blending */
+#define GL_BLEND 0x0BE2
+#define GL_BLEND_SRC 0x0BE1
+#define GL_BLEND_DST 0x0BE0
+#define GL_ZERO 0
+#define GL_ONE 1
+#define GL_SRC_COLOR 0x0300
+#define GL_ONE_MINUS_SRC_COLOR 0x0301
+#define GL_SRC_ALPHA 0x0302
+#define GL_ONE_MINUS_SRC_ALPHA 0x0303
+#define GL_DST_ALPHA 0x0304
+#define GL_ONE_MINUS_DST_ALPHA 0x0305
+#define GL_DST_COLOR 0x0306
+#define GL_ONE_MINUS_DST_COLOR 0x0307
+#define GL_SRC_ALPHA_SATURATE 0x0308
+
+/* Render Mode */
+#define GL_FEEDBACK 0x1C01
+#define GL_RENDER 0x1C00
+#define GL_SELECT 0x1C02
+
+/* Feedback */
+#define GL_2D 0x0600
+#define GL_3D 0x0601
+#define GL_3D_COLOR 0x0602
+#define GL_3D_COLOR_TEXTURE 0x0603
+#define GL_4D_COLOR_TEXTURE 0x0604
+#define GL_POINT_TOKEN 0x0701
+#define GL_LINE_TOKEN 0x0702
+#define GL_LINE_RESET_TOKEN 0x0707
+#define GL_POLYGON_TOKEN 0x0703
+#define GL_BITMAP_TOKEN 0x0704
+#define GL_DRAW_PIXEL_TOKEN 0x0705
+#define GL_COPY_PIXEL_TOKEN 0x0706
+#define GL_PASS_THROUGH_TOKEN 0x0700
+#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
+#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
+#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
+
+/* Selection */
+#define GL_SELECTION_BUFFER_POINTER 0x0DF3
+#define GL_SELECTION_BUFFER_SIZE 0x0DF4
+
+/* Fog */
+#define GL_FOG 0x0B60
+#define GL_FOG_MODE 0x0B65
+#define GL_FOG_DENSITY 0x0B62
+#define GL_FOG_COLOR 0x0B66
+#define GL_FOG_INDEX 0x0B61
+#define GL_FOG_START 0x0B63
+#define GL_FOG_END 0x0B64
+#define GL_LINEAR 0x2601
+#define GL_EXP 0x0800
+#define GL_EXP2 0x0801
+
+/* Logic Ops */
+#define GL_LOGIC_OP 0x0BF1
+#define GL_INDEX_LOGIC_OP 0x0BF1
+#define GL_COLOR_LOGIC_OP 0x0BF2
+#define GL_LOGIC_OP_MODE 0x0BF0
+#define GL_CLEAR 0x1500
+#define GL_SET 0x150F
+#define GL_COPY 0x1503
+#define GL_COPY_INVERTED 0x150C
+#define GL_NOOP 0x1505
+#define GL_INVERT 0x150A
+#define GL_AND 0x1501
+#define GL_NAND 0x150E
+#define GL_OR 0x1507
+#define GL_NOR 0x1508
+#define GL_XOR 0x1506
+#define GL_EQUIV 0x1509
+#define GL_AND_REVERSE 0x1502
+#define GL_AND_INVERTED 0x1504
+#define GL_OR_REVERSE 0x150B
+#define GL_OR_INVERTED 0x150D
+
+/* Stencil */
+#define GL_STENCIL_BITS 0x0D57
+#define GL_STENCIL_TEST 0x0B90
+#define GL_STENCIL_CLEAR_VALUE 0x0B91
+#define GL_STENCIL_FUNC 0x0B92
+#define GL_STENCIL_VALUE_MASK 0x0B93
+#define GL_STENCIL_FAIL 0x0B94
+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
+#define GL_STENCIL_REF 0x0B97
+#define GL_STENCIL_WRITEMASK 0x0B98
+#define GL_STENCIL_INDEX 0x1901
+#define GL_KEEP 0x1E00
+#define GL_REPLACE 0x1E01
+#define GL_INCR 0x1E02
+#define GL_DECR 0x1E03
+
+/* Buffers, Pixel Drawing/Reading */
+#define GL_NONE 0
+#define GL_LEFT 0x0406
+#define GL_RIGHT 0x0407
+/*GL_FRONT 0x0404 */
+/*GL_BACK 0x0405 */
+/*GL_FRONT_AND_BACK 0x0408 */
+#define GL_FRONT_LEFT 0x0400
+#define GL_FRONT_RIGHT 0x0401
+#define GL_BACK_LEFT 0x0402
+#define GL_BACK_RIGHT 0x0403
+#define GL_AUX0 0x0409
+#define GL_AUX1 0x040A
+#define GL_AUX2 0x040B
+#define GL_AUX3 0x040C
+#define GL_COLOR_INDEX 0x1900
+#define GL_RED 0x1903
+#define GL_GREEN 0x1904
+#define GL_BLUE 0x1905
+#define GL_ALPHA 0x1906
+#define GL_LUMINANCE 0x1909
+#define GL_LUMINANCE_ALPHA 0x190A
+#define GL_ALPHA_BITS 0x0D55
+#define GL_RED_BITS 0x0D52
+#define GL_GREEN_BITS 0x0D53
+#define GL_BLUE_BITS 0x0D54
+#define GL_INDEX_BITS 0x0D51
+#define GL_SUBPIXEL_BITS 0x0D50
+#define GL_AUX_BUFFERS 0x0C00
+#define GL_READ_BUFFER 0x0C02
+#define GL_DRAW_BUFFER 0x0C01
+#define GL_DOUBLEBUFFER 0x0C32
+#define GL_STEREO 0x0C33
+#define GL_BITMAP 0x1A00
+#define GL_COLOR 0x1800
+#define GL_DEPTH 0x1801
+#define GL_STENCIL 0x1802
+#define GL_DITHER 0x0BD0
+#define GL_RGB 0x1907
+#define GL_RGBA 0x1908
+
+/* Implementation limits */
+#define GL_MAX_LIST_NESTING 0x0B31
+#define GL_MAX_EVAL_ORDER 0x0D30
+#define GL_MAX_LIGHTS 0x0D31
+#define GL_MAX_CLIP_PLANES 0x0D32
+#define GL_MAX_TEXTURE_SIZE 0x0D33
+#define GL_MAX_PIXEL_MAP_TABLE 0x0D34
+#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
+#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
+#define GL_MAX_NAME_STACK_DEPTH 0x0D37
+#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
+#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
+#define GL_MAX_VIEWPORT_DIMS 0x0D3A
+#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
+
+/* Gets */
+#define GL_ATTRIB_STACK_DEPTH 0x0BB0
+#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
+#define GL_COLOR_CLEAR_VALUE 0x0C22
+#define GL_COLOR_WRITEMASK 0x0C23
+#define GL_CURRENT_INDEX 0x0B01
+#define GL_CURRENT_COLOR 0x0B00
+#define GL_CURRENT_NORMAL 0x0B02
+#define GL_CURRENT_RASTER_COLOR 0x0B04
+#define GL_CURRENT_RASTER_DISTANCE 0x0B09
+#define GL_CURRENT_RASTER_INDEX 0x0B05
+#define GL_CURRENT_RASTER_POSITION 0x0B07
+#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
+#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
+#define GL_CURRENT_TEXTURE_COORDS 0x0B03
+#define GL_INDEX_CLEAR_VALUE 0x0C20
+#define GL_INDEX_MODE 0x0C30
+#define GL_INDEX_WRITEMASK 0x0C21
+#define GL_MODELVIEW_MATRIX 0x0BA6
+#define GL_MODELVIEW_STACK_DEPTH 0x0BA3
+#define GL_NAME_STACK_DEPTH 0x0D70
+#define GL_PROJECTION_MATRIX 0x0BA7
+#define GL_PROJECTION_STACK_DEPTH 0x0BA4
+#define GL_RENDER_MODE 0x0C40
+#define GL_RGBA_MODE 0x0C31
+#define GL_TEXTURE_MATRIX 0x0BA8
+#define GL_TEXTURE_STACK_DEPTH 0x0BA5
+#define GL_VIEWPORT 0x0BA2
+
+/* Evaluators */
+#define GL_AUTO_NORMAL 0x0D80
+#define GL_MAP1_COLOR_4 0x0D90
+#define GL_MAP1_INDEX 0x0D91
+#define GL_MAP1_NORMAL 0x0D92
+#define GL_MAP1_TEXTURE_COORD_1 0x0D93
+#define GL_MAP1_TEXTURE_COORD_2 0x0D94
+#define GL_MAP1_TEXTURE_COORD_3 0x0D95
+#define GL_MAP1_TEXTURE_COORD_4 0x0D96
+#define GL_MAP1_VERTEX_3 0x0D97
+#define GL_MAP1_VERTEX_4 0x0D98
+#define GL_MAP2_COLOR_4 0x0DB0
+#define GL_MAP2_INDEX 0x0DB1
+#define GL_MAP2_NORMAL 0x0DB2
+#define GL_MAP2_TEXTURE_COORD_1 0x0DB3
+#define GL_MAP2_TEXTURE_COORD_2 0x0DB4
+#define GL_MAP2_TEXTURE_COORD_3 0x0DB5
+#define GL_MAP2_TEXTURE_COORD_4 0x0DB6
+#define GL_MAP2_VERTEX_3 0x0DB7
+#define GL_MAP2_VERTEX_4 0x0DB8
+#define GL_MAP1_GRID_DOMAIN 0x0DD0
+#define GL_MAP1_GRID_SEGMENTS 0x0DD1
+#define GL_MAP2_GRID_DOMAIN 0x0DD2
+#define GL_MAP2_GRID_SEGMENTS 0x0DD3
+#define GL_COEFF 0x0A00
+#define GL_ORDER 0x0A01
+#define GL_DOMAIN 0x0A02
+
+/* Hints */
+#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
+#define GL_POINT_SMOOTH_HINT 0x0C51
+#define GL_LINE_SMOOTH_HINT 0x0C52
+#define GL_POLYGON_SMOOTH_HINT 0x0C53
+#define GL_FOG_HINT 0x0C54
+#define GL_DONT_CARE 0x1100
+#define GL_FASTEST 0x1101
+#define GL_NICEST 0x1102
+
+/* Scissor box */
+#define GL_SCISSOR_BOX 0x0C10
+#define GL_SCISSOR_TEST 0x0C11
+
+/* Pixel Mode / Transfer */
+#define GL_MAP_COLOR 0x0D10
+#define GL_MAP_STENCIL 0x0D11
+#define GL_INDEX_SHIFT 0x0D12
+#define GL_INDEX_OFFSET 0x0D13
+#define GL_RED_SCALE 0x0D14
+#define GL_RED_BIAS 0x0D15
+#define GL_GREEN_SCALE 0x0D18
+#define GL_GREEN_BIAS 0x0D19
+#define GL_BLUE_SCALE 0x0D1A
+#define GL_BLUE_BIAS 0x0D1B
+#define GL_ALPHA_SCALE 0x0D1C
+#define GL_ALPHA_BIAS 0x0D1D
+#define GL_DEPTH_SCALE 0x0D1E
+#define GL_DEPTH_BIAS 0x0D1F
+#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
+#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
+#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
+#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
+#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
+#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
+#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
+#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
+#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
+#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
+#define GL_PIXEL_MAP_S_TO_S 0x0C71
+#define GL_PIXEL_MAP_I_TO_I 0x0C70
+#define GL_PIXEL_MAP_I_TO_R 0x0C72
+#define GL_PIXEL_MAP_I_TO_G 0x0C73
+#define GL_PIXEL_MAP_I_TO_B 0x0C74
+#define GL_PIXEL_MAP_I_TO_A 0x0C75
+#define GL_PIXEL_MAP_R_TO_R 0x0C76
+#define GL_PIXEL_MAP_G_TO_G 0x0C77
+#define GL_PIXEL_MAP_B_TO_B 0x0C78
+#define GL_PIXEL_MAP_A_TO_A 0x0C79
+#define GL_PACK_ALIGNMENT 0x0D05
+#define GL_PACK_LSB_FIRST 0x0D01
+#define GL_PACK_ROW_LENGTH 0x0D02
+#define GL_PACK_SKIP_PIXELS 0x0D04
+#define GL_PACK_SKIP_ROWS 0x0D03
+#define GL_PACK_SWAP_BYTES 0x0D00
+#define GL_UNPACK_ALIGNMENT 0x0CF5
+#define GL_UNPACK_LSB_FIRST 0x0CF1
+#define GL_UNPACK_ROW_LENGTH 0x0CF2
+#define GL_UNPACK_SKIP_PIXELS 0x0CF4
+#define GL_UNPACK_SKIP_ROWS 0x0CF3
+#define GL_UNPACK_SWAP_BYTES 0x0CF0
+#define GL_ZOOM_X 0x0D16
+#define GL_ZOOM_Y 0x0D17
+
+/* Texture mapping */
+#define GL_TEXTURE_ENV 0x2300
+#define GL_TEXTURE_ENV_MODE 0x2200
+#define GL_TEXTURE_1D 0x0DE0
+#define GL_TEXTURE_2D 0x0DE1
+#define GL_TEXTURE_WRAP_S 0x2802
+#define GL_TEXTURE_WRAP_T 0x2803
+#define GL_TEXTURE_MAG_FILTER 0x2800
+#define GL_TEXTURE_MIN_FILTER 0x2801
+#define GL_TEXTURE_ENV_COLOR 0x2201
+#define GL_TEXTURE_GEN_S 0x0C60
+#define GL_TEXTURE_GEN_T 0x0C61
+#define GL_TEXTURE_GEN_R 0x0C62
+#define GL_TEXTURE_GEN_Q 0x0C63
+#define GL_TEXTURE_GEN_MODE 0x2500
+#define GL_TEXTURE_BORDER_COLOR 0x1004
+#define GL_TEXTURE_WIDTH 0x1000
+#define GL_TEXTURE_HEIGHT 0x1001
+#define GL_TEXTURE_BORDER 0x1005
+#define GL_TEXTURE_COMPONENTS 0x1003
+#define GL_TEXTURE_RED_SIZE 0x805C
+#define GL_TEXTURE_GREEN_SIZE 0x805D
+#define GL_TEXTURE_BLUE_SIZE 0x805E
+#define GL_TEXTURE_ALPHA_SIZE 0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE 0x8060
+#define GL_TEXTURE_INTENSITY_SIZE 0x8061
+#define GL_NEAREST_MIPMAP_NEAREST 0x2700
+#define GL_NEAREST_MIPMAP_LINEAR 0x2702
+#define GL_LINEAR_MIPMAP_NEAREST 0x2701
+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
+#define GL_OBJECT_LINEAR 0x2401
+#define GL_OBJECT_PLANE 0x2501
+#define GL_EYE_LINEAR 0x2400
+#define GL_EYE_PLANE 0x2502
+#define GL_SPHERE_MAP 0x2402
+#define GL_DECAL 0x2101
+#define GL_MODULATE 0x2100
+#define GL_NEAREST 0x2600
+#define GL_REPEAT 0x2901
+#define GL_CLAMP 0x2900
+#define GL_S 0x2000
+#define GL_T 0x2001
+#define GL_R 0x2002
+#define GL_Q 0x2003
+
+/* Utility */
+#define GL_VENDOR 0x1F00
+#define GL_RENDERER 0x1F01
+#define GL_VERSION 0x1F02
+#define GL_EXTENSIONS 0x1F03
+
+/* Errors */
+#define GL_NO_ERROR 0
+#define GL_INVALID_ENUM 0x0500
+#define GL_INVALID_VALUE 0x0501
+#define GL_INVALID_OPERATION 0x0502
+#define GL_STACK_OVERFLOW 0x0503
+#define GL_STACK_UNDERFLOW 0x0504
+#define GL_OUT_OF_MEMORY 0x0505
+
+/* glPush/PopAttrib bits */
+#define GL_CURRENT_BIT 0x00000001
+#define GL_POINT_BIT 0x00000002
+#define GL_LINE_BIT 0x00000004
+#define GL_POLYGON_BIT 0x00000008
+#define GL_POLYGON_STIPPLE_BIT 0x00000010
+#define GL_PIXEL_MODE_BIT 0x00000020
+#define GL_LIGHTING_BIT 0x00000040
+#define GL_FOG_BIT 0x00000080
+#define GL_DEPTH_BUFFER_BIT 0x00000100
+#define GL_ACCUM_BUFFER_BIT 0x00000200
+#define GL_STENCIL_BUFFER_BIT 0x00000400
+#define GL_VIEWPORT_BIT 0x00000800
+#define GL_TRANSFORM_BIT 0x00001000
+#define GL_ENABLE_BIT 0x00002000
+#define GL_COLOR_BUFFER_BIT 0x00004000
+#define GL_HINT_BIT 0x00008000
+#define GL_EVAL_BIT 0x00010000
+#define GL_LIST_BIT 0x00020000
+#define GL_TEXTURE_BIT 0x00040000
+#define GL_SCISSOR_BIT 0x00080000
+#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF
+
+
+/* OpenGL 1.1 */
+#define GL_PROXY_TEXTURE_1D 0x8063
+#define GL_PROXY_TEXTURE_2D 0x8064
+#define GL_TEXTURE_PRIORITY 0x8066
+#define GL_TEXTURE_RESIDENT 0x8067
+#define GL_TEXTURE_BINDING_1D 0x8068
+#define GL_TEXTURE_BINDING_2D 0x8069
+#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
+#define GL_ALPHA4 0x803B
+#define GL_ALPHA8 0x803C
+#define GL_ALPHA12 0x803D
+#define GL_ALPHA16 0x803E
+#define GL_LUMINANCE4 0x803F
+#define GL_LUMINANCE8 0x8040
+#define GL_LUMINANCE12 0x8041
+#define GL_LUMINANCE16 0x8042
+#define GL_LUMINANCE4_ALPHA4 0x8043
+#define GL_LUMINANCE6_ALPHA2 0x8044
+#define GL_LUMINANCE8_ALPHA8 0x8045
+#define GL_LUMINANCE12_ALPHA4 0x8046
+#define GL_LUMINANCE12_ALPHA12 0x8047
+#define GL_LUMINANCE16_ALPHA16 0x8048
+#define GL_INTENSITY 0x8049
+#define GL_INTENSITY4 0x804A
+#define GL_INTENSITY8 0x804B
+#define GL_INTENSITY12 0x804C
+#define GL_INTENSITY16 0x804D
+#define GL_R3_G3_B2 0x2A10
+#define GL_RGB4 0x804F
+#define GL_RGB5 0x8050
+#define GL_RGB8 0x8051
+#define GL_RGB10 0x8052
+#define GL_RGB12 0x8053
+#define GL_RGB16 0x8054
+#define GL_RGBA2 0x8055
+#define GL_RGBA4 0x8056
+#define GL_RGB5_A1 0x8057
+#define GL_RGBA8 0x8058
+#define GL_RGB10_A2 0x8059
+#define GL_RGBA12 0x805A
+#define GL_RGBA16 0x805B
+#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
+#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
+#define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFFF
+#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
+
+
+
+/*
+ * Miscellaneous
+ */
+
+GLAPI void GLAPIENTRY glClearIndex( GLfloat c );
+
+GLAPI void GLAPIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
+
+GLAPI void GLAPIENTRY glClear( GLbitfield mask );
+
+GLAPI void GLAPIENTRY glIndexMask( GLuint mask );
+
+GLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha );
+
+GLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref );
+
+GLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor );
+
+GLAPI void GLAPIENTRY glLogicOp( GLenum opcode );
+
+GLAPI void GLAPIENTRY glCullFace( GLenum mode );
+
+GLAPI void GLAPIENTRY glFrontFace( GLenum mode );
+
+GLAPI void GLAPIENTRY glPointSize( GLfloat size );
+
+GLAPI void GLAPIENTRY glLineWidth( GLfloat width );
+
+GLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern );
+
+GLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode );
+
+GLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units );
+
+GLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask );
+
+GLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask );
+
+GLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag );
+
+GLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag );
+
+GLAPI void GLAPIENTRY glScissor( GLint x, GLint y, GLsizei width, GLsizei height);
+
+GLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation );
+
+GLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation );
+
+GLAPI void GLAPIENTRY glDrawBuffer( GLenum mode );
+
+GLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
+
+GLAPI void GLAPIENTRY glEnable( GLenum cap );
+
+GLAPI void GLAPIENTRY glDisable( GLenum cap );
+
+GLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap );
+
+
+GLAPI void GLAPIENTRY glEnableClientState( GLenum cap ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glDisableClientState( GLenum cap ); /* 1.1 */
+
+
+GLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params );
+
+GLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params );
+
+GLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask );
+
+GLAPI void GLAPIENTRY glPopAttrib( void );
+
+
+GLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glPopClientAttrib( void ); /* 1.1 */
+
+
+GLAPI GLint GLAPIENTRY glRenderMode( GLenum mode );
+
+GLAPI GLenum GLAPIENTRY glGetError( void );
+
+GLAPI const GLubyte * GLAPIENTRY glGetString( GLenum name );
+
+GLAPI void GLAPIENTRY glFinish( void );
+
+GLAPI void GLAPIENTRY glFlush( void );
+
+GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode );
+
+
+/*
+ * Depth Buffer
+ */
+
+GLAPI void GLAPIENTRY glClearDepth( GLclampd depth );
+
+GLAPI void GLAPIENTRY glDepthFunc( GLenum func );
+
+GLAPI void GLAPIENTRY glDepthMask( GLboolean flag );
+
+GLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val );
+
+
+/*
+ * Accumulation Buffer
+ */
+
+GLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
+
+GLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value );
+
+
+/*
+ * Transformation
+ */
+
+GLAPI void GLAPIENTRY glMatrixMode( GLenum mode );
+
+GLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right,
+ GLdouble bottom, GLdouble top,
+ GLdouble near_val, GLdouble far_val );
+
+GLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right,
+ GLdouble bottom, GLdouble top,
+ GLdouble near_val, GLdouble far_val );
+
+GLAPI void GLAPIENTRY glViewport( GLint x, GLint y,
+ GLsizei width, GLsizei height );
+
+GLAPI void GLAPIENTRY glPushMatrix( void );
+
+GLAPI void GLAPIENTRY glPopMatrix( void );
+
+GLAPI void GLAPIENTRY glLoadIdentity( void );
+
+GLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m );
+GLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m );
+
+GLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m );
+GLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m );
+
+GLAPI void GLAPIENTRY glRotated( GLdouble angle,
+ GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glRotatef( GLfloat angle,
+ GLfloat x, GLfloat y, GLfloat z );
+
+GLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z );
+
+GLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z );
+
+
+/*
+ * Display Lists
+ */
+
+GLAPI GLboolean GLAPIENTRY glIsList( GLuint list );
+
+GLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range );
+
+GLAPI GLuint GLAPIENTRY glGenLists( GLsizei range );
+
+GLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode );
+
+GLAPI void GLAPIENTRY glEndList( void );
+
+GLAPI void GLAPIENTRY glCallList( GLuint list );
+
+GLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type,
+ const GLvoid *lists );
+
+GLAPI void GLAPIENTRY glListBase( GLuint base );
+
+
+/*
+ * Drawing Functions
+ */
+
+GLAPI void GLAPIENTRY glBegin( GLenum mode );
+
+GLAPI void GLAPIENTRY glEnd( void );
+
+
+GLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y );
+GLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y );
+
+GLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z );
+
+GLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
+GLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
+
+GLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex2iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex3iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex4iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
+GLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
+GLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
+GLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz );
+GLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz );
+
+GLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glNormal3iv( const GLint *v );
+GLAPI void GLAPIENTRY glNormal3sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glIndexd( GLdouble c );
+GLAPI void GLAPIENTRY glIndexf( GLfloat c );
+GLAPI void GLAPIENTRY glIndexi( GLint c );
+GLAPI void GLAPIENTRY glIndexs( GLshort c );
+GLAPI void GLAPIENTRY glIndexub( GLubyte c ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glIndexdv( const GLdouble *c );
+GLAPI void GLAPIENTRY glIndexfv( const GLfloat *c );
+GLAPI void GLAPIENTRY glIndexiv( const GLint *c );
+GLAPI void GLAPIENTRY glIndexsv( const GLshort *c );
+GLAPI void GLAPIENTRY glIndexubv( const GLubyte *c ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue );
+GLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue );
+GLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue );
+GLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue );
+GLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue );
+GLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
+GLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue );
+GLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue );
+
+GLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green,
+ GLbyte blue, GLbyte alpha );
+GLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green,
+ GLdouble blue, GLdouble alpha );
+GLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green,
+ GLfloat blue, GLfloat alpha );
+GLAPI void GLAPIENTRY glColor4i( GLint red, GLint green,
+ GLint blue, GLint alpha );
+GLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green,
+ GLshort blue, GLshort alpha );
+GLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green,
+ GLubyte blue, GLubyte alpha );
+GLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green,
+ GLuint blue, GLuint alpha );
+GLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green,
+ GLushort blue, GLushort alpha );
+
+
+GLAPI void GLAPIENTRY glColor3bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glColor3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glColor3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glColor3iv( const GLint *v );
+GLAPI void GLAPIENTRY glColor3sv( const GLshort *v );
+GLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v );
+GLAPI void GLAPIENTRY glColor3uiv( const GLuint *v );
+GLAPI void GLAPIENTRY glColor3usv( const GLushort *v );
+
+GLAPI void GLAPIENTRY glColor4bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glColor4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glColor4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glColor4iv( const GLint *v );
+GLAPI void GLAPIENTRY glColor4sv( const GLshort *v );
+GLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v );
+GLAPI void GLAPIENTRY glColor4uiv( const GLuint *v );
+GLAPI void GLAPIENTRY glColor4usv( const GLushort *v );
+
+
+GLAPI void GLAPIENTRY glTexCoord1d( GLdouble s );
+GLAPI void GLAPIENTRY glTexCoord1f( GLfloat s );
+GLAPI void GLAPIENTRY glTexCoord1i( GLint s );
+GLAPI void GLAPIENTRY glTexCoord1s( GLshort s );
+
+GLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t );
+GLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t );
+GLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t );
+GLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t );
+
+GLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
+GLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
+GLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r );
+GLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r );
+
+GLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
+GLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
+GLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
+GLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
+
+GLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y );
+GLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y );
+
+GLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z );
+
+GLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
+GLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
+
+GLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
+GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
+GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
+GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
+
+
+GLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 );
+GLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 );
+GLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 );
+GLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 );
+
+
+/*
+ * Vertex Arrays (1.1)
+ */
+
+GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
+ GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride,
+ const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type,
+ GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride,
+ const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type,
+ GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glGetPointerv( GLenum pname, GLvoid **params );
+
+GLAPI void GLAPIENTRY glArrayElement( GLint i );
+
+GLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count );
+
+GLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count,
+ GLenum type, const GLvoid *indices );
+
+GLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride,
+ const GLvoid *pointer );
+
+/*
+ * Lighting
+ */
+
+GLAPI void GLAPIENTRY glShadeModel( GLenum mode );
+
+GLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname,
+ const GLfloat *params );
+GLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname,
+ const GLint *params );
+
+GLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname,
+ GLfloat *params );
+GLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
+
+GLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode );
+
+
+/*
+ * Raster functions
+ */
+
+GLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor );
+
+GLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLsizei mapsize,
+ const GLfloat *values );
+GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLsizei mapsize,
+ const GLuint *values );
+GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLsizei mapsize,
+ const GLushort *values );
+
+GLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values );
+GLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values );
+GLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values );
+
+GLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height,
+ GLfloat xorig, GLfloat yorig,
+ GLfloat xmove, GLfloat ymove,
+ const GLubyte *bitmap );
+
+GLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLenum type );
+
+/*
+ * Stenciling
+ */
+
+GLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask );
+
+GLAPI void GLAPIENTRY glStencilMask( GLuint mask );
+
+GLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
+
+GLAPI void GLAPIENTRY glClearStencil( GLint s );
+
+
+
+/*
+ * Texture mapping
+ */
+
+GLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param );
+GLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
+GLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
+GLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname,
+ const GLfloat *params );
+GLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname,
+ const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target,
+ GLenum pname, GLfloat *params);
+GLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target,
+ GLenum pname, GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level,
+ GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level,
+ GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level,
+ GLint internalFormat,
+ GLsizei width, GLint border,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level,
+ GLint internalFormat,
+ GLsizei width, GLsizei height,
+ GLint border, GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level,
+ GLenum format, GLenum type,
+ GLvoid *pixels );
+
+
+/* 1.1 functions */
+
+GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures );
+
+GLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
+
+GLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture );
+
+GLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n,
+ const GLuint *textures,
+ const GLclampf *priorities );
+
+GLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n,
+ const GLuint *textures,
+ GLboolean *residences );
+
+GLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture );
+
+
+GLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level,
+ GLint xoffset,
+ GLsizei width, GLenum format,
+ GLenum type, const GLvoid *pixels );
+
+
+GLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+
+GLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level,
+ GLenum internalformat,
+ GLint x, GLint y,
+ GLsizei width, GLint border );
+
+
+GLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level,
+ GLenum internalformat,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLint border );
+
+
+GLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level,
+ GLint xoffset, GLint x, GLint y,
+ GLsizei width );
+
+
+GLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height );
+
+
+/*
+ * Evaluators
+ */
+
+GLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2,
+ GLint stride,
+ GLint order, const GLdouble *points );
+GLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2,
+ GLint stride,
+ GLint order, const GLfloat *points );
+
+GLAPI void GLAPIENTRY glMap2d( GLenum target,
+ GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
+ GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
+ const GLdouble *points );
+GLAPI void GLAPIENTRY glMap2f( GLenum target,
+ GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
+ GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
+ const GLfloat *points );
+
+GLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v );
+GLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v );
+GLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v );
+
+GLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u );
+GLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u );
+
+GLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u );
+GLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u );
+
+GLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v );
+GLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v );
+
+GLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u );
+GLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u );
+
+GLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
+GLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
+
+GLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
+ GLint vn, GLdouble v1, GLdouble v2 );
+GLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
+ GLint vn, GLfloat v1, GLfloat v2 );
+
+GLAPI void GLAPIENTRY glEvalPoint1( GLint i );
+
+GLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j );
+
+GLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
+
+GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
+
+
+/*
+ * Fog
+ */
+
+GLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param );
+
+GLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params );
+
+GLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params );
+
+
+/*
+ * Selection and Feedback
+ */
+
+GLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
+
+GLAPI void GLAPIENTRY glPassThrough( GLfloat token );
+
+GLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer );
+
+GLAPI void GLAPIENTRY glInitNames( void );
+
+GLAPI void GLAPIENTRY glLoadName( GLuint name );
+
+GLAPI void GLAPIENTRY glPushName( GLuint name );
+
+GLAPI void GLAPIENTRY glPopName( void );
+
+
+
+/*
+ * OpenGL 1.2
+ */
+
+#define GL_RESCALE_NORMAL 0x803A
+#define GL_CLAMP_TO_EDGE 0x812F
+#define GL_MAX_ELEMENTS_VERTICES 0x80E8
+#define GL_MAX_ELEMENTS_INDICES 0x80E9
+#define GL_BGR 0x80E0
+#define GL_BGRA 0x80E1
+#define GL_UNSIGNED_BYTE_3_3_2 0x8032
+#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
+#define GL_UNSIGNED_INT_8_8_8_8 0x8035
+#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
+#define GL_UNSIGNED_INT_10_10_10_2 0x8036
+#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
+#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
+#define GL_SINGLE_COLOR 0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
+#define GL_TEXTURE_MIN_LOD 0x813A
+#define GL_TEXTURE_MAX_LOD 0x813B
+#define GL_TEXTURE_BASE_LEVEL 0x813C
+#define GL_TEXTURE_MAX_LEVEL 0x813D
+#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
+#define GL_PACK_SKIP_IMAGES 0x806B
+#define GL_PACK_IMAGE_HEIGHT 0x806C
+#define GL_UNPACK_SKIP_IMAGES 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT 0x806E
+#define GL_TEXTURE_3D 0x806F
+#define GL_PROXY_TEXTURE_3D 0x8070
+#define GL_TEXTURE_DEPTH 0x8071
+#define GL_TEXTURE_WRAP_R 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE 0x8073
+#define GL_TEXTURE_BINDING_3D 0x806A
+
+GLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start,
+ GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
+
+GLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level,
+ GLint internalFormat,
+ GLsizei width, GLsizei height,
+ GLsizei depth, GLint border,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint zoffset, GLsizei width,
+ GLsizei height, GLsizei depth,
+ GLenum format,
+ GLenum type, const GLvoid *pixels);
+
+GLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint zoffset, GLint x,
+ GLint y, GLsizei width,
+ GLsizei height );
+
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+
+/*
+ * GL_ARB_imaging
+ */
+
+#define GL_CONSTANT_COLOR 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
+#define GL_CONSTANT_ALPHA 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
+#define GL_COLOR_TABLE 0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
+#define GL_PROXY_COLOR_TABLE 0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
+#define GL_COLOR_TABLE_SCALE 0x80D6
+#define GL_COLOR_TABLE_BIAS 0x80D7
+#define GL_COLOR_TABLE_FORMAT 0x80D8
+#define GL_COLOR_TABLE_WIDTH 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
+#define GL_CONVOLUTION_1D 0x8010
+#define GL_CONVOLUTION_2D 0x8011
+#define GL_SEPARABLE_2D 0x8012
+#define GL_CONVOLUTION_BORDER_MODE 0x8013
+#define GL_CONVOLUTION_FILTER_SCALE 0x8014
+#define GL_CONVOLUTION_FILTER_BIAS 0x8015
+#define GL_REDUCE 0x8016
+#define GL_CONVOLUTION_FORMAT 0x8017
+#define GL_CONVOLUTION_WIDTH 0x8018
+#define GL_CONVOLUTION_HEIGHT 0x8019
+#define GL_MAX_CONVOLUTION_WIDTH 0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT 0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE 0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS 0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
+#define GL_CONSTANT_BORDER 0x8151
+#define GL_REPLICATE_BORDER 0x8153
+#define GL_CONVOLUTION_BORDER_COLOR 0x8154
+#define GL_COLOR_MATRIX 0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
+#define GL_HISTOGRAM 0x8024
+#define GL_PROXY_HISTOGRAM 0x8025
+#define GL_HISTOGRAM_WIDTH 0x8026
+#define GL_HISTOGRAM_FORMAT 0x8027
+#define GL_HISTOGRAM_RED_SIZE 0x8028
+#define GL_HISTOGRAM_GREEN_SIZE 0x8029
+#define GL_HISTOGRAM_BLUE_SIZE 0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE 0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
+#define GL_HISTOGRAM_SINK 0x802D
+#define GL_MINMAX 0x802E
+#define GL_MINMAX_FORMAT 0x802F
+#define GL_MINMAX_SINK 0x8030
+#define GL_TABLE_TOO_LARGE 0x8031
+#define GL_BLEND_EQUATION 0x8009
+#define GL_MIN 0x8007
+#define GL_MAX 0x8008
+#define GL_FUNC_ADD 0x8006
+#define GL_FUNC_SUBTRACT 0x800A
+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
+#define GL_BLEND_COLOR 0x8005
+
+
+GLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat,
+ GLsizei width, GLenum format,
+ GLenum type, const GLvoid *table );
+
+GLAPI void GLAPIENTRY glColorSubTable( GLenum target,
+ GLsizei start, GLsizei count,
+ GLenum format, GLenum type,
+ const GLvoid *data );
+
+GLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname,
+ const GLint *params);
+
+GLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname,
+ const GLfloat *params);
+
+GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
+ GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
+ GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format,
+ GLenum type, GLvoid *table );
+
+GLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glBlendEquation( GLenum mode );
+
+GLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green,
+ GLclampf blue, GLclampf alpha );
+
+GLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width,
+ GLenum internalformat, GLboolean sink );
+
+GLAPI void GLAPIENTRY glResetHistogram( GLenum target );
+
+GLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset,
+ GLenum format, GLenum type,
+ GLvoid *values );
+
+GLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat,
+ GLboolean sink );
+
+GLAPI void GLAPIENTRY glResetMinmax( GLenum target );
+
+GLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset,
+ GLenum format, GLenum types,
+ GLvoid *values );
+
+GLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target,
+ GLenum internalformat, GLsizei width, GLenum format, GLenum type,
+ const GLvoid *image );
+
+GLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target,
+ GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
+ GLenum type, const GLvoid *image );
+
+GLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname,
+ GLfloat params );
+
+GLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname,
+ const GLfloat *params );
+
+GLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname,
+ GLint params );
+
+GLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname,
+ const GLint *params );
+
+GLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target,
+ GLenum internalformat, GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target,
+ GLenum internalformat, GLint x, GLint y, GLsizei width,
+ GLsizei height);
+
+GLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format,
+ GLenum type, GLvoid *image );
+
+GLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target,
+ GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
+ GLenum type, const GLvoid *row, const GLvoid *column );
+
+GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
+ GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
+
+
+
+
+/*
+ * OpenGL 1.3
+ */
+
+/* multitexture */
+#define GL_TEXTURE0 0x84C0
+#define GL_TEXTURE1 0x84C1
+#define GL_TEXTURE2 0x84C2
+#define GL_TEXTURE3 0x84C3
+#define GL_TEXTURE4 0x84C4
+#define GL_TEXTURE5 0x84C5
+#define GL_TEXTURE6 0x84C6
+#define GL_TEXTURE7 0x84C7
+#define GL_TEXTURE8 0x84C8
+#define GL_TEXTURE9 0x84C9
+#define GL_TEXTURE10 0x84CA
+#define GL_TEXTURE11 0x84CB
+#define GL_TEXTURE12 0x84CC
+#define GL_TEXTURE13 0x84CD
+#define GL_TEXTURE14 0x84CE
+#define GL_TEXTURE15 0x84CF
+#define GL_TEXTURE16 0x84D0
+#define GL_TEXTURE17 0x84D1
+#define GL_TEXTURE18 0x84D2
+#define GL_TEXTURE19 0x84D3
+#define GL_TEXTURE20 0x84D4
+#define GL_TEXTURE21 0x84D5
+#define GL_TEXTURE22 0x84D6
+#define GL_TEXTURE23 0x84D7
+#define GL_TEXTURE24 0x84D8
+#define GL_TEXTURE25 0x84D9
+#define GL_TEXTURE26 0x84DA
+#define GL_TEXTURE27 0x84DB
+#define GL_TEXTURE28 0x84DC
+#define GL_TEXTURE29 0x84DD
+#define GL_TEXTURE30 0x84DE
+#define GL_TEXTURE31 0x84DF
+#define GL_ACTIVE_TEXTURE 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
+#define GL_MAX_TEXTURE_UNITS 0x84E2
+/* texture_cube_map */
+#define GL_NORMAL_MAP 0x8511
+#define GL_REFLECTION_MAP 0x8512
+#define GL_TEXTURE_CUBE_MAP 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
+/* texture_compression */
+#define GL_COMPRESSED_ALPHA 0x84E9
+#define GL_COMPRESSED_LUMINANCE 0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
+#define GL_COMPRESSED_INTENSITY 0x84EC
+#define GL_COMPRESSED_RGB 0x84ED
+#define GL_COMPRESSED_RGBA 0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
+#define GL_TEXTURE_COMPRESSED 0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
+/* multisample */
+#define GL_MULTISAMPLE 0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
+#define GL_SAMPLE_COVERAGE 0x80A0
+#define GL_SAMPLE_BUFFERS 0x80A8
+#define GL_SAMPLES 0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
+#define GL_MULTISAMPLE_BIT 0x20000000
+/* transpose_matrix */
+#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
+/* texture_env_combine */
+#define GL_COMBINE 0x8570
+#define GL_COMBINE_RGB 0x8571
+#define GL_COMBINE_ALPHA 0x8572
+#define GL_SOURCE0_RGB 0x8580
+#define GL_SOURCE1_RGB 0x8581
+#define GL_SOURCE2_RGB 0x8582
+#define GL_SOURCE0_ALPHA 0x8588
+#define GL_SOURCE1_ALPHA 0x8589
+#define GL_SOURCE2_ALPHA 0x858A
+#define GL_OPERAND0_RGB 0x8590
+#define GL_OPERAND1_RGB 0x8591
+#define GL_OPERAND2_RGB 0x8592
+#define GL_OPERAND0_ALPHA 0x8598
+#define GL_OPERAND1_ALPHA 0x8599
+#define GL_OPERAND2_ALPHA 0x859A
+#define GL_RGB_SCALE 0x8573
+#define GL_ADD_SIGNED 0x8574
+#define GL_INTERPOLATE 0x8575
+#define GL_SUBTRACT 0x84E7
+#define GL_CONSTANT 0x8576
+#define GL_PRIMARY_COLOR 0x8577
+#define GL_PREVIOUS 0x8578
+/* texture_env_dot3 */
+#define GL_DOT3_RGB 0x86AE
+#define GL_DOT3_RGBA 0x86AF
+/* texture_border_clamp */
+#define GL_CLAMP_TO_BORDER 0x812D
+
+GLAPI void GLAPIENTRY glActiveTexture( GLenum texture );
+
+GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
+
+GLAPI void GLAPIENTRY glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glCompressedTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1d( GLenum target, GLdouble s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1f( GLenum target, GLfloat s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1i( GLenum target, GLint s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1s( GLenum target, GLshort s );
+
+GLAPI void GLAPIENTRY glMultiTexCoord1sv( GLenum target, const GLshort *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2i( GLenum target, GLint s, GLint t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2s( GLenum target, GLshort s, GLshort t );
+
+GLAPI void GLAPIENTRY glMultiTexCoord2sv( GLenum target, const GLshort *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r );
+
+GLAPI void GLAPIENTRY glMultiTexCoord3sv( GLenum target, const GLshort *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4dv( GLenum target, const GLdouble *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4fv( GLenum target, const GLfloat *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4iv( GLenum target, const GLint *v );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q );
+
+GLAPI void GLAPIENTRY glMultiTexCoord4sv( GLenum target, const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glLoadTransposeMatrixd( const GLdouble * m );
+
+GLAPI void GLAPIENTRY glLoadTransposeMatrixf( const GLfloat * m );
+
+GLAPI void GLAPIENTRY glMultTransposeMatrixd( const GLdouble * m );
+
+GLAPI void GLAPIENTRY glMultTransposeMatrixf( const GLfloat * m );
+
+GLAPI void GLAPIENTRY glSampleCoverage( GLclampf value, GLboolean invert );
+
+
+typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
+
+
+
+/*
+ * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1)
+ */
+#ifndef GL_ARB_multitexture
+#define GL_ARB_multitexture 1
+
+#define GL_TEXTURE0_ARB 0x84C0
+#define GL_TEXTURE1_ARB 0x84C1
+#define GL_TEXTURE2_ARB 0x84C2
+#define GL_TEXTURE3_ARB 0x84C3
+#define GL_TEXTURE4_ARB 0x84C4
+#define GL_TEXTURE5_ARB 0x84C5
+#define GL_TEXTURE6_ARB 0x84C6
+#define GL_TEXTURE7_ARB 0x84C7
+#define GL_TEXTURE8_ARB 0x84C8
+#define GL_TEXTURE9_ARB 0x84C9
+#define GL_TEXTURE10_ARB 0x84CA
+#define GL_TEXTURE11_ARB 0x84CB
+#define GL_TEXTURE12_ARB 0x84CC
+#define GL_TEXTURE13_ARB 0x84CD
+#define GL_TEXTURE14_ARB 0x84CE
+#define GL_TEXTURE15_ARB 0x84CF
+#define GL_TEXTURE16_ARB 0x84D0
+#define GL_TEXTURE17_ARB 0x84D1
+#define GL_TEXTURE18_ARB 0x84D2
+#define GL_TEXTURE19_ARB 0x84D3
+#define GL_TEXTURE20_ARB 0x84D4
+#define GL_TEXTURE21_ARB 0x84D5
+#define GL_TEXTURE22_ARB 0x84D6
+#define GL_TEXTURE23_ARB 0x84D7
+#define GL_TEXTURE24_ARB 0x84D8
+#define GL_TEXTURE25_ARB 0x84D9
+#define GL_TEXTURE26_ARB 0x84DA
+#define GL_TEXTURE27_ARB 0x84DB
+#define GL_TEXTURE28_ARB 0x84DC
+#define GL_TEXTURE29_ARB 0x84DD
+#define GL_TEXTURE30_ARB 0x84DE
+#define GL_TEXTURE31_ARB 0x84DF
+#define GL_ACTIVE_TEXTURE_ARB 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
+
+GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture);
+GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture);
+GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
+GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
+GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
+GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
+GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
+GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
+GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
+GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
+GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
+GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
+
+typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
+
+#endif /* GL_ARB_multitexture */
+
+
+
+/*
+ * Define this token if you want "old-style" header file behaviour (extensions
+ * defined in gl.h). Otherwise, extensions will be included from glext.h.
+ */
+#if defined(GL_GLEXT_LEGACY)
+
+/* All extensions that used to be here are now found in glext.h */
+
+#else /* GL_GLEXT_LEGACY */
+
+#include
+
+#endif /* GL_GLEXT_LEGACY */
+
+
+
+/*
+ * ???. GL_MESA_packed_depth_stencil
+ * XXX obsolete
+ */
+#ifndef GL_MESA_packed_depth_stencil
+#define GL_MESA_packed_depth_stencil 1
+
+#define GL_DEPTH_STENCIL_MESA 0x8750
+#define GL_UNSIGNED_INT_24_8_MESA 0x8751
+#define GL_UNSIGNED_INT_8_24_REV_MESA 0x8752
+#define GL_UNSIGNED_SHORT_15_1_MESA 0x8753
+#define GL_UNSIGNED_SHORT_1_15_REV_MESA 0x8754
+
+#endif /* GL_MESA_packed_depth_stencil */
+
+
+#ifndef GL_ATI_blend_equation_separate
+#define GL_ATI_blend_equation_separate 1
+
+#define GL_ALPHA_BLEND_EQUATION_ATI 0x883D
+
+GLAPI void GLAPIENTRY glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA );
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA);
+
+#endif /* GL_ATI_blend_equation_separate */
+
+
+/* GL_OES_EGL_image */
+#if !defined(GL_OES_EGL_image) && !defined(GL_EXT_EGL_image_storage)
+typedef void* GLeglImageOES;
+#endif
+
+#ifndef GL_OES_EGL_image
+#define GL_OES_EGL_image 1
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
+GLAPI void APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
+#endif
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __gl_h_ */
diff --git a/third_party/openGLES/GL/glcorearb.h b/third_party/openGLES/GL/glcorearb.h
new file mode 100644
index 0000000000000000000000000000000000000000..07517e7e5d95c33ca3e20951b7f87bfcdcbcb15a
--- /dev/null
+++ b/third_party/openGLES/GL/glcorearb.h
@@ -0,0 +1,5991 @@
+#ifndef __gl_glcorearb_h_
+#define __gl_glcorearb_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright 2013-2020 The Khronos Group Inc.
+** SPDX-License-Identifier: MIT
+**
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+** https://github.com/KhronosGroup/OpenGL-Registry
+*/
+
+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+
+/* glcorearb.h is for use with OpenGL core profile implementations.
+** It should should be placed in the same directory as gl.h and
+** included as .
+**
+** glcorearb.h includes only APIs in the latest OpenGL core profile
+** implementation together with APIs in newer ARB extensions which
+** can be supported by the core profile. It does not, and never will
+** include functionality removed from the core profile, such as
+** fixed-function vertex and fragment processing.
+**
+** Do not #include both and either of or
+** in the same source file.
+*/
+
+/* Generated C header for:
+ * API: gl
+ * Profile: core
+ * Versions considered: .*
+ * Versions emitted: .*
+ * Default extensions included: glcore
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef GL_VERSION_1_0
+#define GL_VERSION_1_0 1
+typedef void GLvoid;
+typedef unsigned int GLenum;
+#include
+typedef khronos_float_t GLfloat;
+typedef int GLint;
+typedef int GLsizei;
+typedef unsigned int GLbitfield;
+typedef double GLdouble;
+typedef unsigned int GLuint;
+typedef unsigned char GLboolean;
+typedef khronos_uint8_t GLubyte;
+#define GL_DEPTH_BUFFER_BIT 0x00000100
+#define GL_STENCIL_BUFFER_BIT 0x00000400
+#define GL_COLOR_BUFFER_BIT 0x00004000
+#define GL_FALSE 0
+#define GL_TRUE 1
+#define GL_POINTS 0x0000
+#define GL_LINES 0x0001
+#define GL_LINE_LOOP 0x0002
+#define GL_LINE_STRIP 0x0003
+#define GL_TRIANGLES 0x0004
+#define GL_TRIANGLE_STRIP 0x0005
+#define GL_TRIANGLE_FAN 0x0006
+#define GL_QUADS 0x0007
+#define GL_NEVER 0x0200
+#define GL_LESS 0x0201
+#define GL_EQUAL 0x0202
+#define GL_LEQUAL 0x0203
+#define GL_GREATER 0x0204
+#define GL_NOTEQUAL 0x0205
+#define GL_GEQUAL 0x0206
+#define GL_ALWAYS 0x0207
+#define GL_ZERO 0
+#define GL_ONE 1
+#define GL_SRC_COLOR 0x0300
+#define GL_ONE_MINUS_SRC_COLOR 0x0301
+#define GL_SRC_ALPHA 0x0302
+#define GL_ONE_MINUS_SRC_ALPHA 0x0303
+#define GL_DST_ALPHA 0x0304
+#define GL_ONE_MINUS_DST_ALPHA 0x0305
+#define GL_DST_COLOR 0x0306
+#define GL_ONE_MINUS_DST_COLOR 0x0307
+#define GL_SRC_ALPHA_SATURATE 0x0308
+#define GL_NONE 0
+#define GL_FRONT_LEFT 0x0400
+#define GL_FRONT_RIGHT 0x0401
+#define GL_BACK_LEFT 0x0402
+#define GL_BACK_RIGHT 0x0403
+#define GL_FRONT 0x0404
+#define GL_BACK 0x0405
+#define GL_LEFT 0x0406
+#define GL_RIGHT 0x0407
+#define GL_FRONT_AND_BACK 0x0408
+#define GL_NO_ERROR 0
+#define GL_INVALID_ENUM 0x0500
+#define GL_INVALID_VALUE 0x0501
+#define GL_INVALID_OPERATION 0x0502
+#define GL_OUT_OF_MEMORY 0x0505
+#define GL_CW 0x0900
+#define GL_CCW 0x0901
+#define GL_POINT_SIZE 0x0B11
+#define GL_POINT_SIZE_RANGE 0x0B12
+#define GL_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_LINE_SMOOTH 0x0B20
+#define GL_LINE_WIDTH 0x0B21
+#define GL_LINE_WIDTH_RANGE 0x0B22
+#define GL_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_POLYGON_MODE 0x0B40
+#define GL_POLYGON_SMOOTH 0x0B41
+#define GL_CULL_FACE 0x0B44
+#define GL_CULL_FACE_MODE 0x0B45
+#define GL_FRONT_FACE 0x0B46
+#define GL_DEPTH_RANGE 0x0B70
+#define GL_DEPTH_TEST 0x0B71
+#define GL_DEPTH_WRITEMASK 0x0B72
+#define GL_DEPTH_CLEAR_VALUE 0x0B73
+#define GL_DEPTH_FUNC 0x0B74
+#define GL_STENCIL_TEST 0x0B90
+#define GL_STENCIL_CLEAR_VALUE 0x0B91
+#define GL_STENCIL_FUNC 0x0B92
+#define GL_STENCIL_VALUE_MASK 0x0B93
+#define GL_STENCIL_FAIL 0x0B94
+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
+#define GL_STENCIL_REF 0x0B97
+#define GL_STENCIL_WRITEMASK 0x0B98
+#define GL_VIEWPORT 0x0BA2
+#define GL_DITHER 0x0BD0
+#define GL_BLEND_DST 0x0BE0
+#define GL_BLEND_SRC 0x0BE1
+#define GL_BLEND 0x0BE2
+#define GL_LOGIC_OP_MODE 0x0BF0
+#define GL_DRAW_BUFFER 0x0C01
+#define GL_READ_BUFFER 0x0C02
+#define GL_SCISSOR_BOX 0x0C10
+#define GL_SCISSOR_TEST 0x0C11
+#define GL_COLOR_CLEAR_VALUE 0x0C22
+#define GL_COLOR_WRITEMASK 0x0C23
+#define GL_DOUBLEBUFFER 0x0C32
+#define GL_STEREO 0x0C33
+#define GL_LINE_SMOOTH_HINT 0x0C52
+#define GL_POLYGON_SMOOTH_HINT 0x0C53
+#define GL_UNPACK_SWAP_BYTES 0x0CF0
+#define GL_UNPACK_LSB_FIRST 0x0CF1
+#define GL_UNPACK_ROW_LENGTH 0x0CF2
+#define GL_UNPACK_SKIP_ROWS 0x0CF3
+#define GL_UNPACK_SKIP_PIXELS 0x0CF4
+#define GL_UNPACK_ALIGNMENT 0x0CF5
+#define GL_PACK_SWAP_BYTES 0x0D00
+#define GL_PACK_LSB_FIRST 0x0D01
+#define GL_PACK_ROW_LENGTH 0x0D02
+#define GL_PACK_SKIP_ROWS 0x0D03
+#define GL_PACK_SKIP_PIXELS 0x0D04
+#define GL_PACK_ALIGNMENT 0x0D05
+#define GL_MAX_TEXTURE_SIZE 0x0D33
+#define GL_MAX_VIEWPORT_DIMS 0x0D3A
+#define GL_SUBPIXEL_BITS 0x0D50
+#define GL_TEXTURE_1D 0x0DE0
+#define GL_TEXTURE_2D 0x0DE1
+#define GL_TEXTURE_WIDTH 0x1000
+#define GL_TEXTURE_HEIGHT 0x1001
+#define GL_TEXTURE_BORDER_COLOR 0x1004
+#define GL_DONT_CARE 0x1100
+#define GL_FASTEST 0x1101
+#define GL_NICEST 0x1102
+#define GL_BYTE 0x1400
+#define GL_UNSIGNED_BYTE 0x1401
+#define GL_SHORT 0x1402
+#define GL_UNSIGNED_SHORT 0x1403
+#define GL_INT 0x1404
+#define GL_UNSIGNED_INT 0x1405
+#define GL_FLOAT 0x1406
+#define GL_STACK_OVERFLOW 0x0503
+#define GL_STACK_UNDERFLOW 0x0504
+#define GL_CLEAR 0x1500
+#define GL_AND 0x1501
+#define GL_AND_REVERSE 0x1502
+#define GL_COPY 0x1503
+#define GL_AND_INVERTED 0x1504
+#define GL_NOOP 0x1505
+#define GL_XOR 0x1506
+#define GL_OR 0x1507
+#define GL_NOR 0x1508
+#define GL_EQUIV 0x1509
+#define GL_INVERT 0x150A
+#define GL_OR_REVERSE 0x150B
+#define GL_COPY_INVERTED 0x150C
+#define GL_OR_INVERTED 0x150D
+#define GL_NAND 0x150E
+#define GL_SET 0x150F
+#define GL_TEXTURE 0x1702
+#define GL_COLOR 0x1800
+#define GL_DEPTH 0x1801
+#define GL_STENCIL 0x1802
+#define GL_STENCIL_INDEX 0x1901
+#define GL_DEPTH_COMPONENT 0x1902
+#define GL_RED 0x1903
+#define GL_GREEN 0x1904
+#define GL_BLUE 0x1905
+#define GL_ALPHA 0x1906
+#define GL_RGB 0x1907
+#define GL_RGBA 0x1908
+#define GL_POINT 0x1B00
+#define GL_LINE 0x1B01
+#define GL_FILL 0x1B02
+#define GL_KEEP 0x1E00
+#define GL_REPLACE 0x1E01
+#define GL_INCR 0x1E02
+#define GL_DECR 0x1E03
+#define GL_VENDOR 0x1F00
+#define GL_RENDERER 0x1F01
+#define GL_VERSION 0x1F02
+#define GL_EXTENSIONS 0x1F03
+#define GL_NEAREST 0x2600
+#define GL_LINEAR 0x2601
+#define GL_NEAREST_MIPMAP_NEAREST 0x2700
+#define GL_LINEAR_MIPMAP_NEAREST 0x2701
+#define GL_NEAREST_MIPMAP_LINEAR 0x2702
+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
+#define GL_TEXTURE_MAG_FILTER 0x2800
+#define GL_TEXTURE_MIN_FILTER 0x2801
+#define GL_TEXTURE_WRAP_S 0x2802
+#define GL_TEXTURE_WRAP_T 0x2803
+#define GL_REPEAT 0x2901
+typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
+typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
+typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size);
+typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode);
+typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum buf);
+typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
+typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth);
+typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
+typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
+typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
+typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap);
+typedef void (APIENTRYP PFNGLFINISHPROC) (void);
+typedef void (APIENTRYP PFNGLFLUSHPROC) (void);
+typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
+typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode);
+typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
+typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
+typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum src);
+typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *data);
+typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void);
+typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data);
+typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
+typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
+typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble n, GLdouble f);
+typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCullFace (GLenum mode);
+GLAPI void APIENTRY glFrontFace (GLenum mode);
+GLAPI void APIENTRY glHint (GLenum target, GLenum mode);
+GLAPI void APIENTRY glLineWidth (GLfloat width);
+GLAPI void APIENTRY glPointSize (GLfloat size);
+GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode);
+GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glDrawBuffer (GLenum buf);
+GLAPI void APIENTRY glClear (GLbitfield mask);
+GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GLAPI void APIENTRY glClearStencil (GLint s);
+GLAPI void APIENTRY glClearDepth (GLdouble depth);
+GLAPI void APIENTRY glStencilMask (GLuint mask);
+GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+GLAPI void APIENTRY glDepthMask (GLboolean flag);
+GLAPI void APIENTRY glDisable (GLenum cap);
+GLAPI void APIENTRY glEnable (GLenum cap);
+GLAPI void APIENTRY glFinish (void);
+GLAPI void APIENTRY glFlush (void);
+GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
+GLAPI void APIENTRY glLogicOp (GLenum opcode);
+GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
+GLAPI void APIENTRY glDepthFunc (GLenum func);
+GLAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
+GLAPI void APIENTRY glReadBuffer (GLenum src);
+GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *data);
+GLAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *data);
+GLAPI GLenum APIENTRY glGetError (void);
+GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *data);
+GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *data);
+GLAPI const GLubyte *APIENTRY glGetString (GLenum name);
+GLAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap);
+GLAPI void APIENTRY glDepthRange (GLdouble n, GLdouble f);
+GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_VERSION_1_0 */
+
+#ifndef GL_VERSION_1_1
+#define GL_VERSION_1_1 1
+typedef khronos_float_t GLclampf;
+typedef double GLclampd;
+#define GL_COLOR_LOGIC_OP 0x0BF2
+#define GL_POLYGON_OFFSET_UNITS 0x2A00
+#define GL_POLYGON_OFFSET_POINT 0x2A01
+#define GL_POLYGON_OFFSET_LINE 0x2A02
+#define GL_POLYGON_OFFSET_FILL 0x8037
+#define GL_POLYGON_OFFSET_FACTOR 0x8038
+#define GL_TEXTURE_BINDING_1D 0x8068
+#define GL_TEXTURE_BINDING_2D 0x8069
+#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
+#define GL_TEXTURE_RED_SIZE 0x805C
+#define GL_TEXTURE_GREEN_SIZE 0x805D
+#define GL_TEXTURE_BLUE_SIZE 0x805E
+#define GL_TEXTURE_ALPHA_SIZE 0x805F
+#define GL_DOUBLE 0x140A
+#define GL_PROXY_TEXTURE_1D 0x8063
+#define GL_PROXY_TEXTURE_2D 0x8064
+#define GL_R3_G3_B2 0x2A10
+#define GL_RGB4 0x804F
+#define GL_RGB5 0x8050
+#define GL_RGB8 0x8051
+#define GL_RGB10 0x8052
+#define GL_RGB12 0x8053
+#define GL_RGB16 0x8054
+#define GL_RGBA2 0x8055
+#define GL_RGBA4 0x8056
+#define GL_RGB5_A1 0x8057
+#define GL_RGBA8 0x8058
+#define GL_RGB10_A2 0x8059
+#define GL_RGBA12 0x805A
+#define GL_RGBA16 0x805B
+#define GL_VERTEX_ARRAY 0x8074
+typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices);
+typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
+typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
+GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
+GLAPI void APIENTRY glGetPointerv (GLenum pname, void **params);
+GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
+GLAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
+GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
+GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
+GLAPI GLboolean APIENTRY glIsTexture (GLuint texture);
+#endif
+#endif /* GL_VERSION_1_1 */
+
+#ifndef GL_VERSION_1_2
+#define GL_VERSION_1_2 1
+#define GL_UNSIGNED_BYTE_3_3_2 0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
+#define GL_UNSIGNED_INT_8_8_8_8 0x8035
+#define GL_UNSIGNED_INT_10_10_10_2 0x8036
+#define GL_TEXTURE_BINDING_3D 0x806A
+#define GL_PACK_SKIP_IMAGES 0x806B
+#define GL_PACK_IMAGE_HEIGHT 0x806C
+#define GL_UNPACK_SKIP_IMAGES 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT 0x806E
+#define GL_TEXTURE_3D 0x806F
+#define GL_PROXY_TEXTURE_3D 0x8070
+#define GL_TEXTURE_DEPTH 0x8071
+#define GL_TEXTURE_WRAP_R 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE 0x8073
+#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
+#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
+#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
+#define GL_BGR 0x80E0
+#define GL_BGRA 0x80E1
+#define GL_MAX_ELEMENTS_VERTICES 0x80E8
+#define GL_MAX_ELEMENTS_INDICES 0x80E9
+#define GL_CLAMP_TO_EDGE 0x812F
+#define GL_TEXTURE_MIN_LOD 0x813A
+#define GL_TEXTURE_MAX_LOD 0x813B
+#define GL_TEXTURE_BASE_LEVEL 0x813C
+#define GL_TEXTURE_MAX_LEVEL 0x813D
+#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_VERSION_1_2 */
+
+#ifndef GL_VERSION_1_3
+#define GL_VERSION_1_3 1
+#define GL_TEXTURE0 0x84C0
+#define GL_TEXTURE1 0x84C1
+#define GL_TEXTURE2 0x84C2
+#define GL_TEXTURE3 0x84C3
+#define GL_TEXTURE4 0x84C4
+#define GL_TEXTURE5 0x84C5
+#define GL_TEXTURE6 0x84C6
+#define GL_TEXTURE7 0x84C7
+#define GL_TEXTURE8 0x84C8
+#define GL_TEXTURE9 0x84C9
+#define GL_TEXTURE10 0x84CA
+#define GL_TEXTURE11 0x84CB
+#define GL_TEXTURE12 0x84CC
+#define GL_TEXTURE13 0x84CD
+#define GL_TEXTURE14 0x84CE
+#define GL_TEXTURE15 0x84CF
+#define GL_TEXTURE16 0x84D0
+#define GL_TEXTURE17 0x84D1
+#define GL_TEXTURE18 0x84D2
+#define GL_TEXTURE19 0x84D3
+#define GL_TEXTURE20 0x84D4
+#define GL_TEXTURE21 0x84D5
+#define GL_TEXTURE22 0x84D6
+#define GL_TEXTURE23 0x84D7
+#define GL_TEXTURE24 0x84D8
+#define GL_TEXTURE25 0x84D9
+#define GL_TEXTURE26 0x84DA
+#define GL_TEXTURE27 0x84DB
+#define GL_TEXTURE28 0x84DC
+#define GL_TEXTURE29 0x84DD
+#define GL_TEXTURE30 0x84DE
+#define GL_TEXTURE31 0x84DF
+#define GL_ACTIVE_TEXTURE 0x84E0
+#define GL_MULTISAMPLE 0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
+#define GL_SAMPLE_COVERAGE 0x80A0
+#define GL_SAMPLE_BUFFERS 0x80A8
+#define GL_SAMPLES 0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
+#define GL_TEXTURE_CUBE_MAP 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
+#define GL_COMPRESSED_RGB 0x84ED
+#define GL_COMPRESSED_RGBA 0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
+#define GL_TEXTURE_COMPRESSED 0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
+#define GL_CLAMP_TO_BORDER 0x812D
+typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveTexture (GLenum texture);
+GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
+GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
+#endif
+#endif /* GL_VERSION_1_3 */
+
+#ifndef GL_VERSION_1_4
+#define GL_VERSION_1_4 1
+#define GL_BLEND_DST_RGB 0x80C8
+#define GL_BLEND_SRC_RGB 0x80C9
+#define GL_BLEND_DST_ALPHA 0x80CA
+#define GL_BLEND_SRC_ALPHA 0x80CB
+#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
+#define GL_DEPTH_COMPONENT16 0x81A5
+#define GL_DEPTH_COMPONENT24 0x81A6
+#define GL_DEPTH_COMPONENT32 0x81A7
+#define GL_MIRRORED_REPEAT 0x8370
+#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
+#define GL_TEXTURE_LOD_BIAS 0x8501
+#define GL_INCR_WRAP 0x8507
+#define GL_DECR_WRAP 0x8508
+#define GL_TEXTURE_DEPTH_SIZE 0x884A
+#define GL_TEXTURE_COMPARE_MODE 0x884C
+#define GL_TEXTURE_COMPARE_FUNC 0x884D
+#define GL_BLEND_COLOR 0x8005
+#define GL_BLEND_EQUATION 0x8009
+#define GL_CONSTANT_COLOR 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
+#define GL_CONSTANT_ALPHA 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
+#define GL_FUNC_ADD 0x8006
+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
+#define GL_FUNC_SUBTRACT 0x800A
+#define GL_MIN 0x8007
+#define GL_MAX 0x8008
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
+GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
+GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
+GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GLAPI void APIENTRY glBlendEquation (GLenum mode);
+#endif
+#endif /* GL_VERSION_1_4 */
+
+#ifndef GL_VERSION_1_5
+#define GL_VERSION_1_5 1
+typedef khronos_ssize_t GLsizeiptr;
+typedef khronos_intptr_t GLintptr;
+#define GL_BUFFER_SIZE 0x8764
+#define GL_BUFFER_USAGE 0x8765
+#define GL_QUERY_COUNTER_BITS 0x8864
+#define GL_CURRENT_QUERY 0x8865
+#define GL_QUERY_RESULT 0x8866
+#define GL_QUERY_RESULT_AVAILABLE 0x8867
+#define GL_ARRAY_BUFFER 0x8892
+#define GL_ELEMENT_ARRAY_BUFFER 0x8893
+#define GL_ARRAY_BUFFER_BINDING 0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
+#define GL_READ_ONLY 0x88B8
+#define GL_WRITE_ONLY 0x88B9
+#define GL_READ_WRITE 0x88BA
+#define GL_BUFFER_ACCESS 0x88BB
+#define GL_BUFFER_MAPPED 0x88BC
+#define GL_BUFFER_MAP_POINTER 0x88BD
+#define GL_STREAM_DRAW 0x88E0
+#define GL_STREAM_READ 0x88E1
+#define GL_STREAM_COPY 0x88E2
+#define GL_STATIC_DRAW 0x88E4
+#define GL_STATIC_READ 0x88E5
+#define GL_STATIC_COPY 0x88E6
+#define GL_DYNAMIC_DRAW 0x88E8
+#define GL_DYNAMIC_READ 0x88E9
+#define GL_DYNAMIC_COPY 0x88EA
+#define GL_SAMPLES_PASSED 0x8914
+#define GL_SRC1_ALPHA 0x8589
+typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
+typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
+typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
+GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
+GLAPI void APIENTRY glEndQuery (GLenum target);
+GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
+GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
+GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
+GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
+GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
+GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_VERSION_1_5 */
+
+#ifndef GL_VERSION_2_0
+#define GL_VERSION_2_0 1
+typedef char GLchar;
+typedef khronos_int16_t GLshort;
+typedef khronos_int8_t GLbyte;
+typedef khronos_uint16_t GLushort;
+#define GL_BLEND_EQUATION_RGB 0x8009
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
+#define GL_CURRENT_VERTEX_ATTRIB 0x8626
+#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
+#define GL_STENCIL_BACK_FUNC 0x8800
+#define GL_STENCIL_BACK_FAIL 0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
+#define GL_MAX_DRAW_BUFFERS 0x8824
+#define GL_DRAW_BUFFER0 0x8825
+#define GL_DRAW_BUFFER1 0x8826
+#define GL_DRAW_BUFFER2 0x8827
+#define GL_DRAW_BUFFER3 0x8828
+#define GL_DRAW_BUFFER4 0x8829
+#define GL_DRAW_BUFFER5 0x882A
+#define GL_DRAW_BUFFER6 0x882B
+#define GL_DRAW_BUFFER7 0x882C
+#define GL_DRAW_BUFFER8 0x882D
+#define GL_DRAW_BUFFER9 0x882E
+#define GL_DRAW_BUFFER10 0x882F
+#define GL_DRAW_BUFFER11 0x8830
+#define GL_DRAW_BUFFER12 0x8831
+#define GL_DRAW_BUFFER13 0x8832
+#define GL_DRAW_BUFFER14 0x8833
+#define GL_DRAW_BUFFER15 0x8834
+#define GL_BLEND_EQUATION_ALPHA 0x883D
+#define GL_MAX_VERTEX_ATTRIBS 0x8869
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
+#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
+#define GL_FRAGMENT_SHADER 0x8B30
+#define GL_VERTEX_SHADER 0x8B31
+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
+#define GL_MAX_VARYING_FLOATS 0x8B4B
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
+#define GL_SHADER_TYPE 0x8B4F
+#define GL_FLOAT_VEC2 0x8B50
+#define GL_FLOAT_VEC3 0x8B51
+#define GL_FLOAT_VEC4 0x8B52
+#define GL_INT_VEC2 0x8B53
+#define GL_INT_VEC3 0x8B54
+#define GL_INT_VEC4 0x8B55
+#define GL_BOOL 0x8B56
+#define GL_BOOL_VEC2 0x8B57
+#define GL_BOOL_VEC3 0x8B58
+#define GL_BOOL_VEC4 0x8B59
+#define GL_FLOAT_MAT2 0x8B5A
+#define GL_FLOAT_MAT3 0x8B5B
+#define GL_FLOAT_MAT4 0x8B5C
+#define GL_SAMPLER_1D 0x8B5D
+#define GL_SAMPLER_2D 0x8B5E
+#define GL_SAMPLER_3D 0x8B5F
+#define GL_SAMPLER_CUBE 0x8B60
+#define GL_SAMPLER_1D_SHADOW 0x8B61
+#define GL_SAMPLER_2D_SHADOW 0x8B62
+#define GL_DELETE_STATUS 0x8B80
+#define GL_COMPILE_STATUS 0x8B81
+#define GL_LINK_STATUS 0x8B82
+#define GL_VALIDATE_STATUS 0x8B83
+#define GL_INFO_LOG_LENGTH 0x8B84
+#define GL_ATTACHED_SHADERS 0x8B85
+#define GL_ACTIVE_UNIFORMS 0x8B86
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
+#define GL_SHADER_SOURCE_LENGTH 0x8B88
+#define GL_ACTIVE_ATTRIBUTES 0x8B89
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
+#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
+#define GL_CURRENT_PROGRAM 0x8B8D
+#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
+#define GL_LOWER_LEFT 0x8CA1
+#define GL_UPPER_LEFT 0x8CA2
+#define GL_STENCIL_BACK_REF 0x8CA3
+#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
+#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
+typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
+typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
+typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
+typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
+typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
+typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
+GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
+GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
+GLAPI void APIENTRY glCompileShader (GLuint shader);
+GLAPI GLuint APIENTRY glCreateProgram (void);
+GLAPI GLuint APIENTRY glCreateShader (GLenum type);
+GLAPI void APIENTRY glDeleteProgram (GLuint program);
+GLAPI void APIENTRY glDeleteShader (GLuint shader);
+GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
+GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
+GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
+GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
+GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
+GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
+GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
+GLAPI void APIENTRY glLinkProgram (GLuint program);
+GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+GLAPI void APIENTRY glUseProgram (GLuint program);
+GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
+GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
+GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glValidateProgram (GLuint program);
+GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_VERSION_2_0 */
+
+#ifndef GL_VERSION_2_1
+#define GL_VERSION_2_1 1
+#define GL_PIXEL_PACK_BUFFER 0x88EB
+#define GL_PIXEL_UNPACK_BUFFER 0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
+#define GL_FLOAT_MAT2x3 0x8B65
+#define GL_FLOAT_MAT2x4 0x8B66
+#define GL_FLOAT_MAT3x2 0x8B67
+#define GL_FLOAT_MAT3x4 0x8B68
+#define GL_FLOAT_MAT4x2 0x8B69
+#define GL_FLOAT_MAT4x3 0x8B6A
+#define GL_SRGB 0x8C40
+#define GL_SRGB8 0x8C41
+#define GL_SRGB_ALPHA 0x8C42
+#define GL_SRGB8_ALPHA8 0x8C43
+#define GL_COMPRESSED_SRGB 0x8C48
+#define GL_COMPRESSED_SRGB_ALPHA 0x8C49
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#endif
+#endif /* GL_VERSION_2_1 */
+
+#ifndef GL_VERSION_3_0
+#define GL_VERSION_3_0 1
+typedef khronos_uint16_t GLhalf;
+#define GL_COMPARE_REF_TO_TEXTURE 0x884E
+#define GL_CLIP_DISTANCE0 0x3000
+#define GL_CLIP_DISTANCE1 0x3001
+#define GL_CLIP_DISTANCE2 0x3002
+#define GL_CLIP_DISTANCE3 0x3003
+#define GL_CLIP_DISTANCE4 0x3004
+#define GL_CLIP_DISTANCE5 0x3005
+#define GL_CLIP_DISTANCE6 0x3006
+#define GL_CLIP_DISTANCE7 0x3007
+#define GL_MAX_CLIP_DISTANCES 0x0D32
+#define GL_MAJOR_VERSION 0x821B
+#define GL_MINOR_VERSION 0x821C
+#define GL_NUM_EXTENSIONS 0x821D
+#define GL_CONTEXT_FLAGS 0x821E
+#define GL_COMPRESSED_RED 0x8225
+#define GL_COMPRESSED_RG 0x8226
+#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
+#define GL_RGBA32F 0x8814
+#define GL_RGB32F 0x8815
+#define GL_RGBA16F 0x881A
+#define GL_RGB16F 0x881B
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
+#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
+#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
+#define GL_CLAMP_READ_COLOR 0x891C
+#define GL_FIXED_ONLY 0x891D
+#define GL_MAX_VARYING_COMPONENTS 0x8B4B
+#define GL_TEXTURE_1D_ARRAY 0x8C18
+#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
+#define GL_TEXTURE_2D_ARRAY 0x8C1A
+#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
+#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
+#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
+#define GL_R11F_G11F_B10F 0x8C3A
+#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
+#define GL_RGB9_E5 0x8C3D
+#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
+#define GL_TEXTURE_SHARED_SIZE 0x8C3F
+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
+#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
+#define GL_PRIMITIVES_GENERATED 0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
+#define GL_RASTERIZER_DISCARD 0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
+#define GL_INTERLEAVED_ATTRIBS 0x8C8C
+#define GL_SEPARATE_ATTRIBS 0x8C8D
+#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
+#define GL_RGBA32UI 0x8D70
+#define GL_RGB32UI 0x8D71
+#define GL_RGBA16UI 0x8D76
+#define GL_RGB16UI 0x8D77
+#define GL_RGBA8UI 0x8D7C
+#define GL_RGB8UI 0x8D7D
+#define GL_RGBA32I 0x8D82
+#define GL_RGB32I 0x8D83
+#define GL_RGBA16I 0x8D88
+#define GL_RGB16I 0x8D89
+#define GL_RGBA8I 0x8D8E
+#define GL_RGB8I 0x8D8F
+#define GL_RED_INTEGER 0x8D94
+#define GL_GREEN_INTEGER 0x8D95
+#define GL_BLUE_INTEGER 0x8D96
+#define GL_RGB_INTEGER 0x8D98
+#define GL_RGBA_INTEGER 0x8D99
+#define GL_BGR_INTEGER 0x8D9A
+#define GL_BGRA_INTEGER 0x8D9B
+#define GL_SAMPLER_1D_ARRAY 0x8DC0
+#define GL_SAMPLER_2D_ARRAY 0x8DC1
+#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
+#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
+#define GL_SAMPLER_CUBE_SHADOW 0x8DC5
+#define GL_UNSIGNED_INT_VEC2 0x8DC6
+#define GL_UNSIGNED_INT_VEC3 0x8DC7
+#define GL_UNSIGNED_INT_VEC4 0x8DC8
+#define GL_INT_SAMPLER_1D 0x8DC9
+#define GL_INT_SAMPLER_2D 0x8DCA
+#define GL_INT_SAMPLER_3D 0x8DCB
+#define GL_INT_SAMPLER_CUBE 0x8DCC
+#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
+#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
+#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
+#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
+#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
+#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
+#define GL_QUERY_WAIT 0x8E13
+#define GL_QUERY_NO_WAIT 0x8E14
+#define GL_QUERY_BY_REGION_WAIT 0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
+#define GL_BUFFER_ACCESS_FLAGS 0x911F
+#define GL_BUFFER_MAP_LENGTH 0x9120
+#define GL_BUFFER_MAP_OFFSET 0x9121
+#define GL_DEPTH_COMPONENT32F 0x8CAC
+#define GL_DEPTH32F_STENCIL8 0x8CAD
+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
+#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
+#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
+#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
+#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
+#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
+#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
+#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
+#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
+#define GL_FRAMEBUFFER_DEFAULT 0x8218
+#define GL_FRAMEBUFFER_UNDEFINED 0x8219
+#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
+#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
+#define GL_DEPTH_STENCIL 0x84F9
+#define GL_UNSIGNED_INT_24_8 0x84FA
+#define GL_DEPTH24_STENCIL8 0x88F0
+#define GL_TEXTURE_STENCIL_SIZE 0x88F1
+#define GL_TEXTURE_RED_TYPE 0x8C10
+#define GL_TEXTURE_GREEN_TYPE 0x8C11
+#define GL_TEXTURE_BLUE_TYPE 0x8C12
+#define GL_TEXTURE_ALPHA_TYPE 0x8C13
+#define GL_TEXTURE_DEPTH_TYPE 0x8C16
+#define GL_UNSIGNED_NORMALIZED 0x8C17
+#define GL_FRAMEBUFFER_BINDING 0x8CA6
+#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
+#define GL_RENDERBUFFER_BINDING 0x8CA7
+#define GL_READ_FRAMEBUFFER 0x8CA8
+#define GL_DRAW_FRAMEBUFFER 0x8CA9
+#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
+#define GL_RENDERBUFFER_SAMPLES 0x8CAB
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
+#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
+#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
+#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
+#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
+#define GL_COLOR_ATTACHMENT0 0x8CE0
+#define GL_COLOR_ATTACHMENT1 0x8CE1
+#define GL_COLOR_ATTACHMENT2 0x8CE2
+#define GL_COLOR_ATTACHMENT3 0x8CE3
+#define GL_COLOR_ATTACHMENT4 0x8CE4
+#define GL_COLOR_ATTACHMENT5 0x8CE5
+#define GL_COLOR_ATTACHMENT6 0x8CE6
+#define GL_COLOR_ATTACHMENT7 0x8CE7
+#define GL_COLOR_ATTACHMENT8 0x8CE8
+#define GL_COLOR_ATTACHMENT9 0x8CE9
+#define GL_COLOR_ATTACHMENT10 0x8CEA
+#define GL_COLOR_ATTACHMENT11 0x8CEB
+#define GL_COLOR_ATTACHMENT12 0x8CEC
+#define GL_COLOR_ATTACHMENT13 0x8CED
+#define GL_COLOR_ATTACHMENT14 0x8CEE
+#define GL_COLOR_ATTACHMENT15 0x8CEF
+#define GL_COLOR_ATTACHMENT16 0x8CF0
+#define GL_COLOR_ATTACHMENT17 0x8CF1
+#define GL_COLOR_ATTACHMENT18 0x8CF2
+#define GL_COLOR_ATTACHMENT19 0x8CF3
+#define GL_COLOR_ATTACHMENT20 0x8CF4
+#define GL_COLOR_ATTACHMENT21 0x8CF5
+#define GL_COLOR_ATTACHMENT22 0x8CF6
+#define GL_COLOR_ATTACHMENT23 0x8CF7
+#define GL_COLOR_ATTACHMENT24 0x8CF8
+#define GL_COLOR_ATTACHMENT25 0x8CF9
+#define GL_COLOR_ATTACHMENT26 0x8CFA
+#define GL_COLOR_ATTACHMENT27 0x8CFB
+#define GL_COLOR_ATTACHMENT28 0x8CFC
+#define GL_COLOR_ATTACHMENT29 0x8CFD
+#define GL_COLOR_ATTACHMENT30 0x8CFE
+#define GL_COLOR_ATTACHMENT31 0x8CFF
+#define GL_DEPTH_ATTACHMENT 0x8D00
+#define GL_STENCIL_ATTACHMENT 0x8D20
+#define GL_FRAMEBUFFER 0x8D40
+#define GL_RENDERBUFFER 0x8D41
+#define GL_RENDERBUFFER_WIDTH 0x8D42
+#define GL_RENDERBUFFER_HEIGHT 0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
+#define GL_STENCIL_INDEX1 0x8D46
+#define GL_STENCIL_INDEX4 0x8D47
+#define GL_STENCIL_INDEX8 0x8D48
+#define GL_STENCIL_INDEX16 0x8D49
+#define GL_RENDERBUFFER_RED_SIZE 0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
+#define GL_MAX_SAMPLES 0x8D57
+#define GL_FRAMEBUFFER_SRGB 0x8DB9
+#define GL_HALF_FLOAT 0x140B
+#define GL_MAP_READ_BIT 0x0001
+#define GL_MAP_WRITE_BIT 0x0002
+#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
+#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
+#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
+#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
+#define GL_COMPRESSED_RED_RGTC1 0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
+#define GL_COMPRESSED_RG_RGTC2 0x8DBD
+#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
+#define GL_RG 0x8227
+#define GL_RG_INTEGER 0x8228
+#define GL_R8 0x8229
+#define GL_R16 0x822A
+#define GL_RG8 0x822B
+#define GL_RG16 0x822C
+#define GL_R16F 0x822D
+#define GL_R32F 0x822E
+#define GL_RG16F 0x822F
+#define GL_RG32F 0x8230
+#define GL_R8I 0x8231
+#define GL_R8UI 0x8232
+#define GL_R16I 0x8233
+#define GL_R16UI 0x8234
+#define GL_R32I 0x8235
+#define GL_R32UI 0x8236
+#define GL_RG8I 0x8237
+#define GL_RG8UI 0x8238
+#define GL_RG16I 0x8239
+#define GL_RG16UI 0x823A
+#define GL_RG32I 0x823B
+#define GL_RG32UI 0x823C
+#define GL_VERTEX_ARRAY_BINDING 0x85B5
+typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
+typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
+typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
+typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
+typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
+typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
+typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
+GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
+GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
+GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
+GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
+GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedback (void);
+GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
+GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
+GLAPI void APIENTRY glEndConditionalRender (void);
+GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
+GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
+GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
+GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
+GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
+GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
+GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
+GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
+GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
+GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
+GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index);
+GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
+GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
+GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
+GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
+GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
+GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
+GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
+GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateMipmap (GLenum target);
+GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glBindVertexArray (GLuint array);
+GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
+GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
+GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
+#endif
+#endif /* GL_VERSION_3_0 */
+
+#ifndef GL_VERSION_3_1
+#define GL_VERSION_3_1 1
+#define GL_SAMPLER_2D_RECT 0x8B63
+#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
+#define GL_SAMPLER_BUFFER 0x8DC2
+#define GL_INT_SAMPLER_2D_RECT 0x8DCD
+#define GL_INT_SAMPLER_BUFFER 0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
+#define GL_TEXTURE_BUFFER 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
+#define GL_TEXTURE_RECTANGLE 0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
+#define GL_R8_SNORM 0x8F94
+#define GL_RG8_SNORM 0x8F95
+#define GL_RGB8_SNORM 0x8F96
+#define GL_RGBA8_SNORM 0x8F97
+#define GL_R16_SNORM 0x8F98
+#define GL_RG16_SNORM 0x8F99
+#define GL_RGB16_SNORM 0x8F9A
+#define GL_RGBA16_SNORM 0x8F9B
+#define GL_SIGNED_NORMALIZED 0x8F9C
+#define GL_PRIMITIVE_RESTART 0x8F9D
+#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
+#define GL_COPY_READ_BUFFER 0x8F36
+#define GL_COPY_WRITE_BUFFER 0x8F37
+#define GL_UNIFORM_BUFFER 0x8A11
+#define GL_UNIFORM_BUFFER_BINDING 0x8A28
+#define GL_UNIFORM_BUFFER_START 0x8A29
+#define GL_UNIFORM_BUFFER_SIZE 0x8A2A
+#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
+#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
+#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
+#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
+#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
+#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
+#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
+#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
+#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
+#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
+#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
+#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
+#define GL_UNIFORM_TYPE 0x8A37
+#define GL_UNIFORM_SIZE 0x8A38
+#define GL_UNIFORM_NAME_LENGTH 0x8A39
+#define GL_UNIFORM_BLOCK_INDEX 0x8A3A
+#define GL_UNIFORM_OFFSET 0x8A3B
+#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
+#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
+#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
+#define GL_UNIFORM_BLOCK_BINDING 0x8A3F
+#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
+#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
+#define GL_INVALID_INDEX 0xFFFFFFFFu
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
+typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
+typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
+GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
+GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
+GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
+GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
+GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
+GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
+#endif
+#endif /* GL_VERSION_3_1 */
+
+#ifndef GL_VERSION_3_2
+#define GL_VERSION_3_2 1
+typedef struct __GLsync *GLsync;
+typedef khronos_uint64_t GLuint64;
+typedef khronos_int64_t GLint64;
+#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
+#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
+#define GL_LINES_ADJACENCY 0x000A
+#define GL_LINE_STRIP_ADJACENCY 0x000B
+#define GL_TRIANGLES_ADJACENCY 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
+#define GL_PROGRAM_POINT_SIZE 0x8642
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
+#define GL_GEOMETRY_SHADER 0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT 0x8916
+#define GL_GEOMETRY_INPUT_TYPE 0x8917
+#define GL_GEOMETRY_OUTPUT_TYPE 0x8918
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
+#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
+#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
+#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
+#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
+#define GL_CONTEXT_PROFILE_MASK 0x9126
+#define GL_DEPTH_CLAMP 0x864F
+#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
+#define GL_FIRST_VERTEX_CONVENTION 0x8E4D
+#define GL_LAST_VERTEX_CONVENTION 0x8E4E
+#define GL_PROVOKING_VERTEX 0x8E4F
+#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
+#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
+#define GL_OBJECT_TYPE 0x9112
+#define GL_SYNC_CONDITION 0x9113
+#define GL_SYNC_STATUS 0x9114
+#define GL_SYNC_FLAGS 0x9115
+#define GL_SYNC_FENCE 0x9116
+#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
+#define GL_UNSIGNALED 0x9118
+#define GL_SIGNALED 0x9119
+#define GL_ALREADY_SIGNALED 0x911A
+#define GL_TIMEOUT_EXPIRED 0x911B
+#define GL_CONDITION_SATISFIED 0x911C
+#define GL_WAIT_FAILED 0x911D
+#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
+#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
+#define GL_SAMPLE_POSITION 0x8E50
+#define GL_SAMPLE_MASK 0x8E51
+#define GL_SAMPLE_MASK_VALUE 0x8E52
+#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
+#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
+#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
+#define GL_TEXTURE_SAMPLES 0x9106
+#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
+#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
+#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
+#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
+#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
+#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
+#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
+#define GL_MAX_INTEGER_SAMPLES 0x9110
+typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
+typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
+typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
+typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
+typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
+typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
+typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
+typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
+typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
+GLAPI void APIENTRY glProvokingVertex (GLenum mode);
+GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
+GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
+GLAPI void APIENTRY glDeleteSync (GLsync sync);
+GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
+GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
+GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
+GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
+GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
+#endif
+#endif /* GL_VERSION_3_2 */
+
+#ifndef GL_VERSION_3_3
+#define GL_VERSION_3_3 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
+#define GL_SRC1_COLOR 0x88F9
+#define GL_ONE_MINUS_SRC1_COLOR 0x88FA
+#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
+#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
+#define GL_ANY_SAMPLES_PASSED 0x8C2F
+#define GL_SAMPLER_BINDING 0x8919
+#define GL_RGB10_A2UI 0x906F
+#define GL_TEXTURE_SWIZZLE_R 0x8E42
+#define GL_TEXTURE_SWIZZLE_G 0x8E43
+#define GL_TEXTURE_SWIZZLE_B 0x8E44
+#define GL_TEXTURE_SWIZZLE_A 0x8E45
+#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
+#define GL_TIME_ELAPSED 0x88BF
+#define GL_TIMESTAMP 0x8E28
+#define GL_INT_2_10_10_10_REV 0x8D9F
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
+typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
+typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
+typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
+GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
+GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
+GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
+GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
+GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
+GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
+GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
+GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
+GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+#endif
+#endif /* GL_VERSION_3_3 */
+
+#ifndef GL_VERSION_4_0
+#define GL_VERSION_4_0 1
+#define GL_SAMPLE_SHADING 0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
+#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
+#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
+#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
+#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
+#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
+#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
+#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
+#define GL_MAX_VERTEX_STREAMS 0x8E71
+#define GL_DOUBLE_VEC2 0x8FFC
+#define GL_DOUBLE_VEC3 0x8FFD
+#define GL_DOUBLE_VEC4 0x8FFE
+#define GL_DOUBLE_MAT2 0x8F46
+#define GL_DOUBLE_MAT3 0x8F47
+#define GL_DOUBLE_MAT4 0x8F48
+#define GL_DOUBLE_MAT2x3 0x8F49
+#define GL_DOUBLE_MAT2x4 0x8F4A
+#define GL_DOUBLE_MAT3x2 0x8F4B
+#define GL_DOUBLE_MAT3x4 0x8F4C
+#define GL_DOUBLE_MAT4x2 0x8F4D
+#define GL_DOUBLE_MAT4x3 0x8F4E
+#define GL_ACTIVE_SUBROUTINES 0x8DE5
+#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
+#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
+#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
+#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
+#define GL_MAX_SUBROUTINES 0x8DE7
+#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
+#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
+#define GL_COMPATIBLE_SUBROUTINES 0x8E4B
+#define GL_PATCHES 0x000E
+#define GL_PATCH_VERTICES 0x8E72
+#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
+#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
+#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
+#define GL_TESS_GEN_MODE 0x8E76
+#define GL_TESS_GEN_SPACING 0x8E77
+#define GL_TESS_GEN_VERTEX_ORDER 0x8E78
+#define GL_TESS_GEN_POINT_MODE 0x8E79
+#define GL_ISOLINES 0x8E7A
+#define GL_FRACTIONAL_ODD 0x8E7B
+#define GL_FRACTIONAL_EVEN 0x8E7C
+#define GL_MAX_PATCH_VERTICES 0x8E7D
+#define GL_MAX_TESS_GEN_LEVEL 0x8E7E
+#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
+#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
+#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
+#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
+#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
+#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
+#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
+#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
+#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
+#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
+#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
+#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
+#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
+#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
+#define GL_TESS_EVALUATION_SHADER 0x8E87
+#define GL_TESS_CONTROL_SHADER 0x8E88
+#define GL_TRANSFORM_FEEDBACK 0x8E22
+#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
+#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
+#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
+#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
+typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
+typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
+typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
+typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
+typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
+typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
+typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
+typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
+typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMinSampleShading (GLfloat value);
+GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
+GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
+GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
+GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
+GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
+GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
+GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
+GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
+GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
+GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
+GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
+GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
+GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
+GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
+GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
+GLAPI void APIENTRY glPauseTransformFeedback (void);
+GLAPI void APIENTRY glResumeTransformFeedback (void);
+GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
+GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
+GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
+GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
+GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
+#endif
+#endif /* GL_VERSION_4_0 */
+
+#ifndef GL_VERSION_4_1
+#define GL_VERSION_4_1 1
+#define GL_FIXED 0x140C
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
+#define GL_LOW_FLOAT 0x8DF0
+#define GL_MEDIUM_FLOAT 0x8DF1
+#define GL_HIGH_FLOAT 0x8DF2
+#define GL_LOW_INT 0x8DF3
+#define GL_MEDIUM_INT 0x8DF4
+#define GL_HIGH_INT 0x8DF5
+#define GL_SHADER_COMPILER 0x8DFA
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
+#define GL_MAX_VARYING_VECTORS 0x8DFC
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
+#define GL_RGB565 0x8D62
+#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
+#define GL_PROGRAM_BINARY_LENGTH 0x8741
+#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
+#define GL_PROGRAM_BINARY_FORMATS 0x87FF
+#define GL_VERTEX_SHADER_BIT 0x00000001
+#define GL_FRAGMENT_SHADER_BIT 0x00000002
+#define GL_GEOMETRY_SHADER_BIT 0x00000004
+#define GL_TESS_CONTROL_SHADER_BIT 0x00000008
+#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
+#define GL_ALL_SHADER_BITS 0xFFFFFFFF
+#define GL_PROGRAM_SEPARABLE 0x8258
+#define GL_ACTIVE_PROGRAM 0x8259
+#define GL_PROGRAM_PIPELINE_BINDING 0x825A
+#define GL_MAX_VIEWPORTS 0x825B
+#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
+#define GL_VIEWPORT_BOUNDS_RANGE 0x825D
+#define GL_LAYER_PROVOKING_VERTEX 0x825E
+#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
+#define GL_UNDEFINED_VERTEX 0x8260
+typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
+typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
+typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
+typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
+typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
+typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
+typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
+typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
+typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
+typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReleaseShaderCompiler (void);
+GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
+GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
+GLAPI void APIENTRY glClearDepthf (GLfloat d);
+GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
+GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
+GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
+GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
+GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
+GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
+GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
+GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
+GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
+GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
+GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
+GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
+GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
+GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
+GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
+GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
+GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
+GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
+GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
+#endif
+#endif /* GL_VERSION_4_1 */
+
+#ifndef GL_VERSION_4_2
+#define GL_VERSION_4_2 1
+#define GL_COPY_READ_BUFFER_BINDING 0x8F36
+#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
+#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
+#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
+#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
+#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
+#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
+#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
+#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
+#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
+#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
+#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
+#define GL_NUM_SAMPLE_COUNTS 0x9380
+#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
+#define GL_ATOMIC_COUNTER_BUFFER 0x92C0
+#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
+#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
+#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
+#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
+#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
+#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
+#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
+#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
+#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
+#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
+#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
+#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
+#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
+#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
+#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
+#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
+#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
+#define GL_UNIFORM_BARRIER_BIT 0x00000004
+#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
+#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
+#define GL_COMMAND_BARRIER_BIT 0x00000040
+#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
+#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
+#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
+#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
+#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
+#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
+#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
+#define GL_MAX_IMAGE_UNITS 0x8F38
+#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
+#define GL_IMAGE_BINDING_NAME 0x8F3A
+#define GL_IMAGE_BINDING_LEVEL 0x8F3B
+#define GL_IMAGE_BINDING_LAYERED 0x8F3C
+#define GL_IMAGE_BINDING_LAYER 0x8F3D
+#define GL_IMAGE_BINDING_ACCESS 0x8F3E
+#define GL_IMAGE_1D 0x904C
+#define GL_IMAGE_2D 0x904D
+#define GL_IMAGE_3D 0x904E
+#define GL_IMAGE_2D_RECT 0x904F
+#define GL_IMAGE_CUBE 0x9050
+#define GL_IMAGE_BUFFER 0x9051
+#define GL_IMAGE_1D_ARRAY 0x9052
+#define GL_IMAGE_2D_ARRAY 0x9053
+#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
+#define GL_IMAGE_2D_MULTISAMPLE 0x9055
+#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
+#define GL_INT_IMAGE_1D 0x9057
+#define GL_INT_IMAGE_2D 0x9058
+#define GL_INT_IMAGE_3D 0x9059
+#define GL_INT_IMAGE_2D_RECT 0x905A
+#define GL_INT_IMAGE_CUBE 0x905B
+#define GL_INT_IMAGE_BUFFER 0x905C
+#define GL_INT_IMAGE_1D_ARRAY 0x905D
+#define GL_INT_IMAGE_2D_ARRAY 0x905E
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
+#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
+#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
+#define GL_UNSIGNED_INT_IMAGE_1D 0x9062
+#define GL_UNSIGNED_INT_IMAGE_2D 0x9063
+#define GL_UNSIGNED_INT_IMAGE_3D 0x9064
+#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
+#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
+#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
+#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
+#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
+#define GL_MAX_IMAGE_SAMPLES 0x906D
+#define GL_IMAGE_BINDING_FORMAT 0x906E
+#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
+#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
+#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
+#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
+#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
+#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
+#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
+#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
+#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
+typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
+typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params);
+GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
+GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
+GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
+GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
+GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
+#endif
+#endif /* GL_VERSION_4_2 */
+
+#ifndef GL_VERSION_4_3
+#define GL_VERSION_4_3 1
+typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
+#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
+#define GL_COMPRESSED_RGB8_ETC2 0x9274
+#define GL_COMPRESSED_SRGB8_ETC2 0x9275
+#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
+#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
+#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
+#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
+#define GL_COMPRESSED_R11_EAC 0x9270
+#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
+#define GL_COMPRESSED_RG11_EAC 0x9272
+#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
+#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
+#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
+#define GL_MAX_ELEMENT_INDEX 0x8D6B
+#define GL_COMPUTE_SHADER 0x91B9
+#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
+#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
+#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
+#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
+#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
+#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
+#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
+#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
+#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
+#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
+#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
+#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
+#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
+#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
+#define GL_COMPUTE_SHADER_BIT 0x00000020
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
+#define GL_DEBUG_SOURCE_API 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
+#define GL_DEBUG_SOURCE_APPLICATION 0x824A
+#define GL_DEBUG_SOURCE_OTHER 0x824B
+#define GL_DEBUG_TYPE_ERROR 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY 0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE 0x8250
+#define GL_DEBUG_TYPE_OTHER 0x8251
+#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
+#define GL_DEBUG_LOGGED_MESSAGES 0x9145
+#define GL_DEBUG_SEVERITY_HIGH 0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM 0x9147
+#define GL_DEBUG_SEVERITY_LOW 0x9148
+#define GL_DEBUG_TYPE_MARKER 0x8268
+#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
+#define GL_DEBUG_TYPE_POP_GROUP 0x826A
+#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
+#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
+#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
+#define GL_BUFFER 0x82E0
+#define GL_SHADER 0x82E1
+#define GL_PROGRAM 0x82E2
+#define GL_QUERY 0x82E3
+#define GL_PROGRAM_PIPELINE 0x82E4
+#define GL_SAMPLER 0x82E6
+#define GL_MAX_LABEL_LENGTH 0x82E8
+#define GL_DEBUG_OUTPUT 0x92E0
+#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
+#define GL_MAX_UNIFORM_LOCATIONS 0x826E
+#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
+#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
+#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
+#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
+#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
+#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
+#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
+#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
+#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
+#define GL_INTERNALFORMAT_SUPPORTED 0x826F
+#define GL_INTERNALFORMAT_PREFERRED 0x8270
+#define GL_INTERNALFORMAT_RED_SIZE 0x8271
+#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
+#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
+#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
+#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
+#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
+#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
+#define GL_INTERNALFORMAT_RED_TYPE 0x8278
+#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
+#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
+#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
+#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
+#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
+#define GL_MAX_WIDTH 0x827E
+#define GL_MAX_HEIGHT 0x827F
+#define GL_MAX_DEPTH 0x8280
+#define GL_MAX_LAYERS 0x8281
+#define GL_MAX_COMBINED_DIMENSIONS 0x8282
+#define GL_COLOR_COMPONENTS 0x8283
+#define GL_DEPTH_COMPONENTS 0x8284
+#define GL_STENCIL_COMPONENTS 0x8285
+#define GL_COLOR_RENDERABLE 0x8286
+#define GL_DEPTH_RENDERABLE 0x8287
+#define GL_STENCIL_RENDERABLE 0x8288
+#define GL_FRAMEBUFFER_RENDERABLE 0x8289
+#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
+#define GL_FRAMEBUFFER_BLEND 0x828B
+#define GL_READ_PIXELS 0x828C
+#define GL_READ_PIXELS_FORMAT 0x828D
+#define GL_READ_PIXELS_TYPE 0x828E
+#define GL_TEXTURE_IMAGE_FORMAT 0x828F
+#define GL_TEXTURE_IMAGE_TYPE 0x8290
+#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
+#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
+#define GL_MIPMAP 0x8293
+#define GL_MANUAL_GENERATE_MIPMAP 0x8294
+#define GL_AUTO_GENERATE_MIPMAP 0x8295
+#define GL_COLOR_ENCODING 0x8296
+#define GL_SRGB_READ 0x8297
+#define GL_SRGB_WRITE 0x8298
+#define GL_FILTER 0x829A
+#define GL_VERTEX_TEXTURE 0x829B
+#define GL_TESS_CONTROL_TEXTURE 0x829C
+#define GL_TESS_EVALUATION_TEXTURE 0x829D
+#define GL_GEOMETRY_TEXTURE 0x829E
+#define GL_FRAGMENT_TEXTURE 0x829F
+#define GL_COMPUTE_TEXTURE 0x82A0
+#define GL_TEXTURE_SHADOW 0x82A1
+#define GL_TEXTURE_GATHER 0x82A2
+#define GL_TEXTURE_GATHER_SHADOW 0x82A3
+#define GL_SHADER_IMAGE_LOAD 0x82A4
+#define GL_SHADER_IMAGE_STORE 0x82A5
+#define GL_SHADER_IMAGE_ATOMIC 0x82A6
+#define GL_IMAGE_TEXEL_SIZE 0x82A7
+#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
+#define GL_IMAGE_PIXEL_FORMAT 0x82A9
+#define GL_IMAGE_PIXEL_TYPE 0x82AA
+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
+#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
+#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
+#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
+#define GL_CLEAR_BUFFER 0x82B4
+#define GL_TEXTURE_VIEW 0x82B5
+#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
+#define GL_FULL_SUPPORT 0x82B7
+#define GL_CAVEAT_SUPPORT 0x82B8
+#define GL_IMAGE_CLASS_4_X_32 0x82B9
+#define GL_IMAGE_CLASS_2_X_32 0x82BA
+#define GL_IMAGE_CLASS_1_X_32 0x82BB
+#define GL_IMAGE_CLASS_4_X_16 0x82BC
+#define GL_IMAGE_CLASS_2_X_16 0x82BD
+#define GL_IMAGE_CLASS_1_X_16 0x82BE
+#define GL_IMAGE_CLASS_4_X_8 0x82BF
+#define GL_IMAGE_CLASS_2_X_8 0x82C0
+#define GL_IMAGE_CLASS_1_X_8 0x82C1
+#define GL_IMAGE_CLASS_11_11_10 0x82C2
+#define GL_IMAGE_CLASS_10_10_10_2 0x82C3
+#define GL_VIEW_CLASS_128_BITS 0x82C4
+#define GL_VIEW_CLASS_96_BITS 0x82C5
+#define GL_VIEW_CLASS_64_BITS 0x82C6
+#define GL_VIEW_CLASS_48_BITS 0x82C7
+#define GL_VIEW_CLASS_32_BITS 0x82C8
+#define GL_VIEW_CLASS_24_BITS 0x82C9
+#define GL_VIEW_CLASS_16_BITS 0x82CA
+#define GL_VIEW_CLASS_8_BITS 0x82CB
+#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
+#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
+#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
+#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
+#define GL_VIEW_CLASS_RGTC1_RED 0x82D0
+#define GL_VIEW_CLASS_RGTC2_RG 0x82D1
+#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
+#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
+#define GL_UNIFORM 0x92E1
+#define GL_UNIFORM_BLOCK 0x92E2
+#define GL_PROGRAM_INPUT 0x92E3
+#define GL_PROGRAM_OUTPUT 0x92E4
+#define GL_BUFFER_VARIABLE 0x92E5
+#define GL_SHADER_STORAGE_BLOCK 0x92E6
+#define GL_VERTEX_SUBROUTINE 0x92E8
+#define GL_TESS_CONTROL_SUBROUTINE 0x92E9
+#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
+#define GL_GEOMETRY_SUBROUTINE 0x92EB
+#define GL_FRAGMENT_SUBROUTINE 0x92EC
+#define GL_COMPUTE_SUBROUTINE 0x92ED
+#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
+#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
+#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
+#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
+#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
+#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
+#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
+#define GL_ACTIVE_RESOURCES 0x92F5
+#define GL_MAX_NAME_LENGTH 0x92F6
+#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
+#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
+#define GL_NAME_LENGTH 0x92F9
+#define GL_TYPE 0x92FA
+#define GL_ARRAY_SIZE 0x92FB
+#define GL_OFFSET 0x92FC
+#define GL_BLOCK_INDEX 0x92FD
+#define GL_ARRAY_STRIDE 0x92FE
+#define GL_MATRIX_STRIDE 0x92FF
+#define GL_IS_ROW_MAJOR 0x9300
+#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
+#define GL_BUFFER_BINDING 0x9302
+#define GL_BUFFER_DATA_SIZE 0x9303
+#define GL_NUM_ACTIVE_VARIABLES 0x9304
+#define GL_ACTIVE_VARIABLES 0x9305
+#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
+#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
+#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
+#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
+#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
+#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
+#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
+#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
+#define GL_LOCATION 0x930E
+#define GL_LOCATION_INDEX 0x930F
+#define GL_IS_PER_PATCH 0x92E7
+#define GL_SHADER_STORAGE_BUFFER 0x90D2
+#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
+#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
+#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
+#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
+#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
+#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
+#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
+#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
+#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
+#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
+#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
+#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
+#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
+#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
+#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
+#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
+#define GL_TEXTURE_BUFFER_OFFSET 0x919D
+#define GL_TEXTURE_BUFFER_SIZE 0x919E
+#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
+#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
+#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
+#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
+#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
+#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
+#define GL_VERTEX_ATTRIB_BINDING 0x82D4
+#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
+#define GL_VERTEX_BINDING_DIVISOR 0x82D6
+#define GL_VERTEX_BINDING_OFFSET 0x82D7
+#define GL_VERTEX_BINDING_STRIDE 0x82D8
+#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
+#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
+#define GL_VERTEX_BINDING_BUFFER 0x8F4F
+typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
+typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params);
+typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
+typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params);
+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
+typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
+typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
+GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
+GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params);
+GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
+GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
+GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
+GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params);
+GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
+GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+GLAPI void APIENTRY glPopDebugGroup (void);
+GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_VERSION_4_3 */
+
+#ifndef GL_VERSION_4_4
+#define GL_VERSION_4_4 1
+#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
+#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
+#define GL_TEXTURE_BUFFER_BINDING 0x8C2A
+#define GL_MAP_PERSISTENT_BIT 0x0040
+#define GL_MAP_COHERENT_BIT 0x0080
+#define GL_DYNAMIC_STORAGE_BIT 0x0100
+#define GL_CLIENT_STORAGE_BIT 0x0200
+#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
+#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F
+#define GL_BUFFER_STORAGE_FLAGS 0x8220
+#define GL_CLEAR_TEXTURE 0x9365
+#define GL_LOCATION_COMPONENT 0x934A
+#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
+#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
+#define GL_QUERY_BUFFER 0x9192
+#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000
+#define GL_QUERY_BUFFER_BINDING 0x9193
+#define GL_QUERY_RESULT_NO_WAIT 0x9194
+#define GL_MIRROR_CLAMP_TO_EDGE 0x8743
+typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
+typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
+typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers);
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
+GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
+GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures);
+GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers);
+GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures);
+GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+#endif
+#endif /* GL_VERSION_4_4 */
+
+#ifndef GL_VERSION_4_5
+#define GL_VERSION_4_5 1
+#define GL_CONTEXT_LOST 0x0507
+#define GL_NEGATIVE_ONE_TO_ONE 0x935E
+#define GL_ZERO_TO_ONE 0x935F
+#define GL_CLIP_ORIGIN 0x935C
+#define GL_CLIP_DEPTH_MODE 0x935D
+#define GL_QUERY_WAIT_INVERTED 0x8E17
+#define GL_QUERY_NO_WAIT_INVERTED 0x8E18
+#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19
+#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A
+#define GL_MAX_CULL_DISTANCES 0x82F9
+#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA
+#define GL_TEXTURE_TARGET 0x1006
+#define GL_QUERY_TARGET 0x82EA
+#define GL_GUILTY_CONTEXT_RESET 0x8253
+#define GL_INNOCENT_CONTEXT_RESET 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET 0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY 0x8256
+#define GL_LOSE_CONTEXT_ON_RESET 0x8252
+#define GL_NO_RESET_NOTIFICATION 0x8261
+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
+#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
+#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
+typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth);
+typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
+typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src);
+typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
+typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint *textures);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture);
+typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
+typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint *samplers);
+typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
+typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers);
+typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
+typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void);
+typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClipControl (GLenum origin, GLenum depth);
+GLAPI void APIENTRY glCreateTransformFeedbacks (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glTransformFeedbackBufferBase (GLuint xfb, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glGetTransformFeedbackiv (GLuint xfb, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint *param);
+GLAPI void APIENTRY glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
+GLAPI void APIENTRY glCreateBuffers (GLsizei n, GLuint *buffers);
+GLAPI void APIENTRY glNamedBufferStorage (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glNamedBufferData (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access);
+GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI GLboolean APIENTRY glUnmapNamedBuffer (GLuint buffer);
+GLAPI void APIENTRY glFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params);
+GLAPI void APIENTRY glGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void APIENTRY glCreateFramebuffers (GLsizei n, GLuint *framebuffers);
+GLAPI void APIENTRY glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param);
+GLAPI void APIENTRY glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTextureLayer (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glNamedFramebufferDrawBuffer (GLuint framebuffer, GLenum buf);
+GLAPI void APIENTRY glNamedFramebufferDrawBuffers (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src);
+GLAPI void APIENTRY glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
+GLAPI void APIENTRY glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
+GLAPI void APIENTRY glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
+GLAPI void APIENTRY glClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
+GLAPI void APIENTRY glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+GLAPI void APIENTRY glBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target);
+GLAPI void APIENTRY glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glCreateRenderbuffers (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisample (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glCreateTextures (GLenum target, GLsizei n, GLuint *textures);
+GLAPI void APIENTRY glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glTextureBufferRange (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureStorage3DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureParameterf (GLuint texture, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glTextureParameteri (GLuint texture, GLenum pname, GLint param);
+GLAPI void APIENTRY glTextureParameterIiv (GLuint texture, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glTextureParameteriv (GLuint texture, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glGenerateTextureMipmap (GLuint texture);
+GLAPI void APIENTRY glBindTextureUnit (GLuint unit, GLuint texture);
+GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterfv (GLuint texture, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureParameterIiv (GLuint texture, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glGetTextureParameteriv (GLuint texture, GLenum pname, GLint *params);
+GLAPI void APIENTRY glCreateVertexArrays (GLsizei n, GLuint *arrays);
+GLAPI void APIENTRY glDisableVertexArrayAttrib (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glEnableVertexArrayAttrib (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer);
+GLAPI void APIENTRY glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexArrayVertexBuffers (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+GLAPI void APIENTRY glVertexArrayAttribBinding (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexArrayAttribFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
+GLAPI void APIENTRY glCreateSamplers (GLsizei n, GLuint *samplers);
+GLAPI void APIENTRY glCreateProgramPipelines (GLsizei n, GLuint *pipelines);
+GLAPI void APIENTRY glCreateQueries (GLenum target, GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glGetQueryBufferObjectiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glMemoryBarrierByRegion (GLbitfield barriers);
+GLAPI void APIENTRY glGetTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
+GLAPI GLenum APIENTRY glGetGraphicsResetStatus (void);
+GLAPI void APIENTRY glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetnTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+GLAPI void APIENTRY glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GLAPI void APIENTRY glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+GLAPI void APIENTRY glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GLAPI void APIENTRY glTextureBarrier (void);
+#endif
+#endif /* GL_VERSION_4_5 */
+
+#ifndef GL_VERSION_4_6
+#define GL_VERSION_4_6 1
+#define GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551
+#define GL_SPIR_V_BINARY 0x9552
+#define GL_PARAMETER_BUFFER 0x80EE
+#define GL_PARAMETER_BUFFER_BINDING 0x80EF
+#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008
+#define GL_VERTICES_SUBMITTED 0x82EE
+#define GL_PRIMITIVES_SUBMITTED 0x82EF
+#define GL_VERTEX_SHADER_INVOCATIONS 0x82F0
+#define GL_TESS_CONTROL_SHADER_PATCHES 0x82F1
+#define GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2
+#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3
+#define GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4
+#define GL_COMPUTE_SHADER_INVOCATIONS 0x82F5
+#define GL_CLIPPING_INPUT_PRIMITIVES 0x82F6
+#define GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7
+#define GL_POLYGON_OFFSET_CLAMP 0x8E1B
+#define GL_SPIR_V_EXTENSIONS 0x9553
+#define GL_NUM_SPIR_V_EXTENSIONS 0x9554
+#define GL_TEXTURE_MAX_ANISOTROPY 0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF
+#define GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC
+#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED
+typedef void (APIENTRYP PFNGLSPECIALIZESHADERPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSpecializeShader (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+GLAPI void APIENTRY glMultiDrawArraysIndirectCount (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectCount (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glPolygonOffsetClamp (GLfloat factor, GLfloat units, GLfloat clamp);
+#endif
+#endif /* GL_VERSION_4_6 */
+
+#ifndef GL_ARB_ES2_compatibility
+#define GL_ARB_ES2_compatibility 1
+#endif /* GL_ARB_ES2_compatibility */
+
+#ifndef GL_ARB_ES3_1_compatibility
+#define GL_ARB_ES3_1_compatibility 1
+#endif /* GL_ARB_ES3_1_compatibility */
+
+#ifndef GL_ARB_ES3_2_compatibility
+#define GL_ARB_ES3_2_compatibility 1
+#define GL_PRIMITIVE_BOUNDING_BOX_ARB 0x92BE
+#define GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB 0x9381
+#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB 0x9382
+typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXARBPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPrimitiveBoundingBoxARB (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#endif
+#endif /* GL_ARB_ES3_2_compatibility */
+
+#ifndef GL_ARB_ES3_compatibility
+#define GL_ARB_ES3_compatibility 1
+#endif /* GL_ARB_ES3_compatibility */
+
+#ifndef GL_ARB_arrays_of_arrays
+#define GL_ARB_arrays_of_arrays 1
+#endif /* GL_ARB_arrays_of_arrays */
+
+#ifndef GL_ARB_base_instance
+#define GL_ARB_base_instance 1
+#endif /* GL_ARB_base_instance */
+
+#ifndef GL_ARB_bindless_texture
+#define GL_ARB_bindless_texture 1
+typedef khronos_uint64_t GLuint64EXT;
+#define GL_UNSIGNED_INT64_ARB 0x140F
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture);
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle);
+typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture);
+GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler);
+GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle);
+GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access);
+GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value);
+GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value);
+GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle);
+GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x);
+GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params);
+#endif
+#endif /* GL_ARB_bindless_texture */
+
+#ifndef GL_ARB_blend_func_extended
+#define GL_ARB_blend_func_extended 1
+#endif /* GL_ARB_blend_func_extended */
+
+#ifndef GL_ARB_buffer_storage
+#define GL_ARB_buffer_storage 1
+#endif /* GL_ARB_buffer_storage */
+
+#ifndef GL_ARB_cl_event
+#define GL_ARB_cl_event 1
+struct _cl_context;
+struct _cl_event;
+#define GL_SYNC_CL_EVENT_ARB 0x8240
+#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241
+typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
+#endif
+#endif /* GL_ARB_cl_event */
+
+#ifndef GL_ARB_clear_buffer_object
+#define GL_ARB_clear_buffer_object 1
+#endif /* GL_ARB_clear_buffer_object */
+
+#ifndef GL_ARB_clear_texture
+#define GL_ARB_clear_texture 1
+#endif /* GL_ARB_clear_texture */
+
+#ifndef GL_ARB_clip_control
+#define GL_ARB_clip_control 1
+#endif /* GL_ARB_clip_control */
+
+#ifndef GL_ARB_compressed_texture_pixel_storage
+#define GL_ARB_compressed_texture_pixel_storage 1
+#endif /* GL_ARB_compressed_texture_pixel_storage */
+
+#ifndef GL_ARB_compute_shader
+#define GL_ARB_compute_shader 1
+#endif /* GL_ARB_compute_shader */
+
+#ifndef GL_ARB_compute_variable_group_size
+#define GL_ARB_compute_variable_group_size 1
+#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344
+#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB
+#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345
+#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
+#endif
+#endif /* GL_ARB_compute_variable_group_size */
+
+#ifndef GL_ARB_conditional_render_inverted
+#define GL_ARB_conditional_render_inverted 1
+#endif /* GL_ARB_conditional_render_inverted */
+
+#ifndef GL_ARB_conservative_depth
+#define GL_ARB_conservative_depth 1
+#endif /* GL_ARB_conservative_depth */
+
+#ifndef GL_ARB_copy_buffer
+#define GL_ARB_copy_buffer 1
+#endif /* GL_ARB_copy_buffer */
+
+#ifndef GL_ARB_copy_image
+#define GL_ARB_copy_image 1
+#endif /* GL_ARB_copy_image */
+
+#ifndef GL_ARB_cull_distance
+#define GL_ARB_cull_distance 1
+#endif /* GL_ARB_cull_distance */
+
+#ifndef GL_ARB_debug_output
+#define GL_ARB_debug_output 1
+typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
+#define GL_DEBUG_SOURCE_API_ARB 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
+#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
+#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B
+#define GL_DEBUG_TYPE_ERROR_ARB 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
+#define GL_DEBUG_TYPE_OTHER_ARB 0x8251
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
+#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
+#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+#endif
+#endif /* GL_ARB_debug_output */
+
+#ifndef GL_ARB_depth_buffer_float
+#define GL_ARB_depth_buffer_float 1
+#endif /* GL_ARB_depth_buffer_float */
+
+#ifndef GL_ARB_depth_clamp
+#define GL_ARB_depth_clamp 1
+#endif /* GL_ARB_depth_clamp */
+
+#ifndef GL_ARB_derivative_control
+#define GL_ARB_derivative_control 1
+#endif /* GL_ARB_derivative_control */
+
+#ifndef GL_ARB_direct_state_access
+#define GL_ARB_direct_state_access 1
+#endif /* GL_ARB_direct_state_access */
+
+#ifndef GL_ARB_draw_buffers_blend
+#define GL_ARB_draw_buffers_blend 1
+typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+#endif
+#endif /* GL_ARB_draw_buffers_blend */
+
+#ifndef GL_ARB_draw_elements_base_vertex
+#define GL_ARB_draw_elements_base_vertex 1
+#endif /* GL_ARB_draw_elements_base_vertex */
+
+#ifndef GL_ARB_draw_indirect
+#define GL_ARB_draw_indirect 1
+#endif /* GL_ARB_draw_indirect */
+
+#ifndef GL_ARB_draw_instanced
+#define GL_ARB_draw_instanced 1
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_ARB_draw_instanced */
+
+#ifndef GL_ARB_enhanced_layouts
+#define GL_ARB_enhanced_layouts 1
+#endif /* GL_ARB_enhanced_layouts */
+
+#ifndef GL_ARB_explicit_attrib_location
+#define GL_ARB_explicit_attrib_location 1
+#endif /* GL_ARB_explicit_attrib_location */
+
+#ifndef GL_ARB_explicit_uniform_location
+#define GL_ARB_explicit_uniform_location 1
+#endif /* GL_ARB_explicit_uniform_location */
+
+#ifndef GL_ARB_fragment_coord_conventions
+#define GL_ARB_fragment_coord_conventions 1
+#endif /* GL_ARB_fragment_coord_conventions */
+
+#ifndef GL_ARB_fragment_layer_viewport
+#define GL_ARB_fragment_layer_viewport 1
+#endif /* GL_ARB_fragment_layer_viewport */
+
+#ifndef GL_ARB_fragment_shader_interlock
+#define GL_ARB_fragment_shader_interlock 1
+#endif /* GL_ARB_fragment_shader_interlock */
+
+#ifndef GL_ARB_framebuffer_no_attachments
+#define GL_ARB_framebuffer_no_attachments 1
+#endif /* GL_ARB_framebuffer_no_attachments */
+
+#ifndef GL_ARB_framebuffer_object
+#define GL_ARB_framebuffer_object 1
+#endif /* GL_ARB_framebuffer_object */
+
+#ifndef GL_ARB_framebuffer_sRGB
+#define GL_ARB_framebuffer_sRGB 1
+#endif /* GL_ARB_framebuffer_sRGB */
+
+#ifndef GL_ARB_geometry_shader4
+#define GL_ARB_geometry_shader4 1
+#define GL_LINES_ADJACENCY_ARB 0x000A
+#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B
+#define GL_TRIANGLES_ADJACENCY_ARB 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D
+#define GL_PROGRAM_POINT_SIZE_ARB 0x8642
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
+#define GL_GEOMETRY_SHADER_ARB 0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA
+#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB
+#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC
+#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
+#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
+GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#endif
+#endif /* GL_ARB_geometry_shader4 */
+
+#ifndef GL_ARB_get_program_binary
+#define GL_ARB_get_program_binary 1
+#endif /* GL_ARB_get_program_binary */
+
+#ifndef GL_ARB_get_texture_sub_image
+#define GL_ARB_get_texture_sub_image 1
+#endif /* GL_ARB_get_texture_sub_image */
+
+#ifndef GL_ARB_gl_spirv
+#define GL_ARB_gl_spirv 1
+#define GL_SHADER_BINARY_FORMAT_SPIR_V_ARB 0x9551
+#define GL_SPIR_V_BINARY_ARB 0x9552
+typedef void (APIENTRYP PFNGLSPECIALIZESHADERARBPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSpecializeShaderARB (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+#endif
+#endif /* GL_ARB_gl_spirv */
+
+#ifndef GL_ARB_gpu_shader5
+#define GL_ARB_gpu_shader5 1
+#endif /* GL_ARB_gpu_shader5 */
+
+#ifndef GL_ARB_gpu_shader_fp64
+#define GL_ARB_gpu_shader_fp64 1
+#endif /* GL_ARB_gpu_shader_fp64 */
+
+#ifndef GL_ARB_gpu_shader_int64
+#define GL_ARB_gpu_shader_int64 1
+#define GL_INT64_ARB 0x140E
+#define GL_INT64_VEC2_ARB 0x8FE9
+#define GL_INT64_VEC3_ARB 0x8FEA
+#define GL_INT64_VEC4_ARB 0x8FEB
+#define GL_UNSIGNED_INT64_VEC2_ARB 0x8FF5
+#define GL_UNSIGNED_INT64_VEC3_ARB 0x8FF6
+#define GL_UNSIGNED_INT64_VEC4_ARB 0x8FF7
+typedef void (APIENTRYP PFNGLUNIFORM1I64ARBPROC) (GLint location, GLint64 x);
+typedef void (APIENTRYP PFNGLUNIFORM2I64ARBPROC) (GLint location, GLint64 x, GLint64 y);
+typedef void (APIENTRYP PFNGLUNIFORM3I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z);
+typedef void (APIENTRYP PFNGLUNIFORM4I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+typedef void (APIENTRYP PFNGLUNIFORM1I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM2I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM3I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM4I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64ARBPROC) (GLint location, GLuint64 x);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMI64VARBPROC) (GLuint program, GLint location, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLuint64 *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64ARBPROC) (GLuint program, GLint location, GLint64 x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64ARBPROC) (GLuint program, GLint location, GLuint64 x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniform1i64ARB (GLint location, GLint64 x);
+GLAPI void APIENTRY glUniform2i64ARB (GLint location, GLint64 x, GLint64 y);
+GLAPI void APIENTRY glUniform3i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z);
+GLAPI void APIENTRY glUniform4i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+GLAPI void APIENTRY glUniform1i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform2i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform3i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform4i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform1ui64ARB (GLint location, GLuint64 x);
+GLAPI void APIENTRY glUniform2ui64ARB (GLint location, GLuint64 x, GLuint64 y);
+GLAPI void APIENTRY glUniform3ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+GLAPI void APIENTRY glUniform4ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+GLAPI void APIENTRY glUniform1ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glUniform2ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glUniform3ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glUniform4ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glGetUniformi64vARB (GLuint program, GLint location, GLint64 *params);
+GLAPI void APIENTRY glGetUniformui64vARB (GLuint program, GLint location, GLuint64 *params);
+GLAPI void APIENTRY glGetnUniformi64vARB (GLuint program, GLint location, GLsizei bufSize, GLint64 *params);
+GLAPI void APIENTRY glGetnUniformui64vARB (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params);
+GLAPI void APIENTRY glProgramUniform1i64ARB (GLuint program, GLint location, GLint64 x);
+GLAPI void APIENTRY glProgramUniform2i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y);
+GLAPI void APIENTRY glProgramUniform3i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z);
+GLAPI void APIENTRY glProgramUniform4i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+GLAPI void APIENTRY glProgramUniform1i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform2i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform3i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform4i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform1ui64ARB (GLuint program, GLint location, GLuint64 x);
+GLAPI void APIENTRY glProgramUniform2ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y);
+GLAPI void APIENTRY glProgramUniform3ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+GLAPI void APIENTRY glProgramUniform4ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+GLAPI void APIENTRY glProgramUniform1ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniform2ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniform3ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniform4ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+#endif
+#endif /* GL_ARB_gpu_shader_int64 */
+
+#ifndef GL_ARB_half_float_vertex
+#define GL_ARB_half_float_vertex 1
+#endif /* GL_ARB_half_float_vertex */
+
+#ifndef GL_ARB_imaging
+#define GL_ARB_imaging 1
+#endif /* GL_ARB_imaging */
+
+#ifndef GL_ARB_indirect_parameters
+#define GL_ARB_indirect_parameters 1
+#define GL_PARAMETER_BUFFER_ARB 0x80EE
+#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#endif
+#endif /* GL_ARB_indirect_parameters */
+
+#ifndef GL_ARB_instanced_arrays
+#define GL_ARB_instanced_arrays 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor);
+#endif
+#endif /* GL_ARB_instanced_arrays */
+
+#ifndef GL_ARB_internalformat_query
+#define GL_ARB_internalformat_query 1
+#endif /* GL_ARB_internalformat_query */
+
+#ifndef GL_ARB_internalformat_query2
+#define GL_ARB_internalformat_query2 1
+#define GL_SRGB_DECODE_ARB 0x8299
+#define GL_VIEW_CLASS_EAC_R11 0x9383
+#define GL_VIEW_CLASS_EAC_RG11 0x9384
+#define GL_VIEW_CLASS_ETC2_RGB 0x9385
+#define GL_VIEW_CLASS_ETC2_RGBA 0x9386
+#define GL_VIEW_CLASS_ETC2_EAC_RGBA 0x9387
+#define GL_VIEW_CLASS_ASTC_4x4_RGBA 0x9388
+#define GL_VIEW_CLASS_ASTC_5x4_RGBA 0x9389
+#define GL_VIEW_CLASS_ASTC_5x5_RGBA 0x938A
+#define GL_VIEW_CLASS_ASTC_6x5_RGBA 0x938B
+#define GL_VIEW_CLASS_ASTC_6x6_RGBA 0x938C
+#define GL_VIEW_CLASS_ASTC_8x5_RGBA 0x938D
+#define GL_VIEW_CLASS_ASTC_8x6_RGBA 0x938E
+#define GL_VIEW_CLASS_ASTC_8x8_RGBA 0x938F
+#define GL_VIEW_CLASS_ASTC_10x5_RGBA 0x9390
+#define GL_VIEW_CLASS_ASTC_10x6_RGBA 0x9391
+#define GL_VIEW_CLASS_ASTC_10x8_RGBA 0x9392
+#define GL_VIEW_CLASS_ASTC_10x10_RGBA 0x9393
+#define GL_VIEW_CLASS_ASTC_12x10_RGBA 0x9394
+#define GL_VIEW_CLASS_ASTC_12x12_RGBA 0x9395
+#endif /* GL_ARB_internalformat_query2 */
+
+#ifndef GL_ARB_invalidate_subdata
+#define GL_ARB_invalidate_subdata 1
+#endif /* GL_ARB_invalidate_subdata */
+
+#ifndef GL_ARB_map_buffer_alignment
+#define GL_ARB_map_buffer_alignment 1
+#endif /* GL_ARB_map_buffer_alignment */
+
+#ifndef GL_ARB_map_buffer_range
+#define GL_ARB_map_buffer_range 1
+#endif /* GL_ARB_map_buffer_range */
+
+#ifndef GL_ARB_multi_bind
+#define GL_ARB_multi_bind 1
+#endif /* GL_ARB_multi_bind */
+
+#ifndef GL_ARB_multi_draw_indirect
+#define GL_ARB_multi_draw_indirect 1
+#endif /* GL_ARB_multi_draw_indirect */
+
+#ifndef GL_ARB_occlusion_query2
+#define GL_ARB_occlusion_query2 1
+#endif /* GL_ARB_occlusion_query2 */
+
+#ifndef GL_ARB_parallel_shader_compile
+#define GL_ARB_parallel_shader_compile 1
+#define GL_MAX_SHADER_COMPILER_THREADS_ARB 0x91B0
+#define GL_COMPLETION_STATUS_ARB 0x91B1
+typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSARBPROC) (GLuint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMaxShaderCompilerThreadsARB (GLuint count);
+#endif
+#endif /* GL_ARB_parallel_shader_compile */
+
+#ifndef GL_ARB_pipeline_statistics_query
+#define GL_ARB_pipeline_statistics_query 1
+#define GL_VERTICES_SUBMITTED_ARB 0x82EE
+#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF
+#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0
+#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1
+#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2
+#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3
+#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4
+#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5
+#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6
+#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7
+#endif /* GL_ARB_pipeline_statistics_query */
+
+#ifndef GL_ARB_pixel_buffer_object
+#define GL_ARB_pixel_buffer_object 1
+#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
+#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
+#endif /* GL_ARB_pixel_buffer_object */
+
+#ifndef GL_ARB_polygon_offset_clamp
+#define GL_ARB_polygon_offset_clamp 1
+#endif /* GL_ARB_polygon_offset_clamp */
+
+#ifndef GL_ARB_post_depth_coverage
+#define GL_ARB_post_depth_coverage 1
+#endif /* GL_ARB_post_depth_coverage */
+
+#ifndef GL_ARB_program_interface_query
+#define GL_ARB_program_interface_query 1
+#endif /* GL_ARB_program_interface_query */
+
+#ifndef GL_ARB_provoking_vertex
+#define GL_ARB_provoking_vertex 1
+#endif /* GL_ARB_provoking_vertex */
+
+#ifndef GL_ARB_query_buffer_object
+#define GL_ARB_query_buffer_object 1
+#endif /* GL_ARB_query_buffer_object */
+
+#ifndef GL_ARB_robust_buffer_access_behavior
+#define GL_ARB_robust_buffer_access_behavior 1
+#endif /* GL_ARB_robust_buffer_access_behavior */
+
+#ifndef GL_ARB_robustness
+#define GL_ARB_robustness 1
+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
+#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
+#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
+#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
+#define GL_NO_RESET_NOTIFICATION_ARB 0x8261
+typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
+typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
+typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img);
+typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void);
+GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
+GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img);
+GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+#endif
+#endif /* GL_ARB_robustness */
+
+#ifndef GL_ARB_robustness_isolation
+#define GL_ARB_robustness_isolation 1
+#endif /* GL_ARB_robustness_isolation */
+
+#ifndef GL_ARB_sample_locations
+#define GL_ARB_sample_locations 1
+#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB 0x933D
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB 0x933E
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB 0x933F
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB 0x9340
+#define GL_SAMPLE_LOCATION_ARB 0x8E50
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB 0x9341
+#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB 0x9342
+#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB 0x9343
+typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLEVALUATEDEPTHVALUESARBPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferSampleLocationsfvARB (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvARB (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glEvaluateDepthValuesARB (void);
+#endif
+#endif /* GL_ARB_sample_locations */
+
+#ifndef GL_ARB_sample_shading
+#define GL_ARB_sample_shading 1
+#define GL_SAMPLE_SHADING_ARB 0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37
+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value);
+#endif
+#endif /* GL_ARB_sample_shading */
+
+#ifndef GL_ARB_sampler_objects
+#define GL_ARB_sampler_objects 1
+#endif /* GL_ARB_sampler_objects */
+
+#ifndef GL_ARB_seamless_cube_map
+#define GL_ARB_seamless_cube_map 1
+#endif /* GL_ARB_seamless_cube_map */
+
+#ifndef GL_ARB_seamless_cubemap_per_texture
+#define GL_ARB_seamless_cubemap_per_texture 1
+#endif /* GL_ARB_seamless_cubemap_per_texture */
+
+#ifndef GL_ARB_separate_shader_objects
+#define GL_ARB_separate_shader_objects 1
+#endif /* GL_ARB_separate_shader_objects */
+
+#ifndef GL_ARB_shader_atomic_counter_ops
+#define GL_ARB_shader_atomic_counter_ops 1
+#endif /* GL_ARB_shader_atomic_counter_ops */
+
+#ifndef GL_ARB_shader_atomic_counters
+#define GL_ARB_shader_atomic_counters 1
+#endif /* GL_ARB_shader_atomic_counters */
+
+#ifndef GL_ARB_shader_ballot
+#define GL_ARB_shader_ballot 1
+#endif /* GL_ARB_shader_ballot */
+
+#ifndef GL_ARB_shader_bit_encoding
+#define GL_ARB_shader_bit_encoding 1
+#endif /* GL_ARB_shader_bit_encoding */
+
+#ifndef GL_ARB_shader_clock
+#define GL_ARB_shader_clock 1
+#endif /* GL_ARB_shader_clock */
+
+#ifndef GL_ARB_shader_draw_parameters
+#define GL_ARB_shader_draw_parameters 1
+#endif /* GL_ARB_shader_draw_parameters */
+
+#ifndef GL_ARB_shader_group_vote
+#define GL_ARB_shader_group_vote 1
+#endif /* GL_ARB_shader_group_vote */
+
+#ifndef GL_ARB_shader_image_load_store
+#define GL_ARB_shader_image_load_store 1
+#endif /* GL_ARB_shader_image_load_store */
+
+#ifndef GL_ARB_shader_image_size
+#define GL_ARB_shader_image_size 1
+#endif /* GL_ARB_shader_image_size */
+
+#ifndef GL_ARB_shader_precision
+#define GL_ARB_shader_precision 1
+#endif /* GL_ARB_shader_precision */
+
+#ifndef GL_ARB_shader_stencil_export
+#define GL_ARB_shader_stencil_export 1
+#endif /* GL_ARB_shader_stencil_export */
+
+#ifndef GL_ARB_shader_storage_buffer_object
+#define GL_ARB_shader_storage_buffer_object 1
+#endif /* GL_ARB_shader_storage_buffer_object */
+
+#ifndef GL_ARB_shader_subroutine
+#define GL_ARB_shader_subroutine 1
+#endif /* GL_ARB_shader_subroutine */
+
+#ifndef GL_ARB_shader_texture_image_samples
+#define GL_ARB_shader_texture_image_samples 1
+#endif /* GL_ARB_shader_texture_image_samples */
+
+#ifndef GL_ARB_shader_viewport_layer_array
+#define GL_ARB_shader_viewport_layer_array 1
+#endif /* GL_ARB_shader_viewport_layer_array */
+
+#ifndef GL_ARB_shading_language_420pack
+#define GL_ARB_shading_language_420pack 1
+#endif /* GL_ARB_shading_language_420pack */
+
+#ifndef GL_ARB_shading_language_include
+#define GL_ARB_shading_language_include 1
+#define GL_SHADER_INCLUDE_ARB 0x8DAE
+#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9
+#define GL_NAMED_STRING_TYPE_ARB 0x8DEA
+typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
+typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
+typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
+typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
+typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
+GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name);
+GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
+GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name);
+GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
+GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ARB_shading_language_include */
+
+#ifndef GL_ARB_shading_language_packing
+#define GL_ARB_shading_language_packing 1
+#endif /* GL_ARB_shading_language_packing */
+
+#ifndef GL_ARB_sparse_buffer
+#define GL_ARB_sparse_buffer 1
+#define GL_SPARSE_STORAGE_BIT_ARB 0x0400
+#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8
+typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferPageCommitmentARB (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit);
+GLAPI void APIENTRY glNamedBufferPageCommitmentEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+GLAPI void APIENTRY glNamedBufferPageCommitmentARB (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+#endif
+#endif /* GL_ARB_sparse_buffer */
+
+#ifndef GL_ARB_sparse_texture
+#define GL_ARB_sparse_texture 1
+#define GL_TEXTURE_SPARSE_ARB 0x91A6
+#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7
+#define GL_NUM_SPARSE_LEVELS_ARB 0x91AA
+#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8
+#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197
+#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A
+#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9
+typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+#endif
+#endif /* GL_ARB_sparse_texture */
+
+#ifndef GL_ARB_sparse_texture2
+#define GL_ARB_sparse_texture2 1
+#endif /* GL_ARB_sparse_texture2 */
+
+#ifndef GL_ARB_sparse_texture_clamp
+#define GL_ARB_sparse_texture_clamp 1
+#endif /* GL_ARB_sparse_texture_clamp */
+
+#ifndef GL_ARB_spirv_extensions
+#define GL_ARB_spirv_extensions 1
+#endif /* GL_ARB_spirv_extensions */
+
+#ifndef GL_ARB_stencil_texturing
+#define GL_ARB_stencil_texturing 1
+#endif /* GL_ARB_stencil_texturing */
+
+#ifndef GL_ARB_sync
+#define GL_ARB_sync 1
+#endif /* GL_ARB_sync */
+
+#ifndef GL_ARB_tessellation_shader
+#define GL_ARB_tessellation_shader 1
+#endif /* GL_ARB_tessellation_shader */
+
+#ifndef GL_ARB_texture_barrier
+#define GL_ARB_texture_barrier 1
+#endif /* GL_ARB_texture_barrier */
+
+#ifndef GL_ARB_texture_border_clamp
+#define GL_ARB_texture_border_clamp 1
+#define GL_CLAMP_TO_BORDER_ARB 0x812D
+#endif /* GL_ARB_texture_border_clamp */
+
+#ifndef GL_ARB_texture_buffer_object
+#define GL_ARB_texture_buffer_object 1
+#define GL_TEXTURE_BUFFER_ARB 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
+#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E
+typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer);
+#endif
+#endif /* GL_ARB_texture_buffer_object */
+
+#ifndef GL_ARB_texture_buffer_object_rgb32
+#define GL_ARB_texture_buffer_object_rgb32 1
+#endif /* GL_ARB_texture_buffer_object_rgb32 */
+
+#ifndef GL_ARB_texture_buffer_range
+#define GL_ARB_texture_buffer_range 1
+#endif /* GL_ARB_texture_buffer_range */
+
+#ifndef GL_ARB_texture_compression_bptc
+#define GL_ARB_texture_compression_bptc 1
+#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
+#endif /* GL_ARB_texture_compression_bptc */
+
+#ifndef GL_ARB_texture_compression_rgtc
+#define GL_ARB_texture_compression_rgtc 1
+#endif /* GL_ARB_texture_compression_rgtc */
+
+#ifndef GL_ARB_texture_cube_map_array
+#define GL_ARB_texture_cube_map_array 1
+#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
+#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
+#endif /* GL_ARB_texture_cube_map_array */
+
+#ifndef GL_ARB_texture_filter_anisotropic
+#define GL_ARB_texture_filter_anisotropic 1
+#endif /* GL_ARB_texture_filter_anisotropic */
+
+#ifndef GL_ARB_texture_filter_minmax
+#define GL_ARB_texture_filter_minmax 1
+#define GL_TEXTURE_REDUCTION_MODE_ARB 0x9366
+#define GL_WEIGHTED_AVERAGE_ARB 0x9367
+#endif /* GL_ARB_texture_filter_minmax */
+
+#ifndef GL_ARB_texture_gather
+#define GL_ARB_texture_gather 1
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
+#endif /* GL_ARB_texture_gather */
+
+#ifndef GL_ARB_texture_mirror_clamp_to_edge
+#define GL_ARB_texture_mirror_clamp_to_edge 1
+#endif /* GL_ARB_texture_mirror_clamp_to_edge */
+
+#ifndef GL_ARB_texture_mirrored_repeat
+#define GL_ARB_texture_mirrored_repeat 1
+#define GL_MIRRORED_REPEAT_ARB 0x8370
+#endif /* GL_ARB_texture_mirrored_repeat */
+
+#ifndef GL_ARB_texture_multisample
+#define GL_ARB_texture_multisample 1
+#endif /* GL_ARB_texture_multisample */
+
+#ifndef GL_ARB_texture_non_power_of_two
+#define GL_ARB_texture_non_power_of_two 1
+#endif /* GL_ARB_texture_non_power_of_two */
+
+#ifndef GL_ARB_texture_query_levels
+#define GL_ARB_texture_query_levels 1
+#endif /* GL_ARB_texture_query_levels */
+
+#ifndef GL_ARB_texture_query_lod
+#define GL_ARB_texture_query_lod 1
+#endif /* GL_ARB_texture_query_lod */
+
+#ifndef GL_ARB_texture_rg
+#define GL_ARB_texture_rg 1
+#endif /* GL_ARB_texture_rg */
+
+#ifndef GL_ARB_texture_rgb10_a2ui
+#define GL_ARB_texture_rgb10_a2ui 1
+#endif /* GL_ARB_texture_rgb10_a2ui */
+
+#ifndef GL_ARB_texture_stencil8
+#define GL_ARB_texture_stencil8 1
+#endif /* GL_ARB_texture_stencil8 */
+
+#ifndef GL_ARB_texture_storage
+#define GL_ARB_texture_storage 1
+#endif /* GL_ARB_texture_storage */
+
+#ifndef GL_ARB_texture_storage_multisample
+#define GL_ARB_texture_storage_multisample 1
+#endif /* GL_ARB_texture_storage_multisample */
+
+#ifndef GL_ARB_texture_swizzle
+#define GL_ARB_texture_swizzle 1
+#endif /* GL_ARB_texture_swizzle */
+
+#ifndef GL_ARB_texture_view
+#define GL_ARB_texture_view 1
+#endif /* GL_ARB_texture_view */
+
+#ifndef GL_ARB_timer_query
+#define GL_ARB_timer_query 1
+#endif /* GL_ARB_timer_query */
+
+#ifndef GL_ARB_transform_feedback2
+#define GL_ARB_transform_feedback2 1
+#endif /* GL_ARB_transform_feedback2 */
+
+#ifndef GL_ARB_transform_feedback3
+#define GL_ARB_transform_feedback3 1
+#endif /* GL_ARB_transform_feedback3 */
+
+#ifndef GL_ARB_transform_feedback_instanced
+#define GL_ARB_transform_feedback_instanced 1
+#endif /* GL_ARB_transform_feedback_instanced */
+
+#ifndef GL_ARB_transform_feedback_overflow_query
+#define GL_ARB_transform_feedback_overflow_query 1
+#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC
+#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED
+#endif /* GL_ARB_transform_feedback_overflow_query */
+
+#ifndef GL_ARB_uniform_buffer_object
+#define GL_ARB_uniform_buffer_object 1
+#endif /* GL_ARB_uniform_buffer_object */
+
+#ifndef GL_ARB_vertex_array_bgra
+#define GL_ARB_vertex_array_bgra 1
+#endif /* GL_ARB_vertex_array_bgra */
+
+#ifndef GL_ARB_vertex_array_object
+#define GL_ARB_vertex_array_object 1
+#endif /* GL_ARB_vertex_array_object */
+
+#ifndef GL_ARB_vertex_attrib_64bit
+#define GL_ARB_vertex_attrib_64bit 1
+#endif /* GL_ARB_vertex_attrib_64bit */
+
+#ifndef GL_ARB_vertex_attrib_binding
+#define GL_ARB_vertex_attrib_binding 1
+#endif /* GL_ARB_vertex_attrib_binding */
+
+#ifndef GL_ARB_vertex_type_10f_11f_11f_rev
+#define GL_ARB_vertex_type_10f_11f_11f_rev 1
+#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */
+
+#ifndef GL_ARB_vertex_type_2_10_10_10_rev
+#define GL_ARB_vertex_type_2_10_10_10_rev 1
+#endif /* GL_ARB_vertex_type_2_10_10_10_rev */
+
+#ifndef GL_ARB_viewport_array
+#define GL_ARB_viewport_array 1
+typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYDVNVPROC) (GLuint first, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDDNVPROC) (GLuint index, GLdouble n, GLdouble f);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthRangeArraydvNV (GLuint first, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glDepthRangeIndexeddNV (GLuint index, GLdouble n, GLdouble f);
+#endif
+#endif /* GL_ARB_viewport_array */
+
+#ifndef GL_KHR_blend_equation_advanced
+#define GL_KHR_blend_equation_advanced 1
+#define GL_MULTIPLY_KHR 0x9294
+#define GL_SCREEN_KHR 0x9295
+#define GL_OVERLAY_KHR 0x9296
+#define GL_DARKEN_KHR 0x9297
+#define GL_LIGHTEN_KHR 0x9298
+#define GL_COLORDODGE_KHR 0x9299
+#define GL_COLORBURN_KHR 0x929A
+#define GL_HARDLIGHT_KHR 0x929B
+#define GL_SOFTLIGHT_KHR 0x929C
+#define GL_DIFFERENCE_KHR 0x929E
+#define GL_EXCLUSION_KHR 0x92A0
+#define GL_HSL_HUE_KHR 0x92AD
+#define GL_HSL_SATURATION_KHR 0x92AE
+#define GL_HSL_COLOR_KHR 0x92AF
+#define GL_HSL_LUMINOSITY_KHR 0x92B0
+typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendBarrierKHR (void);
+#endif
+#endif /* GL_KHR_blend_equation_advanced */
+
+#ifndef GL_KHR_blend_equation_advanced_coherent
+#define GL_KHR_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285
+#endif /* GL_KHR_blend_equation_advanced_coherent */
+
+#ifndef GL_KHR_context_flush_control
+#define GL_KHR_context_flush_control 1
+#endif /* GL_KHR_context_flush_control */
+
+#ifndef GL_KHR_debug
+#define GL_KHR_debug 1
+#endif /* GL_KHR_debug */
+
+#ifndef GL_KHR_no_error
+#define GL_KHR_no_error 1
+#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008
+#endif /* GL_KHR_no_error */
+
+#ifndef GL_KHR_parallel_shader_compile
+#define GL_KHR_parallel_shader_compile 1
+#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0
+#define GL_COMPLETION_STATUS_KHR 0x91B1
+typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMaxShaderCompilerThreadsKHR (GLuint count);
+#endif
+#endif /* GL_KHR_parallel_shader_compile */
+
+#ifndef GL_KHR_robust_buffer_access_behavior
+#define GL_KHR_robust_buffer_access_behavior 1
+#endif /* GL_KHR_robust_buffer_access_behavior */
+
+#ifndef GL_KHR_robustness
+#define GL_KHR_robustness 1
+#define GL_CONTEXT_ROBUST_ACCESS 0x90F3
+#endif /* GL_KHR_robustness */
+
+#ifndef GL_KHR_shader_subgroup
+#define GL_KHR_shader_subgroup 1
+#define GL_SUBGROUP_SIZE_KHR 0x9532
+#define GL_SUBGROUP_SUPPORTED_STAGES_KHR 0x9533
+#define GL_SUBGROUP_SUPPORTED_FEATURES_KHR 0x9534
+#define GL_SUBGROUP_QUAD_ALL_STAGES_KHR 0x9535
+#define GL_SUBGROUP_FEATURE_BASIC_BIT_KHR 0x00000001
+#define GL_SUBGROUP_FEATURE_VOTE_BIT_KHR 0x00000002
+#define GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR 0x00000004
+#define GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR 0x00000008
+#define GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR 0x00000010
+#define GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR 0x00000020
+#define GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR 0x00000040
+#define GL_SUBGROUP_FEATURE_QUAD_BIT_KHR 0x00000080
+#endif /* GL_KHR_shader_subgroup */
+
+#ifndef GL_KHR_texture_compression_astc_hdr
+#define GL_KHR_texture_compression_astc_hdr 1
+#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
+#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
+#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
+#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
+#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
+#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
+#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
+#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
+#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
+#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
+#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
+#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
+#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
+#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
+#endif /* GL_KHR_texture_compression_astc_hdr */
+
+#ifndef GL_KHR_texture_compression_astc_ldr
+#define GL_KHR_texture_compression_astc_ldr 1
+#endif /* GL_KHR_texture_compression_astc_ldr */
+
+#ifndef GL_KHR_texture_compression_astc_sliced_3d
+#define GL_KHR_texture_compression_astc_sliced_3d 1
+#endif /* GL_KHR_texture_compression_astc_sliced_3d */
+
+#ifndef GL_AMD_framebuffer_multisample_advanced
+#define GL_AMD_framebuffer_multisample_advanced 1
+#define GL_RENDERBUFFER_STORAGE_SAMPLES_AMD 0x91B2
+#define GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD 0x91B3
+#define GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD 0x91B4
+#define GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD 0x91B5
+#define GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B6
+#define GL_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B7
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleAdvancedAMD (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleAdvancedAMD (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_AMD_framebuffer_multisample_advanced */
+
+#ifndef GL_AMD_performance_monitor
+#define GL_AMD_performance_monitor 1
+#define GL_COUNTER_TYPE_AMD 0x8BC0
+#define GL_COUNTER_RANGE_AMD 0x8BC1
+#define GL_UNSIGNED_INT64_AMD 0x8BC2
+#define GL_PERCENTAGE_AMD 0x8BC3
+#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
+#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
+#define GL_PERFMON_RESULT_AMD 0x8BC6
+typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
+typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
+GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
+GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor);
+GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#endif
+#endif /* GL_AMD_performance_monitor */
+
+#ifndef GL_APPLE_rgb_422
+#define GL_APPLE_rgb_422 1
+#define GL_RGB_422_APPLE 0x8A1F
+#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
+#define GL_RGB_RAW_422_APPLE 0x8A51
+#endif /* GL_APPLE_rgb_422 */
+
+#ifndef GL_EXT_EGL_image_storage
+#define GL_EXT_EGL_image_storage 1
+typedef void *GLeglImageOES;
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC) (GLenum target, GLeglImageOES image, const GLint* attrib_list);
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC) (GLuint texture, GLeglImageOES image, const GLint* attrib_list);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEGLImageTargetTexStorageEXT (GLenum target, GLeglImageOES image, const GLint* attrib_list);
+GLAPI void APIENTRY glEGLImageTargetTextureStorageEXT (GLuint texture, GLeglImageOES image, const GLint* attrib_list);
+#endif
+#endif /* GL_EXT_EGL_image_storage */
+
+#ifndef GL_EXT_EGL_sync
+#define GL_EXT_EGL_sync 1
+#endif /* GL_EXT_EGL_sync */
+
+#ifndef GL_EXT_debug_label
+#define GL_EXT_debug_label 1
+#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
+#define GL_PROGRAM_OBJECT_EXT 0x8B40
+#define GL_SHADER_OBJECT_EXT 0x8B48
+#define GL_BUFFER_OBJECT_EXT 0x9151
+#define GL_QUERY_OBJECT_EXT 0x9153
+#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
+typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_EXT_debug_label */
+
+#ifndef GL_EXT_debug_marker
+#define GL_EXT_debug_marker 1
+typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
+GLAPI void APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
+GLAPI void APIENTRY glPopGroupMarkerEXT (void);
+#endif
+#endif /* GL_EXT_debug_marker */
+
+#ifndef GL_EXT_direct_state_access
+#define GL_EXT_direct_state_access 1
+#define GL_PROGRAM_MATRIX_EXT 0x8E2D
+#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E
+#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F
+typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
+typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data);
+typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void **data);
+typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data);
+typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void *img);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void *img);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params);
+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void *string);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target);
+typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
+typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void **param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode);
+GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glMatrixPopEXT (GLenum mode);
+GLAPI void APIENTRY glMatrixPushEXT (GLenum mode);
+GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask);
+GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask);
+GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture);
+GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
+GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
+GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data);
+GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data);
+GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, void **data);
+GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index);
+GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index);
+GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index);
+GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data);
+GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data);
+GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img);
+GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img);
+GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer);
+GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params);
+GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
+GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
+GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
+GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params);
+GLAPI void APIENTRY glEnableClientStateiEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glDisableClientStateiEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glGetFloati_vEXT (GLenum pname, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetDoublei_vEXT (GLenum pname, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetPointeri_vEXT (GLenum pname, GLuint index, void **params);
+GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string);
+GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string);
+GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target);
+GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target);
+GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target);
+GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode);
+GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode);
+GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
+GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glVertexArrayVertexOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayIndexOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayNormalOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glEnableVertexArrayEXT (GLuint vaobj, GLenum array);
+GLAPI void APIENTRY glDisableVertexArrayEXT (GLuint vaobj, GLenum array);
+GLAPI void APIENTRY glEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glGetVertexArrayIntegervEXT (GLuint vaobj, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayPointervEXT (GLuint vaobj, GLenum pname, void **param);
+GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, void **param);
+GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glNamedBufferStorageEXT (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x);
+GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor);
+#endif
+#endif /* GL_EXT_direct_state_access */
+
+#ifndef GL_EXT_draw_instanced
+#define GL_EXT_draw_instanced 1
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_draw_instanced */
+
+#ifndef GL_EXT_multiview_tessellation_geometry_shader
+#define GL_EXT_multiview_tessellation_geometry_shader 1
+#endif /* GL_EXT_multiview_tessellation_geometry_shader */
+
+#ifndef GL_EXT_multiview_texture_multisample
+#define GL_EXT_multiview_texture_multisample 1
+#endif /* GL_EXT_multiview_texture_multisample */
+
+#ifndef GL_EXT_multiview_timer_query
+#define GL_EXT_multiview_timer_query 1
+#endif /* GL_EXT_multiview_timer_query */
+
+#ifndef GL_EXT_polygon_offset_clamp
+#define GL_EXT_polygon_offset_clamp 1
+#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp);
+#endif
+#endif /* GL_EXT_polygon_offset_clamp */
+
+#ifndef GL_EXT_post_depth_coverage
+#define GL_EXT_post_depth_coverage 1
+#endif /* GL_EXT_post_depth_coverage */
+
+#ifndef GL_EXT_raster_multisample
+#define GL_EXT_raster_multisample 1
+#define GL_RASTER_MULTISAMPLE_EXT 0x9327
+#define GL_RASTER_SAMPLES_EXT 0x9328
+#define GL_MAX_RASTER_SAMPLES_EXT 0x9329
+#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A
+#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B
+#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C
+typedef void (APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations);
+#endif
+#endif /* GL_EXT_raster_multisample */
+
+#ifndef GL_EXT_separate_shader_objects
+#define GL_EXT_separate_shader_objects 1
+#define GL_ACTIVE_PROGRAM_EXT 0x8B8D
+typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program);
+typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program);
+GLAPI void APIENTRY glActiveProgramEXT (GLuint program);
+GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string);
+#endif
+#endif /* GL_EXT_separate_shader_objects */
+
+#ifndef GL_EXT_shader_framebuffer_fetch
+#define GL_EXT_shader_framebuffer_fetch 1
+#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52
+#endif /* GL_EXT_shader_framebuffer_fetch */
+
+#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent
+#define GL_EXT_shader_framebuffer_fetch_non_coherent 1
+typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferFetchBarrierEXT (void);
+#endif
+#endif /* GL_EXT_shader_framebuffer_fetch_non_coherent */
+
+#ifndef GL_EXT_shader_integer_mix
+#define GL_EXT_shader_integer_mix 1
+#endif /* GL_EXT_shader_integer_mix */
+
+#ifndef GL_EXT_texture_compression_s3tc
+#define GL_EXT_texture_compression_s3tc 1
+#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
+#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
+#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
+#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
+#endif /* GL_EXT_texture_compression_s3tc */
+
+#ifndef GL_EXT_texture_filter_minmax
+#define GL_EXT_texture_filter_minmax 1
+#define GL_TEXTURE_REDUCTION_MODE_EXT 0x9366
+#define GL_WEIGHTED_AVERAGE_EXT 0x9367
+#endif /* GL_EXT_texture_filter_minmax */
+
+#ifndef GL_EXT_texture_sRGB_R8
+#define GL_EXT_texture_sRGB_R8 1
+#define GL_SR8_EXT 0x8FBD
+#endif /* GL_EXT_texture_sRGB_R8 */
+
+#ifndef GL_EXT_texture_sRGB_RG8
+#define GL_EXT_texture_sRGB_RG8 1
+#define GL_SRG8_EXT 0x8FBE
+#endif /* GL_EXT_texture_sRGB_RG8 */
+
+#ifndef GL_EXT_texture_sRGB_decode
+#define GL_EXT_texture_sRGB_decode 1
+#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48
+#define GL_DECODE_EXT 0x8A49
+#define GL_SKIP_DECODE_EXT 0x8A4A
+#endif /* GL_EXT_texture_sRGB_decode */
+
+#ifndef GL_EXT_texture_shadow_lod
+#define GL_EXT_texture_shadow_lod 1
+#endif /* GL_EXT_texture_shadow_lod */
+
+#ifndef GL_EXT_texture_storage
+#define GL_EXT_texture_storage 1
+#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
+#define GL_ALPHA8_EXT 0x803C
+#define GL_LUMINANCE8_EXT 0x8040
+#define GL_LUMINANCE8_ALPHA8_EXT 0x8045
+#define GL_RGBA32F_EXT 0x8814
+#define GL_RGB32F_EXT 0x8815
+#define GL_ALPHA32F_EXT 0x8816
+#define GL_LUMINANCE32F_EXT 0x8818
+#define GL_LUMINANCE_ALPHA32F_EXT 0x8819
+#define GL_RGBA16F_EXT 0x881A
+#define GL_RGB16F_EXT 0x881B
+#define GL_ALPHA16F_EXT 0x881C
+#define GL_LUMINANCE16F_EXT 0x881E
+#define GL_LUMINANCE_ALPHA16F_EXT 0x881F
+#define GL_RGB10_A2_EXT 0x8059
+#define GL_RGB10_EXT 0x8052
+#define GL_BGRA8_EXT 0x93A1
+#define GL_R8_EXT 0x8229
+#define GL_RG8_EXT 0x822B
+#define GL_R32F_EXT 0x822E
+#define GL_RG32F_EXT 0x8230
+#define GL_R16F_EXT 0x822D
+#define GL_RG16F_EXT 0x822F
+typedef void (APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+#endif /* GL_EXT_texture_storage */
+
+#ifndef GL_EXT_window_rectangles
+#define GL_EXT_window_rectangles 1
+#define GL_INCLUSIVE_EXT 0x8F10
+#define GL_EXCLUSIVE_EXT 0x8F11
+#define GL_WINDOW_RECTANGLE_EXT 0x8F12
+#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13
+#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14
+#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15
+typedef void (APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint *box);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWindowRectanglesEXT (GLenum mode, GLsizei count, const GLint *box);
+#endif
+#endif /* GL_EXT_window_rectangles */
+
+#ifndef GL_INTEL_blackhole_render
+#define GL_INTEL_blackhole_render 1
+#define GL_BLACKHOLE_RENDER_INTEL 0x83FC
+#endif /* GL_INTEL_blackhole_render */
+
+#ifndef GL_INTEL_conservative_rasterization
+#define GL_INTEL_conservative_rasterization 1
+#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE
+#endif /* GL_INTEL_conservative_rasterization */
+
+#ifndef GL_INTEL_framebuffer_CMAA
+#define GL_INTEL_framebuffer_CMAA 1
+typedef void (APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glApplyFramebufferAttachmentCMAAINTEL (void);
+#endif
+#endif /* GL_INTEL_framebuffer_CMAA */
+
+#ifndef GL_INTEL_performance_query
+#define GL_INTEL_performance_query 1
+#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000
+#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001
+#define GL_PERFQUERY_WAIT_INTEL 0x83FB
+#define GL_PERFQUERY_FLUSH_INTEL 0x83FA
+#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9
+#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0
+#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1
+#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2
+#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3
+#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4
+#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5
+#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8
+#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9
+#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA
+#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB
+#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC
+#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD
+#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE
+#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF
+#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500
+typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle);
+typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId);
+typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId);
+typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten);
+typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId);
+typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle);
+GLAPI void APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glEndPerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId);
+GLAPI void APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId);
+GLAPI void APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+GLAPI void APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten);
+GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId);
+GLAPI void APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#endif
+#endif /* GL_INTEL_performance_query */
+
+#ifndef GL_MESA_framebuffer_flip_x
+#define GL_MESA_framebuffer_flip_x 1
+#define GL_FRAMEBUFFER_FLIP_X_MESA 0x8BBC
+#endif /* GL_MESA_framebuffer_flip_x */
+
+#ifndef GL_MESA_framebuffer_flip_y
+#define GL_MESA_framebuffer_flip_y 1
+#define GL_FRAMEBUFFER_FLIP_Y_MESA 0x8BBB
+typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIMESAPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC) (GLenum target, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferParameteriMESA (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetFramebufferParameterivMESA (GLenum target, GLenum pname, GLint *params);
+#endif
+#endif /* GL_MESA_framebuffer_flip_y */
+
+#ifndef GL_MESA_framebuffer_swap_xy
+#define GL_MESA_framebuffer_swap_xy 1
+#define GL_FRAMEBUFFER_SWAP_XY_MESA 0x8BBD
+#endif /* GL_MESA_framebuffer_swap_xy */
+
+#ifndef GL_NV_bindless_multi_draw_indirect
+#define GL_NV_bindless_multi_draw_indirect 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+#endif
+#endif /* GL_NV_bindless_multi_draw_indirect */
+
+#ifndef GL_NV_bindless_multi_draw_indirect_count
+#define GL_NV_bindless_multi_draw_indirect_count 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessCountNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessCountNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+#endif
+#endif /* GL_NV_bindless_multi_draw_indirect_count */
+
+#ifndef GL_NV_bindless_texture
+#define GL_NV_bindless_texture 1
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture);
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture);
+GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler);
+GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle);
+GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle);
+GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
+GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle);
+GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value);
+GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value);
+GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle);
+GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle);
+#endif
+#endif /* GL_NV_bindless_texture */
+
+#ifndef GL_NV_blend_equation_advanced
+#define GL_NV_blend_equation_advanced 1
+#define GL_BLEND_OVERLAP_NV 0x9281
+#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280
+#define GL_BLUE_NV 0x1905
+#define GL_COLORBURN_NV 0x929A
+#define GL_COLORDODGE_NV 0x9299
+#define GL_CONJOINT_NV 0x9284
+#define GL_CONTRAST_NV 0x92A1
+#define GL_DARKEN_NV 0x9297
+#define GL_DIFFERENCE_NV 0x929E
+#define GL_DISJOINT_NV 0x9283
+#define GL_DST_ATOP_NV 0x928F
+#define GL_DST_IN_NV 0x928B
+#define GL_DST_NV 0x9287
+#define GL_DST_OUT_NV 0x928D
+#define GL_DST_OVER_NV 0x9289
+#define GL_EXCLUSION_NV 0x92A0
+#define GL_GREEN_NV 0x1904
+#define GL_HARDLIGHT_NV 0x929B
+#define GL_HARDMIX_NV 0x92A9
+#define GL_HSL_COLOR_NV 0x92AF
+#define GL_HSL_HUE_NV 0x92AD
+#define GL_HSL_LUMINOSITY_NV 0x92B0
+#define GL_HSL_SATURATION_NV 0x92AE
+#define GL_INVERT_OVG_NV 0x92B4
+#define GL_INVERT_RGB_NV 0x92A3
+#define GL_LIGHTEN_NV 0x9298
+#define GL_LINEARBURN_NV 0x92A5
+#define GL_LINEARDODGE_NV 0x92A4
+#define GL_LINEARLIGHT_NV 0x92A7
+#define GL_MINUS_CLAMPED_NV 0x92B3
+#define GL_MINUS_NV 0x929F
+#define GL_MULTIPLY_NV 0x9294
+#define GL_OVERLAY_NV 0x9296
+#define GL_PINLIGHT_NV 0x92A8
+#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2
+#define GL_PLUS_CLAMPED_NV 0x92B1
+#define GL_PLUS_DARKER_NV 0x9292
+#define GL_PLUS_NV 0x9291
+#define GL_RED_NV 0x1903
+#define GL_SCREEN_NV 0x9295
+#define GL_SOFTLIGHT_NV 0x929C
+#define GL_SRC_ATOP_NV 0x928E
+#define GL_SRC_IN_NV 0x928A
+#define GL_SRC_NV 0x9286
+#define GL_SRC_OUT_NV 0x928C
+#define GL_SRC_OVER_NV 0x9288
+#define GL_UNCORRELATED_NV 0x9282
+#define GL_VIVIDLIGHT_NV 0x92A6
+#define GL_XOR_NV 0x1506
+typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendParameteriNV (GLenum pname, GLint value);
+GLAPI void APIENTRY glBlendBarrierNV (void);
+#endif
+#endif /* GL_NV_blend_equation_advanced */
+
+#ifndef GL_NV_blend_equation_advanced_coherent
+#define GL_NV_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285
+#endif /* GL_NV_blend_equation_advanced_coherent */
+
+#ifndef GL_NV_blend_minmax_factor
+#define GL_NV_blend_minmax_factor 1
+#define GL_FACTOR_MIN_AMD 0x901C
+#define GL_FACTOR_MAX_AMD 0x901D
+#endif /* GL_NV_blend_minmax_factor */
+
+#ifndef GL_NV_clip_space_w_scaling
+#define GL_NV_clip_space_w_scaling 1
+#define GL_VIEWPORT_POSITION_W_SCALE_NV 0x937C
+#define GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV 0x937D
+#define GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV 0x937E
+typedef void (APIENTRYP PFNGLVIEWPORTPOSITIONWSCALENVPROC) (GLuint index, GLfloat xcoeff, GLfloat ycoeff);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glViewportPositionWScaleNV (GLuint index, GLfloat xcoeff, GLfloat ycoeff);
+#endif
+#endif /* GL_NV_clip_space_w_scaling */
+
+#ifndef GL_NV_command_list
+#define GL_NV_command_list 1
+#define GL_TERMINATE_SEQUENCE_COMMAND_NV 0x0000
+#define GL_NOP_COMMAND_NV 0x0001
+#define GL_DRAW_ELEMENTS_COMMAND_NV 0x0002
+#define GL_DRAW_ARRAYS_COMMAND_NV 0x0003
+#define GL_DRAW_ELEMENTS_STRIP_COMMAND_NV 0x0004
+#define GL_DRAW_ARRAYS_STRIP_COMMAND_NV 0x0005
+#define GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV 0x0006
+#define GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV 0x0007
+#define GL_ELEMENT_ADDRESS_COMMAND_NV 0x0008
+#define GL_ATTRIBUTE_ADDRESS_COMMAND_NV 0x0009
+#define GL_UNIFORM_ADDRESS_COMMAND_NV 0x000A
+#define GL_BLEND_COLOR_COMMAND_NV 0x000B
+#define GL_STENCIL_REF_COMMAND_NV 0x000C
+#define GL_LINE_WIDTH_COMMAND_NV 0x000D
+#define GL_POLYGON_OFFSET_COMMAND_NV 0x000E
+#define GL_ALPHA_REF_COMMAND_NV 0x000F
+#define GL_VIEWPORT_COMMAND_NV 0x0010
+#define GL_SCISSOR_COMMAND_NV 0x0011
+#define GL_FRONT_FACE_COMMAND_NV 0x0012
+typedef void (APIENTRYP PFNGLCREATESTATESNVPROC) (GLsizei n, GLuint *states);
+typedef void (APIENTRYP PFNGLDELETESTATESNVPROC) (GLsizei n, const GLuint *states);
+typedef GLboolean (APIENTRYP PFNGLISSTATENVPROC) (GLuint state);
+typedef void (APIENTRYP PFNGLSTATECAPTURENVPROC) (GLuint state, GLenum mode);
+typedef GLuint (APIENTRYP PFNGLGETCOMMANDHEADERNVPROC) (GLenum tokenID, GLuint size);
+typedef GLushort (APIENTRYP PFNGLGETSTAGEINDEXNVPROC) (GLenum shadertype);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSNVPROC) (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSADDRESSNVPROC) (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESNVPROC) (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC) (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+typedef void (APIENTRYP PFNGLCREATECOMMANDLISTSNVPROC) (GLsizei n, GLuint *lists);
+typedef void (APIENTRYP PFNGLDELETECOMMANDLISTSNVPROC) (GLsizei n, const GLuint *lists);
+typedef GLboolean (APIENTRYP PFNGLISCOMMANDLISTNVPROC) (GLuint list);
+typedef void (APIENTRYP PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC) (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+typedef void (APIENTRYP PFNGLCOMMANDLISTSEGMENTSNVPROC) (GLuint list, GLuint segments);
+typedef void (APIENTRYP PFNGLCOMPILECOMMANDLISTNVPROC) (GLuint list);
+typedef void (APIENTRYP PFNGLCALLCOMMANDLISTNVPROC) (GLuint list);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCreateStatesNV (GLsizei n, GLuint *states);
+GLAPI void APIENTRY glDeleteStatesNV (GLsizei n, const GLuint *states);
+GLAPI GLboolean APIENTRY glIsStateNV (GLuint state);
+GLAPI void APIENTRY glStateCaptureNV (GLuint state, GLenum mode);
+GLAPI GLuint APIENTRY glGetCommandHeaderNV (GLenum tokenID, GLuint size);
+GLAPI GLushort APIENTRY glGetStageIndexNV (GLenum shadertype);
+GLAPI void APIENTRY glDrawCommandsNV (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count);
+GLAPI void APIENTRY glDrawCommandsAddressNV (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count);
+GLAPI void APIENTRY glDrawCommandsStatesNV (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+GLAPI void APIENTRY glDrawCommandsStatesAddressNV (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+GLAPI void APIENTRY glCreateCommandListsNV (GLsizei n, GLuint *lists);
+GLAPI void APIENTRY glDeleteCommandListsNV (GLsizei n, const GLuint *lists);
+GLAPI GLboolean APIENTRY glIsCommandListNV (GLuint list);
+GLAPI void APIENTRY glListDrawCommandsStatesClientNV (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+GLAPI void APIENTRY glCommandListSegmentsNV (GLuint list, GLuint segments);
+GLAPI void APIENTRY glCompileCommandListNV (GLuint list);
+GLAPI void APIENTRY glCallCommandListNV (GLuint list);
+#endif
+#endif /* GL_NV_command_list */
+
+#ifndef GL_NV_compute_shader_derivatives
+#define GL_NV_compute_shader_derivatives 1
+#endif /* GL_NV_compute_shader_derivatives */
+
+#ifndef GL_NV_conditional_render
+#define GL_NV_conditional_render 1
+#define GL_QUERY_WAIT_NV 0x8E13
+#define GL_QUERY_NO_WAIT_NV 0x8E14
+#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode);
+GLAPI void APIENTRY glEndConditionalRenderNV (void);
+#endif
+#endif /* GL_NV_conditional_render */
+
+#ifndef GL_NV_conservative_raster
+#define GL_NV_conservative_raster 1
+#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346
+#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347
+#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348
+#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349
+typedef void (APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits);
+#endif
+#endif /* GL_NV_conservative_raster */
+
+#ifndef GL_NV_conservative_raster_dilate
+#define GL_NV_conservative_raster_dilate 1
+#define GL_CONSERVATIVE_RASTER_DILATE_NV 0x9379
+#define GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV 0x937A
+#define GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV 0x937B
+typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERFNVPROC) (GLenum pname, GLfloat value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glConservativeRasterParameterfNV (GLenum pname, GLfloat value);
+#endif
+#endif /* GL_NV_conservative_raster_dilate */
+
+#ifndef GL_NV_conservative_raster_pre_snap
+#define GL_NV_conservative_raster_pre_snap 1
+#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV 0x9550
+#endif /* GL_NV_conservative_raster_pre_snap */
+
+#ifndef GL_NV_conservative_raster_pre_snap_triangles
+#define GL_NV_conservative_raster_pre_snap_triangles 1
+#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D
+#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E
+#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F
+typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glConservativeRasterParameteriNV (GLenum pname, GLint param);
+#endif
+#endif /* GL_NV_conservative_raster_pre_snap_triangles */
+
+#ifndef GL_NV_conservative_raster_underestimation
+#define GL_NV_conservative_raster_underestimation 1
+#endif /* GL_NV_conservative_raster_underestimation */
+
+#ifndef GL_NV_depth_buffer_float
+#define GL_NV_depth_buffer_float 1
+#define GL_DEPTH_COMPONENT32F_NV 0x8DAB
+#define GL_DEPTH32F_STENCIL8_NV 0x8DAC
+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD
+#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF
+typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth);
+typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glClearDepthdNV (GLdouble depth);
+GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax);
+#endif
+#endif /* GL_NV_depth_buffer_float */
+
+#ifndef GL_NV_draw_vulkan_image
+#define GL_NV_draw_vulkan_image 1
+typedef void (APIENTRY *GLVULKANPROCNV)(void);
+typedef void (APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+typedef GLVULKANPROCNV (APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar *name);
+typedef void (APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
+typedef void (APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
+typedef void (APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawVkImageNV (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+GLAPI GLVULKANPROCNV APIENTRY glGetVkProcAddrNV (const GLchar *name);
+GLAPI void APIENTRY glWaitVkSemaphoreNV (GLuint64 vkSemaphore);
+GLAPI void APIENTRY glSignalVkSemaphoreNV (GLuint64 vkSemaphore);
+GLAPI void APIENTRY glSignalVkFenceNV (GLuint64 vkFence);
+#endif
+#endif /* GL_NV_draw_vulkan_image */
+
+#ifndef GL_NV_fill_rectangle
+#define GL_NV_fill_rectangle 1
+#define GL_FILL_RECTANGLE_NV 0x933C
+#endif /* GL_NV_fill_rectangle */
+
+#ifndef GL_NV_fragment_coverage_to_color
+#define GL_NV_fragment_coverage_to_color 1
+#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD
+#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE
+typedef void (APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFragmentCoverageColorNV (GLuint color);
+#endif
+#endif /* GL_NV_fragment_coverage_to_color */
+
+#ifndef GL_NV_fragment_shader_barycentric
+#define GL_NV_fragment_shader_barycentric 1
+#endif /* GL_NV_fragment_shader_barycentric */
+
+#ifndef GL_NV_fragment_shader_interlock
+#define GL_NV_fragment_shader_interlock 1
+#endif /* GL_NV_fragment_shader_interlock */
+
+#ifndef GL_NV_framebuffer_mixed_samples
+#define GL_NV_framebuffer_mixed_samples 1
+#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331
+#define GL_COLOR_SAMPLES_NV 0x8E20
+#define GL_DEPTH_SAMPLES_NV 0x932D
+#define GL_STENCIL_SAMPLES_NV 0x932E
+#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F
+#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330
+#define GL_COVERAGE_MODULATION_NV 0x9332
+#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333
+typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufSize, GLfloat *v);
+typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCoverageModulationTableNV (GLsizei n, const GLfloat *v);
+GLAPI void APIENTRY glGetCoverageModulationTableNV (GLsizei bufSize, GLfloat *v);
+GLAPI void APIENTRY glCoverageModulationNV (GLenum components);
+#endif
+#endif /* GL_NV_framebuffer_mixed_samples */
+
+#ifndef GL_NV_framebuffer_multisample_coverage
+#define GL_NV_framebuffer_multisample_coverage 1
+#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
+#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10
+#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11
+#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_NV_framebuffer_multisample_coverage */
+
+#ifndef GL_NV_geometry_shader_passthrough
+#define GL_NV_geometry_shader_passthrough 1
+#endif /* GL_NV_geometry_shader_passthrough */
+
+#ifndef GL_NV_gpu_shader5
+#define GL_NV_gpu_shader5 1
+typedef khronos_int64_t GLint64EXT;
+#define GL_INT64_NV 0x140E
+#define GL_UNSIGNED_INT64_NV 0x140F
+#define GL_INT8_NV 0x8FE0
+#define GL_INT8_VEC2_NV 0x8FE1
+#define GL_INT8_VEC3_NV 0x8FE2
+#define GL_INT8_VEC4_NV 0x8FE3
+#define GL_INT16_NV 0x8FE4
+#define GL_INT16_VEC2_NV 0x8FE5
+#define GL_INT16_VEC3_NV 0x8FE6
+#define GL_INT16_VEC4_NV 0x8FE7
+#define GL_INT64_VEC2_NV 0x8FE9
+#define GL_INT64_VEC3_NV 0x8FEA
+#define GL_INT64_VEC4_NV 0x8FEB
+#define GL_UNSIGNED_INT8_NV 0x8FEC
+#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED
+#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE
+#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF
+#define GL_UNSIGNED_INT16_NV 0x8FF0
+#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1
+#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2
+#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3
+#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5
+#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6
+#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7
+#define GL_FLOAT16_NV 0x8FF8
+#define GL_FLOAT16_VEC2_NV 0x8FF9
+#define GL_FLOAT16_VEC3_NV 0x8FFA
+#define GL_FLOAT16_VEC4_NV 0x8FFB
+typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
+typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
+GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
+GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
+GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
+GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
+GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_NV_gpu_shader5 */
+
+#ifndef GL_NV_internalformat_sample_query
+#define GL_NV_internalformat_sample_query 1
+#define GL_MULTISAMPLES_NV 0x9371
+#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372
+#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373
+#define GL_CONFORMANT_NV 0x9374
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params);
+#endif
+#endif /* GL_NV_internalformat_sample_query */
+
+#ifndef GL_NV_memory_attachment
+#define GL_NV_memory_attachment 1
+#define GL_ATTACHED_MEMORY_OBJECT_NV 0x95A4
+#define GL_ATTACHED_MEMORY_OFFSET_NV 0x95A5
+#define GL_MEMORY_ATTACHABLE_ALIGNMENT_NV 0x95A6
+#define GL_MEMORY_ATTACHABLE_SIZE_NV 0x95A7
+#define GL_MEMORY_ATTACHABLE_NV 0x95A8
+#define GL_DETACHED_MEMORY_INCARNATION_NV 0x95A9
+#define GL_DETACHED_TEXTURES_NV 0x95AA
+#define GL_DETACHED_BUFFERS_NV 0x95AB
+#define GL_MAX_DETACHED_TEXTURES_NV 0x95AC
+#define GL_MAX_DETACHED_BUFFERS_NV 0x95AD
+typedef void (APIENTRYP PFNGLGETMEMORYOBJECTDETACHEDRESOURCESUIVNVPROC) (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params);
+typedef void (APIENTRYP PFNGLRESETMEMORYOBJECTPARAMETERNVPROC) (GLuint memory, GLenum pname);
+typedef void (APIENTRYP PFNGLTEXATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLBUFFERATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTUREATTACHMEMORYNVPROC) (GLuint texture, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERATTACHMEMORYNVPROC) (GLuint buffer, GLuint memory, GLuint64 offset);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetMemoryObjectDetachedResourcesuivNV (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params);
+GLAPI void APIENTRY glResetMemoryObjectParameterNV (GLuint memory, GLenum pname);
+GLAPI void APIENTRY glTexAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glBufferAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureAttachMemoryNV (GLuint texture, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glNamedBufferAttachMemoryNV (GLuint buffer, GLuint memory, GLuint64 offset);
+#endif
+#endif /* GL_NV_memory_attachment */
+
+#ifndef GL_NV_memory_object_sparse
+#define GL_NV_memory_object_sparse 1
+typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTMEMNVPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTMEMNVPROC) (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTMEMNVPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC) (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferPageCommitmentMemNV (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+GLAPI void APIENTRY glTexPageCommitmentMemNV (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+GLAPI void APIENTRY glNamedBufferPageCommitmentMemNV (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+GLAPI void APIENTRY glTexturePageCommitmentMemNV (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+#endif
+#endif /* GL_NV_memory_object_sparse */
+
+#ifndef GL_NV_mesh_shader
+#define GL_NV_mesh_shader 1
+#define GL_MESH_SHADER_NV 0x9559
+#define GL_TASK_SHADER_NV 0x955A
+#define GL_MAX_MESH_UNIFORM_BLOCKS_NV 0x8E60
+#define GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV 0x8E61
+#define GL_MAX_MESH_IMAGE_UNIFORMS_NV 0x8E62
+#define GL_MAX_MESH_UNIFORM_COMPONENTS_NV 0x8E63
+#define GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV 0x8E64
+#define GL_MAX_MESH_ATOMIC_COUNTERS_NV 0x8E65
+#define GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV 0x8E66
+#define GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV 0x8E67
+#define GL_MAX_TASK_UNIFORM_BLOCKS_NV 0x8E68
+#define GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV 0x8E69
+#define GL_MAX_TASK_IMAGE_UNIFORMS_NV 0x8E6A
+#define GL_MAX_TASK_UNIFORM_COMPONENTS_NV 0x8E6B
+#define GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV 0x8E6C
+#define GL_MAX_TASK_ATOMIC_COUNTERS_NV 0x8E6D
+#define GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV 0x8E6E
+#define GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV 0x8E6F
+#define GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV 0x95A2
+#define GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV 0x95A3
+#define GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV 0x9536
+#define GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV 0x9537
+#define GL_MAX_MESH_OUTPUT_VERTICES_NV 0x9538
+#define GL_MAX_MESH_OUTPUT_PRIMITIVES_NV 0x9539
+#define GL_MAX_TASK_OUTPUT_COUNT_NV 0x953A
+#define GL_MAX_DRAW_MESH_TASKS_COUNT_NV 0x953D
+#define GL_MAX_MESH_VIEWS_NV 0x9557
+#define GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV 0x92DF
+#define GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV 0x9543
+#define GL_MAX_MESH_WORK_GROUP_SIZE_NV 0x953B
+#define GL_MAX_TASK_WORK_GROUP_SIZE_NV 0x953C
+#define GL_MESH_WORK_GROUP_SIZE_NV 0x953E
+#define GL_TASK_WORK_GROUP_SIZE_NV 0x953F
+#define GL_MESH_VERTICES_OUT_NV 0x9579
+#define GL_MESH_PRIMITIVES_OUT_NV 0x957A
+#define GL_MESH_OUTPUT_TYPE_NV 0x957B
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV 0x959C
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV 0x959D
+#define GL_REFERENCED_BY_MESH_SHADER_NV 0x95A0
+#define GL_REFERENCED_BY_TASK_SHADER_NV 0x95A1
+#define GL_MESH_SHADER_BIT_NV 0x00000040
+#define GL_TASK_SHADER_BIT_NV 0x00000080
+#define GL_MESH_SUBROUTINE_NV 0x957C
+#define GL_TASK_SUBROUTINE_NV 0x957D
+#define GL_MESH_SUBROUTINE_UNIFORM_NV 0x957E
+#define GL_TASK_SUBROUTINE_UNIFORM_NV 0x957F
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV 0x959E
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV 0x959F
+typedef void (APIENTRYP PFNGLDRAWMESHTASKSNVPROC) (GLuint first, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect);
+typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTCOUNTNVPROC) (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawMeshTasksNV (GLuint first, GLuint count);
+GLAPI void APIENTRY glDrawMeshTasksIndirectNV (GLintptr indirect);
+GLAPI void APIENTRY glMultiDrawMeshTasksIndirectNV (GLintptr indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawMeshTasksIndirectCountNV (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#endif
+#endif /* GL_NV_mesh_shader */
+
+#ifndef GL_NV_path_rendering
+#define GL_NV_path_rendering 1
+#define GL_PATH_FORMAT_SVG_NV 0x9070
+#define GL_PATH_FORMAT_PS_NV 0x9071
+#define GL_STANDARD_FONT_NAME_NV 0x9072
+#define GL_SYSTEM_FONT_NAME_NV 0x9073
+#define GL_FILE_NAME_NV 0x9074
+#define GL_PATH_STROKE_WIDTH_NV 0x9075
+#define GL_PATH_END_CAPS_NV 0x9076
+#define GL_PATH_INITIAL_END_CAP_NV 0x9077
+#define GL_PATH_TERMINAL_END_CAP_NV 0x9078
+#define GL_PATH_JOIN_STYLE_NV 0x9079
+#define GL_PATH_MITER_LIMIT_NV 0x907A
+#define GL_PATH_DASH_CAPS_NV 0x907B
+#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C
+#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D
+#define GL_PATH_DASH_OFFSET_NV 0x907E
+#define GL_PATH_CLIENT_LENGTH_NV 0x907F
+#define GL_PATH_FILL_MODE_NV 0x9080
+#define GL_PATH_FILL_MASK_NV 0x9081
+#define GL_PATH_FILL_COVER_MODE_NV 0x9082
+#define GL_PATH_STROKE_COVER_MODE_NV 0x9083
+#define GL_PATH_STROKE_MASK_NV 0x9084
+#define GL_COUNT_UP_NV 0x9088
+#define GL_COUNT_DOWN_NV 0x9089
+#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A
+#define GL_CONVEX_HULL_NV 0x908B
+#define GL_BOUNDING_BOX_NV 0x908D
+#define GL_TRANSLATE_X_NV 0x908E
+#define GL_TRANSLATE_Y_NV 0x908F
+#define GL_TRANSLATE_2D_NV 0x9090
+#define GL_TRANSLATE_3D_NV 0x9091
+#define GL_AFFINE_2D_NV 0x9092
+#define GL_AFFINE_3D_NV 0x9094
+#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096
+#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098
+#define GL_UTF8_NV 0x909A
+#define GL_UTF16_NV 0x909B
+#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
+#define GL_PATH_COMMAND_COUNT_NV 0x909D
+#define GL_PATH_COORD_COUNT_NV 0x909E
+#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F
+#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0
+#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1
+#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2
+#define GL_SQUARE_NV 0x90A3
+#define GL_ROUND_NV 0x90A4
+#define GL_TRIANGULAR_NV 0x90A5
+#define GL_BEVEL_NV 0x90A6
+#define GL_MITER_REVERT_NV 0x90A7
+#define GL_MITER_TRUNCATE_NV 0x90A8
+#define GL_SKIP_MISSING_GLYPH_NV 0x90A9
+#define GL_USE_MISSING_GLYPH_NV 0x90AA
+#define GL_PATH_ERROR_POSITION_NV 0x90AB
+#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD
+#define GL_ADJACENT_PAIRS_NV 0x90AE
+#define GL_FIRST_TO_REST_NV 0x90AF
+#define GL_PATH_GEN_MODE_NV 0x90B0
+#define GL_PATH_GEN_COEFF_NV 0x90B1
+#define GL_PATH_GEN_COMPONENTS_NV 0x90B3
+#define GL_PATH_STENCIL_FUNC_NV 0x90B7
+#define GL_PATH_STENCIL_REF_NV 0x90B8
+#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9
+#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
+#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
+#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF
+#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4
+#define GL_MOVE_TO_RESETS_NV 0x90B5
+#define GL_MOVE_TO_CONTINUES_NV 0x90B6
+#define GL_CLOSE_PATH_NV 0x00
+#define GL_MOVE_TO_NV 0x02
+#define GL_RELATIVE_MOVE_TO_NV 0x03
+#define GL_LINE_TO_NV 0x04
+#define GL_RELATIVE_LINE_TO_NV 0x05
+#define GL_HORIZONTAL_LINE_TO_NV 0x06
+#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
+#define GL_VERTICAL_LINE_TO_NV 0x08
+#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09
+#define GL_QUADRATIC_CURVE_TO_NV 0x0A
+#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
+#define GL_CUBIC_CURVE_TO_NV 0x0C
+#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D
+#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E
+#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
+#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10
+#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
+#define GL_SMALL_CCW_ARC_TO_NV 0x12
+#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13
+#define GL_SMALL_CW_ARC_TO_NV 0x14
+#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15
+#define GL_LARGE_CCW_ARC_TO_NV 0x16
+#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17
+#define GL_LARGE_CW_ARC_TO_NV 0x18
+#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19
+#define GL_RESTART_PATH_NV 0xF0
+#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2
+#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4
+#define GL_RECT_NV 0xF6
+#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8
+#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA
+#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC
+#define GL_ARC_TO_NV 0xFE
+#define GL_RELATIVE_ARC_TO_NV 0xFF
+#define GL_BOLD_BIT_NV 0x01
+#define GL_ITALIC_BIT_NV 0x02
+#define GL_GLYPH_WIDTH_BIT_NV 0x01
+#define GL_GLYPH_HEIGHT_BIT_NV 0x02
+#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
+#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
+#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
+#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
+#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
+#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
+#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100
+#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000
+#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000
+#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000
+#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000
+#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000
+#define GL_FONT_ASCENDER_BIT_NV 0x00200000
+#define GL_FONT_DESCENDER_BIT_NV 0x00400000
+#define GL_FONT_HEIGHT_BIT_NV 0x00800000
+#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000
+#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
+#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
+#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
+#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000
+#define GL_ROUNDED_RECT_NV 0xE8
+#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9
+#define GL_ROUNDED_RECT2_NV 0xEA
+#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB
+#define GL_ROUNDED_RECT4_NV 0xEC
+#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED
+#define GL_ROUNDED_RECT8_NV 0xEE
+#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF
+#define GL_RELATIVE_RECT_NV 0xF7
+#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368
+#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369
+#define GL_FONT_UNAVAILABLE_NV 0x936A
+#define GL_FONT_UNINTELLIGIBLE_NV 0x936B
+#define GL_CONIC_CURVE_TO_NV 0x1A
+#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B
+#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000
+#define GL_STANDARD_FONT_FORMAT_NV 0x936C
+#define GL_PATH_PROJECTION_NV 0x1701
+#define GL_PATH_MODELVIEW_NV 0x1700
+#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3
+#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6
+#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36
+#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3
+#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4
+#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7
+#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38
+#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4
+#define GL_FRAGMENT_INPUT_NV 0x936D
+typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range);
+typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range);
+typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path);
+typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString);
+typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath);
+typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value);
+typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units);
+typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func);
+typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value);
+typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands);
+typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords);
+typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray);
+typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y);
+typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments);
+typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount);
+typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef GLenum (APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range);
+GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range);
+GLAPI GLboolean APIENTRY glIsPathNV (GLuint path);
+GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString);
+GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath);
+GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value);
+GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value);
+GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value);
+GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value);
+GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units);
+GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask);
+GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask);
+GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func);
+GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode);
+GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode);
+GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value);
+GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands);
+GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords);
+GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray);
+GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y);
+GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments);
+GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+GLAPI void APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
+GLAPI void APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
+GLAPI void APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI GLenum APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount);
+GLAPI GLenum APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI GLenum APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
+GLAPI void APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params);
+#endif
+#endif /* GL_NV_path_rendering */
+
+#ifndef GL_NV_path_rendering_shared_edge
+#define GL_NV_path_rendering_shared_edge 1
+#define GL_SHARED_EDGE_NV 0xC0
+#endif /* GL_NV_path_rendering_shared_edge */
+
+#ifndef GL_NV_primitive_shading_rate
+#define GL_NV_primitive_shading_rate 1
+#define GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV 0x95B1
+#define GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV 0x95B2
+#endif /* GL_NV_primitive_shading_rate */
+
+#ifndef GL_NV_representative_fragment_test
+#define GL_NV_representative_fragment_test 1
+#define GL_REPRESENTATIVE_FRAGMENT_TEST_NV 0x937F
+#endif /* GL_NV_representative_fragment_test */
+
+#ifndef GL_NV_sample_locations
+#define GL_NV_sample_locations 1
+#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340
+#define GL_SAMPLE_LOCATION_NV 0x8E50
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341
+#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342
+#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343
+typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glResolveDepthValuesNV (void);
+#endif
+#endif /* GL_NV_sample_locations */
+
+#ifndef GL_NV_sample_mask_override_coverage
+#define GL_NV_sample_mask_override_coverage 1
+#endif /* GL_NV_sample_mask_override_coverage */
+
+#ifndef GL_NV_scissor_exclusive
+#define GL_NV_scissor_exclusive 1
+#define GL_SCISSOR_TEST_EXCLUSIVE_NV 0x9555
+#define GL_SCISSOR_BOX_EXCLUSIVE_NV 0x9556
+typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVENVPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVEARRAYVNVPROC) (GLuint first, GLsizei count, const GLint *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glScissorExclusiveNV (GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glScissorExclusiveArrayvNV (GLuint first, GLsizei count, const GLint *v);
+#endif
+#endif /* GL_NV_scissor_exclusive */
+
+#ifndef GL_NV_shader_atomic_counters
+#define GL_NV_shader_atomic_counters 1
+#endif /* GL_NV_shader_atomic_counters */
+
+#ifndef GL_NV_shader_atomic_float
+#define GL_NV_shader_atomic_float 1
+#endif /* GL_NV_shader_atomic_float */
+
+#ifndef GL_NV_shader_atomic_float64
+#define GL_NV_shader_atomic_float64 1
+#endif /* GL_NV_shader_atomic_float64 */
+
+#ifndef GL_NV_shader_atomic_fp16_vector
+#define GL_NV_shader_atomic_fp16_vector 1
+#endif /* GL_NV_shader_atomic_fp16_vector */
+
+#ifndef GL_NV_shader_atomic_int64
+#define GL_NV_shader_atomic_int64 1
+#endif /* GL_NV_shader_atomic_int64 */
+
+#ifndef GL_NV_shader_buffer_load
+#define GL_NV_shader_buffer_load 1
+#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D
+#define GL_GPU_ADDRESS_NV 0x8F34
+#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35
+typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
+typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer);
+typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result);
+typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value);
+typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access);
+GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target);
+GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target);
+GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access);
+GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer);
+GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer);
+GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result);
+GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value);
+GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params);
+GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value);
+GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_NV_shader_buffer_load */
+
+#ifndef GL_NV_shader_buffer_store
+#define GL_NV_shader_buffer_store 1
+#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010
+#endif /* GL_NV_shader_buffer_store */
+
+#ifndef GL_NV_shader_subgroup_partitioned
+#define GL_NV_shader_subgroup_partitioned 1
+#define GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV 0x00000100
+#endif /* GL_NV_shader_subgroup_partitioned */
+
+#ifndef GL_NV_shader_texture_footprint
+#define GL_NV_shader_texture_footprint 1
+#endif /* GL_NV_shader_texture_footprint */
+
+#ifndef GL_NV_shader_thread_group
+#define GL_NV_shader_thread_group 1
+#define GL_WARP_SIZE_NV 0x9339
+#define GL_WARPS_PER_SM_NV 0x933A
+#define GL_SM_COUNT_NV 0x933B
+#endif /* GL_NV_shader_thread_group */
+
+#ifndef GL_NV_shader_thread_shuffle
+#define GL_NV_shader_thread_shuffle 1
+#endif /* GL_NV_shader_thread_shuffle */
+
+#ifndef GL_NV_shading_rate_image
+#define GL_NV_shading_rate_image 1
+#define GL_SHADING_RATE_IMAGE_NV 0x9563
+#define GL_SHADING_RATE_NO_INVOCATIONS_NV 0x9564
+#define GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV 0x9565
+#define GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV 0x9566
+#define GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV 0x9567
+#define GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV 0x9568
+#define GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV 0x9569
+#define GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV 0x956A
+#define GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV 0x956B
+#define GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV 0x956C
+#define GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV 0x956D
+#define GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV 0x956E
+#define GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV 0x956F
+#define GL_SHADING_RATE_IMAGE_BINDING_NV 0x955B
+#define GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV 0x955C
+#define GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV 0x955D
+#define GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV 0x955E
+#define GL_MAX_COARSE_FRAGMENT_SAMPLES_NV 0x955F
+#define GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV 0x95AE
+#define GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV 0x95AF
+#define GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV 0x95B0
+typedef void (APIENTRYP PFNGLBINDSHADINGRATEIMAGENVPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLGETSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint entry, GLenum *rate);
+typedef void (APIENTRYP PFNGLGETSHADINGRATESAMPLELOCATIONIVNVPROC) (GLenum rate, GLuint samples, GLuint index, GLint *location);
+typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEBARRIERNVPROC) (GLboolean synchronize);
+typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates);
+typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERNVPROC) (GLenum order);
+typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC) (GLenum rate, GLuint samples, const GLint *locations);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindShadingRateImageNV (GLuint texture);
+GLAPI void APIENTRY glGetShadingRateImagePaletteNV (GLuint viewport, GLuint entry, GLenum *rate);
+GLAPI void APIENTRY glGetShadingRateSampleLocationivNV (GLenum rate, GLuint samples, GLuint index, GLint *location);
+GLAPI void APIENTRY glShadingRateImageBarrierNV (GLboolean synchronize);
+GLAPI void APIENTRY glShadingRateImagePaletteNV (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates);
+GLAPI void APIENTRY glShadingRateSampleOrderNV (GLenum order);
+GLAPI void APIENTRY glShadingRateSampleOrderCustomNV (GLenum rate, GLuint samples, const GLint *locations);
+#endif
+#endif /* GL_NV_shading_rate_image */
+
+#ifndef GL_NV_stereo_view_rendering
+#define GL_NV_stereo_view_rendering 1
+#endif /* GL_NV_stereo_view_rendering */
+
+#ifndef GL_NV_texture_barrier
+#define GL_NV_texture_barrier 1
+typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureBarrierNV (void);
+#endif
+#endif /* GL_NV_texture_barrier */
+
+#ifndef GL_NV_texture_rectangle_compressed
+#define GL_NV_texture_rectangle_compressed 1
+#endif /* GL_NV_texture_rectangle_compressed */
+
+#ifndef GL_NV_uniform_buffer_unified_memory
+#define GL_NV_uniform_buffer_unified_memory 1
+#define GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E
+#define GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F
+#define GL_UNIFORM_BUFFER_LENGTH_NV 0x9370
+#endif /* GL_NV_uniform_buffer_unified_memory */
+
+#ifndef GL_NV_vertex_attrib_integer_64bit
+#define GL_NV_vertex_attrib_integer_64bit 1
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x);
+GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x);
+GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params);
+GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
+#endif
+#endif /* GL_NV_vertex_attrib_integer_64bit */
+
+#ifndef GL_NV_vertex_buffer_unified_memory
+#define GL_NV_vertex_buffer_unified_memory 1
+#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E
+#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F
+#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20
+#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21
+#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22
+#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23
+#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24
+#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25
+#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26
+#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27
+#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28
+#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29
+#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A
+#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B
+#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C
+#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D
+#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E
+#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F
+#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30
+#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31
+#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32
+#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33
+#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40
+#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41
+#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42
+typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
+GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride);
+GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result);
+#endif
+#endif /* GL_NV_vertex_buffer_unified_memory */
+
+#ifndef GL_NV_viewport_array2
+#define GL_NV_viewport_array2 1
+#endif /* GL_NV_viewport_array2 */
+
+#ifndef GL_NV_viewport_swizzle
+#define GL_NV_viewport_swizzle 1
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357
+#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358
+#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359
+#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A
+#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B
+typedef void (APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glViewportSwizzleNV (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
+#endif
+#endif /* GL_NV_viewport_swizzle */
+
+#ifndef GL_OVR_multiview
+#define GL_OVR_multiview 1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632
+#define GL_MAX_VIEWS_OVR 0x9631
+#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
+#endif
+#endif /* GL_OVR_multiview */
+
+#ifndef GL_OVR_multiview2
+#define GL_OVR_multiview2 1
+#endif /* GL_OVR_multiview2 */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/third_party/openGLES/GL/glext.h b/third_party/openGLES/GL/glext.h
new file mode 100644
index 0000000000000000000000000000000000000000..8bacaf9906a83b6e07e638d7ac33281a3f63fc1f
--- /dev/null
+++ b/third_party/openGLES/GL/glext.h
@@ -0,0 +1,12918 @@
+#ifndef __gl_glext_h_
+#define __gl_glext_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright 2013-2020 The Khronos Group Inc.
+** SPDX-License-Identifier: MIT
+**
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+** https://github.com/KhronosGroup/OpenGL-Registry
+*/
+
+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+
+#define GL_GLEXT_VERSION 20230309
+
+#include
+
+/* Generated C header for:
+ * API: gl
+ * Profile: compatibility
+ * Versions considered: .*
+ * Versions emitted: 1\.[2-9]|[234]\.[0-9]
+ * Default extensions included: gl
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef GL_VERSION_1_2
+#define GL_VERSION_1_2 1
+#define GL_UNSIGNED_BYTE_3_3_2 0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
+#define GL_UNSIGNED_INT_8_8_8_8 0x8035
+#define GL_UNSIGNED_INT_10_10_10_2 0x8036
+#define GL_TEXTURE_BINDING_3D 0x806A
+#define GL_PACK_SKIP_IMAGES 0x806B
+#define GL_PACK_IMAGE_HEIGHT 0x806C
+#define GL_UNPACK_SKIP_IMAGES 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT 0x806E
+#define GL_TEXTURE_3D 0x806F
+#define GL_PROXY_TEXTURE_3D 0x8070
+#define GL_TEXTURE_DEPTH 0x8071
+#define GL_TEXTURE_WRAP_R 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE 0x8073
+#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
+#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
+#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
+#define GL_BGR 0x80E0
+#define GL_BGRA 0x80E1
+#define GL_MAX_ELEMENTS_VERTICES 0x80E8
+#define GL_MAX_ELEMENTS_INDICES 0x80E9
+#define GL_CLAMP_TO_EDGE 0x812F
+#define GL_TEXTURE_MIN_LOD 0x813A
+#define GL_TEXTURE_MAX_LOD 0x813B
+#define GL_TEXTURE_BASE_LEVEL 0x813C
+#define GL_TEXTURE_MAX_LEVEL 0x813D
+#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
+#define GL_RESCALE_NORMAL 0x803A
+#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
+#define GL_SINGLE_COLOR 0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_VERSION_1_2 */
+
+#ifndef GL_VERSION_1_3
+#define GL_VERSION_1_3 1
+#define GL_TEXTURE0 0x84C0
+#define GL_TEXTURE1 0x84C1
+#define GL_TEXTURE2 0x84C2
+#define GL_TEXTURE3 0x84C3
+#define GL_TEXTURE4 0x84C4
+#define GL_TEXTURE5 0x84C5
+#define GL_TEXTURE6 0x84C6
+#define GL_TEXTURE7 0x84C7
+#define GL_TEXTURE8 0x84C8
+#define GL_TEXTURE9 0x84C9
+#define GL_TEXTURE10 0x84CA
+#define GL_TEXTURE11 0x84CB
+#define GL_TEXTURE12 0x84CC
+#define GL_TEXTURE13 0x84CD
+#define GL_TEXTURE14 0x84CE
+#define GL_TEXTURE15 0x84CF
+#define GL_TEXTURE16 0x84D0
+#define GL_TEXTURE17 0x84D1
+#define GL_TEXTURE18 0x84D2
+#define GL_TEXTURE19 0x84D3
+#define GL_TEXTURE20 0x84D4
+#define GL_TEXTURE21 0x84D5
+#define GL_TEXTURE22 0x84D6
+#define GL_TEXTURE23 0x84D7
+#define GL_TEXTURE24 0x84D8
+#define GL_TEXTURE25 0x84D9
+#define GL_TEXTURE26 0x84DA
+#define GL_TEXTURE27 0x84DB
+#define GL_TEXTURE28 0x84DC
+#define GL_TEXTURE29 0x84DD
+#define GL_TEXTURE30 0x84DE
+#define GL_TEXTURE31 0x84DF
+#define GL_ACTIVE_TEXTURE 0x84E0
+#define GL_MULTISAMPLE 0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
+#define GL_SAMPLE_COVERAGE 0x80A0
+#define GL_SAMPLE_BUFFERS 0x80A8
+#define GL_SAMPLES 0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
+#define GL_TEXTURE_CUBE_MAP 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
+#define GL_COMPRESSED_RGB 0x84ED
+#define GL_COMPRESSED_RGBA 0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
+#define GL_TEXTURE_COMPRESSED 0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
+#define GL_CLAMP_TO_BORDER 0x812D
+#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
+#define GL_MAX_TEXTURE_UNITS 0x84E2
+#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
+#define GL_MULTISAMPLE_BIT 0x20000000
+#define GL_NORMAL_MAP 0x8511
+#define GL_REFLECTION_MAP 0x8512
+#define GL_COMPRESSED_ALPHA 0x84E9
+#define GL_COMPRESSED_LUMINANCE 0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
+#define GL_COMPRESSED_INTENSITY 0x84EC
+#define GL_COMBINE 0x8570
+#define GL_COMBINE_RGB 0x8571
+#define GL_COMBINE_ALPHA 0x8572
+#define GL_SOURCE0_RGB 0x8580
+#define GL_SOURCE1_RGB 0x8581
+#define GL_SOURCE2_RGB 0x8582
+#define GL_SOURCE0_ALPHA 0x8588
+#define GL_SOURCE1_ALPHA 0x8589
+#define GL_SOURCE2_ALPHA 0x858A
+#define GL_OPERAND0_RGB 0x8590
+#define GL_OPERAND1_RGB 0x8591
+#define GL_OPERAND2_RGB 0x8592
+#define GL_OPERAND0_ALPHA 0x8598
+#define GL_OPERAND1_ALPHA 0x8599
+#define GL_OPERAND2_ALPHA 0x859A
+#define GL_RGB_SCALE 0x8573
+#define GL_ADD_SIGNED 0x8574
+#define GL_INTERPOLATE 0x8575
+#define GL_SUBTRACT 0x84E7
+#define GL_CONSTANT 0x8576
+#define GL_PRIMARY_COLOR 0x8577
+#define GL_PREVIOUS 0x8578
+#define GL_DOT3_RGB 0x86AE
+#define GL_DOT3_RGBA 0x86AF
+typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveTexture (GLenum texture);
+GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
+GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
+GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
+GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
+GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
+GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
+GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
+GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
+GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
+GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
+GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
+GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
+GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m);
+GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m);
+GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m);
+GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m);
+#endif
+#endif /* GL_VERSION_1_3 */
+
+#ifndef GL_VERSION_1_4
+#define GL_VERSION_1_4 1
+#define GL_BLEND_DST_RGB 0x80C8
+#define GL_BLEND_SRC_RGB 0x80C9
+#define GL_BLEND_DST_ALPHA 0x80CA
+#define GL_BLEND_SRC_ALPHA 0x80CB
+#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
+#define GL_DEPTH_COMPONENT16 0x81A5
+#define GL_DEPTH_COMPONENT24 0x81A6
+#define GL_DEPTH_COMPONENT32 0x81A7
+#define GL_MIRRORED_REPEAT 0x8370
+#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
+#define GL_TEXTURE_LOD_BIAS 0x8501
+#define GL_INCR_WRAP 0x8507
+#define GL_DECR_WRAP 0x8508
+#define GL_TEXTURE_DEPTH_SIZE 0x884A
+#define GL_TEXTURE_COMPARE_MODE 0x884C
+#define GL_TEXTURE_COMPARE_FUNC 0x884D
+#define GL_POINT_SIZE_MIN 0x8126
+#define GL_POINT_SIZE_MAX 0x8127
+#define GL_POINT_DISTANCE_ATTENUATION 0x8129
+#define GL_GENERATE_MIPMAP 0x8191
+#define GL_GENERATE_MIPMAP_HINT 0x8192
+#define GL_FOG_COORDINATE_SOURCE 0x8450
+#define GL_FOG_COORDINATE 0x8451
+#define GL_FRAGMENT_DEPTH 0x8452
+#define GL_CURRENT_FOG_COORDINATE 0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
+#define GL_FOG_COORDINATE_ARRAY 0x8457
+#define GL_COLOR_SUM 0x8458
+#define GL_CURRENT_SECONDARY_COLOR 0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
+#define GL_SECONDARY_COLOR_ARRAY 0x845E
+#define GL_TEXTURE_FILTER_CONTROL 0x8500
+#define GL_DEPTH_TEXTURE_MODE 0x884B
+#define GL_COMPARE_R_TO_TEXTURE 0x884E
+#define GL_BLEND_COLOR 0x8005
+#define GL_BLEND_EQUATION 0x8009
+#define GL_CONSTANT_COLOR 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
+#define GL_CONSTANT_ALPHA 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
+#define GL_FUNC_ADD 0x8006
+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
+#define GL_FUNC_SUBTRACT 0x800A
+#define GL_MIN 0x8007
+#define GL_MAX 0x8008
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
+typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
+GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
+GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
+GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glFogCoordf (GLfloat coord);
+GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
+GLAPI void APIENTRY glFogCoordd (GLdouble coord);
+GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord);
+GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
+GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v);
+GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
+GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v);
+GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
+GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v);
+GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
+GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v);
+GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
+GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v);
+GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
+GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v);
+GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
+GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v);
+GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
+GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v);
+GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
+GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
+GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
+GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
+GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GLAPI void APIENTRY glBlendEquation (GLenum mode);
+#endif
+#endif /* GL_VERSION_1_4 */
+
+#ifndef GL_VERSION_1_5
+#define GL_VERSION_1_5 1
+typedef khronos_ssize_t GLsizeiptr;
+typedef khronos_intptr_t GLintptr;
+#define GL_BUFFER_SIZE 0x8764
+#define GL_BUFFER_USAGE 0x8765
+#define GL_QUERY_COUNTER_BITS 0x8864
+#define GL_CURRENT_QUERY 0x8865
+#define GL_QUERY_RESULT 0x8866
+#define GL_QUERY_RESULT_AVAILABLE 0x8867
+#define GL_ARRAY_BUFFER 0x8892
+#define GL_ELEMENT_ARRAY_BUFFER 0x8893
+#define GL_ARRAY_BUFFER_BINDING 0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
+#define GL_READ_ONLY 0x88B8
+#define GL_WRITE_ONLY 0x88B9
+#define GL_READ_WRITE 0x88BA
+#define GL_BUFFER_ACCESS 0x88BB
+#define GL_BUFFER_MAPPED 0x88BC
+#define GL_BUFFER_MAP_POINTER 0x88BD
+#define GL_STREAM_DRAW 0x88E0
+#define GL_STREAM_READ 0x88E1
+#define GL_STREAM_COPY 0x88E2
+#define GL_STATIC_DRAW 0x88E4
+#define GL_STATIC_READ 0x88E5
+#define GL_STATIC_COPY 0x88E6
+#define GL_DYNAMIC_DRAW 0x88E8
+#define GL_DYNAMIC_READ 0x88E9
+#define GL_DYNAMIC_COPY 0x88EA
+#define GL_SAMPLES_PASSED 0x8914
+#define GL_SRC1_ALPHA 0x8589
+#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
+#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
+#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
+#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
+#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
+#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
+#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
+#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
+#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
+#define GL_FOG_COORD_SRC 0x8450
+#define GL_FOG_COORD 0x8451
+#define GL_CURRENT_FOG_COORD 0x8453
+#define GL_FOG_COORD_ARRAY_TYPE 0x8454
+#define GL_FOG_COORD_ARRAY_STRIDE 0x8455
+#define GL_FOG_COORD_ARRAY_POINTER 0x8456
+#define GL_FOG_COORD_ARRAY 0x8457
+#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
+#define GL_SRC0_RGB 0x8580
+#define GL_SRC1_RGB 0x8581
+#define GL_SRC2_RGB 0x8582
+#define GL_SRC0_ALPHA 0x8588
+#define GL_SRC2_ALPHA 0x858A
+typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
+typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
+typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
+GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
+GLAPI void APIENTRY glEndQuery (GLenum target);
+GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
+GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
+GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
+GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
+GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
+GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_VERSION_1_5 */
+
+#ifndef GL_VERSION_2_0
+#define GL_VERSION_2_0 1
+typedef char GLchar;
+#define GL_BLEND_EQUATION_RGB 0x8009
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
+#define GL_CURRENT_VERTEX_ATTRIB 0x8626
+#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
+#define GL_STENCIL_BACK_FUNC 0x8800
+#define GL_STENCIL_BACK_FAIL 0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
+#define GL_MAX_DRAW_BUFFERS 0x8824
+#define GL_DRAW_BUFFER0 0x8825
+#define GL_DRAW_BUFFER1 0x8826
+#define GL_DRAW_BUFFER2 0x8827
+#define GL_DRAW_BUFFER3 0x8828
+#define GL_DRAW_BUFFER4 0x8829
+#define GL_DRAW_BUFFER5 0x882A
+#define GL_DRAW_BUFFER6 0x882B
+#define GL_DRAW_BUFFER7 0x882C
+#define GL_DRAW_BUFFER8 0x882D
+#define GL_DRAW_BUFFER9 0x882E
+#define GL_DRAW_BUFFER10 0x882F
+#define GL_DRAW_BUFFER11 0x8830
+#define GL_DRAW_BUFFER12 0x8831
+#define GL_DRAW_BUFFER13 0x8832
+#define GL_DRAW_BUFFER14 0x8833
+#define GL_DRAW_BUFFER15 0x8834
+#define GL_BLEND_EQUATION_ALPHA 0x883D
+#define GL_MAX_VERTEX_ATTRIBS 0x8869
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
+#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
+#define GL_FRAGMENT_SHADER 0x8B30
+#define GL_VERTEX_SHADER 0x8B31
+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
+#define GL_MAX_VARYING_FLOATS 0x8B4B
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
+#define GL_SHADER_TYPE 0x8B4F
+#define GL_FLOAT_VEC2 0x8B50
+#define GL_FLOAT_VEC3 0x8B51
+#define GL_FLOAT_VEC4 0x8B52
+#define GL_INT_VEC2 0x8B53
+#define GL_INT_VEC3 0x8B54
+#define GL_INT_VEC4 0x8B55
+#define GL_BOOL 0x8B56
+#define GL_BOOL_VEC2 0x8B57
+#define GL_BOOL_VEC3 0x8B58
+#define GL_BOOL_VEC4 0x8B59
+#define GL_FLOAT_MAT2 0x8B5A
+#define GL_FLOAT_MAT3 0x8B5B
+#define GL_FLOAT_MAT4 0x8B5C
+#define GL_SAMPLER_1D 0x8B5D
+#define GL_SAMPLER_2D 0x8B5E
+#define GL_SAMPLER_3D 0x8B5F
+#define GL_SAMPLER_CUBE 0x8B60
+#define GL_SAMPLER_1D_SHADOW 0x8B61
+#define GL_SAMPLER_2D_SHADOW 0x8B62
+#define GL_DELETE_STATUS 0x8B80
+#define GL_COMPILE_STATUS 0x8B81
+#define GL_LINK_STATUS 0x8B82
+#define GL_VALIDATE_STATUS 0x8B83
+#define GL_INFO_LOG_LENGTH 0x8B84
+#define GL_ATTACHED_SHADERS 0x8B85
+#define GL_ACTIVE_UNIFORMS 0x8B86
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
+#define GL_SHADER_SOURCE_LENGTH 0x8B88
+#define GL_ACTIVE_ATTRIBUTES 0x8B89
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
+#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
+#define GL_CURRENT_PROGRAM 0x8B8D
+#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
+#define GL_LOWER_LEFT 0x8CA1
+#define GL_UPPER_LEFT 0x8CA2
+#define GL_STENCIL_BACK_REF 0x8CA3
+#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
+#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
+#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
+#define GL_POINT_SPRITE 0x8861
+#define GL_COORD_REPLACE 0x8862
+#define GL_MAX_TEXTURE_COORDS 0x8871
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
+typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
+typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
+typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
+typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
+typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
+typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
+GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
+GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
+GLAPI void APIENTRY glCompileShader (GLuint shader);
+GLAPI GLuint APIENTRY glCreateProgram (void);
+GLAPI GLuint APIENTRY glCreateShader (GLenum type);
+GLAPI void APIENTRY glDeleteProgram (GLuint program);
+GLAPI void APIENTRY glDeleteShader (GLuint shader);
+GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
+GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
+GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
+GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
+GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
+GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
+GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
+GLAPI void APIENTRY glLinkProgram (GLuint program);
+GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+GLAPI void APIENTRY glUseProgram (GLuint program);
+GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
+GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
+GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glValidateProgram (GLuint program);
+GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_VERSION_2_0 */
+
+#ifndef GL_VERSION_2_1
+#define GL_VERSION_2_1 1
+#define GL_PIXEL_PACK_BUFFER 0x88EB
+#define GL_PIXEL_UNPACK_BUFFER 0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
+#define GL_FLOAT_MAT2x3 0x8B65
+#define GL_FLOAT_MAT2x4 0x8B66
+#define GL_FLOAT_MAT3x2 0x8B67
+#define GL_FLOAT_MAT3x4 0x8B68
+#define GL_FLOAT_MAT4x2 0x8B69
+#define GL_FLOAT_MAT4x3 0x8B6A
+#define GL_SRGB 0x8C40
+#define GL_SRGB8 0x8C41
+#define GL_SRGB_ALPHA 0x8C42
+#define GL_SRGB8_ALPHA8 0x8C43
+#define GL_COMPRESSED_SRGB 0x8C48
+#define GL_COMPRESSED_SRGB_ALPHA 0x8C49
+#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
+#define GL_SLUMINANCE_ALPHA 0x8C44
+#define GL_SLUMINANCE8_ALPHA8 0x8C45
+#define GL_SLUMINANCE 0x8C46
+#define GL_SLUMINANCE8 0x8C47
+#define GL_COMPRESSED_SLUMINANCE 0x8C4A
+#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#endif
+#endif /* GL_VERSION_2_1 */
+
+#ifndef GL_VERSION_3_0
+#define GL_VERSION_3_0 1
+typedef khronos_uint16_t GLhalf;
+#define GL_COMPARE_REF_TO_TEXTURE 0x884E
+#define GL_CLIP_DISTANCE0 0x3000
+#define GL_CLIP_DISTANCE1 0x3001
+#define GL_CLIP_DISTANCE2 0x3002
+#define GL_CLIP_DISTANCE3 0x3003
+#define GL_CLIP_DISTANCE4 0x3004
+#define GL_CLIP_DISTANCE5 0x3005
+#define GL_CLIP_DISTANCE6 0x3006
+#define GL_CLIP_DISTANCE7 0x3007
+#define GL_MAX_CLIP_DISTANCES 0x0D32
+#define GL_MAJOR_VERSION 0x821B
+#define GL_MINOR_VERSION 0x821C
+#define GL_NUM_EXTENSIONS 0x821D
+#define GL_CONTEXT_FLAGS 0x821E
+#define GL_COMPRESSED_RED 0x8225
+#define GL_COMPRESSED_RG 0x8226
+#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
+#define GL_RGBA32F 0x8814
+#define GL_RGB32F 0x8815
+#define GL_RGBA16F 0x881A
+#define GL_RGB16F 0x881B
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
+#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
+#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
+#define GL_CLAMP_READ_COLOR 0x891C
+#define GL_FIXED_ONLY 0x891D
+#define GL_MAX_VARYING_COMPONENTS 0x8B4B
+#define GL_TEXTURE_1D_ARRAY 0x8C18
+#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
+#define GL_TEXTURE_2D_ARRAY 0x8C1A
+#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
+#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
+#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
+#define GL_R11F_G11F_B10F 0x8C3A
+#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
+#define GL_RGB9_E5 0x8C3D
+#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
+#define GL_TEXTURE_SHARED_SIZE 0x8C3F
+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
+#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
+#define GL_PRIMITIVES_GENERATED 0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
+#define GL_RASTERIZER_DISCARD 0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
+#define GL_INTERLEAVED_ATTRIBS 0x8C8C
+#define GL_SEPARATE_ATTRIBS 0x8C8D
+#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
+#define GL_RGBA32UI 0x8D70
+#define GL_RGB32UI 0x8D71
+#define GL_RGBA16UI 0x8D76
+#define GL_RGB16UI 0x8D77
+#define GL_RGBA8UI 0x8D7C
+#define GL_RGB8UI 0x8D7D
+#define GL_RGBA32I 0x8D82
+#define GL_RGB32I 0x8D83
+#define GL_RGBA16I 0x8D88
+#define GL_RGB16I 0x8D89
+#define GL_RGBA8I 0x8D8E
+#define GL_RGB8I 0x8D8F
+#define GL_RED_INTEGER 0x8D94
+#define GL_GREEN_INTEGER 0x8D95
+#define GL_BLUE_INTEGER 0x8D96
+#define GL_RGB_INTEGER 0x8D98
+#define GL_RGBA_INTEGER 0x8D99
+#define GL_BGR_INTEGER 0x8D9A
+#define GL_BGRA_INTEGER 0x8D9B
+#define GL_SAMPLER_1D_ARRAY 0x8DC0
+#define GL_SAMPLER_2D_ARRAY 0x8DC1
+#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
+#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
+#define GL_SAMPLER_CUBE_SHADOW 0x8DC5
+#define GL_UNSIGNED_INT_VEC2 0x8DC6
+#define GL_UNSIGNED_INT_VEC3 0x8DC7
+#define GL_UNSIGNED_INT_VEC4 0x8DC8
+#define GL_INT_SAMPLER_1D 0x8DC9
+#define GL_INT_SAMPLER_2D 0x8DCA
+#define GL_INT_SAMPLER_3D 0x8DCB
+#define GL_INT_SAMPLER_CUBE 0x8DCC
+#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
+#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
+#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
+#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
+#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
+#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
+#define GL_QUERY_WAIT 0x8E13
+#define GL_QUERY_NO_WAIT 0x8E14
+#define GL_QUERY_BY_REGION_WAIT 0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
+#define GL_BUFFER_ACCESS_FLAGS 0x911F
+#define GL_BUFFER_MAP_LENGTH 0x9120
+#define GL_BUFFER_MAP_OFFSET 0x9121
+#define GL_DEPTH_COMPONENT32F 0x8CAC
+#define GL_DEPTH32F_STENCIL8 0x8CAD
+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
+#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
+#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
+#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
+#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
+#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
+#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
+#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
+#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
+#define GL_FRAMEBUFFER_DEFAULT 0x8218
+#define GL_FRAMEBUFFER_UNDEFINED 0x8219
+#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
+#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
+#define GL_DEPTH_STENCIL 0x84F9
+#define GL_UNSIGNED_INT_24_8 0x84FA
+#define GL_DEPTH24_STENCIL8 0x88F0
+#define GL_TEXTURE_STENCIL_SIZE 0x88F1
+#define GL_TEXTURE_RED_TYPE 0x8C10
+#define GL_TEXTURE_GREEN_TYPE 0x8C11
+#define GL_TEXTURE_BLUE_TYPE 0x8C12
+#define GL_TEXTURE_ALPHA_TYPE 0x8C13
+#define GL_TEXTURE_DEPTH_TYPE 0x8C16
+#define GL_UNSIGNED_NORMALIZED 0x8C17
+#define GL_FRAMEBUFFER_BINDING 0x8CA6
+#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
+#define GL_RENDERBUFFER_BINDING 0x8CA7
+#define GL_READ_FRAMEBUFFER 0x8CA8
+#define GL_DRAW_FRAMEBUFFER 0x8CA9
+#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
+#define GL_RENDERBUFFER_SAMPLES 0x8CAB
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
+#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
+#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
+#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
+#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
+#define GL_COLOR_ATTACHMENT0 0x8CE0
+#define GL_COLOR_ATTACHMENT1 0x8CE1
+#define GL_COLOR_ATTACHMENT2 0x8CE2
+#define GL_COLOR_ATTACHMENT3 0x8CE3
+#define GL_COLOR_ATTACHMENT4 0x8CE4
+#define GL_COLOR_ATTACHMENT5 0x8CE5
+#define GL_COLOR_ATTACHMENT6 0x8CE6
+#define GL_COLOR_ATTACHMENT7 0x8CE7
+#define GL_COLOR_ATTACHMENT8 0x8CE8
+#define GL_COLOR_ATTACHMENT9 0x8CE9
+#define GL_COLOR_ATTACHMENT10 0x8CEA
+#define GL_COLOR_ATTACHMENT11 0x8CEB
+#define GL_COLOR_ATTACHMENT12 0x8CEC
+#define GL_COLOR_ATTACHMENT13 0x8CED
+#define GL_COLOR_ATTACHMENT14 0x8CEE
+#define GL_COLOR_ATTACHMENT15 0x8CEF
+#define GL_COLOR_ATTACHMENT16 0x8CF0
+#define GL_COLOR_ATTACHMENT17 0x8CF1
+#define GL_COLOR_ATTACHMENT18 0x8CF2
+#define GL_COLOR_ATTACHMENT19 0x8CF3
+#define GL_COLOR_ATTACHMENT20 0x8CF4
+#define GL_COLOR_ATTACHMENT21 0x8CF5
+#define GL_COLOR_ATTACHMENT22 0x8CF6
+#define GL_COLOR_ATTACHMENT23 0x8CF7
+#define GL_COLOR_ATTACHMENT24 0x8CF8
+#define GL_COLOR_ATTACHMENT25 0x8CF9
+#define GL_COLOR_ATTACHMENT26 0x8CFA
+#define GL_COLOR_ATTACHMENT27 0x8CFB
+#define GL_COLOR_ATTACHMENT28 0x8CFC
+#define GL_COLOR_ATTACHMENT29 0x8CFD
+#define GL_COLOR_ATTACHMENT30 0x8CFE
+#define GL_COLOR_ATTACHMENT31 0x8CFF
+#define GL_DEPTH_ATTACHMENT 0x8D00
+#define GL_STENCIL_ATTACHMENT 0x8D20
+#define GL_FRAMEBUFFER 0x8D40
+#define GL_RENDERBUFFER 0x8D41
+#define GL_RENDERBUFFER_WIDTH 0x8D42
+#define GL_RENDERBUFFER_HEIGHT 0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
+#define GL_STENCIL_INDEX1 0x8D46
+#define GL_STENCIL_INDEX4 0x8D47
+#define GL_STENCIL_INDEX8 0x8D48
+#define GL_STENCIL_INDEX16 0x8D49
+#define GL_RENDERBUFFER_RED_SIZE 0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
+#define GL_MAX_SAMPLES 0x8D57
+#define GL_INDEX 0x8222
+#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
+#define GL_TEXTURE_INTENSITY_TYPE 0x8C15
+#define GL_FRAMEBUFFER_SRGB 0x8DB9
+#define GL_HALF_FLOAT 0x140B
+#define GL_MAP_READ_BIT 0x0001
+#define GL_MAP_WRITE_BIT 0x0002
+#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
+#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
+#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
+#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
+#define GL_COMPRESSED_RED_RGTC1 0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
+#define GL_COMPRESSED_RG_RGTC2 0x8DBD
+#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
+#define GL_RG 0x8227
+#define GL_RG_INTEGER 0x8228
+#define GL_R8 0x8229
+#define GL_R16 0x822A
+#define GL_RG8 0x822B
+#define GL_RG16 0x822C
+#define GL_R16F 0x822D
+#define GL_R32F 0x822E
+#define GL_RG16F 0x822F
+#define GL_RG32F 0x8230
+#define GL_R8I 0x8231
+#define GL_R8UI 0x8232
+#define GL_R16I 0x8233
+#define GL_R16UI 0x8234
+#define GL_R32I 0x8235
+#define GL_R32UI 0x8236
+#define GL_RG8I 0x8237
+#define GL_RG8UI 0x8238
+#define GL_RG16I 0x8239
+#define GL_RG16UI 0x823A
+#define GL_RG32I 0x823B
+#define GL_RG32UI 0x823C
+#define GL_VERTEX_ARRAY_BINDING 0x85B5
+#define GL_CLAMP_VERTEX_COLOR 0x891A
+#define GL_CLAMP_FRAGMENT_COLOR 0x891B
+#define GL_ALPHA_INTEGER 0x8D97
+typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
+typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
+typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
+typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
+typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
+typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
+typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
+typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
+GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
+GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
+GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
+GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
+GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedback (void);
+GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
+GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
+GLAPI void APIENTRY glEndConditionalRender (void);
+GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
+GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
+GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
+GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
+GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
+GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
+GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
+GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
+GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
+GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
+GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index);
+GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
+GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
+GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
+GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
+GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
+GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
+GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
+GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateMipmap (GLenum target);
+GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glBindVertexArray (GLuint array);
+GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
+GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
+GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
+#endif
+#endif /* GL_VERSION_3_0 */
+
+#ifndef GL_VERSION_3_1
+#define GL_VERSION_3_1 1
+#define GL_SAMPLER_2D_RECT 0x8B63
+#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
+#define GL_SAMPLER_BUFFER 0x8DC2
+#define GL_INT_SAMPLER_2D_RECT 0x8DCD
+#define GL_INT_SAMPLER_BUFFER 0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
+#define GL_TEXTURE_BUFFER 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
+#define GL_TEXTURE_RECTANGLE 0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
+#define GL_R8_SNORM 0x8F94
+#define GL_RG8_SNORM 0x8F95
+#define GL_RGB8_SNORM 0x8F96
+#define GL_RGBA8_SNORM 0x8F97
+#define GL_R16_SNORM 0x8F98
+#define GL_RG16_SNORM 0x8F99
+#define GL_RGB16_SNORM 0x8F9A
+#define GL_RGBA16_SNORM 0x8F9B
+#define GL_SIGNED_NORMALIZED 0x8F9C
+#define GL_PRIMITIVE_RESTART 0x8F9D
+#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
+#define GL_COPY_READ_BUFFER 0x8F36
+#define GL_COPY_WRITE_BUFFER 0x8F37
+#define GL_UNIFORM_BUFFER 0x8A11
+#define GL_UNIFORM_BUFFER_BINDING 0x8A28
+#define GL_UNIFORM_BUFFER_START 0x8A29
+#define GL_UNIFORM_BUFFER_SIZE 0x8A2A
+#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
+#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
+#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
+#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
+#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
+#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
+#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
+#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
+#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
+#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
+#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
+#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
+#define GL_UNIFORM_TYPE 0x8A37
+#define GL_UNIFORM_SIZE 0x8A38
+#define GL_UNIFORM_NAME_LENGTH 0x8A39
+#define GL_UNIFORM_BLOCK_INDEX 0x8A3A
+#define GL_UNIFORM_OFFSET 0x8A3B
+#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
+#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
+#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
+#define GL_UNIFORM_BLOCK_BINDING 0x8A3F
+#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
+#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
+#define GL_INVALID_INDEX 0xFFFFFFFFu
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
+typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
+typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
+GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
+GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
+GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
+GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
+GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
+GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
+#endif
+#endif /* GL_VERSION_3_1 */
+
+#ifndef GL_VERSION_3_2
+#define GL_VERSION_3_2 1
+typedef struct __GLsync *GLsync;
+typedef khronos_uint64_t GLuint64;
+typedef khronos_int64_t GLint64;
+#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
+#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
+#define GL_LINES_ADJACENCY 0x000A
+#define GL_LINE_STRIP_ADJACENCY 0x000B
+#define GL_TRIANGLES_ADJACENCY 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
+#define GL_PROGRAM_POINT_SIZE 0x8642
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
+#define GL_GEOMETRY_SHADER 0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT 0x8916
+#define GL_GEOMETRY_INPUT_TYPE 0x8917
+#define GL_GEOMETRY_OUTPUT_TYPE 0x8918
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
+#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
+#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
+#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
+#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
+#define GL_CONTEXT_PROFILE_MASK 0x9126
+#define GL_DEPTH_CLAMP 0x864F
+#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
+#define GL_FIRST_VERTEX_CONVENTION 0x8E4D
+#define GL_LAST_VERTEX_CONVENTION 0x8E4E
+#define GL_PROVOKING_VERTEX 0x8E4F
+#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
+#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
+#define GL_OBJECT_TYPE 0x9112
+#define GL_SYNC_CONDITION 0x9113
+#define GL_SYNC_STATUS 0x9114
+#define GL_SYNC_FLAGS 0x9115
+#define GL_SYNC_FENCE 0x9116
+#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
+#define GL_UNSIGNALED 0x9118
+#define GL_SIGNALED 0x9119
+#define GL_ALREADY_SIGNALED 0x911A
+#define GL_TIMEOUT_EXPIRED 0x911B
+#define GL_CONDITION_SATISFIED 0x911C
+#define GL_WAIT_FAILED 0x911D
+#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
+#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
+#define GL_SAMPLE_POSITION 0x8E50
+#define GL_SAMPLE_MASK 0x8E51
+#define GL_SAMPLE_MASK_VALUE 0x8E52
+#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
+#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
+#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
+#define GL_TEXTURE_SAMPLES 0x9106
+#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
+#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
+#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
+#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
+#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
+#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
+#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
+#define GL_MAX_INTEGER_SAMPLES 0x9110
+typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
+typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
+typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
+typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
+typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
+typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
+typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
+typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
+typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
+GLAPI void APIENTRY glProvokingVertex (GLenum mode);
+GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
+GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
+GLAPI void APIENTRY glDeleteSync (GLsync sync);
+GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
+GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
+GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
+GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
+GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
+#endif
+#endif /* GL_VERSION_3_2 */
+
+#ifndef GL_VERSION_3_3
+#define GL_VERSION_3_3 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
+#define GL_SRC1_COLOR 0x88F9
+#define GL_ONE_MINUS_SRC1_COLOR 0x88FA
+#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
+#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
+#define GL_ANY_SAMPLES_PASSED 0x8C2F
+#define GL_SAMPLER_BINDING 0x8919
+#define GL_RGB10_A2UI 0x906F
+#define GL_TEXTURE_SWIZZLE_R 0x8E42
+#define GL_TEXTURE_SWIZZLE_G 0x8E43
+#define GL_TEXTURE_SWIZZLE_B 0x8E44
+#define GL_TEXTURE_SWIZZLE_A 0x8E45
+#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
+#define GL_TIME_ELAPSED 0x88BF
+#define GL_TIMESTAMP 0x8E28
+#define GL_INT_2_10_10_10_REV 0x8D9F
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
+typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
+typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
+typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
+typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
+typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
+typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
+typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
+typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
+typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
+typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
+GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
+GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
+GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
+GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
+GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
+GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
+GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
+GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
+GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
+GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
+GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
+GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
+GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
+GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
+GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
+GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
+GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
+GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
+GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
+GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
+GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
+GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
+GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
+GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
+GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
+#endif
+#endif /* GL_VERSION_3_3 */
+
+#ifndef GL_VERSION_4_0
+#define GL_VERSION_4_0 1
+#define GL_SAMPLE_SHADING 0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
+#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
+#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
+#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
+#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
+#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
+#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
+#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
+#define GL_MAX_VERTEX_STREAMS 0x8E71
+#define GL_DOUBLE_VEC2 0x8FFC
+#define GL_DOUBLE_VEC3 0x8FFD
+#define GL_DOUBLE_VEC4 0x8FFE
+#define GL_DOUBLE_MAT2 0x8F46
+#define GL_DOUBLE_MAT3 0x8F47
+#define GL_DOUBLE_MAT4 0x8F48
+#define GL_DOUBLE_MAT2x3 0x8F49
+#define GL_DOUBLE_MAT2x4 0x8F4A
+#define GL_DOUBLE_MAT3x2 0x8F4B
+#define GL_DOUBLE_MAT3x4 0x8F4C
+#define GL_DOUBLE_MAT4x2 0x8F4D
+#define GL_DOUBLE_MAT4x3 0x8F4E
+#define GL_ACTIVE_SUBROUTINES 0x8DE5
+#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
+#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
+#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
+#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
+#define GL_MAX_SUBROUTINES 0x8DE7
+#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
+#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
+#define GL_COMPATIBLE_SUBROUTINES 0x8E4B
+#define GL_PATCHES 0x000E
+#define GL_PATCH_VERTICES 0x8E72
+#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
+#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
+#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
+#define GL_TESS_GEN_MODE 0x8E76
+#define GL_TESS_GEN_SPACING 0x8E77
+#define GL_TESS_GEN_VERTEX_ORDER 0x8E78
+#define GL_TESS_GEN_POINT_MODE 0x8E79
+#define GL_ISOLINES 0x8E7A
+#define GL_FRACTIONAL_ODD 0x8E7B
+#define GL_FRACTIONAL_EVEN 0x8E7C
+#define GL_MAX_PATCH_VERTICES 0x8E7D
+#define GL_MAX_TESS_GEN_LEVEL 0x8E7E
+#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
+#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
+#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
+#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
+#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
+#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
+#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
+#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
+#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
+#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
+#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
+#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
+#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
+#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
+#define GL_TESS_EVALUATION_SHADER 0x8E87
+#define GL_TESS_CONTROL_SHADER 0x8E88
+#define GL_TRANSFORM_FEEDBACK 0x8E22
+#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
+#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
+#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
+#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
+typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
+typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
+typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
+typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
+typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
+typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
+typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
+typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
+typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMinSampleShading (GLfloat value);
+GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
+GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
+GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
+GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
+GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
+GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
+GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
+GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
+GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
+GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
+GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
+GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
+GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
+GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
+GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
+GLAPI void APIENTRY glPauseTransformFeedback (void);
+GLAPI void APIENTRY glResumeTransformFeedback (void);
+GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
+GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
+GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
+GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
+GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
+#endif
+#endif /* GL_VERSION_4_0 */
+
+#ifndef GL_VERSION_4_1
+#define GL_VERSION_4_1 1
+#define GL_FIXED 0x140C
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
+#define GL_LOW_FLOAT 0x8DF0
+#define GL_MEDIUM_FLOAT 0x8DF1
+#define GL_HIGH_FLOAT 0x8DF2
+#define GL_LOW_INT 0x8DF3
+#define GL_MEDIUM_INT 0x8DF4
+#define GL_HIGH_INT 0x8DF5
+#define GL_SHADER_COMPILER 0x8DFA
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
+#define GL_MAX_VARYING_VECTORS 0x8DFC
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
+#define GL_RGB565 0x8D62
+#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
+#define GL_PROGRAM_BINARY_LENGTH 0x8741
+#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
+#define GL_PROGRAM_BINARY_FORMATS 0x87FF
+#define GL_VERTEX_SHADER_BIT 0x00000001
+#define GL_FRAGMENT_SHADER_BIT 0x00000002
+#define GL_GEOMETRY_SHADER_BIT 0x00000004
+#define GL_TESS_CONTROL_SHADER_BIT 0x00000008
+#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
+#define GL_ALL_SHADER_BITS 0xFFFFFFFF
+#define GL_PROGRAM_SEPARABLE 0x8258
+#define GL_ACTIVE_PROGRAM 0x8259
+#define GL_PROGRAM_PIPELINE_BINDING 0x825A
+#define GL_MAX_VIEWPORTS 0x825B
+#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
+#define GL_VIEWPORT_BOUNDS_RANGE 0x825D
+#define GL_LAYER_PROVOKING_VERTEX 0x825E
+#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
+#define GL_UNDEFINED_VERTEX 0x8260
+typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
+typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
+typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
+typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
+typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
+typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
+typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
+typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
+typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
+typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReleaseShaderCompiler (void);
+GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
+GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
+GLAPI void APIENTRY glClearDepthf (GLfloat d);
+GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
+GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
+GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
+GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
+GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
+GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
+GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
+GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
+GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
+GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
+GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
+GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
+GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
+GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
+GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
+GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
+GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
+GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
+GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
+GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
+GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
+#endif
+#endif /* GL_VERSION_4_1 */
+
+#ifndef GL_VERSION_4_2
+#define GL_VERSION_4_2 1
+#define GL_COPY_READ_BUFFER_BINDING 0x8F36
+#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
+#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
+#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
+#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
+#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
+#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
+#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
+#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
+#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
+#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
+#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
+#define GL_NUM_SAMPLE_COUNTS 0x9380
+#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
+#define GL_ATOMIC_COUNTER_BUFFER 0x92C0
+#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
+#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
+#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
+#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
+#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
+#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
+#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
+#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
+#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
+#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
+#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
+#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
+#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
+#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
+#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
+#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
+#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
+#define GL_UNIFORM_BARRIER_BIT 0x00000004
+#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
+#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
+#define GL_COMMAND_BARRIER_BIT 0x00000040
+#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
+#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
+#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
+#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
+#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
+#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
+#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
+#define GL_MAX_IMAGE_UNITS 0x8F38
+#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
+#define GL_IMAGE_BINDING_NAME 0x8F3A
+#define GL_IMAGE_BINDING_LEVEL 0x8F3B
+#define GL_IMAGE_BINDING_LAYERED 0x8F3C
+#define GL_IMAGE_BINDING_LAYER 0x8F3D
+#define GL_IMAGE_BINDING_ACCESS 0x8F3E
+#define GL_IMAGE_1D 0x904C
+#define GL_IMAGE_2D 0x904D
+#define GL_IMAGE_3D 0x904E
+#define GL_IMAGE_2D_RECT 0x904F
+#define GL_IMAGE_CUBE 0x9050
+#define GL_IMAGE_BUFFER 0x9051
+#define GL_IMAGE_1D_ARRAY 0x9052
+#define GL_IMAGE_2D_ARRAY 0x9053
+#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
+#define GL_IMAGE_2D_MULTISAMPLE 0x9055
+#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
+#define GL_INT_IMAGE_1D 0x9057
+#define GL_INT_IMAGE_2D 0x9058
+#define GL_INT_IMAGE_3D 0x9059
+#define GL_INT_IMAGE_2D_RECT 0x905A
+#define GL_INT_IMAGE_CUBE 0x905B
+#define GL_INT_IMAGE_BUFFER 0x905C
+#define GL_INT_IMAGE_1D_ARRAY 0x905D
+#define GL_INT_IMAGE_2D_ARRAY 0x905E
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
+#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
+#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
+#define GL_UNSIGNED_INT_IMAGE_1D 0x9062
+#define GL_UNSIGNED_INT_IMAGE_2D 0x9063
+#define GL_UNSIGNED_INT_IMAGE_3D 0x9064
+#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
+#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
+#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
+#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
+#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
+#define GL_MAX_IMAGE_SAMPLES 0x906D
+#define GL_IMAGE_BINDING_FORMAT 0x906E
+#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
+#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
+#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
+#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
+#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
+#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
+#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
+#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
+#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params);
+typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
+typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
+typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params);
+GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
+GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
+GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
+GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
+GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
+#endif
+#endif /* GL_VERSION_4_2 */
+
+#ifndef GL_VERSION_4_3
+#define GL_VERSION_4_3 1
+typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
+#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
+#define GL_COMPRESSED_RGB8_ETC2 0x9274
+#define GL_COMPRESSED_SRGB8_ETC2 0x9275
+#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
+#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
+#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
+#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
+#define GL_COMPRESSED_R11_EAC 0x9270
+#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
+#define GL_COMPRESSED_RG11_EAC 0x9272
+#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
+#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
+#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
+#define GL_MAX_ELEMENT_INDEX 0x8D6B
+#define GL_COMPUTE_SHADER 0x91B9
+#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
+#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
+#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
+#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
+#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
+#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
+#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
+#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
+#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
+#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
+#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
+#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
+#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
+#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
+#define GL_COMPUTE_SHADER_BIT 0x00000020
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
+#define GL_DEBUG_SOURCE_API 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
+#define GL_DEBUG_SOURCE_APPLICATION 0x824A
+#define GL_DEBUG_SOURCE_OTHER 0x824B
+#define GL_DEBUG_TYPE_ERROR 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY 0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE 0x8250
+#define GL_DEBUG_TYPE_OTHER 0x8251
+#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
+#define GL_DEBUG_LOGGED_MESSAGES 0x9145
+#define GL_DEBUG_SEVERITY_HIGH 0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM 0x9147
+#define GL_DEBUG_SEVERITY_LOW 0x9148
+#define GL_DEBUG_TYPE_MARKER 0x8268
+#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
+#define GL_DEBUG_TYPE_POP_GROUP 0x826A
+#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
+#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
+#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
+#define GL_BUFFER 0x82E0
+#define GL_SHADER 0x82E1
+#define GL_PROGRAM 0x82E2
+#define GL_QUERY 0x82E3
+#define GL_PROGRAM_PIPELINE 0x82E4
+#define GL_SAMPLER 0x82E6
+#define GL_MAX_LABEL_LENGTH 0x82E8
+#define GL_DEBUG_OUTPUT 0x92E0
+#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
+#define GL_MAX_UNIFORM_LOCATIONS 0x826E
+#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
+#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
+#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
+#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
+#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
+#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
+#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
+#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
+#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
+#define GL_INTERNALFORMAT_SUPPORTED 0x826F
+#define GL_INTERNALFORMAT_PREFERRED 0x8270
+#define GL_INTERNALFORMAT_RED_SIZE 0x8271
+#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
+#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
+#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
+#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
+#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
+#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
+#define GL_INTERNALFORMAT_RED_TYPE 0x8278
+#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
+#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
+#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
+#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
+#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
+#define GL_MAX_WIDTH 0x827E
+#define GL_MAX_HEIGHT 0x827F
+#define GL_MAX_DEPTH 0x8280
+#define GL_MAX_LAYERS 0x8281
+#define GL_MAX_COMBINED_DIMENSIONS 0x8282
+#define GL_COLOR_COMPONENTS 0x8283
+#define GL_DEPTH_COMPONENTS 0x8284
+#define GL_STENCIL_COMPONENTS 0x8285
+#define GL_COLOR_RENDERABLE 0x8286
+#define GL_DEPTH_RENDERABLE 0x8287
+#define GL_STENCIL_RENDERABLE 0x8288
+#define GL_FRAMEBUFFER_RENDERABLE 0x8289
+#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
+#define GL_FRAMEBUFFER_BLEND 0x828B
+#define GL_READ_PIXELS 0x828C
+#define GL_READ_PIXELS_FORMAT 0x828D
+#define GL_READ_PIXELS_TYPE 0x828E
+#define GL_TEXTURE_IMAGE_FORMAT 0x828F
+#define GL_TEXTURE_IMAGE_TYPE 0x8290
+#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
+#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
+#define GL_MIPMAP 0x8293
+#define GL_MANUAL_GENERATE_MIPMAP 0x8294
+#define GL_AUTO_GENERATE_MIPMAP 0x8295
+#define GL_COLOR_ENCODING 0x8296
+#define GL_SRGB_READ 0x8297
+#define GL_SRGB_WRITE 0x8298
+#define GL_FILTER 0x829A
+#define GL_VERTEX_TEXTURE 0x829B
+#define GL_TESS_CONTROL_TEXTURE 0x829C
+#define GL_TESS_EVALUATION_TEXTURE 0x829D
+#define GL_GEOMETRY_TEXTURE 0x829E
+#define GL_FRAGMENT_TEXTURE 0x829F
+#define GL_COMPUTE_TEXTURE 0x82A0
+#define GL_TEXTURE_SHADOW 0x82A1
+#define GL_TEXTURE_GATHER 0x82A2
+#define GL_TEXTURE_GATHER_SHADOW 0x82A3
+#define GL_SHADER_IMAGE_LOAD 0x82A4
+#define GL_SHADER_IMAGE_STORE 0x82A5
+#define GL_SHADER_IMAGE_ATOMIC 0x82A6
+#define GL_IMAGE_TEXEL_SIZE 0x82A7
+#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
+#define GL_IMAGE_PIXEL_FORMAT 0x82A9
+#define GL_IMAGE_PIXEL_TYPE 0x82AA
+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
+#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
+#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
+#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
+#define GL_CLEAR_BUFFER 0x82B4
+#define GL_TEXTURE_VIEW 0x82B5
+#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
+#define GL_FULL_SUPPORT 0x82B7
+#define GL_CAVEAT_SUPPORT 0x82B8
+#define GL_IMAGE_CLASS_4_X_32 0x82B9
+#define GL_IMAGE_CLASS_2_X_32 0x82BA
+#define GL_IMAGE_CLASS_1_X_32 0x82BB
+#define GL_IMAGE_CLASS_4_X_16 0x82BC
+#define GL_IMAGE_CLASS_2_X_16 0x82BD
+#define GL_IMAGE_CLASS_1_X_16 0x82BE
+#define GL_IMAGE_CLASS_4_X_8 0x82BF
+#define GL_IMAGE_CLASS_2_X_8 0x82C0
+#define GL_IMAGE_CLASS_1_X_8 0x82C1
+#define GL_IMAGE_CLASS_11_11_10 0x82C2
+#define GL_IMAGE_CLASS_10_10_10_2 0x82C3
+#define GL_VIEW_CLASS_128_BITS 0x82C4
+#define GL_VIEW_CLASS_96_BITS 0x82C5
+#define GL_VIEW_CLASS_64_BITS 0x82C6
+#define GL_VIEW_CLASS_48_BITS 0x82C7
+#define GL_VIEW_CLASS_32_BITS 0x82C8
+#define GL_VIEW_CLASS_24_BITS 0x82C9
+#define GL_VIEW_CLASS_16_BITS 0x82CA
+#define GL_VIEW_CLASS_8_BITS 0x82CB
+#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
+#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
+#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
+#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
+#define GL_VIEW_CLASS_RGTC1_RED 0x82D0
+#define GL_VIEW_CLASS_RGTC2_RG 0x82D1
+#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
+#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
+#define GL_UNIFORM 0x92E1
+#define GL_UNIFORM_BLOCK 0x92E2
+#define GL_PROGRAM_INPUT 0x92E3
+#define GL_PROGRAM_OUTPUT 0x92E4
+#define GL_BUFFER_VARIABLE 0x92E5
+#define GL_SHADER_STORAGE_BLOCK 0x92E6
+#define GL_VERTEX_SUBROUTINE 0x92E8
+#define GL_TESS_CONTROL_SUBROUTINE 0x92E9
+#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
+#define GL_GEOMETRY_SUBROUTINE 0x92EB
+#define GL_FRAGMENT_SUBROUTINE 0x92EC
+#define GL_COMPUTE_SUBROUTINE 0x92ED
+#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
+#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
+#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
+#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
+#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
+#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
+#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
+#define GL_ACTIVE_RESOURCES 0x92F5
+#define GL_MAX_NAME_LENGTH 0x92F6
+#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
+#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
+#define GL_NAME_LENGTH 0x92F9
+#define GL_TYPE 0x92FA
+#define GL_ARRAY_SIZE 0x92FB
+#define GL_OFFSET 0x92FC
+#define GL_BLOCK_INDEX 0x92FD
+#define GL_ARRAY_STRIDE 0x92FE
+#define GL_MATRIX_STRIDE 0x92FF
+#define GL_IS_ROW_MAJOR 0x9300
+#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
+#define GL_BUFFER_BINDING 0x9302
+#define GL_BUFFER_DATA_SIZE 0x9303
+#define GL_NUM_ACTIVE_VARIABLES 0x9304
+#define GL_ACTIVE_VARIABLES 0x9305
+#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
+#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
+#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
+#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
+#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
+#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
+#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
+#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
+#define GL_LOCATION 0x930E
+#define GL_LOCATION_INDEX 0x930F
+#define GL_IS_PER_PATCH 0x92E7
+#define GL_SHADER_STORAGE_BUFFER 0x90D2
+#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
+#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
+#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
+#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
+#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
+#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
+#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
+#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
+#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
+#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
+#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
+#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
+#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
+#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
+#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
+#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
+#define GL_TEXTURE_BUFFER_OFFSET 0x919D
+#define GL_TEXTURE_BUFFER_SIZE 0x919E
+#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
+#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
+#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
+#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
+#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
+#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
+#define GL_VERTEX_ATTRIB_BINDING 0x82D4
+#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
+#define GL_VERTEX_BINDING_DIVISOR 0x82D6
+#define GL_VERTEX_BINDING_OFFSET 0x82D7
+#define GL_VERTEX_BINDING_STRIDE 0x82D8
+#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
+#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
+#define GL_VERTEX_BINDING_BUFFER 0x8F4F
+#define GL_DISPLAY_LIST 0x82E7
+typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
+typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params);
+typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
+typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params);
+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
+typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
+typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
+GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
+GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params);
+GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
+GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
+GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
+GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
+GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params);
+GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
+GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
+GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+GLAPI void APIENTRY glPopDebugGroup (void);
+GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_VERSION_4_3 */
+
+#ifndef GL_VERSION_4_4
+#define GL_VERSION_4_4 1
+#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
+#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
+#define GL_TEXTURE_BUFFER_BINDING 0x8C2A
+#define GL_MAP_PERSISTENT_BIT 0x0040
+#define GL_MAP_COHERENT_BIT 0x0080
+#define GL_DYNAMIC_STORAGE_BIT 0x0100
+#define GL_CLIENT_STORAGE_BIT 0x0200
+#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
+#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F
+#define GL_BUFFER_STORAGE_FLAGS 0x8220
+#define GL_CLEAR_TEXTURE 0x9365
+#define GL_LOCATION_COMPONENT 0x934A
+#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
+#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
+#define GL_QUERY_BUFFER 0x9192
+#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000
+#define GL_QUERY_BUFFER_BINDING 0x9193
+#define GL_QUERY_RESULT_NO_WAIT 0x9194
+#define GL_MIRROR_CLAMP_TO_EDGE 0x8743
+typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
+typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
+typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers);
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
+GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
+GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures);
+GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers);
+GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures);
+GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+#endif
+#endif /* GL_VERSION_4_4 */
+
+#ifndef GL_VERSION_4_5
+#define GL_VERSION_4_5 1
+#define GL_CONTEXT_LOST 0x0507
+#define GL_NEGATIVE_ONE_TO_ONE 0x935E
+#define GL_ZERO_TO_ONE 0x935F
+#define GL_CLIP_ORIGIN 0x935C
+#define GL_CLIP_DEPTH_MODE 0x935D
+#define GL_QUERY_WAIT_INVERTED 0x8E17
+#define GL_QUERY_NO_WAIT_INVERTED 0x8E18
+#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19
+#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A
+#define GL_MAX_CULL_DISTANCES 0x82F9
+#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA
+#define GL_TEXTURE_TARGET 0x1006
+#define GL_QUERY_TARGET 0x82EA
+#define GL_GUILTY_CONTEXT_RESET 0x8253
+#define GL_INNOCENT_CONTEXT_RESET 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET 0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY 0x8256
+#define GL_LOSE_CONTEXT_ON_RESET 0x8252
+#define GL_NO_RESET_NOTIFICATION 0x8261
+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
+#define GL_COLOR_TABLE 0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
+#define GL_PROXY_COLOR_TABLE 0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
+#define GL_CONVOLUTION_1D 0x8010
+#define GL_CONVOLUTION_2D 0x8011
+#define GL_SEPARABLE_2D 0x8012
+#define GL_HISTOGRAM 0x8024
+#define GL_PROXY_HISTOGRAM 0x8025
+#define GL_MINMAX 0x802E
+#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
+#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
+typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth);
+typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
+typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src);
+typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
+typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint *textures);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture);
+typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
+typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint *samplers);
+typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
+typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers);
+typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
+typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void);
+typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (APIENTRYP PFNGLGETNMAPDVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
+typedef void (APIENTRYP PFNGLGETNMAPFVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
+typedef void (APIENTRYP PFNGLGETNMAPIVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPFVPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVPROC) (GLenum map, GLsizei bufSize, GLuint *values);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVPROC) (GLenum map, GLsizei bufSize, GLushort *values);
+typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEPROC) (GLsizei bufSize, GLubyte *pattern);
+typedef void (APIENTRYP PFNGLGETNCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
+typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
+typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
+typedef void (APIENTRYP PFNGLGETNHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+typedef void (APIENTRYP PFNGLGETNMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClipControl (GLenum origin, GLenum depth);
+GLAPI void APIENTRY glCreateTransformFeedbacks (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glTransformFeedbackBufferBase (GLuint xfb, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glGetTransformFeedbackiv (GLuint xfb, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint *param);
+GLAPI void APIENTRY glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
+GLAPI void APIENTRY glCreateBuffers (GLsizei n, GLuint *buffers);
+GLAPI void APIENTRY glNamedBufferStorage (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glNamedBufferData (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access);
+GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI GLboolean APIENTRY glUnmapNamedBuffer (GLuint buffer);
+GLAPI void APIENTRY glFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params);
+GLAPI void APIENTRY glGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void APIENTRY glCreateFramebuffers (GLsizei n, GLuint *framebuffers);
+GLAPI void APIENTRY glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param);
+GLAPI void APIENTRY glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTextureLayer (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glNamedFramebufferDrawBuffer (GLuint framebuffer, GLenum buf);
+GLAPI void APIENTRY glNamedFramebufferDrawBuffers (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src);
+GLAPI void APIENTRY glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
+GLAPI void APIENTRY glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
+GLAPI void APIENTRY glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
+GLAPI void APIENTRY glClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
+GLAPI void APIENTRY glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+GLAPI void APIENTRY glBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target);
+GLAPI void APIENTRY glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glCreateRenderbuffers (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisample (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glCreateTextures (GLenum target, GLsizei n, GLuint *textures);
+GLAPI void APIENTRY glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glTextureBufferRange (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureStorage3DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureParameterf (GLuint texture, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glTextureParameteri (GLuint texture, GLenum pname, GLint param);
+GLAPI void APIENTRY glTextureParameterIiv (GLuint texture, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glTextureParameteriv (GLuint texture, GLenum pname, const GLint *param);
+GLAPI void APIENTRY glGenerateTextureMipmap (GLuint texture);
+GLAPI void APIENTRY glBindTextureUnit (GLuint unit, GLuint texture);
+GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterfv (GLuint texture, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureParameterIiv (GLuint texture, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glGetTextureParameteriv (GLuint texture, GLenum pname, GLint *params);
+GLAPI void APIENTRY glCreateVertexArrays (GLsizei n, GLuint *arrays);
+GLAPI void APIENTRY glDisableVertexArrayAttrib (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glEnableVertexArrayAttrib (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer);
+GLAPI void APIENTRY glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexArrayVertexBuffers (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
+GLAPI void APIENTRY glVertexArrayAttribBinding (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexArrayAttribFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
+GLAPI void APIENTRY glCreateSamplers (GLsizei n, GLuint *samplers);
+GLAPI void APIENTRY glCreateProgramPipelines (GLsizei n, GLuint *pipelines);
+GLAPI void APIENTRY glCreateQueries (GLenum target, GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glGetQueryBufferObjectiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
+GLAPI void APIENTRY glMemoryBarrierByRegion (GLbitfield barriers);
+GLAPI void APIENTRY glGetTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
+GLAPI GLenum APIENTRY glGetGraphicsResetStatus (void);
+GLAPI void APIENTRY glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetnTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
+GLAPI void APIENTRY glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+GLAPI void APIENTRY glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GLAPI void APIENTRY glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+GLAPI void APIENTRY glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GLAPI void APIENTRY glGetnMapdv (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
+GLAPI void APIENTRY glGetnMapfv (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
+GLAPI void APIENTRY glGetnMapiv (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
+GLAPI void APIENTRY glGetnPixelMapfv (GLenum map, GLsizei bufSize, GLfloat *values);
+GLAPI void APIENTRY glGetnPixelMapuiv (GLenum map, GLsizei bufSize, GLuint *values);
+GLAPI void APIENTRY glGetnPixelMapusv (GLenum map, GLsizei bufSize, GLushort *values);
+GLAPI void APIENTRY glGetnPolygonStipple (GLsizei bufSize, GLubyte *pattern);
+GLAPI void APIENTRY glGetnColorTable (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
+GLAPI void APIENTRY glGetnConvolutionFilter (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
+GLAPI void APIENTRY glGetnSeparableFilter (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
+GLAPI void APIENTRY glGetnHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+GLAPI void APIENTRY glGetnMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+GLAPI void APIENTRY glTextureBarrier (void);
+#endif
+#endif /* GL_VERSION_4_5 */
+
+#ifndef GL_VERSION_4_6
+#define GL_VERSION_4_6 1
+#define GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551
+#define GL_SPIR_V_BINARY 0x9552
+#define GL_PARAMETER_BUFFER 0x80EE
+#define GL_PARAMETER_BUFFER_BINDING 0x80EF
+#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008
+#define GL_VERTICES_SUBMITTED 0x82EE
+#define GL_PRIMITIVES_SUBMITTED 0x82EF
+#define GL_VERTEX_SHADER_INVOCATIONS 0x82F0
+#define GL_TESS_CONTROL_SHADER_PATCHES 0x82F1
+#define GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2
+#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3
+#define GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4
+#define GL_COMPUTE_SHADER_INVOCATIONS 0x82F5
+#define GL_CLIPPING_INPUT_PRIMITIVES 0x82F6
+#define GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7
+#define GL_POLYGON_OFFSET_CLAMP 0x8E1B
+#define GL_SPIR_V_EXTENSIONS 0x9553
+#define GL_NUM_SPIR_V_EXTENSIONS 0x9554
+#define GL_TEXTURE_MAX_ANISOTROPY 0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF
+#define GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC
+#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED
+typedef void (APIENTRYP PFNGLSPECIALIZESHADERPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSpecializeShader (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+GLAPI void APIENTRY glMultiDrawArraysIndirectCount (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectCount (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glPolygonOffsetClamp (GLfloat factor, GLfloat units, GLfloat clamp);
+#endif
+#endif /* GL_VERSION_4_6 */
+
+#ifndef GL_ARB_ES2_compatibility
+#define GL_ARB_ES2_compatibility 1
+#endif /* GL_ARB_ES2_compatibility */
+
+#ifndef GL_ARB_ES3_1_compatibility
+#define GL_ARB_ES3_1_compatibility 1
+#endif /* GL_ARB_ES3_1_compatibility */
+
+#ifndef GL_ARB_ES3_2_compatibility
+#define GL_ARB_ES3_2_compatibility 1
+#define GL_PRIMITIVE_BOUNDING_BOX_ARB 0x92BE
+#define GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB 0x9381
+#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB 0x9382
+typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXARBPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPrimitiveBoundingBoxARB (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#endif
+#endif /* GL_ARB_ES3_2_compatibility */
+
+#ifndef GL_ARB_ES3_compatibility
+#define GL_ARB_ES3_compatibility 1
+#endif /* GL_ARB_ES3_compatibility */
+
+#ifndef GL_ARB_arrays_of_arrays
+#define GL_ARB_arrays_of_arrays 1
+#endif /* GL_ARB_arrays_of_arrays */
+
+#ifndef GL_ARB_base_instance
+#define GL_ARB_base_instance 1
+#endif /* GL_ARB_base_instance */
+
+#ifndef GL_ARB_bindless_texture
+#define GL_ARB_bindless_texture 1
+typedef khronos_uint64_t GLuint64EXT;
+#define GL_UNSIGNED_INT64_ARB 0x140F
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture);
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle);
+typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture);
+GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler);
+GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle);
+GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access);
+GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value);
+GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value);
+GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle);
+GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle);
+GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x);
+GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params);
+#endif
+#endif /* GL_ARB_bindless_texture */
+
+#ifndef GL_ARB_blend_func_extended
+#define GL_ARB_blend_func_extended 1
+#endif /* GL_ARB_blend_func_extended */
+
+#ifndef GL_ARB_buffer_storage
+#define GL_ARB_buffer_storage 1
+#endif /* GL_ARB_buffer_storage */
+
+#ifndef GL_ARB_cl_event
+#define GL_ARB_cl_event 1
+struct _cl_context;
+struct _cl_event;
+#define GL_SYNC_CL_EVENT_ARB 0x8240
+#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241
+typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
+#endif
+#endif /* GL_ARB_cl_event */
+
+#ifndef GL_ARB_clear_buffer_object
+#define GL_ARB_clear_buffer_object 1
+#endif /* GL_ARB_clear_buffer_object */
+
+#ifndef GL_ARB_clear_texture
+#define GL_ARB_clear_texture 1
+#endif /* GL_ARB_clear_texture */
+
+#ifndef GL_ARB_clip_control
+#define GL_ARB_clip_control 1
+#endif /* GL_ARB_clip_control */
+
+#ifndef GL_ARB_color_buffer_float
+#define GL_ARB_color_buffer_float 1
+#define GL_RGBA_FLOAT_MODE_ARB 0x8820
+#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
+#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
+#define GL_CLAMP_READ_COLOR_ARB 0x891C
+#define GL_FIXED_ONLY_ARB 0x891D
+typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp);
+#endif
+#endif /* GL_ARB_color_buffer_float */
+
+#ifndef GL_ARB_compatibility
+#define GL_ARB_compatibility 1
+#endif /* GL_ARB_compatibility */
+
+#ifndef GL_ARB_compressed_texture_pixel_storage
+#define GL_ARB_compressed_texture_pixel_storage 1
+#endif /* GL_ARB_compressed_texture_pixel_storage */
+
+#ifndef GL_ARB_compute_shader
+#define GL_ARB_compute_shader 1
+#endif /* GL_ARB_compute_shader */
+
+#ifndef GL_ARB_compute_variable_group_size
+#define GL_ARB_compute_variable_group_size 1
+#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344
+#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB
+#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345
+#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF
+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
+#endif
+#endif /* GL_ARB_compute_variable_group_size */
+
+#ifndef GL_ARB_conditional_render_inverted
+#define GL_ARB_conditional_render_inverted 1
+#endif /* GL_ARB_conditional_render_inverted */
+
+#ifndef GL_ARB_conservative_depth
+#define GL_ARB_conservative_depth 1
+#endif /* GL_ARB_conservative_depth */
+
+#ifndef GL_ARB_copy_buffer
+#define GL_ARB_copy_buffer 1
+#endif /* GL_ARB_copy_buffer */
+
+#ifndef GL_ARB_copy_image
+#define GL_ARB_copy_image 1
+#endif /* GL_ARB_copy_image */
+
+#ifndef GL_ARB_cull_distance
+#define GL_ARB_cull_distance 1
+#endif /* GL_ARB_cull_distance */
+
+#ifndef GL_ARB_debug_output
+#define GL_ARB_debug_output 1
+typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
+#define GL_DEBUG_SOURCE_API_ARB 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
+#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
+#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B
+#define GL_DEBUG_TYPE_ERROR_ARB 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
+#define GL_DEBUG_TYPE_OTHER_ARB 0x8251
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
+#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
+#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+#endif
+#endif /* GL_ARB_debug_output */
+
+#ifndef GL_ARB_depth_buffer_float
+#define GL_ARB_depth_buffer_float 1
+#endif /* GL_ARB_depth_buffer_float */
+
+#ifndef GL_ARB_depth_clamp
+#define GL_ARB_depth_clamp 1
+#endif /* GL_ARB_depth_clamp */
+
+#ifndef GL_ARB_depth_texture
+#define GL_ARB_depth_texture 1
+#define GL_DEPTH_COMPONENT16_ARB 0x81A5
+#define GL_DEPTH_COMPONENT24_ARB 0x81A6
+#define GL_DEPTH_COMPONENT32_ARB 0x81A7
+#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A
+#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
+#endif /* GL_ARB_depth_texture */
+
+#ifndef GL_ARB_derivative_control
+#define GL_ARB_derivative_control 1
+#endif /* GL_ARB_derivative_control */
+
+#ifndef GL_ARB_direct_state_access
+#define GL_ARB_direct_state_access 1
+#endif /* GL_ARB_direct_state_access */
+
+#ifndef GL_ARB_draw_buffers
+#define GL_ARB_draw_buffers 1
+#define GL_MAX_DRAW_BUFFERS_ARB 0x8824
+#define GL_DRAW_BUFFER0_ARB 0x8825
+#define GL_DRAW_BUFFER1_ARB 0x8826
+#define GL_DRAW_BUFFER2_ARB 0x8827
+#define GL_DRAW_BUFFER3_ARB 0x8828
+#define GL_DRAW_BUFFER4_ARB 0x8829
+#define GL_DRAW_BUFFER5_ARB 0x882A
+#define GL_DRAW_BUFFER6_ARB 0x882B
+#define GL_DRAW_BUFFER7_ARB 0x882C
+#define GL_DRAW_BUFFER8_ARB 0x882D
+#define GL_DRAW_BUFFER9_ARB 0x882E
+#define GL_DRAW_BUFFER10_ARB 0x882F
+#define GL_DRAW_BUFFER11_ARB 0x8830
+#define GL_DRAW_BUFFER12_ARB 0x8831
+#define GL_DRAW_BUFFER13_ARB 0x8832
+#define GL_DRAW_BUFFER14_ARB 0x8833
+#define GL_DRAW_BUFFER15_ARB 0x8834
+typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs);
+#endif
+#endif /* GL_ARB_draw_buffers */
+
+#ifndef GL_ARB_draw_buffers_blend
+#define GL_ARB_draw_buffers_blend 1
+typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+#endif
+#endif /* GL_ARB_draw_buffers_blend */
+
+#ifndef GL_ARB_draw_elements_base_vertex
+#define GL_ARB_draw_elements_base_vertex 1
+#endif /* GL_ARB_draw_elements_base_vertex */
+
+#ifndef GL_ARB_draw_indirect
+#define GL_ARB_draw_indirect 1
+#endif /* GL_ARB_draw_indirect */
+
+#ifndef GL_ARB_draw_instanced
+#define GL_ARB_draw_instanced 1
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_ARB_draw_instanced */
+
+#ifndef GL_ARB_enhanced_layouts
+#define GL_ARB_enhanced_layouts 1
+#endif /* GL_ARB_enhanced_layouts */
+
+#ifndef GL_ARB_explicit_attrib_location
+#define GL_ARB_explicit_attrib_location 1
+#endif /* GL_ARB_explicit_attrib_location */
+
+#ifndef GL_ARB_explicit_uniform_location
+#define GL_ARB_explicit_uniform_location 1
+#endif /* GL_ARB_explicit_uniform_location */
+
+#ifndef GL_ARB_fragment_coord_conventions
+#define GL_ARB_fragment_coord_conventions 1
+#endif /* GL_ARB_fragment_coord_conventions */
+
+#ifndef GL_ARB_fragment_layer_viewport
+#define GL_ARB_fragment_layer_viewport 1
+#endif /* GL_ARB_fragment_layer_viewport */
+
+#ifndef GL_ARB_fragment_program
+#define GL_ARB_fragment_program 1
+#define GL_FRAGMENT_PROGRAM_ARB 0x8804
+#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
+#define GL_PROGRAM_LENGTH_ARB 0x8627
+#define GL_PROGRAM_FORMAT_ARB 0x8876
+#define GL_PROGRAM_BINDING_ARB 0x8677
+#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
+#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
+#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
+#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
+#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4
+#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
+#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
+#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
+#define GL_PROGRAM_PARAMETERS_ARB 0x88A8
+#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
+#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
+#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
+#define GL_PROGRAM_ATTRIBS_ARB 0x88AC
+#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
+#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
+#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
+#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
+#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
+#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
+#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
+#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
+#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
+#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
+#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
+#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
+#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
+#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
+#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
+#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
+#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
+#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
+#define GL_PROGRAM_STRING_ARB 0x8628
+#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B
+#define GL_CURRENT_MATRIX_ARB 0x8641
+#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
+#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
+#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F
+#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
+#define GL_MAX_TEXTURE_COORDS_ARB 0x8871
+#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
+#define GL_PROGRAM_ERROR_STRING_ARB 0x8874
+#define GL_MATRIX0_ARB 0x88C0
+#define GL_MATRIX1_ARB 0x88C1
+#define GL_MATRIX2_ARB 0x88C2
+#define GL_MATRIX3_ARB 0x88C3
+#define GL_MATRIX4_ARB 0x88C4
+#define GL_MATRIX5_ARB 0x88C5
+#define GL_MATRIX6_ARB 0x88C6
+#define GL_MATRIX7_ARB 0x88C7
+#define GL_MATRIX8_ARB 0x88C8
+#define GL_MATRIX9_ARB 0x88C9
+#define GL_MATRIX10_ARB 0x88CA
+#define GL_MATRIX11_ARB 0x88CB
+#define GL_MATRIX12_ARB 0x88CC
+#define GL_MATRIX13_ARB 0x88CD
+#define GL_MATRIX14_ARB 0x88CE
+#define GL_MATRIX15_ARB 0x88CF
+#define GL_MATRIX16_ARB 0x88D0
+#define GL_MATRIX17_ARB 0x88D1
+#define GL_MATRIX18_ARB 0x88D2
+#define GL_MATRIX19_ARB 0x88D3
+#define GL_MATRIX20_ARB 0x88D4
+#define GL_MATRIX21_ARB 0x88D5
+#define GL_MATRIX22_ARB 0x88D6
+#define GL_MATRIX23_ARB 0x88D7
+#define GL_MATRIX24_ARB 0x88D8
+#define GL_MATRIX25_ARB 0x88D9
+#define GL_MATRIX26_ARB 0x88DA
+#define GL_MATRIX27_ARB 0x88DB
+#define GL_MATRIX28_ARB 0x88DC
+#define GL_MATRIX29_ARB 0x88DD
+#define GL_MATRIX30_ARB 0x88DE
+#define GL_MATRIX31_ARB 0x88DF
+typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void *string);
+typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
+typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void *string);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const void *string);
+GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program);
+GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs);
+GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs);
+GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, void *string);
+GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program);
+#endif
+#endif /* GL_ARB_fragment_program */
+
+#ifndef GL_ARB_fragment_program_shadow
+#define GL_ARB_fragment_program_shadow 1
+#endif /* GL_ARB_fragment_program_shadow */
+
+#ifndef GL_ARB_fragment_shader
+#define GL_ARB_fragment_shader 1
+#define GL_FRAGMENT_SHADER_ARB 0x8B30
+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
+#endif /* GL_ARB_fragment_shader */
+
+#ifndef GL_ARB_fragment_shader_interlock
+#define GL_ARB_fragment_shader_interlock 1
+#endif /* GL_ARB_fragment_shader_interlock */
+
+#ifndef GL_ARB_framebuffer_no_attachments
+#define GL_ARB_framebuffer_no_attachments 1
+#endif /* GL_ARB_framebuffer_no_attachments */
+
+#ifndef GL_ARB_framebuffer_object
+#define GL_ARB_framebuffer_object 1
+#endif /* GL_ARB_framebuffer_object */
+
+#ifndef GL_ARB_framebuffer_sRGB
+#define GL_ARB_framebuffer_sRGB 1
+#endif /* GL_ARB_framebuffer_sRGB */
+
+#ifndef GL_ARB_geometry_shader4
+#define GL_ARB_geometry_shader4 1
+#define GL_LINES_ADJACENCY_ARB 0x000A
+#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B
+#define GL_TRIANGLES_ADJACENCY_ARB 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D
+#define GL_PROGRAM_POINT_SIZE_ARB 0x8642
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
+#define GL_GEOMETRY_SHADER_ARB 0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA
+#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB
+#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC
+#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
+#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
+GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#endif
+#endif /* GL_ARB_geometry_shader4 */
+
+#ifndef GL_ARB_get_program_binary
+#define GL_ARB_get_program_binary 1
+#endif /* GL_ARB_get_program_binary */
+
+#ifndef GL_ARB_get_texture_sub_image
+#define GL_ARB_get_texture_sub_image 1
+#endif /* GL_ARB_get_texture_sub_image */
+
+#ifndef GL_ARB_gl_spirv
+#define GL_ARB_gl_spirv 1
+#define GL_SHADER_BINARY_FORMAT_SPIR_V_ARB 0x9551
+#define GL_SPIR_V_BINARY_ARB 0x9552
+typedef void (APIENTRYP PFNGLSPECIALIZESHADERARBPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSpecializeShaderARB (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);
+#endif
+#endif /* GL_ARB_gl_spirv */
+
+#ifndef GL_ARB_gpu_shader5
+#define GL_ARB_gpu_shader5 1
+#endif /* GL_ARB_gpu_shader5 */
+
+#ifndef GL_ARB_gpu_shader_fp64
+#define GL_ARB_gpu_shader_fp64 1
+#endif /* GL_ARB_gpu_shader_fp64 */
+
+#ifndef GL_ARB_gpu_shader_int64
+#define GL_ARB_gpu_shader_int64 1
+#define GL_INT64_ARB 0x140E
+#define GL_INT64_VEC2_ARB 0x8FE9
+#define GL_INT64_VEC3_ARB 0x8FEA
+#define GL_INT64_VEC4_ARB 0x8FEB
+#define GL_UNSIGNED_INT64_VEC2_ARB 0x8FF5
+#define GL_UNSIGNED_INT64_VEC3_ARB 0x8FF6
+#define GL_UNSIGNED_INT64_VEC4_ARB 0x8FF7
+typedef void (APIENTRYP PFNGLUNIFORM1I64ARBPROC) (GLint location, GLint64 x);
+typedef void (APIENTRYP PFNGLUNIFORM2I64ARBPROC) (GLint location, GLint64 x, GLint64 y);
+typedef void (APIENTRYP PFNGLUNIFORM3I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z);
+typedef void (APIENTRYP PFNGLUNIFORM4I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+typedef void (APIENTRYP PFNGLUNIFORM1I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM2I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM3I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM4I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64ARBPROC) (GLint location, GLuint64 x);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMI64VARBPROC) (GLuint program, GLint location, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLuint64 *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64ARBPROC) (GLuint program, GLint location, GLint64 x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64ARBPROC) (GLuint program, GLint location, GLuint64 x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniform1i64ARB (GLint location, GLint64 x);
+GLAPI void APIENTRY glUniform2i64ARB (GLint location, GLint64 x, GLint64 y);
+GLAPI void APIENTRY glUniform3i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z);
+GLAPI void APIENTRY glUniform4i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+GLAPI void APIENTRY glUniform1i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform2i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform3i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform4i64vARB (GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glUniform1ui64ARB (GLint location, GLuint64 x);
+GLAPI void APIENTRY glUniform2ui64ARB (GLint location, GLuint64 x, GLuint64 y);
+GLAPI void APIENTRY glUniform3ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+GLAPI void APIENTRY glUniform4ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+GLAPI void APIENTRY glUniform1ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glUniform2ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glUniform3ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glUniform4ui64vARB (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glGetUniformi64vARB (GLuint program, GLint location, GLint64 *params);
+GLAPI void APIENTRY glGetUniformui64vARB (GLuint program, GLint location, GLuint64 *params);
+GLAPI void APIENTRY glGetnUniformi64vARB (GLuint program, GLint location, GLsizei bufSize, GLint64 *params);
+GLAPI void APIENTRY glGetnUniformui64vARB (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params);
+GLAPI void APIENTRY glProgramUniform1i64ARB (GLuint program, GLint location, GLint64 x);
+GLAPI void APIENTRY glProgramUniform2i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y);
+GLAPI void APIENTRY glProgramUniform3i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z);
+GLAPI void APIENTRY glProgramUniform4i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w);
+GLAPI void APIENTRY glProgramUniform1i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform2i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform3i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform4i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value);
+GLAPI void APIENTRY glProgramUniform1ui64ARB (GLuint program, GLint location, GLuint64 x);
+GLAPI void APIENTRY glProgramUniform2ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y);
+GLAPI void APIENTRY glProgramUniform3ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z);
+GLAPI void APIENTRY glProgramUniform4ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w);
+GLAPI void APIENTRY glProgramUniform1ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniform2ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniform3ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniform4ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value);
+#endif
+#endif /* GL_ARB_gpu_shader_int64 */
+
+#ifndef GL_ARB_half_float_pixel
+#define GL_ARB_half_float_pixel 1
+typedef khronos_uint16_t GLhalfARB;
+#define GL_HALF_FLOAT_ARB 0x140B
+#endif /* GL_ARB_half_float_pixel */
+
+#ifndef GL_ARB_half_float_vertex
+#define GL_ARB_half_float_vertex 1
+#endif /* GL_ARB_half_float_vertex */
+
+#ifndef GL_ARB_imaging
+#define GL_ARB_imaging 1
+#define GL_CONVOLUTION_BORDER_MODE 0x8013
+#define GL_CONVOLUTION_FILTER_SCALE 0x8014
+#define GL_CONVOLUTION_FILTER_BIAS 0x8015
+#define GL_REDUCE 0x8016
+#define GL_CONVOLUTION_FORMAT 0x8017
+#define GL_CONVOLUTION_WIDTH 0x8018
+#define GL_CONVOLUTION_HEIGHT 0x8019
+#define GL_MAX_CONVOLUTION_WIDTH 0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT 0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE 0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS 0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
+#define GL_HISTOGRAM_WIDTH 0x8026
+#define GL_HISTOGRAM_FORMAT 0x8027
+#define GL_HISTOGRAM_RED_SIZE 0x8028
+#define GL_HISTOGRAM_GREEN_SIZE 0x8029
+#define GL_HISTOGRAM_BLUE_SIZE 0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE 0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
+#define GL_HISTOGRAM_SINK 0x802D
+#define GL_MINMAX_FORMAT 0x802F
+#define GL_MINMAX_SINK 0x8030
+#define GL_TABLE_TOO_LARGE 0x8031
+#define GL_COLOR_MATRIX 0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
+#define GL_COLOR_TABLE_SCALE 0x80D6
+#define GL_COLOR_TABLE_BIAS 0x80D7
+#define GL_COLOR_TABLE_FORMAT 0x80D8
+#define GL_COLOR_TABLE_WIDTH 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
+#define GL_CONSTANT_BORDER 0x8151
+#define GL_REPLICATE_BORDER 0x8153
+#define GL_CONVOLUTION_BORDER_COLOR 0x8154
+typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, void *table);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, void *image);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, void *table);
+GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
+GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
+GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, void *image);
+GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glResetHistogram (GLenum target);
+GLAPI void APIENTRY glResetMinmax (GLenum target);
+#endif
+#endif /* GL_ARB_imaging */
+
+#ifndef GL_ARB_indirect_parameters
+#define GL_ARB_indirect_parameters 1
+#define GL_PARAMETER_BUFFER_ARB 0x80EE
+#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#endif
+#endif /* GL_ARB_indirect_parameters */
+
+#ifndef GL_ARB_instanced_arrays
+#define GL_ARB_instanced_arrays 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor);
+#endif
+#endif /* GL_ARB_instanced_arrays */
+
+#ifndef GL_ARB_internalformat_query
+#define GL_ARB_internalformat_query 1
+#endif /* GL_ARB_internalformat_query */
+
+#ifndef GL_ARB_internalformat_query2
+#define GL_ARB_internalformat_query2 1
+#define GL_SRGB_DECODE_ARB 0x8299
+#define GL_VIEW_CLASS_EAC_R11 0x9383
+#define GL_VIEW_CLASS_EAC_RG11 0x9384
+#define GL_VIEW_CLASS_ETC2_RGB 0x9385
+#define GL_VIEW_CLASS_ETC2_RGBA 0x9386
+#define GL_VIEW_CLASS_ETC2_EAC_RGBA 0x9387
+#define GL_VIEW_CLASS_ASTC_4x4_RGBA 0x9388
+#define GL_VIEW_CLASS_ASTC_5x4_RGBA 0x9389
+#define GL_VIEW_CLASS_ASTC_5x5_RGBA 0x938A
+#define GL_VIEW_CLASS_ASTC_6x5_RGBA 0x938B
+#define GL_VIEW_CLASS_ASTC_6x6_RGBA 0x938C
+#define GL_VIEW_CLASS_ASTC_8x5_RGBA 0x938D
+#define GL_VIEW_CLASS_ASTC_8x6_RGBA 0x938E
+#define GL_VIEW_CLASS_ASTC_8x8_RGBA 0x938F
+#define GL_VIEW_CLASS_ASTC_10x5_RGBA 0x9390
+#define GL_VIEW_CLASS_ASTC_10x6_RGBA 0x9391
+#define GL_VIEW_CLASS_ASTC_10x8_RGBA 0x9392
+#define GL_VIEW_CLASS_ASTC_10x10_RGBA 0x9393
+#define GL_VIEW_CLASS_ASTC_12x10_RGBA 0x9394
+#define GL_VIEW_CLASS_ASTC_12x12_RGBA 0x9395
+#endif /* GL_ARB_internalformat_query2 */
+
+#ifndef GL_ARB_invalidate_subdata
+#define GL_ARB_invalidate_subdata 1
+#endif /* GL_ARB_invalidate_subdata */
+
+#ifndef GL_ARB_map_buffer_alignment
+#define GL_ARB_map_buffer_alignment 1
+#endif /* GL_ARB_map_buffer_alignment */
+
+#ifndef GL_ARB_map_buffer_range
+#define GL_ARB_map_buffer_range 1
+#endif /* GL_ARB_map_buffer_range */
+
+#ifndef GL_ARB_matrix_palette
+#define GL_ARB_matrix_palette 1
+#define GL_MATRIX_PALETTE_ARB 0x8840
+#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
+#define GL_MAX_PALETTE_MATRICES_ARB 0x8842
+#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843
+#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844
+#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845
+#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846
+#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847
+#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848
+#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
+typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
+typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices);
+typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices);
+typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices);
+typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint index);
+GLAPI void APIENTRY glMatrixIndexubvARB (GLint size, const GLubyte *indices);
+GLAPI void APIENTRY glMatrixIndexusvARB (GLint size, const GLushort *indices);
+GLAPI void APIENTRY glMatrixIndexuivARB (GLint size, const GLuint *indices);
+GLAPI void APIENTRY glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_ARB_matrix_palette */
+
+#ifndef GL_ARB_multi_bind
+#define GL_ARB_multi_bind 1
+#endif /* GL_ARB_multi_bind */
+
+#ifndef GL_ARB_multi_draw_indirect
+#define GL_ARB_multi_draw_indirect 1
+#endif /* GL_ARB_multi_draw_indirect */
+
+#ifndef GL_ARB_multisample
+#define GL_ARB_multisample 1
+#define GL_MULTISAMPLE_ARB 0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F
+#define GL_SAMPLE_COVERAGE_ARB 0x80A0
+#define GL_SAMPLE_BUFFERS_ARB 0x80A8
+#define GL_SAMPLES_ARB 0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB
+#define GL_MULTISAMPLE_BIT_ARB 0x20000000
+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSampleCoverageARB (GLfloat value, GLboolean invert);
+#endif
+#endif /* GL_ARB_multisample */
+
+#ifndef GL_ARB_multitexture
+#define GL_ARB_multitexture 1
+#define GL_TEXTURE0_ARB 0x84C0
+#define GL_TEXTURE1_ARB 0x84C1
+#define GL_TEXTURE2_ARB 0x84C2
+#define GL_TEXTURE3_ARB 0x84C3
+#define GL_TEXTURE4_ARB 0x84C4
+#define GL_TEXTURE5_ARB 0x84C5
+#define GL_TEXTURE6_ARB 0x84C6
+#define GL_TEXTURE7_ARB 0x84C7
+#define GL_TEXTURE8_ARB 0x84C8
+#define GL_TEXTURE9_ARB 0x84C9
+#define GL_TEXTURE10_ARB 0x84CA
+#define GL_TEXTURE11_ARB 0x84CB
+#define GL_TEXTURE12_ARB 0x84CC
+#define GL_TEXTURE13_ARB 0x84CD
+#define GL_TEXTURE14_ARB 0x84CE
+#define GL_TEXTURE15_ARB 0x84CF
+#define GL_TEXTURE16_ARB 0x84D0
+#define GL_TEXTURE17_ARB 0x84D1
+#define GL_TEXTURE18_ARB 0x84D2
+#define GL_TEXTURE19_ARB 0x84D3
+#define GL_TEXTURE20_ARB 0x84D4
+#define GL_TEXTURE21_ARB 0x84D5
+#define GL_TEXTURE22_ARB 0x84D6
+#define GL_TEXTURE23_ARB 0x84D7
+#define GL_TEXTURE24_ARB 0x84D8
+#define GL_TEXTURE25_ARB 0x84D9
+#define GL_TEXTURE26_ARB 0x84DA
+#define GL_TEXTURE27_ARB 0x84DB
+#define GL_TEXTURE28_ARB 0x84DC
+#define GL_TEXTURE29_ARB 0x84DD
+#define GL_TEXTURE30_ARB 0x84DE
+#define GL_TEXTURE31_ARB 0x84DF
+#define GL_ACTIVE_TEXTURE_ARB 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
+typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveTextureARB (GLenum texture);
+GLAPI void APIENTRY glClientActiveTextureARB (GLenum texture);
+GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum target, GLdouble s);
+GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum target, GLfloat s);
+GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum target, GLint s);
+GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum target, GLshort s);
+GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t);
+GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t);
+GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum target, GLint s, GLint t);
+GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t);
+GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r);
+GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum target, const GLshort *v);
+#endif
+#endif /* GL_ARB_multitexture */
+
+#ifndef GL_ARB_occlusion_query
+#define GL_ARB_occlusion_query 1
+#define GL_QUERY_COUNTER_BITS_ARB 0x8864
+#define GL_CURRENT_QUERY_ARB 0x8865
+#define GL_QUERY_RESULT_ARB 0x8866
+#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867
+#define GL_SAMPLES_PASSED_ARB 0x8914
+typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenQueriesARB (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteQueriesARB (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsQueryARB (GLuint id);
+GLAPI void APIENTRY glBeginQueryARB (GLenum target, GLuint id);
+GLAPI void APIENTRY glEndQueryARB (GLenum target);
+GLAPI void APIENTRY glGetQueryivARB (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_ARB_occlusion_query */
+
+#ifndef GL_ARB_occlusion_query2
+#define GL_ARB_occlusion_query2 1
+#endif /* GL_ARB_occlusion_query2 */
+
+#ifndef GL_ARB_parallel_shader_compile
+#define GL_ARB_parallel_shader_compile 1
+#define GL_MAX_SHADER_COMPILER_THREADS_ARB 0x91B0
+#define GL_COMPLETION_STATUS_ARB 0x91B1
+typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSARBPROC) (GLuint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMaxShaderCompilerThreadsARB (GLuint count);
+#endif
+#endif /* GL_ARB_parallel_shader_compile */
+
+#ifndef GL_ARB_pipeline_statistics_query
+#define GL_ARB_pipeline_statistics_query 1
+#define GL_VERTICES_SUBMITTED_ARB 0x82EE
+#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF
+#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0
+#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1
+#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2
+#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3
+#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4
+#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5
+#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6
+#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7
+#endif /* GL_ARB_pipeline_statistics_query */
+
+#ifndef GL_ARB_pixel_buffer_object
+#define GL_ARB_pixel_buffer_object 1
+#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
+#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
+#endif /* GL_ARB_pixel_buffer_object */
+
+#ifndef GL_ARB_point_parameters
+#define GL_ARB_point_parameters 1
+#define GL_POINT_SIZE_MIN_ARB 0x8126
+#define GL_POINT_SIZE_MAX_ARB 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128
+#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameterfARB (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvARB (GLenum pname, const GLfloat *params);
+#endif
+#endif /* GL_ARB_point_parameters */
+
+#ifndef GL_ARB_point_sprite
+#define GL_ARB_point_sprite 1
+#define GL_POINT_SPRITE_ARB 0x8861
+#define GL_COORD_REPLACE_ARB 0x8862
+#endif /* GL_ARB_point_sprite */
+
+#ifndef GL_ARB_polygon_offset_clamp
+#define GL_ARB_polygon_offset_clamp 1
+#endif /* GL_ARB_polygon_offset_clamp */
+
+#ifndef GL_ARB_post_depth_coverage
+#define GL_ARB_post_depth_coverage 1
+#endif /* GL_ARB_post_depth_coverage */
+
+#ifndef GL_ARB_program_interface_query
+#define GL_ARB_program_interface_query 1
+#endif /* GL_ARB_program_interface_query */
+
+#ifndef GL_ARB_provoking_vertex
+#define GL_ARB_provoking_vertex 1
+#endif /* GL_ARB_provoking_vertex */
+
+#ifndef GL_ARB_query_buffer_object
+#define GL_ARB_query_buffer_object 1
+#endif /* GL_ARB_query_buffer_object */
+
+#ifndef GL_ARB_robust_buffer_access_behavior
+#define GL_ARB_robust_buffer_access_behavior 1
+#endif /* GL_ARB_robust_buffer_access_behavior */
+
+#ifndef GL_ARB_robustness
+#define GL_ARB_robustness 1
+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
+#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
+#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
+#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
+#define GL_NO_RESET_NOTIFICATION_ARB 0x8261
+typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
+typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
+typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img);
+typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
+typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
+typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint *values);
+typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort *values);
+typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte *pattern);
+typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
+typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
+typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
+typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void);
+GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
+GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img);
+GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
+GLAPI void APIENTRY glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
+GLAPI void APIENTRY glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
+GLAPI void APIENTRY glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
+GLAPI void APIENTRY glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat *values);
+GLAPI void APIENTRY glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint *values);
+GLAPI void APIENTRY glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort *values);
+GLAPI void APIENTRY glGetnPolygonStippleARB (GLsizei bufSize, GLubyte *pattern);
+GLAPI void APIENTRY glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
+GLAPI void APIENTRY glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
+GLAPI void APIENTRY glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
+GLAPI void APIENTRY glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+GLAPI void APIENTRY glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
+#endif
+#endif /* GL_ARB_robustness */
+
+#ifndef GL_ARB_robustness_isolation
+#define GL_ARB_robustness_isolation 1
+#endif /* GL_ARB_robustness_isolation */
+
+#ifndef GL_ARB_sample_locations
+#define GL_ARB_sample_locations 1
+#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB 0x933D
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB 0x933E
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB 0x933F
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB 0x9340
+#define GL_SAMPLE_LOCATION_ARB 0x8E50
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB 0x9341
+#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB 0x9342
+#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB 0x9343
+typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLEVALUATEDEPTHVALUESARBPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferSampleLocationsfvARB (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvARB (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glEvaluateDepthValuesARB (void);
+#endif
+#endif /* GL_ARB_sample_locations */
+
+#ifndef GL_ARB_sample_shading
+#define GL_ARB_sample_shading 1
+#define GL_SAMPLE_SHADING_ARB 0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37
+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value);
+#endif
+#endif /* GL_ARB_sample_shading */
+
+#ifndef GL_ARB_sampler_objects
+#define GL_ARB_sampler_objects 1
+#endif /* GL_ARB_sampler_objects */
+
+#ifndef GL_ARB_seamless_cube_map
+#define GL_ARB_seamless_cube_map 1
+#endif /* GL_ARB_seamless_cube_map */
+
+#ifndef GL_ARB_seamless_cubemap_per_texture
+#define GL_ARB_seamless_cubemap_per_texture 1
+#endif /* GL_ARB_seamless_cubemap_per_texture */
+
+#ifndef GL_ARB_separate_shader_objects
+#define GL_ARB_separate_shader_objects 1
+#endif /* GL_ARB_separate_shader_objects */
+
+#ifndef GL_ARB_shader_atomic_counter_ops
+#define GL_ARB_shader_atomic_counter_ops 1
+#endif /* GL_ARB_shader_atomic_counter_ops */
+
+#ifndef GL_ARB_shader_atomic_counters
+#define GL_ARB_shader_atomic_counters 1
+#endif /* GL_ARB_shader_atomic_counters */
+
+#ifndef GL_ARB_shader_ballot
+#define GL_ARB_shader_ballot 1
+#endif /* GL_ARB_shader_ballot */
+
+#ifndef GL_ARB_shader_bit_encoding
+#define GL_ARB_shader_bit_encoding 1
+#endif /* GL_ARB_shader_bit_encoding */
+
+#ifndef GL_ARB_shader_clock
+#define GL_ARB_shader_clock 1
+#endif /* GL_ARB_shader_clock */
+
+#ifndef GL_ARB_shader_draw_parameters
+#define GL_ARB_shader_draw_parameters 1
+#endif /* GL_ARB_shader_draw_parameters */
+
+#ifndef GL_ARB_shader_group_vote
+#define GL_ARB_shader_group_vote 1
+#endif /* GL_ARB_shader_group_vote */
+
+#ifndef GL_ARB_shader_image_load_store
+#define GL_ARB_shader_image_load_store 1
+#endif /* GL_ARB_shader_image_load_store */
+
+#ifndef GL_ARB_shader_image_size
+#define GL_ARB_shader_image_size 1
+#endif /* GL_ARB_shader_image_size */
+
+#ifndef GL_ARB_shader_objects
+#define GL_ARB_shader_objects 1
+#ifdef __APPLE__
+#ifdef BUILDING_MESA
+/* Avoid uint <-> void* warnings */
+typedef unsigned long GLhandleARB;
+#else
+typedef void *GLhandleARB;
+#endif
+#else
+typedef unsigned int GLhandleARB;
+#endif
+typedef char GLcharARB;
+#define GL_PROGRAM_OBJECT_ARB 0x8B40
+#define GL_SHADER_OBJECT_ARB 0x8B48
+#define GL_OBJECT_TYPE_ARB 0x8B4E
+#define GL_OBJECT_SUBTYPE_ARB 0x8B4F
+#define GL_FLOAT_VEC2_ARB 0x8B50
+#define GL_FLOAT_VEC3_ARB 0x8B51
+#define GL_FLOAT_VEC4_ARB 0x8B52
+#define GL_INT_VEC2_ARB 0x8B53
+#define GL_INT_VEC3_ARB 0x8B54
+#define GL_INT_VEC4_ARB 0x8B55
+#define GL_BOOL_ARB 0x8B56
+#define GL_BOOL_VEC2_ARB 0x8B57
+#define GL_BOOL_VEC3_ARB 0x8B58
+#define GL_BOOL_VEC4_ARB 0x8B59
+#define GL_FLOAT_MAT2_ARB 0x8B5A
+#define GL_FLOAT_MAT3_ARB 0x8B5B
+#define GL_FLOAT_MAT4_ARB 0x8B5C
+#define GL_SAMPLER_1D_ARB 0x8B5D
+#define GL_SAMPLER_2D_ARB 0x8B5E
+#define GL_SAMPLER_3D_ARB 0x8B5F
+#define GL_SAMPLER_CUBE_ARB 0x8B60
+#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61
+#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62
+#define GL_SAMPLER_2D_RECT_ARB 0x8B63
+#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64
+#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80
+#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81
+#define GL_OBJECT_LINK_STATUS_ARB 0x8B82
+#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83
+#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84
+#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85
+#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86
+#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
+#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
+typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
+typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname);
+typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
+typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
+typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
+typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
+typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
+typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
+typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
+typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
+typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
+typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params);
+typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB obj);
+GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum pname);
+GLAPI void APIENTRY glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj);
+GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum shaderType);
+GLAPI void APIENTRY glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
+GLAPI void APIENTRY glCompileShaderARB (GLhandleARB shaderObj);
+GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void);
+GLAPI void APIENTRY glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj);
+GLAPI void APIENTRY glLinkProgramARB (GLhandleARB programObj);
+GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB programObj);
+GLAPI void APIENTRY glValidateProgramARB (GLhandleARB programObj);
+GLAPI void APIENTRY glUniform1fARB (GLint location, GLfloat v0);
+GLAPI void APIENTRY glUniform2fARB (GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glUniform1iARB (GLint location, GLint v0);
+GLAPI void APIENTRY glUniform2iARB (GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glUniform1ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform2ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform3ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniform4ivARB (GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
+GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
+GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name);
+GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params);
+GLAPI void APIENTRY glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params);
+GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
+#endif
+#endif /* GL_ARB_shader_objects */
+
+#ifndef GL_ARB_shader_precision
+#define GL_ARB_shader_precision 1
+#endif /* GL_ARB_shader_precision */
+
+#ifndef GL_ARB_shader_stencil_export
+#define GL_ARB_shader_stencil_export 1
+#endif /* GL_ARB_shader_stencil_export */
+
+#ifndef GL_ARB_shader_storage_buffer_object
+#define GL_ARB_shader_storage_buffer_object 1
+#endif /* GL_ARB_shader_storage_buffer_object */
+
+#ifndef GL_ARB_shader_subroutine
+#define GL_ARB_shader_subroutine 1
+#endif /* GL_ARB_shader_subroutine */
+
+#ifndef GL_ARB_shader_texture_image_samples
+#define GL_ARB_shader_texture_image_samples 1
+#endif /* GL_ARB_shader_texture_image_samples */
+
+#ifndef GL_ARB_shader_texture_lod
+#define GL_ARB_shader_texture_lod 1
+#endif /* GL_ARB_shader_texture_lod */
+
+#ifndef GL_ARB_shader_viewport_layer_array
+#define GL_ARB_shader_viewport_layer_array 1
+#endif /* GL_ARB_shader_viewport_layer_array */
+
+#ifndef GL_ARB_shading_language_100
+#define GL_ARB_shading_language_100 1
+#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C
+#endif /* GL_ARB_shading_language_100 */
+
+#ifndef GL_ARB_shading_language_420pack
+#define GL_ARB_shading_language_420pack 1
+#endif /* GL_ARB_shading_language_420pack */
+
+#ifndef GL_ARB_shading_language_include
+#define GL_ARB_shading_language_include 1
+#define GL_SHADER_INCLUDE_ARB 0x8DAE
+#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9
+#define GL_NAMED_STRING_TYPE_ARB 0x8DEA
+typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
+typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
+typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
+typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
+typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
+GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name);
+GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
+GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name);
+GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
+GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ARB_shading_language_include */
+
+#ifndef GL_ARB_shading_language_packing
+#define GL_ARB_shading_language_packing 1
+#endif /* GL_ARB_shading_language_packing */
+
+#ifndef GL_ARB_shadow
+#define GL_ARB_shadow 1
+#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C
+#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D
+#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E
+#endif /* GL_ARB_shadow */
+
+#ifndef GL_ARB_shadow_ambient
+#define GL_ARB_shadow_ambient 1
+#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
+#endif /* GL_ARB_shadow_ambient */
+
+#ifndef GL_ARB_sparse_buffer
+#define GL_ARB_sparse_buffer 1
+#define GL_SPARSE_STORAGE_BIT_ARB 0x0400
+#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8
+typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferPageCommitmentARB (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit);
+GLAPI void APIENTRY glNamedBufferPageCommitmentEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+GLAPI void APIENTRY glNamedBufferPageCommitmentARB (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit);
+#endif
+#endif /* GL_ARB_sparse_buffer */
+
+#ifndef GL_ARB_sparse_texture
+#define GL_ARB_sparse_texture 1
+#define GL_TEXTURE_SPARSE_ARB 0x91A6
+#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7
+#define GL_NUM_SPARSE_LEVELS_ARB 0x91AA
+#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8
+#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197
+#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A
+#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9
+typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+#endif
+#endif /* GL_ARB_sparse_texture */
+
+#ifndef GL_ARB_sparse_texture2
+#define GL_ARB_sparse_texture2 1
+#endif /* GL_ARB_sparse_texture2 */
+
+#ifndef GL_ARB_sparse_texture_clamp
+#define GL_ARB_sparse_texture_clamp 1
+#endif /* GL_ARB_sparse_texture_clamp */
+
+#ifndef GL_ARB_spirv_extensions
+#define GL_ARB_spirv_extensions 1
+#endif /* GL_ARB_spirv_extensions */
+
+#ifndef GL_ARB_stencil_texturing
+#define GL_ARB_stencil_texturing 1
+#endif /* GL_ARB_stencil_texturing */
+
+#ifndef GL_ARB_sync
+#define GL_ARB_sync 1
+#endif /* GL_ARB_sync */
+
+#ifndef GL_ARB_tessellation_shader
+#define GL_ARB_tessellation_shader 1
+#endif /* GL_ARB_tessellation_shader */
+
+#ifndef GL_ARB_texture_barrier
+#define GL_ARB_texture_barrier 1
+#endif /* GL_ARB_texture_barrier */
+
+#ifndef GL_ARB_texture_border_clamp
+#define GL_ARB_texture_border_clamp 1
+#define GL_CLAMP_TO_BORDER_ARB 0x812D
+#endif /* GL_ARB_texture_border_clamp */
+
+#ifndef GL_ARB_texture_buffer_object
+#define GL_ARB_texture_buffer_object 1
+#define GL_TEXTURE_BUFFER_ARB 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
+#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E
+typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer);
+#endif
+#endif /* GL_ARB_texture_buffer_object */
+
+#ifndef GL_ARB_texture_buffer_object_rgb32
+#define GL_ARB_texture_buffer_object_rgb32 1
+#endif /* GL_ARB_texture_buffer_object_rgb32 */
+
+#ifndef GL_ARB_texture_buffer_range
+#define GL_ARB_texture_buffer_range 1
+#endif /* GL_ARB_texture_buffer_range */
+
+#ifndef GL_ARB_texture_compression
+#define GL_ARB_texture_compression 1
+#define GL_COMPRESSED_ALPHA_ARB 0x84E9
+#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
+#define GL_COMPRESSED_INTENSITY_ARB 0x84EC
+#define GL_COMPRESSED_RGB_ARB 0x84ED
+#define GL_COMPRESSED_RGBA_ARB 0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
+#define GL_TEXTURE_COMPRESSED_ARB 0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, void *img);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
+GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum target, GLint level, void *img);
+#endif
+#endif /* GL_ARB_texture_compression */
+
+#ifndef GL_ARB_texture_compression_bptc
+#define GL_ARB_texture_compression_bptc 1
+#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
+#endif /* GL_ARB_texture_compression_bptc */
+
+#ifndef GL_ARB_texture_compression_rgtc
+#define GL_ARB_texture_compression_rgtc 1
+#endif /* GL_ARB_texture_compression_rgtc */
+
+#ifndef GL_ARB_texture_cube_map
+#define GL_ARB_texture_cube_map 1
+#define GL_NORMAL_MAP_ARB 0x8511
+#define GL_REFLECTION_MAP_ARB 0x8512
+#define GL_TEXTURE_CUBE_MAP_ARB 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C
+#endif /* GL_ARB_texture_cube_map */
+
+#ifndef GL_ARB_texture_cube_map_array
+#define GL_ARB_texture_cube_map_array 1
+#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
+#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
+#endif /* GL_ARB_texture_cube_map_array */
+
+#ifndef GL_ARB_texture_env_add
+#define GL_ARB_texture_env_add 1
+#endif /* GL_ARB_texture_env_add */
+
+#ifndef GL_ARB_texture_env_combine
+#define GL_ARB_texture_env_combine 1
+#define GL_COMBINE_ARB 0x8570
+#define GL_COMBINE_RGB_ARB 0x8571
+#define GL_COMBINE_ALPHA_ARB 0x8572
+#define GL_SOURCE0_RGB_ARB 0x8580
+#define GL_SOURCE1_RGB_ARB 0x8581
+#define GL_SOURCE2_RGB_ARB 0x8582
+#define GL_SOURCE0_ALPHA_ARB 0x8588
+#define GL_SOURCE1_ALPHA_ARB 0x8589
+#define GL_SOURCE2_ALPHA_ARB 0x858A
+#define GL_OPERAND0_RGB_ARB 0x8590
+#define GL_OPERAND1_RGB_ARB 0x8591
+#define GL_OPERAND2_RGB_ARB 0x8592
+#define GL_OPERAND0_ALPHA_ARB 0x8598
+#define GL_OPERAND1_ALPHA_ARB 0x8599
+#define GL_OPERAND2_ALPHA_ARB 0x859A
+#define GL_RGB_SCALE_ARB 0x8573
+#define GL_ADD_SIGNED_ARB 0x8574
+#define GL_INTERPOLATE_ARB 0x8575
+#define GL_SUBTRACT_ARB 0x84E7
+#define GL_CONSTANT_ARB 0x8576
+#define GL_PRIMARY_COLOR_ARB 0x8577
+#define GL_PREVIOUS_ARB 0x8578
+#endif /* GL_ARB_texture_env_combine */
+
+#ifndef GL_ARB_texture_env_crossbar
+#define GL_ARB_texture_env_crossbar 1
+#endif /* GL_ARB_texture_env_crossbar */
+
+#ifndef GL_ARB_texture_env_dot3
+#define GL_ARB_texture_env_dot3 1
+#define GL_DOT3_RGB_ARB 0x86AE
+#define GL_DOT3_RGBA_ARB 0x86AF
+#endif /* GL_ARB_texture_env_dot3 */
+
+#ifndef GL_ARB_texture_filter_anisotropic
+#define GL_ARB_texture_filter_anisotropic 1
+#endif /* GL_ARB_texture_filter_anisotropic */
+
+#ifndef GL_ARB_texture_filter_minmax
+#define GL_ARB_texture_filter_minmax 1
+#define GL_TEXTURE_REDUCTION_MODE_ARB 0x9366
+#define GL_WEIGHTED_AVERAGE_ARB 0x9367
+#endif /* GL_ARB_texture_filter_minmax */
+
+#ifndef GL_ARB_texture_float
+#define GL_ARB_texture_float 1
+#define GL_TEXTURE_RED_TYPE_ARB 0x8C10
+#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11
+#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12
+#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13
+#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14
+#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15
+#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16
+#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17
+#define GL_RGBA32F_ARB 0x8814
+#define GL_RGB32F_ARB 0x8815
+#define GL_ALPHA32F_ARB 0x8816
+#define GL_INTENSITY32F_ARB 0x8817
+#define GL_LUMINANCE32F_ARB 0x8818
+#define GL_LUMINANCE_ALPHA32F_ARB 0x8819
+#define GL_RGBA16F_ARB 0x881A
+#define GL_RGB16F_ARB 0x881B
+#define GL_ALPHA16F_ARB 0x881C
+#define GL_INTENSITY16F_ARB 0x881D
+#define GL_LUMINANCE16F_ARB 0x881E
+#define GL_LUMINANCE_ALPHA16F_ARB 0x881F
+#endif /* GL_ARB_texture_float */
+
+#ifndef GL_ARB_texture_gather
+#define GL_ARB_texture_gather 1
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
+#endif /* GL_ARB_texture_gather */
+
+#ifndef GL_ARB_texture_mirror_clamp_to_edge
+#define GL_ARB_texture_mirror_clamp_to_edge 1
+#endif /* GL_ARB_texture_mirror_clamp_to_edge */
+
+#ifndef GL_ARB_texture_mirrored_repeat
+#define GL_ARB_texture_mirrored_repeat 1
+#define GL_MIRRORED_REPEAT_ARB 0x8370
+#endif /* GL_ARB_texture_mirrored_repeat */
+
+#ifndef GL_ARB_texture_multisample
+#define GL_ARB_texture_multisample 1
+#endif /* GL_ARB_texture_multisample */
+
+#ifndef GL_ARB_texture_non_power_of_two
+#define GL_ARB_texture_non_power_of_two 1
+#endif /* GL_ARB_texture_non_power_of_two */
+
+#ifndef GL_ARB_texture_query_levels
+#define GL_ARB_texture_query_levels 1
+#endif /* GL_ARB_texture_query_levels */
+
+#ifndef GL_ARB_texture_query_lod
+#define GL_ARB_texture_query_lod 1
+#endif /* GL_ARB_texture_query_lod */
+
+#ifndef GL_ARB_texture_rectangle
+#define GL_ARB_texture_rectangle 1
+#define GL_TEXTURE_RECTANGLE_ARB 0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
+#endif /* GL_ARB_texture_rectangle */
+
+#ifndef GL_ARB_texture_rg
+#define GL_ARB_texture_rg 1
+#endif /* GL_ARB_texture_rg */
+
+#ifndef GL_ARB_texture_rgb10_a2ui
+#define GL_ARB_texture_rgb10_a2ui 1
+#endif /* GL_ARB_texture_rgb10_a2ui */
+
+#ifndef GL_ARB_texture_stencil8
+#define GL_ARB_texture_stencil8 1
+#endif /* GL_ARB_texture_stencil8 */
+
+#ifndef GL_ARB_texture_storage
+#define GL_ARB_texture_storage 1
+#endif /* GL_ARB_texture_storage */
+
+#ifndef GL_ARB_texture_storage_multisample
+#define GL_ARB_texture_storage_multisample 1
+#endif /* GL_ARB_texture_storage_multisample */
+
+#ifndef GL_ARB_texture_swizzle
+#define GL_ARB_texture_swizzle 1
+#endif /* GL_ARB_texture_swizzle */
+
+#ifndef GL_ARB_texture_view
+#define GL_ARB_texture_view 1
+#endif /* GL_ARB_texture_view */
+
+#ifndef GL_ARB_timer_query
+#define GL_ARB_timer_query 1
+#endif /* GL_ARB_timer_query */
+
+#ifndef GL_ARB_transform_feedback2
+#define GL_ARB_transform_feedback2 1
+#endif /* GL_ARB_transform_feedback2 */
+
+#ifndef GL_ARB_transform_feedback3
+#define GL_ARB_transform_feedback3 1
+#endif /* GL_ARB_transform_feedback3 */
+
+#ifndef GL_ARB_transform_feedback_instanced
+#define GL_ARB_transform_feedback_instanced 1
+#endif /* GL_ARB_transform_feedback_instanced */
+
+#ifndef GL_ARB_transform_feedback_overflow_query
+#define GL_ARB_transform_feedback_overflow_query 1
+#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC
+#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED
+#endif /* GL_ARB_transform_feedback_overflow_query */
+
+#ifndef GL_ARB_transpose_matrix
+#define GL_ARB_transpose_matrix 1
+#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *m);
+GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *m);
+GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *m);
+GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *m);
+#endif
+#endif /* GL_ARB_transpose_matrix */
+
+#ifndef GL_ARB_uniform_buffer_object
+#define GL_ARB_uniform_buffer_object 1
+#endif /* GL_ARB_uniform_buffer_object */
+
+#ifndef GL_ARB_vertex_array_bgra
+#define GL_ARB_vertex_array_bgra 1
+#endif /* GL_ARB_vertex_array_bgra */
+
+#ifndef GL_ARB_vertex_array_object
+#define GL_ARB_vertex_array_object 1
+#endif /* GL_ARB_vertex_array_object */
+
+#ifndef GL_ARB_vertex_attrib_64bit
+#define GL_ARB_vertex_attrib_64bit 1
+#endif /* GL_ARB_vertex_attrib_64bit */
+
+#ifndef GL_ARB_vertex_attrib_binding
+#define GL_ARB_vertex_attrib_binding 1
+#endif /* GL_ARB_vertex_attrib_binding */
+
+#ifndef GL_ARB_vertex_blend
+#define GL_ARB_vertex_blend 1
+#define GL_MAX_VERTEX_UNITS_ARB 0x86A4
+#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
+#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6
+#define GL_VERTEX_BLEND_ARB 0x86A7
+#define GL_CURRENT_WEIGHT_ARB 0x86A8
+#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9
+#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA
+#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB
+#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC
+#define GL_WEIGHT_ARRAY_ARB 0x86AD
+#define GL_MODELVIEW0_ARB 0x1700
+#define GL_MODELVIEW1_ARB 0x850A
+#define GL_MODELVIEW2_ARB 0x8722
+#define GL_MODELVIEW3_ARB 0x8723
+#define GL_MODELVIEW4_ARB 0x8724
+#define GL_MODELVIEW5_ARB 0x8725
+#define GL_MODELVIEW6_ARB 0x8726
+#define GL_MODELVIEW7_ARB 0x8727
+#define GL_MODELVIEW8_ARB 0x8728
+#define GL_MODELVIEW9_ARB 0x8729
+#define GL_MODELVIEW10_ARB 0x872A
+#define GL_MODELVIEW11_ARB 0x872B
+#define GL_MODELVIEW12_ARB 0x872C
+#define GL_MODELVIEW13_ARB 0x872D
+#define GL_MODELVIEW14_ARB 0x872E
+#define GL_MODELVIEW15_ARB 0x872F
+#define GL_MODELVIEW16_ARB 0x8730
+#define GL_MODELVIEW17_ARB 0x8731
+#define GL_MODELVIEW18_ARB 0x8732
+#define GL_MODELVIEW19_ARB 0x8733
+#define GL_MODELVIEW20_ARB 0x8734
+#define GL_MODELVIEW21_ARB 0x8735
+#define GL_MODELVIEW22_ARB 0x8736
+#define GL_MODELVIEW23_ARB 0x8737
+#define GL_MODELVIEW24_ARB 0x8738
+#define GL_MODELVIEW25_ARB 0x8739
+#define GL_MODELVIEW26_ARB 0x873A
+#define GL_MODELVIEW27_ARB 0x873B
+#define GL_MODELVIEW28_ARB 0x873C
+#define GL_MODELVIEW29_ARB 0x873D
+#define GL_MODELVIEW30_ARB 0x873E
+#define GL_MODELVIEW31_ARB 0x873F
+typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
+typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
+typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
+typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
+typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
+typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
+typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
+typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
+typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWeightbvARB (GLint size, const GLbyte *weights);
+GLAPI void APIENTRY glWeightsvARB (GLint size, const GLshort *weights);
+GLAPI void APIENTRY glWeightivARB (GLint size, const GLint *weights);
+GLAPI void APIENTRY glWeightfvARB (GLint size, const GLfloat *weights);
+GLAPI void APIENTRY glWeightdvARB (GLint size, const GLdouble *weights);
+GLAPI void APIENTRY glWeightubvARB (GLint size, const GLubyte *weights);
+GLAPI void APIENTRY glWeightusvARB (GLint size, const GLushort *weights);
+GLAPI void APIENTRY glWeightuivARB (GLint size, const GLuint *weights);
+GLAPI void APIENTRY glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glVertexBlendARB (GLint count);
+#endif
+#endif /* GL_ARB_vertex_blend */
+
+#ifndef GL_ARB_vertex_buffer_object
+#define GL_ARB_vertex_buffer_object 1
+typedef khronos_ssize_t GLsizeiptrARB;
+typedef khronos_intptr_t GLintptrARB;
+#define GL_BUFFER_SIZE_ARB 0x8764
+#define GL_BUFFER_USAGE_ARB 0x8765
+#define GL_ARRAY_BUFFER_ARB 0x8892
+#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
+#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
+#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
+#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
+#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
+#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
+#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
+#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
+#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
+#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
+#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
+#define GL_READ_ONLY_ARB 0x88B8
+#define GL_WRITE_ONLY_ARB 0x88B9
+#define GL_READ_WRITE_ARB 0x88BA
+#define GL_BUFFER_ACCESS_ARB 0x88BB
+#define GL_BUFFER_MAPPED_ARB 0x88BC
+#define GL_BUFFER_MAP_POINTER_ARB 0x88BD
+#define GL_STREAM_DRAW_ARB 0x88E0
+#define GL_STREAM_READ_ARB 0x88E1
+#define GL_STREAM_COPY_ARB 0x88E2
+#define GL_STATIC_DRAW_ARB 0x88E4
+#define GL_STATIC_READ_ARB 0x88E5
+#define GL_STATIC_COPY_ARB 0x88E6
+#define GL_DYNAMIC_DRAW_ARB 0x88E8
+#define GL_DYNAMIC_READ_ARB 0x88E9
+#define GL_DYNAMIC_COPY_ARB 0x88EA
+typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
+typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
+typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data);
+typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data);
+typedef void *(APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindBufferARB (GLenum target, GLuint buffer);
+GLAPI void APIENTRY glDeleteBuffersARB (GLsizei n, const GLuint *buffers);
+GLAPI void APIENTRY glGenBuffersARB (GLsizei n, GLuint *buffers);
+GLAPI GLboolean APIENTRY glIsBufferARB (GLuint buffer);
+GLAPI void APIENTRY glBufferDataARB (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage);
+GLAPI void APIENTRY glBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data);
+GLAPI void APIENTRY glGetBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data);
+GLAPI void *APIENTRY glMapBufferARB (GLenum target, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum target);
+GLAPI void APIENTRY glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetBufferPointervARB (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_ARB_vertex_buffer_object */
+
+#ifndef GL_ARB_vertex_program
+#define GL_ARB_vertex_program 1
+#define GL_COLOR_SUM_ARB 0x8458
+#define GL_VERTEX_PROGRAM_ARB 0x8620
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
+#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
+#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
+#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
+#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
+#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0
+#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
+#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
+#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, void **pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttrib1dARB (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1fARB (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1sARB (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4svARB (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint index);
+GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint index);
+GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint index, GLenum pname, void **pointer);
+#endif
+#endif /* GL_ARB_vertex_program */
+
+#ifndef GL_ARB_vertex_shader
+#define GL_ARB_vertex_shader 1
+#define GL_VERTEX_SHADER_ARB 0x8B31
+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
+#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
+#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89
+#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
+typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
+typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name);
+GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
+GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name);
+#endif
+#endif /* GL_ARB_vertex_shader */
+
+#ifndef GL_ARB_vertex_type_10f_11f_11f_rev
+#define GL_ARB_vertex_type_10f_11f_11f_rev 1
+#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */
+
+#ifndef GL_ARB_vertex_type_2_10_10_10_rev
+#define GL_ARB_vertex_type_2_10_10_10_rev 1
+#endif /* GL_ARB_vertex_type_2_10_10_10_rev */
+
+#ifndef GL_ARB_viewport_array
+#define GL_ARB_viewport_array 1
+typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYDVNVPROC) (GLuint first, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDDNVPROC) (GLuint index, GLdouble n, GLdouble f);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthRangeArraydvNV (GLuint first, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glDepthRangeIndexeddNV (GLuint index, GLdouble n, GLdouble f);
+#endif
+#endif /* GL_ARB_viewport_array */
+
+#ifndef GL_ARB_window_pos
+#define GL_ARB_window_pos 1
+typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWindowPos2dARB (GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos2fARB (GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos2iARB (GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2ivARB (const GLint *v);
+GLAPI void APIENTRY glWindowPos2sARB (GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2svARB (const GLshort *v);
+GLAPI void APIENTRY glWindowPos3dARB (GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos3fARB (GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos3iARB (GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3ivARB (const GLint *v);
+GLAPI void APIENTRY glWindowPos3sARB (GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3svARB (const GLshort *v);
+#endif
+#endif /* GL_ARB_window_pos */
+
+#ifndef GL_KHR_blend_equation_advanced
+#define GL_KHR_blend_equation_advanced 1
+#define GL_MULTIPLY_KHR 0x9294
+#define GL_SCREEN_KHR 0x9295
+#define GL_OVERLAY_KHR 0x9296
+#define GL_DARKEN_KHR 0x9297
+#define GL_LIGHTEN_KHR 0x9298
+#define GL_COLORDODGE_KHR 0x9299
+#define GL_COLORBURN_KHR 0x929A
+#define GL_HARDLIGHT_KHR 0x929B
+#define GL_SOFTLIGHT_KHR 0x929C
+#define GL_DIFFERENCE_KHR 0x929E
+#define GL_EXCLUSION_KHR 0x92A0
+#define GL_HSL_HUE_KHR 0x92AD
+#define GL_HSL_SATURATION_KHR 0x92AE
+#define GL_HSL_COLOR_KHR 0x92AF
+#define GL_HSL_LUMINOSITY_KHR 0x92B0
+typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendBarrierKHR (void);
+#endif
+#endif /* GL_KHR_blend_equation_advanced */
+
+#ifndef GL_KHR_blend_equation_advanced_coherent
+#define GL_KHR_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285
+#endif /* GL_KHR_blend_equation_advanced_coherent */
+
+#ifndef GL_KHR_context_flush_control
+#define GL_KHR_context_flush_control 1
+#endif /* GL_KHR_context_flush_control */
+
+#ifndef GL_KHR_debug
+#define GL_KHR_debug 1
+#endif /* GL_KHR_debug */
+
+#ifndef GL_KHR_no_error
+#define GL_KHR_no_error 1
+#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008
+#endif /* GL_KHR_no_error */
+
+#ifndef GL_KHR_parallel_shader_compile
+#define GL_KHR_parallel_shader_compile 1
+#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0
+#define GL_COMPLETION_STATUS_KHR 0x91B1
+typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMaxShaderCompilerThreadsKHR (GLuint count);
+#endif
+#endif /* GL_KHR_parallel_shader_compile */
+
+#ifndef GL_KHR_robust_buffer_access_behavior
+#define GL_KHR_robust_buffer_access_behavior 1
+#endif /* GL_KHR_robust_buffer_access_behavior */
+
+#ifndef GL_KHR_robustness
+#define GL_KHR_robustness 1
+#define GL_CONTEXT_ROBUST_ACCESS 0x90F3
+#endif /* GL_KHR_robustness */
+
+#ifndef GL_KHR_shader_subgroup
+#define GL_KHR_shader_subgroup 1
+#define GL_SUBGROUP_SIZE_KHR 0x9532
+#define GL_SUBGROUP_SUPPORTED_STAGES_KHR 0x9533
+#define GL_SUBGROUP_SUPPORTED_FEATURES_KHR 0x9534
+#define GL_SUBGROUP_QUAD_ALL_STAGES_KHR 0x9535
+#define GL_SUBGROUP_FEATURE_BASIC_BIT_KHR 0x00000001
+#define GL_SUBGROUP_FEATURE_VOTE_BIT_KHR 0x00000002
+#define GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR 0x00000004
+#define GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR 0x00000008
+#define GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR 0x00000010
+#define GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR 0x00000020
+#define GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR 0x00000040
+#define GL_SUBGROUP_FEATURE_QUAD_BIT_KHR 0x00000080
+#endif /* GL_KHR_shader_subgroup */
+
+#ifndef GL_KHR_texture_compression_astc_hdr
+#define GL_KHR_texture_compression_astc_hdr 1
+#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
+#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
+#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
+#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
+#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
+#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
+#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
+#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
+#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
+#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
+#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
+#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
+#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
+#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
+#endif /* GL_KHR_texture_compression_astc_hdr */
+
+#ifndef GL_KHR_texture_compression_astc_ldr
+#define GL_KHR_texture_compression_astc_ldr 1
+#endif /* GL_KHR_texture_compression_astc_ldr */
+
+#ifndef GL_KHR_texture_compression_astc_sliced_3d
+#define GL_KHR_texture_compression_astc_sliced_3d 1
+#endif /* GL_KHR_texture_compression_astc_sliced_3d */
+
+#ifndef GL_OES_byte_coordinates
+#define GL_OES_byte_coordinates 1
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC) (GLenum texture, GLbyte s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC) (GLenum texture, GLbyte s, GLbyte t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC) (GLenum texture, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC) (GLbyte s);
+typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC) (GLbyte s, GLbyte t);
+typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC) (GLbyte s, GLbyte t, GLbyte r);
+typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC) (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLVERTEX2BOESPROC) (GLbyte x, GLbyte y);
+typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLVERTEX3BOESPROC) (GLbyte x, GLbyte y, GLbyte z);
+typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC) (const GLbyte *coords);
+typedef void (APIENTRYP PFNGLVERTEX4BOESPROC) (GLbyte x, GLbyte y, GLbyte z, GLbyte w);
+typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC) (const GLbyte *coords);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiTexCoord1bOES (GLenum texture, GLbyte s);
+GLAPI void APIENTRY glMultiTexCoord1bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glMultiTexCoord2bOES (GLenum texture, GLbyte s, GLbyte t);
+GLAPI void APIENTRY glMultiTexCoord2bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glMultiTexCoord3bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
+GLAPI void APIENTRY glMultiTexCoord3bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glMultiTexCoord4bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+GLAPI void APIENTRY glMultiTexCoord4bvOES (GLenum texture, const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord1bOES (GLbyte s);
+GLAPI void APIENTRY glTexCoord1bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord2bOES (GLbyte s, GLbyte t);
+GLAPI void APIENTRY glTexCoord2bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord3bOES (GLbyte s, GLbyte t, GLbyte r);
+GLAPI void APIENTRY glTexCoord3bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glTexCoord4bOES (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
+GLAPI void APIENTRY glTexCoord4bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glVertex2bOES (GLbyte x, GLbyte y);
+GLAPI void APIENTRY glVertex2bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glVertex3bOES (GLbyte x, GLbyte y, GLbyte z);
+GLAPI void APIENTRY glVertex3bvOES (const GLbyte *coords);
+GLAPI void APIENTRY glVertex4bOES (GLbyte x, GLbyte y, GLbyte z, GLbyte w);
+GLAPI void APIENTRY glVertex4bvOES (const GLbyte *coords);
+#endif
+#endif /* GL_OES_byte_coordinates */
+
+#ifndef GL_OES_compressed_paletted_texture
+#define GL_OES_compressed_paletted_texture 1
+#define GL_PALETTE4_RGB8_OES 0x8B90
+#define GL_PALETTE4_RGBA8_OES 0x8B91
+#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
+#define GL_PALETTE4_RGBA4_OES 0x8B93
+#define GL_PALETTE4_RGB5_A1_OES 0x8B94
+#define GL_PALETTE8_RGB8_OES 0x8B95
+#define GL_PALETTE8_RGBA8_OES 0x8B96
+#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
+#define GL_PALETTE8_RGBA4_OES 0x8B98
+#define GL_PALETTE8_RGB5_A1_OES 0x8B99
+#endif /* GL_OES_compressed_paletted_texture */
+
+#ifndef GL_OES_fixed_point
+#define GL_OES_fixed_point 1
+typedef khronos_int32_t GLfixed;
+#define GL_FIXED_OES 0x140C
+typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref);
+typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth);
+typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation);
+typedef void (APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f);
+typedef void (APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *param);
+typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed *equation);
+typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *param);
+typedef void (APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
+typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *param);
+typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+typedef void (APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
+typedef void (APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
+typedef void (APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLACCUMXOESPROC) (GLenum op, GLfixed value);
+typedef void (APIENTRYP PFNGLBITMAPXOESPROC) (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
+typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+typedef void (APIENTRYP PFNGLCOLOR3XOESPROC) (GLfixed red, GLfixed green, GLfixed blue);
+typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC) (const GLfixed *components);
+typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC) (const GLfixed *components);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC) (GLfixed u);
+typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC) (GLfixed u, GLfixed v);
+typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC) (GLsizei n, GLenum type, const GLfixed *buffer);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETMAPXVOESPROC) (GLenum target, GLenum query, GLfixed *v);
+typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC) (GLenum map, GLint size, GLfixed *values);
+typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC) (GLenum target, GLint level, GLenum pname, GLfixed *params);
+typedef void (APIENTRYP PFNGLINDEXXOESPROC) (GLfixed component);
+typedef void (APIENTRYP PFNGLINDEXXVOESPROC) (const GLfixed *component);
+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMAP1XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
+typedef void (APIENTRYP PFNGLMAP2XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
+typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC) (GLint n, GLfixed u1, GLfixed u2);
+typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC) (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC) (GLenum texture, GLfixed s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC) (GLenum texture, GLfixed s, GLfixed t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC) (GLenum texture, const GLfixed *coords);
+typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC) (GLfixed token);
+typedef void (APIENTRYP PFNGLPIXELMAPXPROC) (GLenum map, GLint size, const GLfixed *values);
+typedef void (APIENTRYP PFNGLPIXELSTOREXPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC) (GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC) (GLfixed xfactor, GLfixed yfactor);
+typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC) (GLsizei n, const GLuint *textures, const GLfixed *priorities);
+typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC) (GLfixed x, GLfixed y);
+typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
+typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLRECTXOESPROC) (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
+typedef void (APIENTRYP PFNGLRECTXVOESPROC) (const GLfixed *v1, const GLfixed *v2);
+typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC) (GLfixed s);
+typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC) (GLfixed s, GLfixed t);
+typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC) (GLfixed s, GLfixed t, GLfixed r);
+typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC) (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
+typedef void (APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params);
+typedef void (APIENTRYP PFNGLVERTEX2XOESPROC) (GLfixed x);
+typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLVERTEX3XOESPROC) (GLfixed x, GLfixed y);
+typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC) (const GLfixed *coords);
+typedef void (APIENTRYP PFNGLVERTEX4XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
+typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC) (const GLfixed *coords);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glAlphaFuncxOES (GLenum func, GLfixed ref);
+GLAPI void APIENTRY glClearColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glClearDepthxOES (GLfixed depth);
+GLAPI void APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation);
+GLAPI void APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glDepthRangexOES (GLfixed n, GLfixed f);
+GLAPI void APIENTRY glFogxOES (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glFogxvOES (GLenum pname, const GLfixed *param);
+GLAPI void APIENTRY glFrustumxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+GLAPI void APIENTRY glGetClipPlanexOES (GLenum plane, GLfixed *equation);
+GLAPI void APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetTexEnvxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *param);
+GLAPI void APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glLineWidthxOES (GLfixed width);
+GLAPI void APIENTRY glLoadMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *param);
+GLAPI void APIENTRY glMultMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+GLAPI void APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
+GLAPI void APIENTRY glOrthoxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
+GLAPI void APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glPointSizexOES (GLfixed size);
+GLAPI void APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
+GLAPI void APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glAccumxOES (GLenum op, GLfixed value);
+GLAPI void APIENTRY glBitmapxOES (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
+GLAPI void APIENTRY glBlendColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glClearAccumxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+GLAPI void APIENTRY glColor3xOES (GLfixed red, GLfixed green, GLfixed blue);
+GLAPI void APIENTRY glColor3xvOES (const GLfixed *components);
+GLAPI void APIENTRY glColor4xvOES (const GLfixed *components);
+GLAPI void APIENTRY glConvolutionParameterxOES (GLenum target, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glConvolutionParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glEvalCoord1xOES (GLfixed u);
+GLAPI void APIENTRY glEvalCoord1xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glEvalCoord2xOES (GLfixed u, GLfixed v);
+GLAPI void APIENTRY glEvalCoord2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glFeedbackBufferxOES (GLsizei n, GLenum type, const GLfixed *buffer);
+GLAPI void APIENTRY glGetConvolutionParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetHistogramParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetLightxOES (GLenum light, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetMapxvOES (GLenum target, GLenum query, GLfixed *v);
+GLAPI void APIENTRY glGetMaterialxOES (GLenum face, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glGetPixelMapxv (GLenum map, GLint size, GLfixed *values);
+GLAPI void APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glGetTexLevelParameterxvOES (GLenum target, GLint level, GLenum pname, GLfixed *params);
+GLAPI void APIENTRY glIndexxOES (GLfixed component);
+GLAPI void APIENTRY glIndexxvOES (const GLfixed *component);
+GLAPI void APIENTRY glLoadTransposeMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMap1xOES (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
+GLAPI void APIENTRY glMap2xOES (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
+GLAPI void APIENTRY glMapGrid1xOES (GLint n, GLfixed u1, GLfixed u2);
+GLAPI void APIENTRY glMapGrid2xOES (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
+GLAPI void APIENTRY glMultTransposeMatrixxOES (const GLfixed *m);
+GLAPI void APIENTRY glMultiTexCoord1xOES (GLenum texture, GLfixed s);
+GLAPI void APIENTRY glMultiTexCoord1xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glMultiTexCoord2xOES (GLenum texture, GLfixed s, GLfixed t);
+GLAPI void APIENTRY glMultiTexCoord2xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glMultiTexCoord3xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
+GLAPI void APIENTRY glMultiTexCoord3xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glMultiTexCoord4xvOES (GLenum texture, const GLfixed *coords);
+GLAPI void APIENTRY glNormal3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glPassThroughxOES (GLfixed token);
+GLAPI void APIENTRY glPixelMapx (GLenum map, GLint size, const GLfixed *values);
+GLAPI void APIENTRY glPixelStorex (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glPixelTransferxOES (GLenum pname, GLfixed param);
+GLAPI void APIENTRY glPixelZoomxOES (GLfixed xfactor, GLfixed yfactor);
+GLAPI void APIENTRY glPrioritizeTexturesxOES (GLsizei n, const GLuint *textures, const GLfixed *priorities);
+GLAPI void APIENTRY glRasterPos2xOES (GLfixed x, GLfixed y);
+GLAPI void APIENTRY glRasterPos2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glRasterPos3xOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glRasterPos3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glRasterPos4xOES (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
+GLAPI void APIENTRY glRasterPos4xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glRectxOES (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
+GLAPI void APIENTRY glRectxvOES (const GLfixed *v1, const GLfixed *v2);
+GLAPI void APIENTRY glTexCoord1xOES (GLfixed s);
+GLAPI void APIENTRY glTexCoord1xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexCoord2xOES (GLfixed s, GLfixed t);
+GLAPI void APIENTRY glTexCoord2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexCoord3xOES (GLfixed s, GLfixed t, GLfixed r);
+GLAPI void APIENTRY glTexCoord3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexCoord4xOES (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+GLAPI void APIENTRY glTexCoord4xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
+GLAPI void APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params);
+GLAPI void APIENTRY glVertex2xOES (GLfixed x);
+GLAPI void APIENTRY glVertex2xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glVertex3xOES (GLfixed x, GLfixed y);
+GLAPI void APIENTRY glVertex3xvOES (const GLfixed *coords);
+GLAPI void APIENTRY glVertex4xOES (GLfixed x, GLfixed y, GLfixed z);
+GLAPI void APIENTRY glVertex4xvOES (const GLfixed *coords);
+#endif
+#endif /* GL_OES_fixed_point */
+
+#ifndef GL_OES_query_matrix
+#define GL_OES_query_matrix 1
+typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed *mantissa, GLint *exponent);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLbitfield APIENTRY glQueryMatrixxOES (GLfixed *mantissa, GLint *exponent);
+#endif
+#endif /* GL_OES_query_matrix */
+
+#ifndef GL_OES_read_format
+#define GL_OES_read_format 1
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
+#endif /* GL_OES_read_format */
+
+#ifndef GL_OES_single_precision
+#define GL_OES_single_precision 1
+typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth);
+typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation);
+typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f);
+typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat *equation);
+typedef void (APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glClearDepthfOES (GLclampf depth);
+GLAPI void APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
+GLAPI void APIENTRY glDepthRangefOES (GLclampf n, GLclampf f);
+GLAPI void APIENTRY glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+GLAPI void APIENTRY glGetClipPlanefOES (GLenum plane, GLfloat *equation);
+GLAPI void APIENTRY glOrthofOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
+#endif
+#endif /* GL_OES_single_precision */
+
+#ifndef GL_3DFX_multisample
+#define GL_3DFX_multisample 1
+#define GL_MULTISAMPLE_3DFX 0x86B2
+#define GL_SAMPLE_BUFFERS_3DFX 0x86B3
+#define GL_SAMPLES_3DFX 0x86B4
+#define GL_MULTISAMPLE_BIT_3DFX 0x20000000
+#endif /* GL_3DFX_multisample */
+
+#ifndef GL_3DFX_tbuffer
+#define GL_3DFX_tbuffer 1
+typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTbufferMask3DFX (GLuint mask);
+#endif
+#endif /* GL_3DFX_tbuffer */
+
+#ifndef GL_3DFX_texture_compression_FXT1
+#define GL_3DFX_texture_compression_FXT1 1
+#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
+#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1
+#endif /* GL_3DFX_texture_compression_FXT1 */
+
+#ifndef GL_AMD_blend_minmax_factor
+#define GL_AMD_blend_minmax_factor 1
+#define GL_FACTOR_MIN_AMD 0x901C
+#define GL_FACTOR_MAX_AMD 0x901D
+#endif /* GL_AMD_blend_minmax_factor */
+
+#ifndef GL_AMD_conservative_depth
+#define GL_AMD_conservative_depth 1
+#endif /* GL_AMD_conservative_depth */
+
+#ifndef GL_AMD_debug_output
+#define GL_AMD_debug_output 1
+typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam);
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145
+#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147
+#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148
+#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149
+#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A
+#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B
+#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C
+#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D
+#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E
+#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F
+#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void *userParam);
+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufSize, GLenum *categories, GLenum *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDebugMessageEnableAMD (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GLAPI void APIENTRY glDebugMessageInsertAMD (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
+GLAPI void APIENTRY glDebugMessageCallbackAMD (GLDEBUGPROCAMD callback, void *userParam);
+GLAPI GLuint APIENTRY glGetDebugMessageLogAMD (GLuint count, GLsizei bufSize, GLenum *categories, GLenum *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
+#endif
+#endif /* GL_AMD_debug_output */
+
+#ifndef GL_AMD_depth_clamp_separate
+#define GL_AMD_depth_clamp_separate 1
+#define GL_DEPTH_CLAMP_NEAR_AMD 0x901E
+#define GL_DEPTH_CLAMP_FAR_AMD 0x901F
+#endif /* GL_AMD_depth_clamp_separate */
+
+#ifndef GL_AMD_draw_buffers_blend
+#define GL_AMD_draw_buffers_blend 1
+typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncIndexedAMD (GLuint buf, GLenum src, GLenum dst);
+GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GLAPI void APIENTRY glBlendEquationIndexedAMD (GLuint buf, GLenum mode);
+GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+#endif
+#endif /* GL_AMD_draw_buffers_blend */
+
+#ifndef GL_AMD_framebuffer_multisample_advanced
+#define GL_AMD_framebuffer_multisample_advanced 1
+#define GL_RENDERBUFFER_STORAGE_SAMPLES_AMD 0x91B2
+#define GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD 0x91B3
+#define GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD 0x91B4
+#define GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD 0x91B5
+#define GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B6
+#define GL_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B7
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleAdvancedAMD (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleAdvancedAMD (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_AMD_framebuffer_multisample_advanced */
+
+#ifndef GL_AMD_framebuffer_sample_positions
+#define GL_AMD_framebuffer_sample_positions 1
+#define GL_SUBSAMPLE_DISTANCE_AMD 0x883F
+#define GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD 0x91AE
+#define GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD 0x91AF
+#define GL_ALL_PIXELS_AMD 0xFFFFFFFF
+typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC) (GLenum target, GLuint numsamples, GLuint pixelindex, const GLfloat *values);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC) (GLuint framebuffer, GLuint numsamples, GLuint pixelindex, const GLfloat *values);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERFVAMDPROC) (GLenum target, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat *values);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERFVAMDPROC) (GLuint framebuffer, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat *values);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferSamplePositionsfvAMD (GLenum target, GLuint numsamples, GLuint pixelindex, const GLfloat *values);
+GLAPI void APIENTRY glNamedFramebufferSamplePositionsfvAMD (GLuint framebuffer, GLuint numsamples, GLuint pixelindex, const GLfloat *values);
+GLAPI void APIENTRY glGetFramebufferParameterfvAMD (GLenum target, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat *values);
+GLAPI void APIENTRY glGetNamedFramebufferParameterfvAMD (GLuint framebuffer, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat *values);
+#endif
+#endif /* GL_AMD_framebuffer_sample_positions */
+
+#ifndef GL_AMD_gcn_shader
+#define GL_AMD_gcn_shader 1
+#endif /* GL_AMD_gcn_shader */
+
+#ifndef GL_AMD_gpu_shader_half_float
+#define GL_AMD_gpu_shader_half_float 1
+#define GL_FLOAT16_NV 0x8FF8
+#define GL_FLOAT16_VEC2_NV 0x8FF9
+#define GL_FLOAT16_VEC3_NV 0x8FFA
+#define GL_FLOAT16_VEC4_NV 0x8FFB
+#define GL_FLOAT16_MAT2_AMD 0x91C5
+#define GL_FLOAT16_MAT3_AMD 0x91C6
+#define GL_FLOAT16_MAT4_AMD 0x91C7
+#define GL_FLOAT16_MAT2x3_AMD 0x91C8
+#define GL_FLOAT16_MAT2x4_AMD 0x91C9
+#define GL_FLOAT16_MAT3x2_AMD 0x91CA
+#define GL_FLOAT16_MAT3x4_AMD 0x91CB
+#define GL_FLOAT16_MAT4x2_AMD 0x91CC
+#define GL_FLOAT16_MAT4x3_AMD 0x91CD
+#endif /* GL_AMD_gpu_shader_half_float */
+
+#ifndef GL_AMD_gpu_shader_int16
+#define GL_AMD_gpu_shader_int16 1
+#endif /* GL_AMD_gpu_shader_int16 */
+
+#ifndef GL_AMD_gpu_shader_int64
+#define GL_AMD_gpu_shader_int64 1
+typedef khronos_int64_t GLint64EXT;
+#define GL_INT64_NV 0x140E
+#define GL_UNSIGNED_INT64_NV 0x140F
+#define GL_INT8_NV 0x8FE0
+#define GL_INT8_VEC2_NV 0x8FE1
+#define GL_INT8_VEC3_NV 0x8FE2
+#define GL_INT8_VEC4_NV 0x8FE3
+#define GL_INT16_NV 0x8FE4
+#define GL_INT16_VEC2_NV 0x8FE5
+#define GL_INT16_VEC3_NV 0x8FE6
+#define GL_INT16_VEC4_NV 0x8FE7
+#define GL_INT64_VEC2_NV 0x8FE9
+#define GL_INT64_VEC3_NV 0x8FEA
+#define GL_INT64_VEC4_NV 0x8FEB
+#define GL_UNSIGNED_INT8_NV 0x8FEC
+#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED
+#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE
+#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF
+#define GL_UNSIGNED_INT16_NV 0x8FF0
+#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1
+#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2
+#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3
+#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5
+#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6
+#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7
+typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
+typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
+GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
+GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
+GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params);
+GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
+GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
+GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_AMD_gpu_shader_int64 */
+
+#ifndef GL_AMD_interleaved_elements
+#define GL_AMD_interleaved_elements 1
+#define GL_VERTEX_ELEMENT_SWIZZLE_AMD 0x91A4
+#define GL_VERTEX_ID_SWIZZLE_AMD 0x91A5
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPARAMETERIAMDPROC) (GLuint index, GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribParameteriAMD (GLuint index, GLenum pname, GLint param);
+#endif
+#endif /* GL_AMD_interleaved_elements */
+
+#ifndef GL_AMD_multi_draw_indirect
+#define GL_AMD_multi_draw_indirect 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectAMD (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawElementsIndirectAMD (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
+#endif
+#endif /* GL_AMD_multi_draw_indirect */
+
+#ifndef GL_AMD_name_gen_delete
+#define GL_AMD_name_gen_delete 1
+#define GL_DATA_BUFFER_AMD 0x9151
+#define GL_PERFORMANCE_MONITOR_AMD 0x9152
+#define GL_QUERY_OBJECT_AMD 0x9153
+#define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154
+#define GL_SAMPLER_OBJECT_AMD 0x9155
+typedef void (APIENTRYP PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint *names);
+typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint *names);
+typedef GLboolean (APIENTRYP PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenNamesAMD (GLenum identifier, GLuint num, GLuint *names);
+GLAPI void APIENTRY glDeleteNamesAMD (GLenum identifier, GLuint num, const GLuint *names);
+GLAPI GLboolean APIENTRY glIsNameAMD (GLenum identifier, GLuint name);
+#endif
+#endif /* GL_AMD_name_gen_delete */
+
+#ifndef GL_AMD_occlusion_query_event
+#define GL_AMD_occlusion_query_event 1
+#define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F
+#define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001
+#define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002
+#define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004
+#define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008
+#define GL_QUERY_ALL_EVENT_BITS_AMD 0xFFFFFFFF
+typedef void (APIENTRYP PFNGLQUERYOBJECTPARAMETERUIAMDPROC) (GLenum target, GLuint id, GLenum pname, GLuint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glQueryObjectParameteruiAMD (GLenum target, GLuint id, GLenum pname, GLuint param);
+#endif
+#endif /* GL_AMD_occlusion_query_event */
+
+#ifndef GL_AMD_performance_monitor
+#define GL_AMD_performance_monitor 1
+#define GL_COUNTER_TYPE_AMD 0x8BC0
+#define GL_COUNTER_RANGE_AMD 0x8BC1
+#define GL_UNSIGNED_INT64_AMD 0x8BC2
+#define GL_PERCENTAGE_AMD 0x8BC3
+#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
+#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
+#define GL_PERFMON_RESULT_AMD 0x8BC6
+typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
+typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
+GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
+GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor);
+GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#endif
+#endif /* GL_AMD_performance_monitor */
+
+#ifndef GL_AMD_pinned_memory
+#define GL_AMD_pinned_memory 1
+#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
+#endif /* GL_AMD_pinned_memory */
+
+#ifndef GL_AMD_query_buffer_object
+#define GL_AMD_query_buffer_object 1
+#define GL_QUERY_BUFFER_AMD 0x9192
+#define GL_QUERY_BUFFER_BINDING_AMD 0x9193
+#define GL_QUERY_RESULT_NO_WAIT_AMD 0x9194
+#endif /* GL_AMD_query_buffer_object */
+
+#ifndef GL_AMD_sample_positions
+#define GL_AMD_sample_positions 1
+typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat *val);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSetMultisamplefvAMD (GLenum pname, GLuint index, const GLfloat *val);
+#endif
+#endif /* GL_AMD_sample_positions */
+
+#ifndef GL_AMD_seamless_cubemap_per_texture
+#define GL_AMD_seamless_cubemap_per_texture 1
+#endif /* GL_AMD_seamless_cubemap_per_texture */
+
+#ifndef GL_AMD_shader_atomic_counter_ops
+#define GL_AMD_shader_atomic_counter_ops 1
+#endif /* GL_AMD_shader_atomic_counter_ops */
+
+#ifndef GL_AMD_shader_ballot
+#define GL_AMD_shader_ballot 1
+#endif /* GL_AMD_shader_ballot */
+
+#ifndef GL_AMD_shader_explicit_vertex_parameter
+#define GL_AMD_shader_explicit_vertex_parameter 1
+#endif /* GL_AMD_shader_explicit_vertex_parameter */
+
+#ifndef GL_AMD_shader_gpu_shader_half_float_fetch
+#define GL_AMD_shader_gpu_shader_half_float_fetch 1
+#endif /* GL_AMD_shader_gpu_shader_half_float_fetch */
+
+#ifndef GL_AMD_shader_image_load_store_lod
+#define GL_AMD_shader_image_load_store_lod 1
+#endif /* GL_AMD_shader_image_load_store_lod */
+
+#ifndef GL_AMD_shader_stencil_export
+#define GL_AMD_shader_stencil_export 1
+#endif /* GL_AMD_shader_stencil_export */
+
+#ifndef GL_AMD_shader_trinary_minmax
+#define GL_AMD_shader_trinary_minmax 1
+#endif /* GL_AMD_shader_trinary_minmax */
+
+#ifndef GL_AMD_sparse_texture
+#define GL_AMD_sparse_texture 1
+#define GL_VIRTUAL_PAGE_SIZE_X_AMD 0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_AMD 0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_AMD 0x9197
+#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD 0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A
+#define GL_MIN_SPARSE_LEVEL_AMD 0x919B
+#define GL_MIN_LOD_WARNING_AMD 0x919C
+#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001
+typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexStorageSparseAMD (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+GLAPI void APIENTRY glTextureStorageSparseAMD (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+#endif
+#endif /* GL_AMD_sparse_texture */
+
+#ifndef GL_AMD_stencil_operation_extended
+#define GL_AMD_stencil_operation_extended 1
+#define GL_SET_AMD 0x874A
+#define GL_REPLACE_VALUE_AMD 0x874B
+#define GL_STENCIL_OP_VALUE_AMD 0x874C
+#define GL_STENCIL_BACK_OP_VALUE_AMD 0x874D
+typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStencilOpValueAMD (GLenum face, GLuint value);
+#endif
+#endif /* GL_AMD_stencil_operation_extended */
+
+#ifndef GL_AMD_texture_gather_bias_lod
+#define GL_AMD_texture_gather_bias_lod 1
+#endif /* GL_AMD_texture_gather_bias_lod */
+
+#ifndef GL_AMD_texture_texture4
+#define GL_AMD_texture_texture4 1
+#endif /* GL_AMD_texture_texture4 */
+
+#ifndef GL_AMD_transform_feedback3_lines_triangles
+#define GL_AMD_transform_feedback3_lines_triangles 1
+#endif /* GL_AMD_transform_feedback3_lines_triangles */
+
+#ifndef GL_AMD_transform_feedback4
+#define GL_AMD_transform_feedback4 1
+#define GL_STREAM_RASTERIZATION_AMD 0x91A0
+#endif /* GL_AMD_transform_feedback4 */
+
+#ifndef GL_AMD_vertex_shader_layer
+#define GL_AMD_vertex_shader_layer 1
+#endif /* GL_AMD_vertex_shader_layer */
+
+#ifndef GL_AMD_vertex_shader_tessellator
+#define GL_AMD_vertex_shader_tessellator 1
+#define GL_SAMPLER_BUFFER_AMD 0x9001
+#define GL_INT_SAMPLER_BUFFER_AMD 0x9002
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
+#define GL_TESSELLATION_MODE_AMD 0x9004
+#define GL_TESSELLATION_FACTOR_AMD 0x9005
+#define GL_DISCRETE_AMD 0x9006
+#define GL_CONTINUOUS_AMD 0x9007
+typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
+typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTessellationFactorAMD (GLfloat factor);
+GLAPI void APIENTRY glTessellationModeAMD (GLenum mode);
+#endif
+#endif /* GL_AMD_vertex_shader_tessellator */
+
+#ifndef GL_AMD_vertex_shader_viewport_index
+#define GL_AMD_vertex_shader_viewport_index 1
+#endif /* GL_AMD_vertex_shader_viewport_index */
+
+#ifndef GL_APPLE_aux_depth_stencil
+#define GL_APPLE_aux_depth_stencil 1
+#define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14
+#endif /* GL_APPLE_aux_depth_stencil */
+
+#ifndef GL_APPLE_client_storage
+#define GL_APPLE_client_storage 1
+#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2
+#endif /* GL_APPLE_client_storage */
+
+#ifndef GL_APPLE_element_array
+#define GL_APPLE_element_array 1
+#define GL_ELEMENT_ARRAY_APPLE 0x8A0C
+#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D
+#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E
+typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void *pointer);
+typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glElementPointerAPPLE (GLenum type, const void *pointer);
+GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count);
+GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
+GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
+#endif
+#endif /* GL_APPLE_element_array */
+
+#ifndef GL_APPLE_fence
+#define GL_APPLE_fence 1
+#define GL_DRAW_PIXELS_APPLE 0x8A0A
+#define GL_FENCE_APPLE 0x8A0B
+typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences);
+typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences);
+typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
+typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
+typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenFencesAPPLE (GLsizei n, GLuint *fences);
+GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei n, const GLuint *fences);
+GLAPI void APIENTRY glSetFenceAPPLE (GLuint fence);
+GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint fence);
+GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint fence);
+GLAPI void APIENTRY glFinishFenceAPPLE (GLuint fence);
+GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum object, GLuint name);
+GLAPI void APIENTRY glFinishObjectAPPLE (GLenum object, GLint name);
+#endif
+#endif /* GL_APPLE_fence */
+
+#ifndef GL_APPLE_float_pixels
+#define GL_APPLE_float_pixels 1
+#define GL_HALF_APPLE 0x140B
+#define GL_RGBA_FLOAT32_APPLE 0x8814
+#define GL_RGB_FLOAT32_APPLE 0x8815
+#define GL_ALPHA_FLOAT32_APPLE 0x8816
+#define GL_INTENSITY_FLOAT32_APPLE 0x8817
+#define GL_LUMINANCE_FLOAT32_APPLE 0x8818
+#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819
+#define GL_RGBA_FLOAT16_APPLE 0x881A
+#define GL_RGB_FLOAT16_APPLE 0x881B
+#define GL_ALPHA_FLOAT16_APPLE 0x881C
+#define GL_INTENSITY_FLOAT16_APPLE 0x881D
+#define GL_LUMINANCE_FLOAT16_APPLE 0x881E
+#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F
+#define GL_COLOR_FLOAT_APPLE 0x8A0F
+#endif /* GL_APPLE_float_pixels */
+
+#ifndef GL_APPLE_flush_buffer_range
+#define GL_APPLE_flush_buffer_range 1
+#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
+#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13
+typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum target, GLintptr offset, GLsizeiptr size);
+#endif
+#endif /* GL_APPLE_flush_buffer_range */
+
+#ifndef GL_APPLE_object_purgeable
+#define GL_APPLE_object_purgeable 1
+#define GL_BUFFER_OBJECT_APPLE 0x85B3
+#define GL_RELEASED_APPLE 0x8A19
+#define GL_VOLATILE_APPLE 0x8A1A
+#define GL_RETAINED_APPLE 0x8A1B
+#define GL_UNDEFINED_APPLE 0x8A1C
+#define GL_PURGEABLE_APPLE 0x8A1D
+typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
+typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
+typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLenum APIENTRY glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
+GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
+GLAPI void APIENTRY glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint *params);
+#endif
+#endif /* GL_APPLE_object_purgeable */
+
+#ifndef GL_APPLE_rgb_422
+#define GL_APPLE_rgb_422 1
+#define GL_RGB_422_APPLE 0x8A1F
+#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
+#define GL_RGB_RAW_422_APPLE 0x8A51
+#endif /* GL_APPLE_rgb_422 */
+
+#ifndef GL_APPLE_row_bytes
+#define GL_APPLE_row_bytes 1
+#define GL_PACK_ROW_BYTES_APPLE 0x8A15
+#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16
+#endif /* GL_APPLE_row_bytes */
+
+#ifndef GL_APPLE_specular_vector
+#define GL_APPLE_specular_vector 1
+#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
+#endif /* GL_APPLE_specular_vector */
+
+#ifndef GL_APPLE_texture_range
+#define GL_APPLE_texture_range 1
+#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7
+#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8
+#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
+#define GL_STORAGE_PRIVATE_APPLE 0x85BD
+#define GL_STORAGE_CACHED_APPLE 0x85BE
+#define GL_STORAGE_SHARED_APPLE 0x85BF
+typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const void *pointer);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureRangeAPPLE (GLenum target, GLsizei length, const void *pointer);
+GLAPI void APIENTRY glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_APPLE_texture_range */
+
+#ifndef GL_APPLE_transform_hint
+#define GL_APPLE_transform_hint 1
+#define GL_TRANSFORM_HINT_APPLE 0x85B1
+#endif /* GL_APPLE_transform_hint */
+
+#ifndef GL_APPLE_vertex_array_object
+#define GL_APPLE_vertex_array_object 1
+#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5
+typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
+typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays);
+typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint array);
+GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *arrays);
+GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei n, GLuint *arrays);
+GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint array);
+#endif
+#endif /* GL_APPLE_vertex_array_object */
+
+#ifndef GL_APPLE_vertex_array_range
+#define GL_APPLE_vertex_array_range 1
+#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D
+#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
+#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
+#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
+#define GL_STORAGE_CLIENT_APPLE 0x85B4
+typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer);
+typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei length, void *pointer);
+GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei length, void *pointer);
+GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum pname, GLint param);
+#endif
+#endif /* GL_APPLE_vertex_array_range */
+
+#ifndef GL_APPLE_vertex_program_evaluators
+#define GL_APPLE_vertex_program_evaluators 1
+#define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00
+#define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01
+#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02
+#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
+#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
+#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
+#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06
+#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
+#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
+#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
+typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
+typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEnableVertexAttribAPPLE (GLuint index, GLenum pname);
+GLAPI void APIENTRY glDisableVertexAttribAPPLE (GLuint index, GLenum pname);
+GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname);
+GLAPI void APIENTRY glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
+GLAPI void APIENTRY glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
+GLAPI void APIENTRY glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
+GLAPI void APIENTRY glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
+#endif
+#endif /* GL_APPLE_vertex_program_evaluators */
+
+#ifndef GL_APPLE_ycbcr_422
+#define GL_APPLE_ycbcr_422 1
+#define GL_YCBCR_422_APPLE 0x85B9
+#endif /* GL_APPLE_ycbcr_422 */
+
+#ifndef GL_ATI_draw_buffers
+#define GL_ATI_draw_buffers 1
+#define GL_MAX_DRAW_BUFFERS_ATI 0x8824
+#define GL_DRAW_BUFFER0_ATI 0x8825
+#define GL_DRAW_BUFFER1_ATI 0x8826
+#define GL_DRAW_BUFFER2_ATI 0x8827
+#define GL_DRAW_BUFFER3_ATI 0x8828
+#define GL_DRAW_BUFFER4_ATI 0x8829
+#define GL_DRAW_BUFFER5_ATI 0x882A
+#define GL_DRAW_BUFFER6_ATI 0x882B
+#define GL_DRAW_BUFFER7_ATI 0x882C
+#define GL_DRAW_BUFFER8_ATI 0x882D
+#define GL_DRAW_BUFFER9_ATI 0x882E
+#define GL_DRAW_BUFFER10_ATI 0x882F
+#define GL_DRAW_BUFFER11_ATI 0x8830
+#define GL_DRAW_BUFFER12_ATI 0x8831
+#define GL_DRAW_BUFFER13_ATI 0x8832
+#define GL_DRAW_BUFFER14_ATI 0x8833
+#define GL_DRAW_BUFFER15_ATI 0x8834
+typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawBuffersATI (GLsizei n, const GLenum *bufs);
+#endif
+#endif /* GL_ATI_draw_buffers */
+
+#ifndef GL_ATI_element_array
+#define GL_ATI_element_array 1
+#define GL_ELEMENT_ARRAY_ATI 0x8768
+#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769
+#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A
+typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void *pointer);
+typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glElementPointerATI (GLenum type, const void *pointer);
+GLAPI void APIENTRY glDrawElementArrayATI (GLenum mode, GLsizei count);
+GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum mode, GLuint start, GLuint end, GLsizei count);
+#endif
+#endif /* GL_ATI_element_array */
+
+#ifndef GL_ATI_envmap_bumpmap
+#define GL_ATI_envmap_bumpmap 1
+#define GL_BUMP_ROT_MATRIX_ATI 0x8775
+#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776
+#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777
+#define GL_BUMP_TEX_UNITS_ATI 0x8778
+#define GL_DUDV_ATI 0x8779
+#define GL_DU8DV8_ATI 0x877A
+#define GL_BUMP_ENVMAP_ATI 0x877B
+#define GL_BUMP_TARGET_ATI 0x877C
+typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param);
+typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param);
+typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBumpParameterivATI (GLenum pname, const GLint *param);
+GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param);
+#endif
+#endif /* GL_ATI_envmap_bumpmap */
+
+#ifndef GL_ATI_fragment_shader
+#define GL_ATI_fragment_shader 1
+#define GL_FRAGMENT_SHADER_ATI 0x8920
+#define GL_REG_0_ATI 0x8921
+#define GL_REG_1_ATI 0x8922
+#define GL_REG_2_ATI 0x8923
+#define GL_REG_3_ATI 0x8924
+#define GL_REG_4_ATI 0x8925
+#define GL_REG_5_ATI 0x8926
+#define GL_REG_6_ATI 0x8927
+#define GL_REG_7_ATI 0x8928
+#define GL_REG_8_ATI 0x8929
+#define GL_REG_9_ATI 0x892A
+#define GL_REG_10_ATI 0x892B
+#define GL_REG_11_ATI 0x892C
+#define GL_REG_12_ATI 0x892D
+#define GL_REG_13_ATI 0x892E
+#define GL_REG_14_ATI 0x892F
+#define GL_REG_15_ATI 0x8930
+#define GL_REG_16_ATI 0x8931
+#define GL_REG_17_ATI 0x8932
+#define GL_REG_18_ATI 0x8933
+#define GL_REG_19_ATI 0x8934
+#define GL_REG_20_ATI 0x8935
+#define GL_REG_21_ATI 0x8936
+#define GL_REG_22_ATI 0x8937
+#define GL_REG_23_ATI 0x8938
+#define GL_REG_24_ATI 0x8939
+#define GL_REG_25_ATI 0x893A
+#define GL_REG_26_ATI 0x893B
+#define GL_REG_27_ATI 0x893C
+#define GL_REG_28_ATI 0x893D
+#define GL_REG_29_ATI 0x893E
+#define GL_REG_30_ATI 0x893F
+#define GL_REG_31_ATI 0x8940
+#define GL_CON_0_ATI 0x8941
+#define GL_CON_1_ATI 0x8942
+#define GL_CON_2_ATI 0x8943
+#define GL_CON_3_ATI 0x8944
+#define GL_CON_4_ATI 0x8945
+#define GL_CON_5_ATI 0x8946
+#define GL_CON_6_ATI 0x8947
+#define GL_CON_7_ATI 0x8948
+#define GL_CON_8_ATI 0x8949
+#define GL_CON_9_ATI 0x894A
+#define GL_CON_10_ATI 0x894B
+#define GL_CON_11_ATI 0x894C
+#define GL_CON_12_ATI 0x894D
+#define GL_CON_13_ATI 0x894E
+#define GL_CON_14_ATI 0x894F
+#define GL_CON_15_ATI 0x8950
+#define GL_CON_16_ATI 0x8951
+#define GL_CON_17_ATI 0x8952
+#define GL_CON_18_ATI 0x8953
+#define GL_CON_19_ATI 0x8954
+#define GL_CON_20_ATI 0x8955
+#define GL_CON_21_ATI 0x8956
+#define GL_CON_22_ATI 0x8957
+#define GL_CON_23_ATI 0x8958
+#define GL_CON_24_ATI 0x8959
+#define GL_CON_25_ATI 0x895A
+#define GL_CON_26_ATI 0x895B
+#define GL_CON_27_ATI 0x895C
+#define GL_CON_28_ATI 0x895D
+#define GL_CON_29_ATI 0x895E
+#define GL_CON_30_ATI 0x895F
+#define GL_CON_31_ATI 0x8960
+#define GL_MOV_ATI 0x8961
+#define GL_ADD_ATI 0x8963
+#define GL_MUL_ATI 0x8964
+#define GL_SUB_ATI 0x8965
+#define GL_DOT3_ATI 0x8966
+#define GL_DOT4_ATI 0x8967
+#define GL_MAD_ATI 0x8968
+#define GL_LERP_ATI 0x8969
+#define GL_CND_ATI 0x896A
+#define GL_CND0_ATI 0x896B
+#define GL_DOT2_ADD_ATI 0x896C
+#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D
+#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E
+#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F
+#define GL_NUM_PASSES_ATI 0x8970
+#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971
+#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972
+#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
+#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974
+#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975
+#define GL_SWIZZLE_STR_ATI 0x8976
+#define GL_SWIZZLE_STQ_ATI 0x8977
+#define GL_SWIZZLE_STR_DR_ATI 0x8978
+#define GL_SWIZZLE_STQ_DQ_ATI 0x8979
+#define GL_SWIZZLE_STRQ_ATI 0x897A
+#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B
+#define GL_RED_BIT_ATI 0x00000001
+#define GL_GREEN_BIT_ATI 0x00000002
+#define GL_BLUE_BIT_ATI 0x00000004
+#define GL_2X_BIT_ATI 0x00000001
+#define GL_4X_BIT_ATI 0x00000002
+#define GL_8X_BIT_ATI 0x00000004
+#define GL_HALF_BIT_ATI 0x00000008
+#define GL_QUARTER_BIT_ATI 0x00000010
+#define GL_EIGHTH_BIT_ATI 0x00000020
+#define GL_SATURATE_BIT_ATI 0x00000040
+#define GL_COMP_BIT_ATI 0x00000002
+#define GL_NEGATE_BIT_ATI 0x00000004
+#define GL_BIAS_BIT_ATI 0x00000008
+typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range);
+typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void);
+typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void);
+typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
+typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
+typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint range);
+GLAPI void APIENTRY glBindFragmentShaderATI (GLuint id);
+GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint id);
+GLAPI void APIENTRY glBeginFragmentShaderATI (void);
+GLAPI void APIENTRY glEndFragmentShaderATI (void);
+GLAPI void APIENTRY glPassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle);
+GLAPI void APIENTRY glSampleMapATI (GLuint dst, GLuint interp, GLenum swizzle);
+GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
+GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
+GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
+GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint dst, const GLfloat *value);
+#endif
+#endif /* GL_ATI_fragment_shader */
+
+#ifndef GL_ATI_map_object_buffer
+#define GL_ATI_map_object_buffer 1
+typedef void *(APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void *APIENTRY glMapObjectBufferATI (GLuint buffer);
+GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint buffer);
+#endif
+#endif /* GL_ATI_map_object_buffer */
+
+#ifndef GL_ATI_meminfo
+#define GL_ATI_meminfo 1
+#define GL_VBO_FREE_MEMORY_ATI 0x87FB
+#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC
+#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD
+#endif /* GL_ATI_meminfo */
+
+#ifndef GL_ATI_pixel_format_float
+#define GL_ATI_pixel_format_float 1
+#define GL_RGBA_FLOAT_MODE_ATI 0x8820
+#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
+#endif /* GL_ATI_pixel_format_float */
+
+#ifndef GL_ATI_pn_triangles
+#define GL_ATI_pn_triangles 1
+#define GL_PN_TRIANGLES_ATI 0x87F0
+#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
+#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2
+#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3
+#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4
+#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5
+#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6
+#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7
+#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8
+typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPNTrianglesiATI (GLenum pname, GLint param);
+GLAPI void APIENTRY glPNTrianglesfATI (GLenum pname, GLfloat param);
+#endif
+#endif /* GL_ATI_pn_triangles */
+
+#ifndef GL_ATI_separate_stencil
+#define GL_ATI_separate_stencil 1
+#define GL_STENCIL_BACK_FUNC_ATI 0x8800
+#define GL_STENCIL_BACK_FAIL_ATI 0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
+typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
+#endif
+#endif /* GL_ATI_separate_stencil */
+
+#ifndef GL_ATI_text_fragment_shader
+#define GL_ATI_text_fragment_shader 1
+#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200
+#endif /* GL_ATI_text_fragment_shader */
+
+#ifndef GL_ATI_texture_env_combine3
+#define GL_ATI_texture_env_combine3 1
+#define GL_MODULATE_ADD_ATI 0x8744
+#define GL_MODULATE_SIGNED_ADD_ATI 0x8745
+#define GL_MODULATE_SUBTRACT_ATI 0x8746
+#endif /* GL_ATI_texture_env_combine3 */
+
+#ifndef GL_ATI_texture_float
+#define GL_ATI_texture_float 1
+#define GL_RGBA_FLOAT32_ATI 0x8814
+#define GL_RGB_FLOAT32_ATI 0x8815
+#define GL_ALPHA_FLOAT32_ATI 0x8816
+#define GL_INTENSITY_FLOAT32_ATI 0x8817
+#define GL_LUMINANCE_FLOAT32_ATI 0x8818
+#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819
+#define GL_RGBA_FLOAT16_ATI 0x881A
+#define GL_RGB_FLOAT16_ATI 0x881B
+#define GL_ALPHA_FLOAT16_ATI 0x881C
+#define GL_INTENSITY_FLOAT16_ATI 0x881D
+#define GL_LUMINANCE_FLOAT16_ATI 0x881E
+#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F
+#endif /* GL_ATI_texture_float */
+
+#ifndef GL_ATI_texture_mirror_once
+#define GL_ATI_texture_mirror_once 1
+#define GL_MIRROR_CLAMP_ATI 0x8742
+#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743
+#endif /* GL_ATI_texture_mirror_once */
+
+#ifndef GL_ATI_vertex_array_object
+#define GL_ATI_vertex_array_object 1
+#define GL_STATIC_ATI 0x8760
+#define GL_DYNAMIC_ATI 0x8761
+#define GL_PRESERVE_ATI 0x8762
+#define GL_DISCARD_ATI 0x8763
+#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764
+#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765
+#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766
+#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767
+typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const void *pointer, GLenum usage);
+typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve);
+typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei size, const void *pointer, GLenum usage);
+GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint buffer);
+GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve);
+GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint buffer, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetObjectBufferivATI (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glFreeObjectBufferATI (GLuint buffer);
+GLAPI void APIENTRY glArrayObjectATI (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum array, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetArrayObjectivATI (GLenum array, GLenum pname, GLint *params);
+GLAPI void APIENTRY glVariantArrayObjectATI (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
+GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint id, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint id, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ATI_vertex_array_object */
+
+#ifndef GL_ATI_vertex_attrib_array_object
+#define GL_ATI_vertex_attrib_array_object 1
+typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
+GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint index, GLenum pname, GLint *params);
+#endif
+#endif /* GL_ATI_vertex_attrib_array_object */
+
+#ifndef GL_ATI_vertex_streams
+#define GL_ATI_vertex_streams 1
+#define GL_MAX_VERTEX_STREAMS_ATI 0x876B
+#define GL_VERTEX_STREAM0_ATI 0x876C
+#define GL_VERTEX_STREAM1_ATI 0x876D
+#define GL_VERTEX_STREAM2_ATI 0x876E
+#define GL_VERTEX_STREAM3_ATI 0x876F
+#define GL_VERTEX_STREAM4_ATI 0x8770
+#define GL_VERTEX_STREAM5_ATI 0x8771
+#define GL_VERTEX_STREAM6_ATI 0x8772
+#define GL_VERTEX_STREAM7_ATI 0x8773
+#define GL_VERTEX_SOURCE_ATI 0x8774
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
+typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
+typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream);
+typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexStream1sATI (GLenum stream, GLshort x);
+GLAPI void APIENTRY glVertexStream1svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream1iATI (GLenum stream, GLint x);
+GLAPI void APIENTRY glVertexStream1ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream1fATI (GLenum stream, GLfloat x);
+GLAPI void APIENTRY glVertexStream1fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream1dATI (GLenum stream, GLdouble x);
+GLAPI void APIENTRY glVertexStream1dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glVertexStream2sATI (GLenum stream, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexStream2svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream2iATI (GLenum stream, GLint x, GLint y);
+GLAPI void APIENTRY glVertexStream2ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexStream2fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexStream2dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexStream3svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexStream3ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexStream3fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexStream3dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexStream4svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexStream4ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexStream4fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexStream4dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glNormalStream3bATI (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
+GLAPI void APIENTRY glNormalStream3bvATI (GLenum stream, const GLbyte *coords);
+GLAPI void APIENTRY glNormalStream3sATI (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
+GLAPI void APIENTRY glNormalStream3svATI (GLenum stream, const GLshort *coords);
+GLAPI void APIENTRY glNormalStream3iATI (GLenum stream, GLint nx, GLint ny, GLint nz);
+GLAPI void APIENTRY glNormalStream3ivATI (GLenum stream, const GLint *coords);
+GLAPI void APIENTRY glNormalStream3fATI (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
+GLAPI void APIENTRY glNormalStream3fvATI (GLenum stream, const GLfloat *coords);
+GLAPI void APIENTRY glNormalStream3dATI (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
+GLAPI void APIENTRY glNormalStream3dvATI (GLenum stream, const GLdouble *coords);
+GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum stream);
+GLAPI void APIENTRY glVertexBlendEnviATI (GLenum pname, GLint param);
+GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum pname, GLfloat param);
+#endif
+#endif /* GL_ATI_vertex_streams */
+
+#ifndef GL_EXT_422_pixels
+#define GL_EXT_422_pixels 1
+#define GL_422_EXT 0x80CC
+#define GL_422_REV_EXT 0x80CD
+#define GL_422_AVERAGE_EXT 0x80CE
+#define GL_422_REV_AVERAGE_EXT 0x80CF
+#endif /* GL_EXT_422_pixels */
+
+#ifndef GL_EXT_EGL_image_storage
+#define GL_EXT_EGL_image_storage 1
+typedef void *GLeglImageOES;
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC) (GLenum target, GLeglImageOES image, const GLint* attrib_list);
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC) (GLuint texture, GLeglImageOES image, const GLint* attrib_list);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEGLImageTargetTexStorageEXT (GLenum target, GLeglImageOES image, const GLint* attrib_list);
+GLAPI void APIENTRY glEGLImageTargetTextureStorageEXT (GLuint texture, GLeglImageOES image, const GLint* attrib_list);
+#endif
+#endif /* GL_EXT_EGL_image_storage */
+
+#ifndef GL_EXT_EGL_sync
+#define GL_EXT_EGL_sync 1
+#endif /* GL_EXT_EGL_sync */
+
+#ifndef GL_EXT_abgr
+#define GL_EXT_abgr 1
+#define GL_ABGR_EXT 0x8000
+#endif /* GL_EXT_abgr */
+
+#ifndef GL_EXT_bgra
+#define GL_EXT_bgra 1
+#define GL_BGR_EXT 0x80E0
+#define GL_BGRA_EXT 0x80E1
+#endif /* GL_EXT_bgra */
+
+#ifndef GL_EXT_bindable_uniform
+#define GL_EXT_bindable_uniform 1
+#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
+#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
+#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
+#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED
+#define GL_UNIFORM_BUFFER_EXT 0x8DEE
+#define GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF
+typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer);
+typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location);
+typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUniformBufferEXT (GLuint program, GLint location, GLuint buffer);
+GLAPI GLint APIENTRY glGetUniformBufferSizeEXT (GLuint program, GLint location);
+GLAPI GLintptr APIENTRY glGetUniformOffsetEXT (GLuint program, GLint location);
+#endif
+#endif /* GL_EXT_bindable_uniform */
+
+#ifndef GL_EXT_blend_color
+#define GL_EXT_blend_color 1
+#define GL_CONSTANT_COLOR_EXT 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
+#define GL_CONSTANT_ALPHA_EXT 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
+#define GL_BLEND_COLOR_EXT 0x8005
+typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendColorEXT (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+#endif
+#endif /* GL_EXT_blend_color */
+
+#ifndef GL_EXT_blend_equation_separate
+#define GL_EXT_blend_equation_separate 1
+#define GL_BLEND_EQUATION_RGB_EXT 0x8009
+#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D
+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum modeRGB, GLenum modeAlpha);
+#endif
+#endif /* GL_EXT_blend_equation_separate */
+
+#ifndef GL_EXT_blend_func_separate
+#define GL_EXT_blend_func_separate 1
+#define GL_BLEND_DST_RGB_EXT 0x80C8
+#define GL_BLEND_SRC_RGB_EXT 0x80C9
+#define GL_BLEND_DST_ALPHA_EXT 0x80CA
+#define GL_BLEND_SRC_ALPHA_EXT 0x80CB
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#endif
+#endif /* GL_EXT_blend_func_separate */
+
+#ifndef GL_EXT_blend_logic_op
+#define GL_EXT_blend_logic_op 1
+#endif /* GL_EXT_blend_logic_op */
+
+#ifndef GL_EXT_blend_minmax
+#define GL_EXT_blend_minmax 1
+#define GL_MIN_EXT 0x8007
+#define GL_MAX_EXT 0x8008
+#define GL_FUNC_ADD_EXT 0x8006
+#define GL_BLEND_EQUATION_EXT 0x8009
+typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendEquationEXT (GLenum mode);
+#endif
+#endif /* GL_EXT_blend_minmax */
+
+#ifndef GL_EXT_blend_subtract
+#define GL_EXT_blend_subtract 1
+#define GL_FUNC_SUBTRACT_EXT 0x800A
+#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B
+#endif /* GL_EXT_blend_subtract */
+
+#ifndef GL_EXT_clip_volume_hint
+#define GL_EXT_clip_volume_hint 1
+#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0
+#endif /* GL_EXT_clip_volume_hint */
+
+#ifndef GL_EXT_cmyka
+#define GL_EXT_cmyka 1
+#define GL_CMYK_EXT 0x800C
+#define GL_CMYKA_EXT 0x800D
+#define GL_PACK_CMYK_HINT_EXT 0x800E
+#define GL_UNPACK_CMYK_HINT_EXT 0x800F
+#endif /* GL_EXT_cmyka */
+
+#ifndef GL_EXT_color_subtable
+#define GL_EXT_color_subtable 1
+typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+#endif
+#endif /* GL_EXT_color_subtable */
+
+#ifndef GL_EXT_compiled_vertex_array
+#define GL_EXT_compiled_vertex_array 1
+#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8
+#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9
+typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLockArraysEXT (GLint first, GLsizei count);
+GLAPI void APIENTRY glUnlockArraysEXT (void);
+#endif
+#endif /* GL_EXT_compiled_vertex_array */
+
+#ifndef GL_EXT_convolution
+#define GL_EXT_convolution 1
+#define GL_CONVOLUTION_1D_EXT 0x8010
+#define GL_CONVOLUTION_2D_EXT 0x8011
+#define GL_SEPARABLE_2D_EXT 0x8012
+#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013
+#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014
+#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015
+#define GL_REDUCE_EXT 0x8016
+#define GL_CONVOLUTION_FORMAT_EXT 0x8017
+#define GL_CONVOLUTION_WIDTH_EXT 0x8018
+#define GL_CONVOLUTION_HEIGHT_EXT 0x8019
+#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params);
+typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void *image);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
+GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum target, GLenum pname, GLfloat params);
+GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum target, GLenum pname, GLint params);
+GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum target, GLenum format, GLenum type, void *image);
+GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
+GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
+#endif
+#endif /* GL_EXT_convolution */
+
+#ifndef GL_EXT_coordinate_frame
+#define GL_EXT_coordinate_frame 1
+#define GL_TANGENT_ARRAY_EXT 0x8439
+#define GL_BINORMAL_ARRAY_EXT 0x843A
+#define GL_CURRENT_TANGENT_EXT 0x843B
+#define GL_CURRENT_BINORMAL_EXT 0x843C
+#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E
+#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F
+#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440
+#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441
+#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442
+#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443
+#define GL_MAP1_TANGENT_EXT 0x8444
+#define GL_MAP2_TANGENT_EXT 0x8445
+#define GL_MAP1_BINORMAL_EXT 0x8446
+#define GL_MAP2_BINORMAL_EXT 0x8447
+typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz);
+typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz);
+typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz);
+typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz);
+typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz);
+typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz);
+typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz);
+typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz);
+typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz);
+typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz);
+typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTangent3bEXT (GLbyte tx, GLbyte ty, GLbyte tz);
+GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *v);
+GLAPI void APIENTRY glTangent3dEXT (GLdouble tx, GLdouble ty, GLdouble tz);
+GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *v);
+GLAPI void APIENTRY glTangent3fEXT (GLfloat tx, GLfloat ty, GLfloat tz);
+GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *v);
+GLAPI void APIENTRY glTangent3iEXT (GLint tx, GLint ty, GLint tz);
+GLAPI void APIENTRY glTangent3ivEXT (const GLint *v);
+GLAPI void APIENTRY glTangent3sEXT (GLshort tx, GLshort ty, GLshort tz);
+GLAPI void APIENTRY glTangent3svEXT (const GLshort *v);
+GLAPI void APIENTRY glBinormal3bEXT (GLbyte bx, GLbyte by, GLbyte bz);
+GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *v);
+GLAPI void APIENTRY glBinormal3dEXT (GLdouble bx, GLdouble by, GLdouble bz);
+GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *v);
+GLAPI void APIENTRY glBinormal3fEXT (GLfloat bx, GLfloat by, GLfloat bz);
+GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *v);
+GLAPI void APIENTRY glBinormal3iEXT (GLint bx, GLint by, GLint bz);
+GLAPI void APIENTRY glBinormal3ivEXT (const GLint *v);
+GLAPI void APIENTRY glBinormal3sEXT (GLshort bx, GLshort by, GLshort bz);
+GLAPI void APIENTRY glBinormal3svEXT (const GLshort *v);
+GLAPI void APIENTRY glTangentPointerEXT (GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glBinormalPointerEXT (GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_coordinate_frame */
+
+#ifndef GL_EXT_copy_texture
+#define GL_EXT_copy_texture 1
+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_EXT_copy_texture */
+
+#ifndef GL_EXT_cull_vertex
+#define GL_EXT_cull_vertex 1
+#define GL_CULL_VERTEX_EXT 0x81AA
+#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB
+#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
+typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCullParameterdvEXT (GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glCullParameterfvEXT (GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_EXT_cull_vertex */
+
+#ifndef GL_EXT_debug_label
+#define GL_EXT_debug_label 1
+#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
+#define GL_PROGRAM_OBJECT_EXT 0x8B40
+#define GL_SHADER_OBJECT_EXT 0x8B48
+#define GL_BUFFER_OBJECT_EXT 0x9151
+#define GL_QUERY_OBJECT_EXT 0x9153
+#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
+typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+GLAPI void APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_EXT_debug_label */
+
+#ifndef GL_EXT_debug_marker
+#define GL_EXT_debug_marker 1
+typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
+GLAPI void APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
+GLAPI void APIENTRY glPopGroupMarkerEXT (void);
+#endif
+#endif /* GL_EXT_debug_marker */
+
+#ifndef GL_EXT_depth_bounds_test
+#define GL_EXT_depth_bounds_test 1
+#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890
+#define GL_DEPTH_BOUNDS_EXT 0x8891
+typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthBoundsEXT (GLclampd zmin, GLclampd zmax);
+#endif
+#endif /* GL_EXT_depth_bounds_test */
+
+#ifndef GL_EXT_direct_state_access
+#define GL_EXT_direct_state_access 1
+#define GL_PROGRAM_MATRIX_EXT 0x8E2D
+#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E
+#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F
+typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
+typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data);
+typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void **data);
+typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index);
+typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data);
+typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void *img);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void *img);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
+typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params);
+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index);
+typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void *string);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target);
+typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
+typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array);
+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void **param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param);
+typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode);
+GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glMatrixPopEXT (GLenum mode);
+GLAPI void APIENTRY glMatrixPushEXT (GLenum mode);
+GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask);
+GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask);
+GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture);
+GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
+GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
+GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
+GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data);
+GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data);
+GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, void **data);
+GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index);
+GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index);
+GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index);
+GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data);
+GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data);
+GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img);
+GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits);
+GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img);
+GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m);
+GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
+GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access);
+GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer);
+GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params);
+GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
+GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
+GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
+GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
+GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
+GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
+GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params);
+GLAPI void APIENTRY glEnableClientStateiEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glDisableClientStateiEXT (GLenum array, GLuint index);
+GLAPI void APIENTRY glGetFloati_vEXT (GLenum pname, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetDoublei_vEXT (GLenum pname, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetPointeri_vEXT (GLenum pname, GLuint index, void **params);
+GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string);
+GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params);
+GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params);
+GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params);
+GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string);
+GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target);
+GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target);
+GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target);
+GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode);
+GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs);
+GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode);
+GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
+GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
+GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glVertexArrayVertexOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayIndexOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayNormalOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glEnableVertexArrayEXT (GLuint vaobj, GLenum array);
+GLAPI void APIENTRY glDisableVertexArrayEXT (GLuint vaobj, GLenum array);
+GLAPI void APIENTRY glEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index);
+GLAPI void APIENTRY glGetVertexArrayIntegervEXT (GLuint vaobj, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayPointervEXT (GLuint vaobj, GLenum pname, void **param);
+GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
+GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, void **param);
+GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length);
+GLAPI void APIENTRY glNamedBufferStorageEXT (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
+GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
+GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x);
+GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
+GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
+GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
+GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
+GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor);
+GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
+GLAPI void APIENTRY glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor);
+#endif
+#endif /* GL_EXT_direct_state_access */
+
+#ifndef GL_EXT_draw_buffers2
+#define GL_EXT_draw_buffers2 1
+typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorMaskIndexedEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+#endif
+#endif /* GL_EXT_draw_buffers2 */
+
+#ifndef GL_EXT_draw_instanced
+#define GL_EXT_draw_instanced 1
+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_draw_instanced */
+
+#ifndef GL_EXT_draw_range_elements
+#define GL_EXT_draw_range_elements 1
+#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8
+#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9
+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
+#endif
+#endif /* GL_EXT_draw_range_elements */
+
+#ifndef GL_EXT_external_buffer
+#define GL_EXT_external_buffer 1
+typedef void *GLeglClientBufferEXT;
+typedef void (APIENTRYP PFNGLBUFFERSTORAGEEXTERNALEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferStorageExternalEXT (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+GLAPI void APIENTRY glNamedBufferStorageExternalEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+#endif
+#endif /* GL_EXT_external_buffer */
+
+#ifndef GL_EXT_fog_coord
+#define GL_EXT_fog_coord 1
+#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450
+#define GL_FOG_COORDINATE_EXT 0x8451
+#define GL_FRAGMENT_DEPTH_EXT 0x8452
+#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
+#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457
+typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord);
+typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord);
+typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord);
+typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFogCoordfEXT (GLfloat coord);
+GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *coord);
+GLAPI void APIENTRY glFogCoorddEXT (GLdouble coord);
+GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *coord);
+GLAPI void APIENTRY glFogCoordPointerEXT (GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_fog_coord */
+
+#ifndef GL_EXT_framebuffer_blit
+#define GL_EXT_framebuffer_blit 1
+#define GL_READ_FRAMEBUFFER_EXT 0x8CA8
+#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+#endif /* GL_EXT_framebuffer_blit */
+
+#ifndef GL_EXT_framebuffer_blit_layers
+#define GL_EXT_framebuffer_blit_layers 1
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERLAYERSEXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERLAYEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint srcLayer, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLint dstLayer, GLbitfield mask, GLenum filter);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlitFramebufferLayersEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI void APIENTRY glBlitFramebufferLayerEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint srcLayer, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLint dstLayer, GLbitfield mask, GLenum filter);
+#endif
+#endif /* GL_EXT_framebuffer_blit_layers */
+
+#ifndef GL_EXT_framebuffer_multisample
+#define GL_EXT_framebuffer_multisample 1
+#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
+#define GL_MAX_SAMPLES_EXT 0x8D57
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_EXT_framebuffer_multisample */
+
+#ifndef GL_EXT_framebuffer_multisample_blit_scaled
+#define GL_EXT_framebuffer_multisample_blit_scaled 1
+#define GL_SCALED_RESOLVE_FASTEST_EXT 0x90BA
+#define GL_SCALED_RESOLVE_NICEST_EXT 0x90BB
+#endif /* GL_EXT_framebuffer_multisample_blit_scaled */
+
+#ifndef GL_EXT_framebuffer_object
+#define GL_EXT_framebuffer_object 1
+#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
+#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8
+#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6
+#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
+#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
+#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
+#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
+#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
+#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD
+#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
+#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
+#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
+#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
+#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
+#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
+#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
+#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
+#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
+#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
+#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
+#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
+#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
+#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
+#define GL_COLOR_ATTACHMENT13_EXT 0x8CED
+#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
+#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
+#define GL_DEPTH_ATTACHMENT_EXT 0x8D00
+#define GL_STENCIL_ATTACHMENT_EXT 0x8D20
+#define GL_FRAMEBUFFER_EXT 0x8D40
+#define GL_RENDERBUFFER_EXT 0x8D41
+#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42
+#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
+#define GL_STENCIL_INDEX1_EXT 0x8D46
+#define GL_STENCIL_INDEX4_EXT 0x8D47
+#define GL_STENCIL_INDEX8_EXT 0x8D48
+#define GL_STENCIL_INDEX16_EXT 0x8D49
+#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55
+typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer);
+typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer);
+typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers);
+typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers);
+typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint renderbuffer);
+GLAPI void APIENTRY glBindRenderbufferEXT (GLenum target, GLuint renderbuffer);
+GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei n, const GLuint *renderbuffers);
+GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei n, GLuint *renderbuffers);
+GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint framebuffer);
+GLAPI void APIENTRY glBindFramebufferEXT (GLenum target, GLuint framebuffer);
+GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei n, const GLuint *framebuffers);
+GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei n, GLuint *framebuffers);
+GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum target);
+GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGenerateMipmapEXT (GLenum target);
+#endif
+#endif /* GL_EXT_framebuffer_object */
+
+#ifndef GL_EXT_framebuffer_sRGB
+#define GL_EXT_framebuffer_sRGB 1
+#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
+#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA
+#endif /* GL_EXT_framebuffer_sRGB */
+
+#ifndef GL_EXT_geometry_shader4
+#define GL_EXT_geometry_shader4 1
+#define GL_GEOMETRY_SHADER_EXT 0x8DD9
+#define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA
+#define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB
+#define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
+#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD
+#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE
+#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
+#define GL_LINES_ADJACENCY_EXT 0x000A
+#define GL_LINE_STRIP_ADJACENCY_EXT 0x000B
+#define GL_TRIANGLES_ADJACENCY_EXT 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4
+#define GL_PROGRAM_POINT_SIZE_EXT 0x8642
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
+#endif
+#endif /* GL_EXT_geometry_shader4 */
+
+#ifndef GL_EXT_gpu_program_parameters
+#define GL_EXT_gpu_program_parameters 1
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
+#endif
+#endif /* GL_EXT_gpu_program_parameters */
+
+#ifndef GL_EXT_gpu_shader4
+#define GL_EXT_gpu_shader4 1
+#define GL_SAMPLER_1D_ARRAY_EXT 0x8DC0
+#define GL_SAMPLER_2D_ARRAY_EXT 0x8DC1
+#define GL_SAMPLER_BUFFER_EXT 0x8DC2
+#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3
+#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4
+#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5
+#define GL_UNSIGNED_INT_VEC2_EXT 0x8DC6
+#define GL_UNSIGNED_INT_VEC3_EXT 0x8DC7
+#define GL_UNSIGNED_INT_VEC4_EXT 0x8DC8
+#define GL_INT_SAMPLER_1D_EXT 0x8DC9
+#define GL_INT_SAMPLER_2D_EXT 0x8DCA
+#define GL_INT_SAMPLER_3D_EXT 0x8DCB
+#define GL_INT_SAMPLER_CUBE_EXT 0x8DCC
+#define GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD
+#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE
+#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF
+#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1
+#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2
+#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4
+#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5
+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6
+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
+#define GL_MIN_PROGRAM_TEXEL_OFFSET_EXT 0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET_EXT 0x8905
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD
+typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params);
+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0);
+typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1);
+typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetUniformuivEXT (GLuint program, GLint location, GLuint *params);
+GLAPI void APIENTRY glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name);
+GLAPI GLint APIENTRY glGetFragDataLocationEXT (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glUniform1uiEXT (GLint location, GLuint v0);
+GLAPI void APIENTRY glUniform2uiEXT (GLint location, GLuint v0, GLuint v1);
+GLAPI void APIENTRY glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2);
+GLAPI void APIENTRY glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GLAPI void APIENTRY glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value);
+GLAPI void APIENTRY glVertexAttribI1iEXT (GLuint index, GLint x);
+GLAPI void APIENTRY glVertexAttribI2iEXT (GLuint index, GLint x, GLint y);
+GLAPI void APIENTRY glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glVertexAttribI1uiEXT (GLuint index, GLuint x);
+GLAPI void APIENTRY glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y);
+GLAPI void APIENTRY glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z);
+GLAPI void APIENTRY glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glVertexAttribI1ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI2ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI3ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI4ivEXT (GLuint index, const GLint *v);
+GLAPI void APIENTRY glVertexAttribI1uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI2uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI3uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4uivEXT (GLuint index, const GLuint *v);
+GLAPI void APIENTRY glVertexAttribI4bvEXT (GLuint index, const GLbyte *v);
+GLAPI void APIENTRY glVertexAttribI4svEXT (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribI4usvEXT (GLuint index, const GLushort *v);
+GLAPI void APIENTRY glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_EXT_gpu_shader4 */
+
+#ifndef GL_EXT_histogram
+#define GL_EXT_histogram 1
+#define GL_HISTOGRAM_EXT 0x8024
+#define GL_PROXY_HISTOGRAM_EXT 0x8025
+#define GL_HISTOGRAM_WIDTH_EXT 0x8026
+#define GL_HISTOGRAM_FORMAT_EXT 0x8027
+#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028
+#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029
+#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C
+#define GL_HISTOGRAM_SINK_EXT 0x802D
+#define GL_MINMAX_EXT 0x802E
+#define GL_MINMAX_FORMAT_EXT 0x802F
+#define GL_MINMAX_SINK_EXT 0x8030
+#define GL_TABLE_TOO_LARGE_EXT 0x8031
+typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetHistogramEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMinmaxEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
+GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glHistogramEXT (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glMinmaxEXT (GLenum target, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glResetHistogramEXT (GLenum target);
+GLAPI void APIENTRY glResetMinmaxEXT (GLenum target);
+#endif
+#endif /* GL_EXT_histogram */
+
+#ifndef GL_EXT_index_array_formats
+#define GL_EXT_index_array_formats 1
+#define GL_IUI_V2F_EXT 0x81AD
+#define GL_IUI_V3F_EXT 0x81AE
+#define GL_IUI_N3F_V2F_EXT 0x81AF
+#define GL_IUI_N3F_V3F_EXT 0x81B0
+#define GL_T2F_IUI_V2F_EXT 0x81B1
+#define GL_T2F_IUI_V3F_EXT 0x81B2
+#define GL_T2F_IUI_N3F_V2F_EXT 0x81B3
+#define GL_T2F_IUI_N3F_V3F_EXT 0x81B4
+#endif /* GL_EXT_index_array_formats */
+
+#ifndef GL_EXT_index_func
+#define GL_EXT_index_func 1
+#define GL_INDEX_TEST_EXT 0x81B5
+#define GL_INDEX_TEST_FUNC_EXT 0x81B6
+#define GL_INDEX_TEST_REF_EXT 0x81B7
+typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glIndexFuncEXT (GLenum func, GLclampf ref);
+#endif
+#endif /* GL_EXT_index_func */
+
+#ifndef GL_EXT_index_material
+#define GL_EXT_index_material 1
+#define GL_INDEX_MATERIAL_EXT 0x81B8
+#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9
+#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA
+typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glIndexMaterialEXT (GLenum face, GLenum mode);
+#endif
+#endif /* GL_EXT_index_material */
+
+#ifndef GL_EXT_index_texture
+#define GL_EXT_index_texture 1
+#endif /* GL_EXT_index_texture */
+
+#ifndef GL_EXT_light_texture
+#define GL_EXT_light_texture 1
+#define GL_FRAGMENT_MATERIAL_EXT 0x8349
+#define GL_FRAGMENT_NORMAL_EXT 0x834A
+#define GL_FRAGMENT_COLOR_EXT 0x834C
+#define GL_ATTENUATION_EXT 0x834D
+#define GL_SHADOW_ATTENUATION_EXT 0x834E
+#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F
+#define GL_TEXTURE_LIGHT_EXT 0x8350
+#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351
+#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
+typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode);
+typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname);
+typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glApplyTextureEXT (GLenum mode);
+GLAPI void APIENTRY glTextureLightEXT (GLenum pname);
+GLAPI void APIENTRY glTextureMaterialEXT (GLenum face, GLenum mode);
+#endif
+#endif /* GL_EXT_light_texture */
+
+#ifndef GL_EXT_memory_object
+#define GL_EXT_memory_object 1
+#define GL_TEXTURE_TILING_EXT 0x9580
+#define GL_DEDICATED_MEMORY_OBJECT_EXT 0x9581
+#define GL_PROTECTED_MEMORY_OBJECT_EXT 0x959B
+#define GL_NUM_TILING_TYPES_EXT 0x9582
+#define GL_TILING_TYPES_EXT 0x9583
+#define GL_OPTIMAL_TILING_EXT 0x9584
+#define GL_LINEAR_TILING_EXT 0x9585
+#define GL_NUM_DEVICE_UUIDS_EXT 0x9596
+#define GL_DEVICE_UUID_EXT 0x9597
+#define GL_DRIVER_UUID_EXT 0x9598
+#define GL_UUID_SIZE_EXT 16
+typedef void (APIENTRYP PFNGLGETUNSIGNEDBYTEVEXTPROC) (GLenum pname, GLubyte *data);
+typedef void (APIENTRYP PFNGLGETUNSIGNEDBYTEI_VEXTPROC) (GLenum target, GLuint index, GLubyte *data);
+typedef void (APIENTRYP PFNGLDELETEMEMORYOBJECTSEXTPROC) (GLsizei n, const GLuint *memoryObjects);
+typedef GLboolean (APIENTRYP PFNGLISMEMORYOBJECTEXTPROC) (GLuint memoryObject);
+typedef void (APIENTRYP PFNGLCREATEMEMORYOBJECTSEXTPROC) (GLsizei n, GLuint *memoryObjects);
+typedef void (APIENTRYP PFNGLMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLTEXSTORAGEMEM2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXSTORAGEMEM3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLBUFFERSTORAGEMEMEXTPROC) (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM2DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM3DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC) (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXSTORAGEMEM1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM1DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetUnsignedBytevEXT (GLenum pname, GLubyte *data);
+GLAPI void APIENTRY glGetUnsignedBytei_vEXT (GLenum target, GLuint index, GLubyte *data);
+GLAPI void APIENTRY glDeleteMemoryObjectsEXT (GLsizei n, const GLuint *memoryObjects);
+GLAPI GLboolean APIENTRY glIsMemoryObjectEXT (GLuint memoryObject);
+GLAPI void APIENTRY glCreateMemoryObjectsEXT (GLsizei n, GLuint *memoryObjects);
+GLAPI void APIENTRY glMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, GLint *params);
+GLAPI void APIENTRY glTexStorageMem2DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTexStorageMem2DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTexStorageMem3DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTexStorageMem3DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glBufferStorageMemEXT (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureStorageMem2DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureStorageMem2DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureStorageMem3DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureStorageMem3DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glNamedBufferStorageMemEXT (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTexStorageMem1DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureStorageMem1DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset);
+#endif
+#endif /* GL_EXT_memory_object */
+
+#ifndef GL_EXT_memory_object_fd
+#define GL_EXT_memory_object_fd 1
+#define GL_HANDLE_TYPE_OPAQUE_FD_EXT 0x9586
+typedef void (APIENTRYP PFNGLIMPORTMEMORYFDEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, GLint fd);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glImportMemoryFdEXT (GLuint memory, GLuint64 size, GLenum handleType, GLint fd);
+#endif
+#endif /* GL_EXT_memory_object_fd */
+
+#ifndef GL_EXT_memory_object_win32
+#define GL_EXT_memory_object_win32 1
+#define GL_HANDLE_TYPE_OPAQUE_WIN32_EXT 0x9587
+#define GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT 0x9588
+#define GL_DEVICE_LUID_EXT 0x9599
+#define GL_DEVICE_NODE_MASK_EXT 0x959A
+#define GL_LUID_SIZE_EXT 8
+#define GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT 0x9589
+#define GL_HANDLE_TYPE_D3D12_RESOURCE_EXT 0x958A
+#define GL_HANDLE_TYPE_D3D11_IMAGE_EXT 0x958B
+#define GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT 0x958C
+typedef void (APIENTRYP PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, void *handle);
+typedef void (APIENTRYP PFNGLIMPORTMEMORYWIN32NAMEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, const void *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glImportMemoryWin32HandleEXT (GLuint memory, GLuint64 size, GLenum handleType, void *handle);
+GLAPI void APIENTRY glImportMemoryWin32NameEXT (GLuint memory, GLuint64 size, GLenum handleType, const void *name);
+#endif
+#endif /* GL_EXT_memory_object_win32 */
+
+#ifndef GL_EXT_misc_attribute
+#define GL_EXT_misc_attribute 1
+#endif /* GL_EXT_misc_attribute */
+
+#ifndef GL_EXT_multi_draw_arrays
+#define GL_EXT_multi_draw_arrays 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_multi_draw_arrays */
+
+#ifndef GL_EXT_multisample
+#define GL_EXT_multisample 1
+#define GL_MULTISAMPLE_EXT 0x809D
+#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F
+#define GL_SAMPLE_MASK_EXT 0x80A0
+#define GL_1PASS_EXT 0x80A1
+#define GL_2PASS_0_EXT 0x80A2
+#define GL_2PASS_1_EXT 0x80A3
+#define GL_4PASS_0_EXT 0x80A4
+#define GL_4PASS_1_EXT 0x80A5
+#define GL_4PASS_2_EXT 0x80A6
+#define GL_4PASS_3_EXT 0x80A7
+#define GL_SAMPLE_BUFFERS_EXT 0x80A8
+#define GL_SAMPLES_EXT 0x80A9
+#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA
+#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB
+#define GL_SAMPLE_PATTERN_EXT 0x80AC
+#define GL_MULTISAMPLE_BIT_EXT 0x20000000
+typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSampleMaskEXT (GLclampf value, GLboolean invert);
+GLAPI void APIENTRY glSamplePatternEXT (GLenum pattern);
+#endif
+#endif /* GL_EXT_multisample */
+
+#ifndef GL_EXT_multiview_tessellation_geometry_shader
+#define GL_EXT_multiview_tessellation_geometry_shader 1
+#endif /* GL_EXT_multiview_tessellation_geometry_shader */
+
+#ifndef GL_EXT_multiview_texture_multisample
+#define GL_EXT_multiview_texture_multisample 1
+#endif /* GL_EXT_multiview_texture_multisample */
+
+#ifndef GL_EXT_multiview_timer_query
+#define GL_EXT_multiview_timer_query 1
+#endif /* GL_EXT_multiview_timer_query */
+
+#ifndef GL_EXT_packed_depth_stencil
+#define GL_EXT_packed_depth_stencil 1
+#define GL_DEPTH_STENCIL_EXT 0x84F9
+#define GL_UNSIGNED_INT_24_8_EXT 0x84FA
+#define GL_DEPTH24_STENCIL8_EXT 0x88F0
+#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1
+#endif /* GL_EXT_packed_depth_stencil */
+
+#ifndef GL_EXT_packed_float
+#define GL_EXT_packed_float 1
+#define GL_R11F_G11F_B10F_EXT 0x8C3A
+#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B
+#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C
+#endif /* GL_EXT_packed_float */
+
+#ifndef GL_EXT_packed_pixels
+#define GL_EXT_packed_pixels 1
+#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034
+#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035
+#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036
+#endif /* GL_EXT_packed_pixels */
+
+#ifndef GL_EXT_paletted_texture
+#define GL_EXT_paletted_texture 1
+#define GL_COLOR_INDEX1_EXT 0x80E2
+#define GL_COLOR_INDEX2_EXT 0x80E3
+#define GL_COLOR_INDEX4_EXT 0x80E4
+#define GL_COLOR_INDEX8_EXT 0x80E5
+#define GL_COLOR_INDEX12_EXT 0x80E6
+#define GL_COLOR_INDEX16_EXT 0x80E7
+#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
+typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, void *data);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorTableEXT (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table);
+GLAPI void APIENTRY glGetColorTableEXT (GLenum target, GLenum format, GLenum type, void *data);
+GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_EXT_paletted_texture */
+
+#ifndef GL_EXT_pixel_buffer_object
+#define GL_EXT_pixel_buffer_object 1
+#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB
+#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF
+#endif /* GL_EXT_pixel_buffer_object */
+
+#ifndef GL_EXT_pixel_transform
+#define GL_EXT_pixel_transform 1
+#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330
+#define GL_PIXEL_MAG_FILTER_EXT 0x8331
+#define GL_PIXEL_MIN_FILTER_EXT 0x8332
+#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333
+#define GL_CUBIC_EXT 0x8334
+#define GL_AVERAGE_EXT 0x8335
+#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
+#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
+#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetPixelTransformParameterivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetPixelTransformParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_EXT_pixel_transform */
+
+#ifndef GL_EXT_pixel_transform_color_table
+#define GL_EXT_pixel_transform_color_table 1
+#endif /* GL_EXT_pixel_transform_color_table */
+
+#ifndef GL_EXT_point_parameters
+#define GL_EXT_point_parameters 1
+#define GL_POINT_SIZE_MIN_EXT 0x8126
+#define GL_POINT_SIZE_MAX_EXT 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
+#define GL_DISTANCE_ATTENUATION_EXT 0x8129
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameterfEXT (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvEXT (GLenum pname, const GLfloat *params);
+#endif
+#endif /* GL_EXT_point_parameters */
+
+#ifndef GL_EXT_polygon_offset
+#define GL_EXT_polygon_offset 1
+#define GL_POLYGON_OFFSET_EXT 0x8037
+#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038
+#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat factor, GLfloat bias);
+#endif
+#endif /* GL_EXT_polygon_offset */
+
+#ifndef GL_EXT_polygon_offset_clamp
+#define GL_EXT_polygon_offset_clamp 1
+#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B
+typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp);
+#endif
+#endif /* GL_EXT_polygon_offset_clamp */
+
+#ifndef GL_EXT_post_depth_coverage
+#define GL_EXT_post_depth_coverage 1
+#endif /* GL_EXT_post_depth_coverage */
+
+#ifndef GL_EXT_provoking_vertex
+#define GL_EXT_provoking_vertex 1
+#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
+#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D
+#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E
+#define GL_PROVOKING_VERTEX_EXT 0x8E4F
+typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProvokingVertexEXT (GLenum mode);
+#endif
+#endif /* GL_EXT_provoking_vertex */
+
+#ifndef GL_EXT_raster_multisample
+#define GL_EXT_raster_multisample 1
+#define GL_RASTER_MULTISAMPLE_EXT 0x9327
+#define GL_RASTER_SAMPLES_EXT 0x9328
+#define GL_MAX_RASTER_SAMPLES_EXT 0x9329
+#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A
+#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B
+#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C
+typedef void (APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations);
+#endif
+#endif /* GL_EXT_raster_multisample */
+
+#ifndef GL_EXT_rescale_normal
+#define GL_EXT_rescale_normal 1
+#define GL_RESCALE_NORMAL_EXT 0x803A
+#endif /* GL_EXT_rescale_normal */
+
+#ifndef GL_EXT_secondary_color
+#define GL_EXT_secondary_color 1
+#define GL_COLOR_SUM_EXT 0x8458
+#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
+#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue);
+GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *v);
+GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue);
+GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *v);
+GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue);
+GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *v);
+GLAPI void APIENTRY glSecondaryColor3iEXT (GLint red, GLint green, GLint blue);
+GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *v);
+GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue);
+GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *v);
+GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue);
+GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *v);
+GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue);
+GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *v);
+GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue);
+GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *v);
+GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_secondary_color */
+
+#ifndef GL_EXT_semaphore
+#define GL_EXT_semaphore 1
+#define GL_LAYOUT_GENERAL_EXT 0x958D
+#define GL_LAYOUT_COLOR_ATTACHMENT_EXT 0x958E
+#define GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT 0x958F
+#define GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT 0x9590
+#define GL_LAYOUT_SHADER_READ_ONLY_EXT 0x9591
+#define GL_LAYOUT_TRANSFER_SRC_EXT 0x9592
+#define GL_LAYOUT_TRANSFER_DST_EXT 0x9593
+#define GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT 0x9530
+#define GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT 0x9531
+typedef void (APIENTRYP PFNGLGENSEMAPHORESEXTPROC) (GLsizei n, GLuint *semaphores);
+typedef void (APIENTRYP PFNGLDELETESEMAPHORESEXTPROC) (GLsizei n, const GLuint *semaphores);
+typedef GLboolean (APIENTRYP PFNGLISSEMAPHOREEXTPROC) (GLuint semaphore);
+typedef void (APIENTRYP PFNGLSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, const GLuint64 *params);
+typedef void (APIENTRYP PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, GLuint64 *params);
+typedef void (APIENTRYP PFNGLWAITSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts);
+typedef void (APIENTRYP PFNGLSIGNALSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenSemaphoresEXT (GLsizei n, GLuint *semaphores);
+GLAPI void APIENTRY glDeleteSemaphoresEXT (GLsizei n, const GLuint *semaphores);
+GLAPI GLboolean APIENTRY glIsSemaphoreEXT (GLuint semaphore);
+GLAPI void APIENTRY glSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, const GLuint64 *params);
+GLAPI void APIENTRY glGetSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, GLuint64 *params);
+GLAPI void APIENTRY glWaitSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts);
+GLAPI void APIENTRY glSignalSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts);
+#endif
+#endif /* GL_EXT_semaphore */
+
+#ifndef GL_EXT_semaphore_fd
+#define GL_EXT_semaphore_fd 1
+typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREFDEXTPROC) (GLuint semaphore, GLenum handleType, GLint fd);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glImportSemaphoreFdEXT (GLuint semaphore, GLenum handleType, GLint fd);
+#endif
+#endif /* GL_EXT_semaphore_fd */
+
+#ifndef GL_EXT_semaphore_win32
+#define GL_EXT_semaphore_win32 1
+#define GL_HANDLE_TYPE_D3D12_FENCE_EXT 0x9594
+#define GL_D3D12_FENCE_VALUE_EXT 0x9595
+typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC) (GLuint semaphore, GLenum handleType, void *handle);
+typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC) (GLuint semaphore, GLenum handleType, const void *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glImportSemaphoreWin32HandleEXT (GLuint semaphore, GLenum handleType, void *handle);
+GLAPI void APIENTRY glImportSemaphoreWin32NameEXT (GLuint semaphore, GLenum handleType, const void *name);
+#endif
+#endif /* GL_EXT_semaphore_win32 */
+
+#ifndef GL_EXT_separate_shader_objects
+#define GL_EXT_separate_shader_objects 1
+#define GL_ACTIVE_PROGRAM_EXT 0x8B8D
+typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program);
+typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program);
+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program);
+GLAPI void APIENTRY glActiveProgramEXT (GLuint program);
+GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string);
+#endif
+#endif /* GL_EXT_separate_shader_objects */
+
+#ifndef GL_EXT_separate_specular_color
+#define GL_EXT_separate_specular_color 1
+#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8
+#define GL_SINGLE_COLOR_EXT 0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA
+#endif /* GL_EXT_separate_specular_color */
+
+#ifndef GL_EXT_shader_framebuffer_fetch
+#define GL_EXT_shader_framebuffer_fetch 1
+#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52
+#endif /* GL_EXT_shader_framebuffer_fetch */
+
+#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent
+#define GL_EXT_shader_framebuffer_fetch_non_coherent 1
+typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferFetchBarrierEXT (void);
+#endif
+#endif /* GL_EXT_shader_framebuffer_fetch_non_coherent */
+
+#ifndef GL_EXT_shader_image_load_formatted
+#define GL_EXT_shader_image_load_formatted 1
+#endif /* GL_EXT_shader_image_load_formatted */
+
+#ifndef GL_EXT_shader_image_load_store
+#define GL_EXT_shader_image_load_store 1
+#define GL_MAX_IMAGE_UNITS_EXT 0x8F38
+#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39
+#define GL_IMAGE_BINDING_NAME_EXT 0x8F3A
+#define GL_IMAGE_BINDING_LEVEL_EXT 0x8F3B
+#define GL_IMAGE_BINDING_LAYERED_EXT 0x8F3C
+#define GL_IMAGE_BINDING_LAYER_EXT 0x8F3D
+#define GL_IMAGE_BINDING_ACCESS_EXT 0x8F3E
+#define GL_IMAGE_1D_EXT 0x904C
+#define GL_IMAGE_2D_EXT 0x904D
+#define GL_IMAGE_3D_EXT 0x904E
+#define GL_IMAGE_2D_RECT_EXT 0x904F
+#define GL_IMAGE_CUBE_EXT 0x9050
+#define GL_IMAGE_BUFFER_EXT 0x9051
+#define GL_IMAGE_1D_ARRAY_EXT 0x9052
+#define GL_IMAGE_2D_ARRAY_EXT 0x9053
+#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054
+#define GL_IMAGE_2D_MULTISAMPLE_EXT 0x9055
+#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056
+#define GL_INT_IMAGE_1D_EXT 0x9057
+#define GL_INT_IMAGE_2D_EXT 0x9058
+#define GL_INT_IMAGE_3D_EXT 0x9059
+#define GL_INT_IMAGE_2D_RECT_EXT 0x905A
+#define GL_INT_IMAGE_CUBE_EXT 0x905B
+#define GL_INT_IMAGE_BUFFER_EXT 0x905C
+#define GL_INT_IMAGE_1D_ARRAY_EXT 0x905D
+#define GL_INT_IMAGE_2D_ARRAY_EXT 0x905E
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F
+#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT 0x9060
+#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061
+#define GL_UNSIGNED_INT_IMAGE_1D_EXT 0x9062
+#define GL_UNSIGNED_INT_IMAGE_2D_EXT 0x9063
+#define GL_UNSIGNED_INT_IMAGE_3D_EXT 0x9064
+#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065
+#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT 0x9066
+#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067
+#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068
+#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B
+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C
+#define GL_MAX_IMAGE_SAMPLES_EXT 0x906D
+#define GL_IMAGE_BINDING_FORMAT_EXT 0x906E
+#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001
+#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT 0x00000002
+#define GL_UNIFORM_BARRIER_BIT_EXT 0x00000004
+#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT 0x00000008
+#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020
+#define GL_COMMAND_BARRIER_BIT_EXT 0x00000040
+#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT 0x00000080
+#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100
+#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT 0x00000200
+#define GL_FRAMEBUFFER_BARRIER_BIT_EXT 0x00000400
+#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800
+#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000
+#define GL_ALL_BARRIER_BITS_EXT 0xFFFFFFFF
+typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
+typedef void (APIENTRYP PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindImageTextureEXT (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
+GLAPI void APIENTRY glMemoryBarrierEXT (GLbitfield barriers);
+#endif
+#endif /* GL_EXT_shader_image_load_store */
+
+#ifndef GL_EXT_shader_integer_mix
+#define GL_EXT_shader_integer_mix 1
+#endif /* GL_EXT_shader_integer_mix */
+
+#ifndef GL_EXT_shader_samples_identical
+#define GL_EXT_shader_samples_identical 1
+#endif /* GL_EXT_shader_samples_identical */
+
+#ifndef GL_EXT_shadow_funcs
+#define GL_EXT_shadow_funcs 1
+#endif /* GL_EXT_shadow_funcs */
+
+#ifndef GL_EXT_shared_texture_palette
+#define GL_EXT_shared_texture_palette 1
+#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
+#endif /* GL_EXT_shared_texture_palette */
+
+#ifndef GL_EXT_sparse_texture2
+#define GL_EXT_sparse_texture2 1
+#endif /* GL_EXT_sparse_texture2 */
+
+#ifndef GL_EXT_stencil_clear_tag
+#define GL_EXT_stencil_clear_tag 1
+#define GL_STENCIL_TAG_BITS_EXT 0x88F2
+#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3
+typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStencilClearTagEXT (GLsizei stencilTagBits, GLuint stencilClearTag);
+#endif
+#endif /* GL_EXT_stencil_clear_tag */
+
+#ifndef GL_EXT_stencil_two_side
+#define GL_EXT_stencil_two_side 1
+#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910
+#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911
+typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum face);
+#endif
+#endif /* GL_EXT_stencil_two_side */
+
+#ifndef GL_EXT_stencil_wrap
+#define GL_EXT_stencil_wrap 1
+#define GL_INCR_WRAP_EXT 0x8507
+#define GL_DECR_WRAP_EXT 0x8508
+#endif /* GL_EXT_stencil_wrap */
+
+#ifndef GL_EXT_subtexture
+#define GL_EXT_subtexture 1
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+#endif
+#endif /* GL_EXT_subtexture */
+
+#ifndef GL_EXT_texture
+#define GL_EXT_texture 1
+#define GL_ALPHA4_EXT 0x803B
+#define GL_ALPHA8_EXT 0x803C
+#define GL_ALPHA12_EXT 0x803D
+#define GL_ALPHA16_EXT 0x803E
+#define GL_LUMINANCE4_EXT 0x803F
+#define GL_LUMINANCE8_EXT 0x8040
+#define GL_LUMINANCE12_EXT 0x8041
+#define GL_LUMINANCE16_EXT 0x8042
+#define GL_LUMINANCE4_ALPHA4_EXT 0x8043
+#define GL_LUMINANCE6_ALPHA2_EXT 0x8044
+#define GL_LUMINANCE8_ALPHA8_EXT 0x8045
+#define GL_LUMINANCE12_ALPHA4_EXT 0x8046
+#define GL_LUMINANCE12_ALPHA12_EXT 0x8047
+#define GL_LUMINANCE16_ALPHA16_EXT 0x8048
+#define GL_INTENSITY_EXT 0x8049
+#define GL_INTENSITY4_EXT 0x804A
+#define GL_INTENSITY8_EXT 0x804B
+#define GL_INTENSITY12_EXT 0x804C
+#define GL_INTENSITY16_EXT 0x804D
+#define GL_RGB2_EXT 0x804E
+#define GL_RGB4_EXT 0x804F
+#define GL_RGB5_EXT 0x8050
+#define GL_RGB8_EXT 0x8051
+#define GL_RGB10_EXT 0x8052
+#define GL_RGB12_EXT 0x8053
+#define GL_RGB16_EXT 0x8054
+#define GL_RGBA2_EXT 0x8055
+#define GL_RGBA4_EXT 0x8056
+#define GL_RGB5_A1_EXT 0x8057
+#define GL_RGBA8_EXT 0x8058
+#define GL_RGB10_A2_EXT 0x8059
+#define GL_RGBA12_EXT 0x805A
+#define GL_RGBA16_EXT 0x805B
+#define GL_TEXTURE_RED_SIZE_EXT 0x805C
+#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D
+#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E
+#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060
+#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061
+#define GL_REPLACE_EXT 0x8062
+#define GL_PROXY_TEXTURE_1D_EXT 0x8063
+#define GL_PROXY_TEXTURE_2D_EXT 0x8064
+#define GL_TEXTURE_TOO_LARGE_EXT 0x8065
+#endif /* GL_EXT_texture */
+
+#ifndef GL_EXT_texture3D
+#define GL_EXT_texture3D 1
+#define GL_PACK_SKIP_IMAGES_EXT 0x806B
+#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C
+#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E
+#define GL_TEXTURE_3D_EXT 0x806F
+#define GL_PROXY_TEXTURE_3D_EXT 0x8070
+#define GL_TEXTURE_DEPTH_EXT 0x8071
+#define GL_TEXTURE_WRAP_R_EXT 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
+typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexImage3DEXT (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+#endif
+#endif /* GL_EXT_texture3D */
+
+#ifndef GL_EXT_texture_array
+#define GL_EXT_texture_array 1
+#define GL_TEXTURE_1D_ARRAY_EXT 0x8C18
+#define GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19
+#define GL_TEXTURE_2D_ARRAY_EXT 0x8C1A
+#define GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B
+#define GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C
+#define GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D
+#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF
+#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+#endif
+#endif /* GL_EXT_texture_array */
+
+#ifndef GL_EXT_texture_buffer_object
+#define GL_EXT_texture_buffer_object 1
+#define GL_TEXTURE_BUFFER_EXT 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
+#define GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E
+typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
+#endif
+#endif /* GL_EXT_texture_buffer_object */
+
+#ifndef GL_EXT_texture_compression_latc
+#define GL_EXT_texture_compression_latc 1
+#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
+#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
+#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
+#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
+#endif /* GL_EXT_texture_compression_latc */
+
+#ifndef GL_EXT_texture_compression_rgtc
+#define GL_EXT_texture_compression_rgtc 1
+#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
+#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD
+#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE
+#endif /* GL_EXT_texture_compression_rgtc */
+
+#ifndef GL_EXT_texture_compression_s3tc
+#define GL_EXT_texture_compression_s3tc 1
+#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
+#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
+#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
+#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
+#endif /* GL_EXT_texture_compression_s3tc */
+
+#ifndef GL_EXT_texture_cube_map
+#define GL_EXT_texture_cube_map 1
+#define GL_NORMAL_MAP_EXT 0x8511
+#define GL_REFLECTION_MAP_EXT 0x8512
+#define GL_TEXTURE_CUBE_MAP_EXT 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C
+#endif /* GL_EXT_texture_cube_map */
+
+#ifndef GL_EXT_texture_env_add
+#define GL_EXT_texture_env_add 1
+#endif /* GL_EXT_texture_env_add */
+
+#ifndef GL_EXT_texture_env_combine
+#define GL_EXT_texture_env_combine 1
+#define GL_COMBINE_EXT 0x8570
+#define GL_COMBINE_RGB_EXT 0x8571
+#define GL_COMBINE_ALPHA_EXT 0x8572
+#define GL_RGB_SCALE_EXT 0x8573
+#define GL_ADD_SIGNED_EXT 0x8574
+#define GL_INTERPOLATE_EXT 0x8575
+#define GL_CONSTANT_EXT 0x8576
+#define GL_PRIMARY_COLOR_EXT 0x8577
+#define GL_PREVIOUS_EXT 0x8578
+#define GL_SOURCE0_RGB_EXT 0x8580
+#define GL_SOURCE1_RGB_EXT 0x8581
+#define GL_SOURCE2_RGB_EXT 0x8582
+#define GL_SOURCE0_ALPHA_EXT 0x8588
+#define GL_SOURCE1_ALPHA_EXT 0x8589
+#define GL_SOURCE2_ALPHA_EXT 0x858A
+#define GL_OPERAND0_RGB_EXT 0x8590
+#define GL_OPERAND1_RGB_EXT 0x8591
+#define GL_OPERAND2_RGB_EXT 0x8592
+#define GL_OPERAND0_ALPHA_EXT 0x8598
+#define GL_OPERAND1_ALPHA_EXT 0x8599
+#define GL_OPERAND2_ALPHA_EXT 0x859A
+#endif /* GL_EXT_texture_env_combine */
+
+#ifndef GL_EXT_texture_env_dot3
+#define GL_EXT_texture_env_dot3 1
+#define GL_DOT3_RGB_EXT 0x8740
+#define GL_DOT3_RGBA_EXT 0x8741
+#endif /* GL_EXT_texture_env_dot3 */
+
+#ifndef GL_EXT_texture_filter_anisotropic
+#define GL_EXT_texture_filter_anisotropic 1
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
+#endif /* GL_EXT_texture_filter_anisotropic */
+
+#ifndef GL_EXT_texture_filter_minmax
+#define GL_EXT_texture_filter_minmax 1
+#define GL_TEXTURE_REDUCTION_MODE_EXT 0x9366
+#define GL_WEIGHTED_AVERAGE_EXT 0x9367
+#endif /* GL_EXT_texture_filter_minmax */
+
+#ifndef GL_EXT_texture_integer
+#define GL_EXT_texture_integer 1
+#define GL_RGBA32UI_EXT 0x8D70
+#define GL_RGB32UI_EXT 0x8D71
+#define GL_ALPHA32UI_EXT 0x8D72
+#define GL_INTENSITY32UI_EXT 0x8D73
+#define GL_LUMINANCE32UI_EXT 0x8D74
+#define GL_LUMINANCE_ALPHA32UI_EXT 0x8D75
+#define GL_RGBA16UI_EXT 0x8D76
+#define GL_RGB16UI_EXT 0x8D77
+#define GL_ALPHA16UI_EXT 0x8D78
+#define GL_INTENSITY16UI_EXT 0x8D79
+#define GL_LUMINANCE16UI_EXT 0x8D7A
+#define GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B
+#define GL_RGBA8UI_EXT 0x8D7C
+#define GL_RGB8UI_EXT 0x8D7D
+#define GL_ALPHA8UI_EXT 0x8D7E
+#define GL_INTENSITY8UI_EXT 0x8D7F
+#define GL_LUMINANCE8UI_EXT 0x8D80
+#define GL_LUMINANCE_ALPHA8UI_EXT 0x8D81
+#define GL_RGBA32I_EXT 0x8D82
+#define GL_RGB32I_EXT 0x8D83
+#define GL_ALPHA32I_EXT 0x8D84
+#define GL_INTENSITY32I_EXT 0x8D85
+#define GL_LUMINANCE32I_EXT 0x8D86
+#define GL_LUMINANCE_ALPHA32I_EXT 0x8D87
+#define GL_RGBA16I_EXT 0x8D88
+#define GL_RGB16I_EXT 0x8D89
+#define GL_ALPHA16I_EXT 0x8D8A
+#define GL_INTENSITY16I_EXT 0x8D8B
+#define GL_LUMINANCE16I_EXT 0x8D8C
+#define GL_LUMINANCE_ALPHA16I_EXT 0x8D8D
+#define GL_RGBA8I_EXT 0x8D8E
+#define GL_RGB8I_EXT 0x8D8F
+#define GL_ALPHA8I_EXT 0x8D90
+#define GL_INTENSITY8I_EXT 0x8D91
+#define GL_LUMINANCE8I_EXT 0x8D92
+#define GL_LUMINANCE_ALPHA8I_EXT 0x8D93
+#define GL_RED_INTEGER_EXT 0x8D94
+#define GL_GREEN_INTEGER_EXT 0x8D95
+#define GL_BLUE_INTEGER_EXT 0x8D96
+#define GL_ALPHA_INTEGER_EXT 0x8D97
+#define GL_RGB_INTEGER_EXT 0x8D98
+#define GL_RGBA_INTEGER_EXT 0x8D99
+#define GL_BGR_INTEGER_EXT 0x8D9A
+#define GL_BGRA_INTEGER_EXT 0x8D9B
+#define GL_LUMINANCE_INTEGER_EXT 0x8D9C
+#define GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D
+#define GL_RGBA_INTEGER_MODE_EXT 0x8D9E
+typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha);
+typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
+GLAPI void APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha);
+GLAPI void APIENTRY glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha);
+#endif
+#endif /* GL_EXT_texture_integer */
+
+#ifndef GL_EXT_texture_lod_bias
+#define GL_EXT_texture_lod_bias 1
+#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD
+#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
+#define GL_TEXTURE_LOD_BIAS_EXT 0x8501
+#endif /* GL_EXT_texture_lod_bias */
+
+#ifndef GL_EXT_texture_mirror_clamp
+#define GL_EXT_texture_mirror_clamp 1
+#define GL_MIRROR_CLAMP_EXT 0x8742
+#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743
+#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912
+#endif /* GL_EXT_texture_mirror_clamp */
+
+#ifndef GL_EXT_texture_object
+#define GL_EXT_texture_object 1
+#define GL_TEXTURE_PRIORITY_EXT 0x8066
+#define GL_TEXTURE_RESIDENT_EXT 0x8067
+#define GL_TEXTURE_1D_BINDING_EXT 0x8068
+#define GL_TEXTURE_2D_BINDING_EXT 0x8069
+#define GL_TEXTURE_3D_BINDING_EXT 0x806A
+typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences);
+typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures);
+typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei n, const GLuint *textures, GLboolean *residences);
+GLAPI void APIENTRY glBindTextureEXT (GLenum target, GLuint texture);
+GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei n, const GLuint *textures);
+GLAPI void APIENTRY glGenTexturesEXT (GLsizei n, GLuint *textures);
+GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint texture);
+GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei n, const GLuint *textures, const GLclampf *priorities);
+#endif
+#endif /* GL_EXT_texture_object */
+
+#ifndef GL_EXT_texture_perturb_normal
+#define GL_EXT_texture_perturb_normal 1
+#define GL_PERTURB_EXT 0x85AE
+#define GL_TEXTURE_NORMAL_EXT 0x85AF
+typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureNormalEXT (GLenum mode);
+#endif
+#endif /* GL_EXT_texture_perturb_normal */
+
+#ifndef GL_EXT_texture_sRGB
+#define GL_EXT_texture_sRGB 1
+#define GL_SRGB_EXT 0x8C40
+#define GL_SRGB8_EXT 0x8C41
+#define GL_SRGB_ALPHA_EXT 0x8C42
+#define GL_SRGB8_ALPHA8_EXT 0x8C43
+#define GL_SLUMINANCE_ALPHA_EXT 0x8C44
+#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45
+#define GL_SLUMINANCE_EXT 0x8C46
+#define GL_SLUMINANCE8_EXT 0x8C47
+#define GL_COMPRESSED_SRGB_EXT 0x8C48
+#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49
+#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A
+#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
+#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
+#endif /* GL_EXT_texture_sRGB */
+
+#ifndef GL_EXT_texture_sRGB_R8
+#define GL_EXT_texture_sRGB_R8 1
+#define GL_SR8_EXT 0x8FBD
+#endif /* GL_EXT_texture_sRGB_R8 */
+
+#ifndef GL_EXT_texture_sRGB_RG8
+#define GL_EXT_texture_sRGB_RG8 1
+#define GL_SRG8_EXT 0x8FBE
+#endif /* GL_EXT_texture_sRGB_RG8 */
+
+#ifndef GL_EXT_texture_sRGB_decode
+#define GL_EXT_texture_sRGB_decode 1
+#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48
+#define GL_DECODE_EXT 0x8A49
+#define GL_SKIP_DECODE_EXT 0x8A4A
+#endif /* GL_EXT_texture_sRGB_decode */
+
+#ifndef GL_EXT_texture_shadow_lod
+#define GL_EXT_texture_shadow_lod 1
+#endif /* GL_EXT_texture_shadow_lod */
+
+#ifndef GL_EXT_texture_shared_exponent
+#define GL_EXT_texture_shared_exponent 1
+#define GL_RGB9_E5_EXT 0x8C3D
+#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E
+#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F
+#endif /* GL_EXT_texture_shared_exponent */
+
+#ifndef GL_EXT_texture_snorm
+#define GL_EXT_texture_snorm 1
+#define GL_ALPHA_SNORM 0x9010
+#define GL_LUMINANCE_SNORM 0x9011
+#define GL_LUMINANCE_ALPHA_SNORM 0x9012
+#define GL_INTENSITY_SNORM 0x9013
+#define GL_ALPHA8_SNORM 0x9014
+#define GL_LUMINANCE8_SNORM 0x9015
+#define GL_LUMINANCE8_ALPHA8_SNORM 0x9016
+#define GL_INTENSITY8_SNORM 0x9017
+#define GL_ALPHA16_SNORM 0x9018
+#define GL_LUMINANCE16_SNORM 0x9019
+#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A
+#define GL_INTENSITY16_SNORM 0x901B
+#define GL_RED_SNORM 0x8F90
+#define GL_RG_SNORM 0x8F91
+#define GL_RGB_SNORM 0x8F92
+#define GL_RGBA_SNORM 0x8F93
+#endif /* GL_EXT_texture_snorm */
+
+#ifndef GL_EXT_texture_storage
+#define GL_EXT_texture_storage 1
+#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
+#define GL_RGBA32F_EXT 0x8814
+#define GL_RGB32F_EXT 0x8815
+#define GL_ALPHA32F_EXT 0x8816
+#define GL_LUMINANCE32F_EXT 0x8818
+#define GL_LUMINANCE_ALPHA32F_EXT 0x8819
+#define GL_RGBA16F_EXT 0x881A
+#define GL_RGB16F_EXT 0x881B
+#define GL_ALPHA16F_EXT 0x881C
+#define GL_LUMINANCE16F_EXT 0x881E
+#define GL_LUMINANCE_ALPHA16F_EXT 0x881F
+#define GL_BGRA8_EXT 0x93A1
+#define GL_R8_EXT 0x8229
+#define GL_RG8_EXT 0x822B
+#define GL_R32F_EXT 0x822E
+#define GL_RG32F_EXT 0x8230
+#define GL_R16F_EXT 0x822D
+#define GL_RG16F_EXT 0x822F
+typedef void (APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GLAPI void APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+#endif /* GL_EXT_texture_storage */
+
+#ifndef GL_EXT_texture_swizzle
+#define GL_EXT_texture_swizzle 1
+#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42
+#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43
+#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44
+#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45
+#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46
+#endif /* GL_EXT_texture_swizzle */
+
+#ifndef GL_EXT_timer_query
+#define GL_EXT_timer_query 1
+#define GL_TIME_ELAPSED_EXT 0x88BF
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
+#endif
+#endif /* GL_EXT_timer_query */
+
+#ifndef GL_EXT_transform_feedback
+#define GL_EXT_transform_feedback 1
+#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
+#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C
+#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D
+#define GL_PRIMITIVES_GENERATED_EXT 0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88
+#define GL_RASTERIZER_DISCARD_EXT 0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80
+#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F
+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginTransformFeedbackEXT (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedbackEXT (void);
+GLAPI void APIENTRY glBindBufferRangeEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferOffsetEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+GLAPI void APIENTRY glBindBufferBaseEXT (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
+GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+#endif
+#endif /* GL_EXT_transform_feedback */
+
+#ifndef GL_EXT_vertex_array
+#define GL_EXT_vertex_array 1
+#define GL_VERTEX_ARRAY_EXT 0x8074
+#define GL_NORMAL_ARRAY_EXT 0x8075
+#define GL_COLOR_ARRAY_EXT 0x8076
+#define GL_INDEX_ARRAY_EXT 0x8077
+#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
+#define GL_EDGE_FLAG_ARRAY_EXT 0x8079
+#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
+#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
+#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
+#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
+#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
+#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
+#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
+#define GL_COLOR_ARRAY_SIZE_EXT 0x8081
+#define GL_COLOR_ARRAY_TYPE_EXT 0x8082
+#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
+#define GL_COLOR_ARRAY_COUNT_EXT 0x8084
+#define GL_INDEX_ARRAY_TYPE_EXT 0x8085
+#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
+#define GL_INDEX_ARRAY_COUNT_EXT 0x8087
+#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
+#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
+#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
+#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
+#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
+#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
+#define GL_COLOR_ARRAY_POINTER_EXT 0x8090
+#define GL_INDEX_ARRAY_POINTER_EXT 0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
+typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i);
+typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
+typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, void **params);
+typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glArrayElementEXT (GLint i);
+GLAPI void APIENTRY glColorPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glDrawArraysEXT (GLenum mode, GLint first, GLsizei count);
+GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei stride, GLsizei count, const GLboolean *pointer);
+GLAPI void APIENTRY glGetPointervEXT (GLenum pname, void **params);
+GLAPI void APIENTRY glIndexPointerEXT (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glNormalPointerEXT (GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glTexCoordPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+GLAPI void APIENTRY glVertexPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer);
+#endif
+#endif /* GL_EXT_vertex_array */
+
+#ifndef GL_EXT_vertex_array_bgra
+#define GL_EXT_vertex_array_bgra 1
+#endif /* GL_EXT_vertex_array_bgra */
+
+#ifndef GL_EXT_vertex_attrib_64bit
+#define GL_EXT_vertex_attrib_64bit 1
+#define GL_DOUBLE_VEC2_EXT 0x8FFC
+#define GL_DOUBLE_VEC3_EXT 0x8FFD
+#define GL_DOUBLE_VEC4_EXT 0x8FFE
+#define GL_DOUBLE_MAT2_EXT 0x8F46
+#define GL_DOUBLE_MAT3_EXT 0x8F47
+#define GL_DOUBLE_MAT4_EXT 0x8F48
+#define GL_DOUBLE_MAT2x3_EXT 0x8F49
+#define GL_DOUBLE_MAT2x4_EXT 0x8F4A
+#define GL_DOUBLE_MAT3x2_EXT 0x8F4B
+#define GL_DOUBLE_MAT3x4_EXT 0x8F4C
+#define GL_DOUBLE_MAT4x2_EXT 0x8F4D
+#define GL_DOUBLE_MAT4x3_EXT 0x8F4E
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribL1dEXT (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttribL2dEXT (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttribL3dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttribL4dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttribL1dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL2dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL3dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribL4dvEXT (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribLPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glGetVertexAttribLdvEXT (GLuint index, GLenum pname, GLdouble *params);
+#endif
+#endif /* GL_EXT_vertex_attrib_64bit */
+
+#ifndef GL_EXT_vertex_shader
+#define GL_EXT_vertex_shader 1
+#define GL_VERTEX_SHADER_EXT 0x8780
+#define GL_VERTEX_SHADER_BINDING_EXT 0x8781
+#define GL_OP_INDEX_EXT 0x8782
+#define GL_OP_NEGATE_EXT 0x8783
+#define GL_OP_DOT3_EXT 0x8784
+#define GL_OP_DOT4_EXT 0x8785
+#define GL_OP_MUL_EXT 0x8786
+#define GL_OP_ADD_EXT 0x8787
+#define GL_OP_MADD_EXT 0x8788
+#define GL_OP_FRAC_EXT 0x8789
+#define GL_OP_MAX_EXT 0x878A
+#define GL_OP_MIN_EXT 0x878B
+#define GL_OP_SET_GE_EXT 0x878C
+#define GL_OP_SET_LT_EXT 0x878D
+#define GL_OP_CLAMP_EXT 0x878E
+#define GL_OP_FLOOR_EXT 0x878F
+#define GL_OP_ROUND_EXT 0x8790
+#define GL_OP_EXP_BASE_2_EXT 0x8791
+#define GL_OP_LOG_BASE_2_EXT 0x8792
+#define GL_OP_POWER_EXT 0x8793
+#define GL_OP_RECIP_EXT 0x8794
+#define GL_OP_RECIP_SQRT_EXT 0x8795
+#define GL_OP_SUB_EXT 0x8796
+#define GL_OP_CROSS_PRODUCT_EXT 0x8797
+#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798
+#define GL_OP_MOV_EXT 0x8799
+#define GL_OUTPUT_VERTEX_EXT 0x879A
+#define GL_OUTPUT_COLOR0_EXT 0x879B
+#define GL_OUTPUT_COLOR1_EXT 0x879C
+#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D
+#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E
+#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F
+#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0
+#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1
+#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2
+#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3
+#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4
+#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5
+#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6
+#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7
+#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8
+#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9
+#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA
+#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB
+#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC
+#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD
+#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE
+#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF
+#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0
+#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1
+#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2
+#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3
+#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4
+#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5
+#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6
+#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7
+#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8
+#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9
+#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA
+#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB
+#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC
+#define GL_OUTPUT_FOG_EXT 0x87BD
+#define GL_SCALAR_EXT 0x87BE
+#define GL_VECTOR_EXT 0x87BF
+#define GL_MATRIX_EXT 0x87C0
+#define GL_VARIANT_EXT 0x87C1
+#define GL_INVARIANT_EXT 0x87C2
+#define GL_LOCAL_CONSTANT_EXT 0x87C3
+#define GL_LOCAL_EXT 0x87C4
+#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5
+#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6
+#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7
+#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8
+#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD
+#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE
+#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF
+#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0
+#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1
+#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2
+#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3
+#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4
+#define GL_X_EXT 0x87D5
+#define GL_Y_EXT 0x87D6
+#define GL_Z_EXT 0x87D7
+#define GL_W_EXT 0x87D8
+#define GL_NEGATIVE_X_EXT 0x87D9
+#define GL_NEGATIVE_Y_EXT 0x87DA
+#define GL_NEGATIVE_Z_EXT 0x87DB
+#define GL_NEGATIVE_W_EXT 0x87DC
+#define GL_ZERO_EXT 0x87DD
+#define GL_ONE_EXT 0x87DE
+#define GL_NEGATIVE_ONE_EXT 0x87DF
+#define GL_NORMALIZED_RANGE_EXT 0x87E0
+#define GL_FULL_RANGE_EXT 0x87E1
+#define GL_CURRENT_VERTEX_EXT 0x87E2
+#define GL_MVP_MATRIX_EXT 0x87E3
+#define GL_VARIANT_VALUE_EXT 0x87E4
+#define GL_VARIANT_DATATYPE_EXT 0x87E5
+#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6
+#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7
+#define GL_VARIANT_ARRAY_EXT 0x87E8
+#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9
+#define GL_INVARIANT_VALUE_EXT 0x87EA
+#define GL_INVARIANT_DATATYPE_EXT 0x87EB
+#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC
+#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED
+typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void);
+typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void);
+typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id);
+typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range);
+typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
+typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
+typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
+typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
+typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
+typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
+typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const void *addr);
+typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const void *addr);
+typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr);
+typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr);
+typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr);
+typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr);
+typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr);
+typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr);
+typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr);
+typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr);
+typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const void *addr);
+typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
+typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value);
+typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value);
+typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap);
+typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
+typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, void **data);
+typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
+typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
+typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
+typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
+typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginVertexShaderEXT (void);
+GLAPI void APIENTRY glEndVertexShaderEXT (void);
+GLAPI void APIENTRY glBindVertexShaderEXT (GLuint id);
+GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint range);
+GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint id);
+GLAPI void APIENTRY glShaderOp1EXT (GLenum op, GLuint res, GLuint arg1);
+GLAPI void APIENTRY glShaderOp2EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
+GLAPI void APIENTRY glShaderOp3EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
+GLAPI void APIENTRY glSwizzleEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+GLAPI void APIENTRY glWriteMaskEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
+GLAPI void APIENTRY glInsertComponentEXT (GLuint res, GLuint src, GLuint num);
+GLAPI void APIENTRY glExtractComponentEXT (GLuint res, GLuint src, GLuint num);
+GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
+GLAPI void APIENTRY glSetInvariantEXT (GLuint id, GLenum type, const void *addr);
+GLAPI void APIENTRY glSetLocalConstantEXT (GLuint id, GLenum type, const void *addr);
+GLAPI void APIENTRY glVariantbvEXT (GLuint id, const GLbyte *addr);
+GLAPI void APIENTRY glVariantsvEXT (GLuint id, const GLshort *addr);
+GLAPI void APIENTRY glVariantivEXT (GLuint id, const GLint *addr);
+GLAPI void APIENTRY glVariantfvEXT (GLuint id, const GLfloat *addr);
+GLAPI void APIENTRY glVariantdvEXT (GLuint id, const GLdouble *addr);
+GLAPI void APIENTRY glVariantubvEXT (GLuint id, const GLubyte *addr);
+GLAPI void APIENTRY glVariantusvEXT (GLuint id, const GLushort *addr);
+GLAPI void APIENTRY glVariantuivEXT (GLuint id, const GLuint *addr);
+GLAPI void APIENTRY glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, const void *addr);
+GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint id);
+GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint id);
+GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum light, GLenum value);
+GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum face, GLenum value);
+GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum unit, GLenum coord, GLenum value);
+GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum unit, GLenum value);
+GLAPI GLuint APIENTRY glBindParameterEXT (GLenum value);
+GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint id, GLenum cap);
+GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
+GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data);
+GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
+GLAPI void APIENTRY glGetVariantPointervEXT (GLuint id, GLenum value, void **data);
+GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
+GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data);
+GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
+GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
+GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint id, GLenum value, GLint *data);
+GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
+#endif
+#endif /* GL_EXT_vertex_shader */
+
+#ifndef GL_EXT_vertex_weighting
+#define GL_EXT_vertex_weighting 1
+#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3
+#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502
+#define GL_MODELVIEW0_MATRIX_EXT 0x0BA6
+#define GL_MODELVIEW1_MATRIX_EXT 0x8506
+#define GL_VERTEX_WEIGHTING_EXT 0x8509
+#define GL_MODELVIEW0_EXT 0x1700
+#define GL_MODELVIEW1_EXT 0x850A
+#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B
+#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C
+#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D
+#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E
+#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
+#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexWeightfEXT (GLfloat weight);
+GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *weight);
+GLAPI void APIENTRY glVertexWeightPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer);
+#endif
+#endif /* GL_EXT_vertex_weighting */
+
+#ifndef GL_EXT_win32_keyed_mutex
+#define GL_EXT_win32_keyed_mutex 1
+typedef GLboolean (APIENTRYP PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key, GLuint timeout);
+typedef GLboolean (APIENTRYP PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glAcquireKeyedMutexWin32EXT (GLuint memory, GLuint64 key, GLuint timeout);
+GLAPI GLboolean APIENTRY glReleaseKeyedMutexWin32EXT (GLuint memory, GLuint64 key);
+#endif
+#endif /* GL_EXT_win32_keyed_mutex */
+
+#ifndef GL_EXT_window_rectangles
+#define GL_EXT_window_rectangles 1
+#define GL_INCLUSIVE_EXT 0x8F10
+#define GL_EXCLUSIVE_EXT 0x8F11
+#define GL_WINDOW_RECTANGLE_EXT 0x8F12
+#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13
+#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14
+#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15
+typedef void (APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint *box);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWindowRectanglesEXT (GLenum mode, GLsizei count, const GLint *box);
+#endif
+#endif /* GL_EXT_window_rectangles */
+
+#ifndef GL_EXT_x11_sync_object
+#define GL_EXT_x11_sync_object 1
+#define GL_SYNC_X11_FENCE_EXT 0x90E1
+typedef GLsync (APIENTRYP PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLsync APIENTRY glImportSyncEXT (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
+#endif
+#endif /* GL_EXT_x11_sync_object */
+
+#ifndef GL_GREMEDY_frame_terminator
+#define GL_GREMEDY_frame_terminator 1
+typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFrameTerminatorGREMEDY (void);
+#endif
+#endif /* GL_GREMEDY_frame_terminator */
+
+#ifndef GL_GREMEDY_string_marker
+#define GL_GREMEDY_string_marker 1
+typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void *string);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei len, const void *string);
+#endif
+#endif /* GL_GREMEDY_string_marker */
+
+#ifndef GL_HP_convolution_border_modes
+#define GL_HP_convolution_border_modes 1
+#define GL_IGNORE_BORDER_HP 0x8150
+#define GL_CONSTANT_BORDER_HP 0x8151
+#define GL_REPLICATE_BORDER_HP 0x8153
+#define GL_CONVOLUTION_BORDER_COLOR_HP 0x8154
+#endif /* GL_HP_convolution_border_modes */
+
+#ifndef GL_HP_image_transform
+#define GL_HP_image_transform 1
+#define GL_IMAGE_SCALE_X_HP 0x8155
+#define GL_IMAGE_SCALE_Y_HP 0x8156
+#define GL_IMAGE_TRANSLATE_X_HP 0x8157
+#define GL_IMAGE_TRANSLATE_Y_HP 0x8158
+#define GL_IMAGE_ROTATE_ANGLE_HP 0x8159
+#define GL_IMAGE_ROTATE_ORIGIN_X_HP 0x815A
+#define GL_IMAGE_ROTATE_ORIGIN_Y_HP 0x815B
+#define GL_IMAGE_MAG_FILTER_HP 0x815C
+#define GL_IMAGE_MIN_FILTER_HP 0x815D
+#define GL_IMAGE_CUBIC_WEIGHT_HP 0x815E
+#define GL_CUBIC_HP 0x815F
+#define GL_AVERAGE_HP 0x8160
+#define GL_IMAGE_TRANSFORM_2D_HP 0x8161
+#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
+#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glImageTransformParameteriHP (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glImageTransformParameterfHP (GLenum target, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glImageTransformParameterivHP (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum target, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_HP_image_transform */
+
+#ifndef GL_HP_occlusion_test
+#define GL_HP_occlusion_test 1
+#define GL_OCCLUSION_TEST_HP 0x8165
+#define GL_OCCLUSION_TEST_RESULT_HP 0x8166
+#endif /* GL_HP_occlusion_test */
+
+#ifndef GL_HP_texture_lighting
+#define GL_HP_texture_lighting 1
+#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167
+#define GL_TEXTURE_POST_SPECULAR_HP 0x8168
+#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169
+#endif /* GL_HP_texture_lighting */
+
+#ifndef GL_IBM_cull_vertex
+#define GL_IBM_cull_vertex 1
+#define GL_CULL_VERTEX_IBM 103050
+#endif /* GL_IBM_cull_vertex */
+
+#ifndef GL_IBM_multimode_draw_arrays
+#define GL_IBM_multimode_draw_arrays 1
+typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
+typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
+GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride);
+#endif
+#endif /* GL_IBM_multimode_draw_arrays */
+
+#ifndef GL_IBM_rasterpos_clip
+#define GL_IBM_rasterpos_clip 1
+#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262
+#endif /* GL_IBM_rasterpos_clip */
+
+#ifndef GL_IBM_static_data
+#define GL_IBM_static_data 1
+#define GL_ALL_STATIC_DATA_IBM 103060
+#define GL_STATIC_VERTEX_ARRAY_IBM 103061
+typedef void (APIENTRYP PFNGLFLUSHSTATICDATAIBMPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFlushStaticDataIBM (GLenum target);
+#endif
+#endif /* GL_IBM_static_data */
+
+#ifndef GL_IBM_texture_mirrored_repeat
+#define GL_IBM_texture_mirrored_repeat 1
+#define GL_MIRRORED_REPEAT_IBM 0x8370
+#endif /* GL_IBM_texture_mirrored_repeat */
+
+#ifndef GL_IBM_vertex_array_lists
+#define GL_IBM_vertex_array_lists 1
+#define GL_VERTEX_ARRAY_LIST_IBM 103070
+#define GL_NORMAL_ARRAY_LIST_IBM 103071
+#define GL_COLOR_ARRAY_LIST_IBM 103072
+#define GL_INDEX_ARRAY_LIST_IBM 103073
+#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074
+#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075
+#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076
+#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
+#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080
+#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081
+#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082
+#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083
+#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
+#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
+#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
+#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
+typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint stride, const GLboolean **pointer, GLint ptrstride);
+GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glIndexPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glNormalPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glTexCoordPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+GLAPI void APIENTRY glVertexPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride);
+#endif
+#endif /* GL_IBM_vertex_array_lists */
+
+#ifndef GL_INGR_blend_func_separate
+#define GL_INGR_blend_func_separate 1
+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+#endif
+#endif /* GL_INGR_blend_func_separate */
+
+#ifndef GL_INGR_color_clamp
+#define GL_INGR_color_clamp 1
+#define GL_RED_MIN_CLAMP_INGR 0x8560
+#define GL_GREEN_MIN_CLAMP_INGR 0x8561
+#define GL_BLUE_MIN_CLAMP_INGR 0x8562
+#define GL_ALPHA_MIN_CLAMP_INGR 0x8563
+#define GL_RED_MAX_CLAMP_INGR 0x8564
+#define GL_GREEN_MAX_CLAMP_INGR 0x8565
+#define GL_BLUE_MAX_CLAMP_INGR 0x8566
+#define GL_ALPHA_MAX_CLAMP_INGR 0x8567
+#endif /* GL_INGR_color_clamp */
+
+#ifndef GL_INGR_interlace_read
+#define GL_INGR_interlace_read 1
+#define GL_INTERLACE_READ_INGR 0x8568
+#endif /* GL_INGR_interlace_read */
+
+#ifndef GL_INTEL_blackhole_render
+#define GL_INTEL_blackhole_render 1
+#define GL_BLACKHOLE_RENDER_INTEL 0x83FC
+#endif /* GL_INTEL_blackhole_render */
+
+#ifndef GL_INTEL_conservative_rasterization
+#define GL_INTEL_conservative_rasterization 1
+#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE
+#endif /* GL_INTEL_conservative_rasterization */
+
+#ifndef GL_INTEL_fragment_shader_ordering
+#define GL_INTEL_fragment_shader_ordering 1
+#endif /* GL_INTEL_fragment_shader_ordering */
+
+#ifndef GL_INTEL_framebuffer_CMAA
+#define GL_INTEL_framebuffer_CMAA 1
+typedef void (APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glApplyFramebufferAttachmentCMAAINTEL (void);
+#endif
+#endif /* GL_INTEL_framebuffer_CMAA */
+
+#ifndef GL_INTEL_map_texture
+#define GL_INTEL_map_texture 1
+#define GL_TEXTURE_MEMORY_LAYOUT_INTEL 0x83FF
+#define GL_LAYOUT_DEFAULT_INTEL 0
+#define GL_LAYOUT_LINEAR_INTEL 1
+#define GL_LAYOUT_LINEAR_CPU_CACHED_INTEL 2
+typedef void (APIENTRYP PFNGLSYNCTEXTUREINTELPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLUNMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level);
+typedef void *(APIENTRYP PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSyncTextureINTEL (GLuint texture);
+GLAPI void APIENTRY glUnmapTexture2DINTEL (GLuint texture, GLint level);
+GLAPI void *APIENTRY glMapTexture2DINTEL (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout);
+#endif
+#endif /* GL_INTEL_map_texture */
+
+#ifndef GL_INTEL_parallel_arrays
+#define GL_INTEL_parallel_arrays 1
+#define GL_PARALLEL_ARRAYS_INTEL 0x83F4
+#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
+#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
+#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
+#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
+typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer);
+typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void **pointer);
+typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer);
+typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexPointervINTEL (GLint size, GLenum type, const void **pointer);
+GLAPI void APIENTRY glNormalPointervINTEL (GLenum type, const void **pointer);
+GLAPI void APIENTRY glColorPointervINTEL (GLint size, GLenum type, const void **pointer);
+GLAPI void APIENTRY glTexCoordPointervINTEL (GLint size, GLenum type, const void **pointer);
+#endif
+#endif /* GL_INTEL_parallel_arrays */
+
+#ifndef GL_INTEL_performance_query
+#define GL_INTEL_performance_query 1
+#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000
+#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001
+#define GL_PERFQUERY_WAIT_INTEL 0x83FB
+#define GL_PERFQUERY_FLUSH_INTEL 0x83FA
+#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9
+#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0
+#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1
+#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2
+#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3
+#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4
+#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5
+#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8
+#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9
+#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA
+#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB
+#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC
+#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD
+#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE
+#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF
+#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500
+typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle);
+typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId);
+typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId);
+typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten);
+typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId);
+typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle);
+GLAPI void APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glEndPerfQueryINTEL (GLuint queryHandle);
+GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId);
+GLAPI void APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId);
+GLAPI void APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+GLAPI void APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten);
+GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId);
+GLAPI void APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#endif
+#endif /* GL_INTEL_performance_query */
+
+#ifndef GL_MESAX_texture_stack
+#define GL_MESAX_texture_stack 1
+#define GL_TEXTURE_1D_STACK_MESAX 0x8759
+#define GL_TEXTURE_2D_STACK_MESAX 0x875A
+#define GL_PROXY_TEXTURE_1D_STACK_MESAX 0x875B
+#define GL_PROXY_TEXTURE_2D_STACK_MESAX 0x875C
+#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D
+#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E
+#endif /* GL_MESAX_texture_stack */
+
+#ifndef GL_MESA_framebuffer_flip_x
+#define GL_MESA_framebuffer_flip_x 1
+#define GL_FRAMEBUFFER_FLIP_X_MESA 0x8BBC
+#endif /* GL_MESA_framebuffer_flip_x */
+
+#ifndef GL_MESA_framebuffer_flip_y
+#define GL_MESA_framebuffer_flip_y 1
+#define GL_FRAMEBUFFER_FLIP_Y_MESA 0x8BBB
+typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIMESAPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC) (GLenum target, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferParameteriMESA (GLenum target, GLenum pname, GLint param);
+GLAPI void APIENTRY glGetFramebufferParameterivMESA (GLenum target, GLenum pname, GLint *params);
+#endif
+#endif /* GL_MESA_framebuffer_flip_y */
+
+#ifndef GL_MESA_framebuffer_swap_xy
+#define GL_MESA_framebuffer_swap_xy 1
+#define GL_FRAMEBUFFER_SWAP_XY_MESA 0x8BBD
+#endif /* GL_MESA_framebuffer_swap_xy */
+
+#ifndef GL_MESA_pack_invert
+#define GL_MESA_pack_invert 1
+#define GL_PACK_INVERT_MESA 0x8758
+#endif /* GL_MESA_pack_invert */
+
+#ifndef GL_MESA_program_binary_formats
+#define GL_MESA_program_binary_formats 1
+#define GL_PROGRAM_BINARY_FORMAT_MESA 0x875F
+#endif /* GL_MESA_program_binary_formats */
+
+#ifndef GL_MESA_resize_buffers
+#define GL_MESA_resize_buffers 1
+typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glResizeBuffersMESA (void);
+#endif
+#endif /* GL_MESA_resize_buffers */
+
+#ifndef GL_MESA_shader_integer_functions
+#define GL_MESA_shader_integer_functions 1
+#endif /* GL_MESA_shader_integer_functions */
+
+#ifndef GL_MESA_tile_raster_order
+#define GL_MESA_tile_raster_order 1
+#define GL_TILE_RASTER_ORDER_FIXED_MESA 0x8BB8
+#define GL_TILE_RASTER_ORDER_INCREASING_X_MESA 0x8BB9
+#define GL_TILE_RASTER_ORDER_INCREASING_Y_MESA 0x8BBA
+#endif /* GL_MESA_tile_raster_order */
+
+#ifndef GL_MESA_window_pos
+#define GL_MESA_window_pos 1
+typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v);
+typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glWindowPos2dMESA (GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos2fMESA (GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos2iMESA (GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *v);
+GLAPI void APIENTRY glWindowPos2sMESA (GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *v);
+GLAPI void APIENTRY glWindowPos3dMESA (GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos3fMESA (GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos3iMESA (GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *v);
+GLAPI void APIENTRY glWindowPos3sMESA (GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *v);
+GLAPI void APIENTRY glWindowPos4dMESA (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *v);
+GLAPI void APIENTRY glWindowPos4fMESA (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *v);
+GLAPI void APIENTRY glWindowPos4iMESA (GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *v);
+GLAPI void APIENTRY glWindowPos4sMESA (GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *v);
+#endif
+#endif /* GL_MESA_window_pos */
+
+#ifndef GL_MESA_ycbcr_texture
+#define GL_MESA_ycbcr_texture 1
+#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB
+#define GL_YCBCR_MESA 0x8757
+#endif /* GL_MESA_ycbcr_texture */
+
+#ifndef GL_NVX_blend_equation_advanced_multi_draw_buffers
+#define GL_NVX_blend_equation_advanced_multi_draw_buffers 1
+#endif /* GL_NVX_blend_equation_advanced_multi_draw_buffers */
+
+#ifndef GL_NVX_conditional_render
+#define GL_NVX_conditional_render 1
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVXPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginConditionalRenderNVX (GLuint id);
+GLAPI void APIENTRY glEndConditionalRenderNVX (void);
+#endif
+#endif /* GL_NVX_conditional_render */
+
+#ifndef GL_NVX_gpu_memory_info
+#define GL_NVX_gpu_memory_info 1
+#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047
+#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048
+#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049
+#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A
+#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B
+#endif /* GL_NVX_gpu_memory_info */
+
+#ifndef GL_NVX_gpu_multicast2
+#define GL_NVX_gpu_multicast2 1
+#define GL_UPLOAD_GPU_MASK_NVX 0x954A
+typedef void (APIENTRYP PFNGLUPLOADGPUMASKNVXPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLMULTICASTVIEWPORTARRAYVNVXPROC) (GLuint gpu, GLuint first, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTICASTVIEWPORTPOSITIONWSCALENVXPROC) (GLuint gpu, GLuint index, GLfloat xcoeff, GLfloat ycoeff);
+typedef void (APIENTRYP PFNGLMULTICASTSCISSORARRAYVNVXPROC) (GLuint gpu, GLuint first, GLsizei count, const GLint *v);
+typedef GLuint (APIENTRYP PFNGLASYNCCOPYBUFFERSUBDATANVXPROC) (GLsizei waitSemaphoreCount, const GLuint *waitSemaphoreArray, const GLuint64 *fenceValueArray, GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size, GLsizei signalSemaphoreCount, const GLuint *signalSemaphoreArray, const GLuint64 *signalValueArray);
+typedef GLuint (APIENTRYP PFNGLASYNCCOPYIMAGESUBDATANVXPROC) (GLsizei waitSemaphoreCount, const GLuint *waitSemaphoreArray, const GLuint64 *waitValueArray, GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth, GLsizei signalSemaphoreCount, const GLuint *signalSemaphoreArray, const GLuint64 *signalValueArray);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glUploadGpuMaskNVX (GLbitfield mask);
+GLAPI void APIENTRY glMulticastViewportArrayvNVX (GLuint gpu, GLuint first, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glMulticastViewportPositionWScaleNVX (GLuint gpu, GLuint index, GLfloat xcoeff, GLfloat ycoeff);
+GLAPI void APIENTRY glMulticastScissorArrayvNVX (GLuint gpu, GLuint first, GLsizei count, const GLint *v);
+GLAPI GLuint APIENTRY glAsyncCopyBufferSubDataNVX (GLsizei waitSemaphoreCount, const GLuint *waitSemaphoreArray, const GLuint64 *fenceValueArray, GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size, GLsizei signalSemaphoreCount, const GLuint *signalSemaphoreArray, const GLuint64 *signalValueArray);
+GLAPI GLuint APIENTRY glAsyncCopyImageSubDataNVX (GLsizei waitSemaphoreCount, const GLuint *waitSemaphoreArray, const GLuint64 *waitValueArray, GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth, GLsizei signalSemaphoreCount, const GLuint *signalSemaphoreArray, const GLuint64 *signalValueArray);
+#endif
+#endif /* GL_NVX_gpu_multicast2 */
+
+#ifndef GL_NVX_linked_gpu_multicast
+#define GL_NVX_linked_gpu_multicast 1
+#define GL_LGPU_SEPARATE_STORAGE_BIT_NVX 0x0800
+#define GL_MAX_LGPU_GPUS_NVX 0x92BA
+typedef void (APIENTRYP PFNGLLGPUNAMEDBUFFERSUBDATANVXPROC) (GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLLGPUCOPYIMAGESUBDATANVXPROC) (GLuint sourceGpu, GLbitfield destinationGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srxY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (APIENTRYP PFNGLLGPUINTERLOCKNVXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glLGPUNamedBufferSubDataNVX (GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glLGPUCopyImageSubDataNVX (GLuint sourceGpu, GLbitfield destinationGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srxY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
+GLAPI void APIENTRY glLGPUInterlockNVX (void);
+#endif
+#endif /* GL_NVX_linked_gpu_multicast */
+
+#ifndef GL_NVX_progress_fence
+#define GL_NVX_progress_fence 1
+typedef GLuint (APIENTRYP PFNGLCREATEPROGRESSFENCENVXPROC) (void);
+typedef void (APIENTRYP PFNGLSIGNALSEMAPHOREUI64NVXPROC) (GLuint signalGpu, GLsizei fenceObjectCount, const GLuint *semaphoreArray, const GLuint64 *fenceValueArray);
+typedef void (APIENTRYP PFNGLWAITSEMAPHOREUI64NVXPROC) (GLuint waitGpu, GLsizei fenceObjectCount, const GLuint *semaphoreArray, const GLuint64 *fenceValueArray);
+typedef void (APIENTRYP PFNGLCLIENTWAITSEMAPHOREUI64NVXPROC) (GLsizei fenceObjectCount, const GLuint *semaphoreArray, const GLuint64 *fenceValueArray);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glCreateProgressFenceNVX (void);
+GLAPI void APIENTRY glSignalSemaphoreui64NVX (GLuint signalGpu, GLsizei fenceObjectCount, const GLuint *semaphoreArray, const GLuint64 *fenceValueArray);
+GLAPI void APIENTRY glWaitSemaphoreui64NVX (GLuint waitGpu, GLsizei fenceObjectCount, const GLuint *semaphoreArray, const GLuint64 *fenceValueArray);
+GLAPI void APIENTRY glClientWaitSemaphoreui64NVX (GLsizei fenceObjectCount, const GLuint *semaphoreArray, const GLuint64 *fenceValueArray);
+#endif
+#endif /* GL_NVX_progress_fence */
+
+#ifndef GL_NV_alpha_to_coverage_dither_control
+#define GL_NV_alpha_to_coverage_dither_control 1
+#define GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV 0x934D
+#define GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV 0x934E
+#define GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV 0x934F
+#define GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV 0x92BF
+typedef void (APIENTRYP PFNGLALPHATOCOVERAGEDITHERCONTROLNVPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glAlphaToCoverageDitherControlNV (GLenum mode);
+#endif
+#endif /* GL_NV_alpha_to_coverage_dither_control */
+
+#ifndef GL_NV_bindless_multi_draw_indirect
+#define GL_NV_bindless_multi_draw_indirect 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
+#endif
+#endif /* GL_NV_bindless_multi_draw_indirect */
+
+#ifndef GL_NV_bindless_multi_draw_indirect_count
+#define GL_NV_bindless_multi_draw_indirect_count 1
+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessCountNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessCountNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount);
+#endif
+#endif /* GL_NV_bindless_multi_draw_indirect_count */
+
+#ifndef GL_NV_bindless_texture
+#define GL_NV_bindless_texture 1
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture);
+typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture);
+GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler);
+GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle);
+GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle);
+GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
+GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle);
+GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value);
+GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value);
+GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value);
+GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle);
+GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle);
+#endif
+#endif /* GL_NV_bindless_texture */
+
+#ifndef GL_NV_blend_equation_advanced
+#define GL_NV_blend_equation_advanced 1
+#define GL_BLEND_OVERLAP_NV 0x9281
+#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280
+#define GL_BLUE_NV 0x1905
+#define GL_COLORBURN_NV 0x929A
+#define GL_COLORDODGE_NV 0x9299
+#define GL_CONJOINT_NV 0x9284
+#define GL_CONTRAST_NV 0x92A1
+#define GL_DARKEN_NV 0x9297
+#define GL_DIFFERENCE_NV 0x929E
+#define GL_DISJOINT_NV 0x9283
+#define GL_DST_ATOP_NV 0x928F
+#define GL_DST_IN_NV 0x928B
+#define GL_DST_NV 0x9287
+#define GL_DST_OUT_NV 0x928D
+#define GL_DST_OVER_NV 0x9289
+#define GL_EXCLUSION_NV 0x92A0
+#define GL_GREEN_NV 0x1904
+#define GL_HARDLIGHT_NV 0x929B
+#define GL_HARDMIX_NV 0x92A9
+#define GL_HSL_COLOR_NV 0x92AF
+#define GL_HSL_HUE_NV 0x92AD
+#define GL_HSL_LUMINOSITY_NV 0x92B0
+#define GL_HSL_SATURATION_NV 0x92AE
+#define GL_INVERT_OVG_NV 0x92B4
+#define GL_INVERT_RGB_NV 0x92A3
+#define GL_LIGHTEN_NV 0x9298
+#define GL_LINEARBURN_NV 0x92A5
+#define GL_LINEARDODGE_NV 0x92A4
+#define GL_LINEARLIGHT_NV 0x92A7
+#define GL_MINUS_CLAMPED_NV 0x92B3
+#define GL_MINUS_NV 0x929F
+#define GL_MULTIPLY_NV 0x9294
+#define GL_OVERLAY_NV 0x9296
+#define GL_PINLIGHT_NV 0x92A8
+#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2
+#define GL_PLUS_CLAMPED_NV 0x92B1
+#define GL_PLUS_DARKER_NV 0x9292
+#define GL_PLUS_NV 0x9291
+#define GL_RED_NV 0x1903
+#define GL_SCREEN_NV 0x9295
+#define GL_SOFTLIGHT_NV 0x929C
+#define GL_SRC_ATOP_NV 0x928E
+#define GL_SRC_IN_NV 0x928A
+#define GL_SRC_NV 0x9286
+#define GL_SRC_OUT_NV 0x928C
+#define GL_SRC_OVER_NV 0x9288
+#define GL_UNCORRELATED_NV 0x9282
+#define GL_VIVIDLIGHT_NV 0x92A6
+#define GL_XOR_NV 0x1506
+typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBlendParameteriNV (GLenum pname, GLint value);
+GLAPI void APIENTRY glBlendBarrierNV (void);
+#endif
+#endif /* GL_NV_blend_equation_advanced */
+
+#ifndef GL_NV_blend_equation_advanced_coherent
+#define GL_NV_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285
+#endif /* GL_NV_blend_equation_advanced_coherent */
+
+#ifndef GL_NV_blend_minmax_factor
+#define GL_NV_blend_minmax_factor 1
+#endif /* GL_NV_blend_minmax_factor */
+
+#ifndef GL_NV_blend_square
+#define GL_NV_blend_square 1
+#endif /* GL_NV_blend_square */
+
+#ifndef GL_NV_clip_space_w_scaling
+#define GL_NV_clip_space_w_scaling 1
+#define GL_VIEWPORT_POSITION_W_SCALE_NV 0x937C
+#define GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV 0x937D
+#define GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV 0x937E
+typedef void (APIENTRYP PFNGLVIEWPORTPOSITIONWSCALENVPROC) (GLuint index, GLfloat xcoeff, GLfloat ycoeff);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glViewportPositionWScaleNV (GLuint index, GLfloat xcoeff, GLfloat ycoeff);
+#endif
+#endif /* GL_NV_clip_space_w_scaling */
+
+#ifndef GL_NV_command_list
+#define GL_NV_command_list 1
+#define GL_TERMINATE_SEQUENCE_COMMAND_NV 0x0000
+#define GL_NOP_COMMAND_NV 0x0001
+#define GL_DRAW_ELEMENTS_COMMAND_NV 0x0002
+#define GL_DRAW_ARRAYS_COMMAND_NV 0x0003
+#define GL_DRAW_ELEMENTS_STRIP_COMMAND_NV 0x0004
+#define GL_DRAW_ARRAYS_STRIP_COMMAND_NV 0x0005
+#define GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV 0x0006
+#define GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV 0x0007
+#define GL_ELEMENT_ADDRESS_COMMAND_NV 0x0008
+#define GL_ATTRIBUTE_ADDRESS_COMMAND_NV 0x0009
+#define GL_UNIFORM_ADDRESS_COMMAND_NV 0x000A
+#define GL_BLEND_COLOR_COMMAND_NV 0x000B
+#define GL_STENCIL_REF_COMMAND_NV 0x000C
+#define GL_LINE_WIDTH_COMMAND_NV 0x000D
+#define GL_POLYGON_OFFSET_COMMAND_NV 0x000E
+#define GL_ALPHA_REF_COMMAND_NV 0x000F
+#define GL_VIEWPORT_COMMAND_NV 0x0010
+#define GL_SCISSOR_COMMAND_NV 0x0011
+#define GL_FRONT_FACE_COMMAND_NV 0x0012
+typedef void (APIENTRYP PFNGLCREATESTATESNVPROC) (GLsizei n, GLuint *states);
+typedef void (APIENTRYP PFNGLDELETESTATESNVPROC) (GLsizei n, const GLuint *states);
+typedef GLboolean (APIENTRYP PFNGLISSTATENVPROC) (GLuint state);
+typedef void (APIENTRYP PFNGLSTATECAPTURENVPROC) (GLuint state, GLenum mode);
+typedef GLuint (APIENTRYP PFNGLGETCOMMANDHEADERNVPROC) (GLenum tokenID, GLuint size);
+typedef GLushort (APIENTRYP PFNGLGETSTAGEINDEXNVPROC) (GLenum shadertype);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSNVPROC) (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSADDRESSNVPROC) (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESNVPROC) (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC) (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+typedef void (APIENTRYP PFNGLCREATECOMMANDLISTSNVPROC) (GLsizei n, GLuint *lists);
+typedef void (APIENTRYP PFNGLDELETECOMMANDLISTSNVPROC) (GLsizei n, const GLuint *lists);
+typedef GLboolean (APIENTRYP PFNGLISCOMMANDLISTNVPROC) (GLuint list);
+typedef void (APIENTRYP PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC) (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+typedef void (APIENTRYP PFNGLCOMMANDLISTSEGMENTSNVPROC) (GLuint list, GLuint segments);
+typedef void (APIENTRYP PFNGLCOMPILECOMMANDLISTNVPROC) (GLuint list);
+typedef void (APIENTRYP PFNGLCALLCOMMANDLISTNVPROC) (GLuint list);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCreateStatesNV (GLsizei n, GLuint *states);
+GLAPI void APIENTRY glDeleteStatesNV (GLsizei n, const GLuint *states);
+GLAPI GLboolean APIENTRY glIsStateNV (GLuint state);
+GLAPI void APIENTRY glStateCaptureNV (GLuint state, GLenum mode);
+GLAPI GLuint APIENTRY glGetCommandHeaderNV (GLenum tokenID, GLuint size);
+GLAPI GLushort APIENTRY glGetStageIndexNV (GLenum shadertype);
+GLAPI void APIENTRY glDrawCommandsNV (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count);
+GLAPI void APIENTRY glDrawCommandsAddressNV (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count);
+GLAPI void APIENTRY glDrawCommandsStatesNV (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+GLAPI void APIENTRY glDrawCommandsStatesAddressNV (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+GLAPI void APIENTRY glCreateCommandListsNV (GLsizei n, GLuint *lists);
+GLAPI void APIENTRY glDeleteCommandListsNV (GLsizei n, const GLuint *lists);
+GLAPI GLboolean APIENTRY glIsCommandListNV (GLuint list);
+GLAPI void APIENTRY glListDrawCommandsStatesClientNV (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count);
+GLAPI void APIENTRY glCommandListSegmentsNV (GLuint list, GLuint segments);
+GLAPI void APIENTRY glCompileCommandListNV (GLuint list);
+GLAPI void APIENTRY glCallCommandListNV (GLuint list);
+#endif
+#endif /* GL_NV_command_list */
+
+#ifndef GL_NV_compute_program5
+#define GL_NV_compute_program5 1
+#define GL_COMPUTE_PROGRAM_NV 0x90FB
+#define GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV 0x90FC
+#endif /* GL_NV_compute_program5 */
+
+#ifndef GL_NV_compute_shader_derivatives
+#define GL_NV_compute_shader_derivatives 1
+#endif /* GL_NV_compute_shader_derivatives */
+
+#ifndef GL_NV_conditional_render
+#define GL_NV_conditional_render 1
+#define GL_QUERY_WAIT_NV 0x8E13
+#define GL_QUERY_NO_WAIT_NV 0x8E14
+#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16
+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode);
+GLAPI void APIENTRY glEndConditionalRenderNV (void);
+#endif
+#endif /* GL_NV_conditional_render */
+
+#ifndef GL_NV_conservative_raster
+#define GL_NV_conservative_raster 1
+#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346
+#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347
+#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348
+#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349
+typedef void (APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits);
+#endif
+#endif /* GL_NV_conservative_raster */
+
+#ifndef GL_NV_conservative_raster_dilate
+#define GL_NV_conservative_raster_dilate 1
+#define GL_CONSERVATIVE_RASTER_DILATE_NV 0x9379
+#define GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV 0x937A
+#define GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV 0x937B
+typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERFNVPROC) (GLenum pname, GLfloat value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glConservativeRasterParameterfNV (GLenum pname, GLfloat value);
+#endif
+#endif /* GL_NV_conservative_raster_dilate */
+
+#ifndef GL_NV_conservative_raster_pre_snap
+#define GL_NV_conservative_raster_pre_snap 1
+#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV 0x9550
+#endif /* GL_NV_conservative_raster_pre_snap */
+
+#ifndef GL_NV_conservative_raster_pre_snap_triangles
+#define GL_NV_conservative_raster_pre_snap_triangles 1
+#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D
+#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E
+#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F
+typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glConservativeRasterParameteriNV (GLenum pname, GLint param);
+#endif
+#endif /* GL_NV_conservative_raster_pre_snap_triangles */
+
+#ifndef GL_NV_conservative_raster_underestimation
+#define GL_NV_conservative_raster_underestimation 1
+#endif /* GL_NV_conservative_raster_underestimation */
+
+#ifndef GL_NV_copy_depth_to_color
+#define GL_NV_copy_depth_to_color 1
+#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E
+#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F
+#endif /* GL_NV_copy_depth_to_color */
+
+#ifndef GL_NV_copy_image
+#define GL_NV_copy_image 1
+typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCopyImageSubDataNV (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+#endif /* GL_NV_copy_image */
+
+#ifndef GL_NV_deep_texture3D
+#define GL_NV_deep_texture3D 1
+#define GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV 0x90D0
+#define GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV 0x90D1
+#endif /* GL_NV_deep_texture3D */
+
+#ifndef GL_NV_depth_buffer_float
+#define GL_NV_depth_buffer_float 1
+#define GL_DEPTH_COMPONENT32F_NV 0x8DAB
+#define GL_DEPTH32F_STENCIL8_NV 0x8DAC
+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD
+#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF
+typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar);
+typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth);
+typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar);
+GLAPI void APIENTRY glClearDepthdNV (GLdouble depth);
+GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax);
+#endif
+#endif /* GL_NV_depth_buffer_float */
+
+#ifndef GL_NV_depth_clamp
+#define GL_NV_depth_clamp 1
+#define GL_DEPTH_CLAMP_NV 0x864F
+#endif /* GL_NV_depth_clamp */
+
+#ifndef GL_NV_draw_texture
+#define GL_NV_draw_texture 1
+typedef void (APIENTRYP PFNGLDRAWTEXTURENVPROC) (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawTextureNV (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+#endif
+#endif /* GL_NV_draw_texture */
+
+#ifndef GL_NV_draw_vulkan_image
+#define GL_NV_draw_vulkan_image 1
+typedef void (APIENTRY *GLVULKANPROCNV)(void);
+typedef void (APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+typedef GLVULKANPROCNV (APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar *name);
+typedef void (APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
+typedef void (APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
+typedef void (APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawVkImageNV (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+GLAPI GLVULKANPROCNV APIENTRY glGetVkProcAddrNV (const GLchar *name);
+GLAPI void APIENTRY glWaitVkSemaphoreNV (GLuint64 vkSemaphore);
+GLAPI void APIENTRY glSignalVkSemaphoreNV (GLuint64 vkSemaphore);
+GLAPI void APIENTRY glSignalVkFenceNV (GLuint64 vkFence);
+#endif
+#endif /* GL_NV_draw_vulkan_image */
+
+#ifndef GL_NV_evaluators
+#define GL_NV_evaluators 1
+#define GL_EVAL_2D_NV 0x86C0
+#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1
+#define GL_MAP_TESSELLATION_NV 0x86C2
+#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3
+#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4
+#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5
+#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6
+#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7
+#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8
+#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9
+#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA
+#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB
+#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC
+#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD
+#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE
+#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF
+#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0
+#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1
+#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2
+#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3
+#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4
+#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5
+#define GL_MAX_MAP_TESSELLATION_NV 0x86D6
+#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7
+typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points);
+typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points);
+typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points);
+GLAPI void APIENTRY glMapParameterivNV (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glMapParameterfvNV (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points);
+GLAPI void APIENTRY glGetMapParameterivNV (GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMapParameterfvNV (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum target, GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glEvalMapsNV (GLenum target, GLenum mode);
+#endif
+#endif /* GL_NV_evaluators */
+
+#ifndef GL_NV_explicit_multisample
+#define GL_NV_explicit_multisample 1
+#define GL_SAMPLE_POSITION_NV 0x8E50
+#define GL_SAMPLE_MASK_NV 0x8E51
+#define GL_SAMPLE_MASK_VALUE_NV 0x8E52
+#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53
+#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54
+#define GL_TEXTURE_RENDERBUFFER_NV 0x8E55
+#define GL_SAMPLER_RENDERBUFFER_NV 0x8E56
+#define GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57
+#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58
+#define GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59
+typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat *val);
+typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask);
+typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetMultisamplefvNV (GLenum pname, GLuint index, GLfloat *val);
+GLAPI void APIENTRY glSampleMaskIndexedNV (GLuint index, GLbitfield mask);
+GLAPI void APIENTRY glTexRenderbufferNV (GLenum target, GLuint renderbuffer);
+#endif
+#endif /* GL_NV_explicit_multisample */
+
+#ifndef GL_NV_fence
+#define GL_NV_fence 1
+#define GL_ALL_COMPLETED_NV 0x84F2
+#define GL_FENCE_STATUS_NV 0x84F3
+#define GL_FENCE_CONDITION_NV 0x84F4
+typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
+typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
+typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
+typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
+typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
+typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
+GLAPI void APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
+GLAPI GLboolean APIENTRY glIsFenceNV (GLuint fence);
+GLAPI GLboolean APIENTRY glTestFenceNV (GLuint fence);
+GLAPI void APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
+GLAPI void APIENTRY glFinishFenceNV (GLuint fence);
+GLAPI void APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
+#endif
+#endif /* GL_NV_fence */
+
+#ifndef GL_NV_fill_rectangle
+#define GL_NV_fill_rectangle 1
+#define GL_FILL_RECTANGLE_NV 0x933C
+#endif /* GL_NV_fill_rectangle */
+
+#ifndef GL_NV_float_buffer
+#define GL_NV_float_buffer 1
+#define GL_FLOAT_R_NV 0x8880
+#define GL_FLOAT_RG_NV 0x8881
+#define GL_FLOAT_RGB_NV 0x8882
+#define GL_FLOAT_RGBA_NV 0x8883
+#define GL_FLOAT_R16_NV 0x8884
+#define GL_FLOAT_R32_NV 0x8885
+#define GL_FLOAT_RG16_NV 0x8886
+#define GL_FLOAT_RG32_NV 0x8887
+#define GL_FLOAT_RGB16_NV 0x8888
+#define GL_FLOAT_RGB32_NV 0x8889
+#define GL_FLOAT_RGBA16_NV 0x888A
+#define GL_FLOAT_RGBA32_NV 0x888B
+#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C
+#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D
+#define GL_FLOAT_RGBA_MODE_NV 0x888E
+#endif /* GL_NV_float_buffer */
+
+#ifndef GL_NV_fog_distance
+#define GL_NV_fog_distance 1
+#define GL_FOG_DISTANCE_MODE_NV 0x855A
+#define GL_EYE_RADIAL_NV 0x855B
+#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C
+#endif /* GL_NV_fog_distance */
+
+#ifndef GL_NV_fragment_coverage_to_color
+#define GL_NV_fragment_coverage_to_color 1
+#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD
+#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE
+typedef void (APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFragmentCoverageColorNV (GLuint color);
+#endif
+#endif /* GL_NV_fragment_coverage_to_color */
+
+#ifndef GL_NV_fragment_program
+#define GL_NV_fragment_program 1
+#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
+#define GL_FRAGMENT_PROGRAM_NV 0x8870
+#define GL_MAX_TEXTURE_COORDS_NV 0x8871
+#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872
+#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873
+#define GL_PROGRAM_ERROR_STRING_NV 0x8874
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
+typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
+GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
+GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
+GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
+#endif
+#endif /* GL_NV_fragment_program */
+
+#ifndef GL_NV_fragment_program2
+#define GL_NV_fragment_program2 1
+#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
+#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5
+#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6
+#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7
+#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8
+#endif /* GL_NV_fragment_program2 */
+
+#ifndef GL_NV_fragment_program4
+#define GL_NV_fragment_program4 1
+#endif /* GL_NV_fragment_program4 */
+
+#ifndef GL_NV_fragment_program_option
+#define GL_NV_fragment_program_option 1
+#endif /* GL_NV_fragment_program_option */
+
+#ifndef GL_NV_fragment_shader_barycentric
+#define GL_NV_fragment_shader_barycentric 1
+#endif /* GL_NV_fragment_shader_barycentric */
+
+#ifndef GL_NV_fragment_shader_interlock
+#define GL_NV_fragment_shader_interlock 1
+#endif /* GL_NV_fragment_shader_interlock */
+
+#ifndef GL_NV_framebuffer_mixed_samples
+#define GL_NV_framebuffer_mixed_samples 1
+#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331
+#define GL_COLOR_SAMPLES_NV 0x8E20
+#define GL_DEPTH_SAMPLES_NV 0x932D
+#define GL_STENCIL_SAMPLES_NV 0x932E
+#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F
+#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330
+#define GL_COVERAGE_MODULATION_NV 0x9332
+#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333
+typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufSize, GLfloat *v);
+typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCoverageModulationTableNV (GLsizei n, const GLfloat *v);
+GLAPI void APIENTRY glGetCoverageModulationTableNV (GLsizei bufSize, GLfloat *v);
+GLAPI void APIENTRY glCoverageModulationNV (GLenum components);
+#endif
+#endif /* GL_NV_framebuffer_mixed_samples */
+
+#ifndef GL_NV_framebuffer_multisample_coverage
+#define GL_NV_framebuffer_multisample_coverage 1
+#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
+#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10
+#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11
+#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12
+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_NV_framebuffer_multisample_coverage */
+
+#ifndef GL_NV_geometry_program4
+#define GL_NV_geometry_program4 1
+#define GL_GEOMETRY_PROGRAM_NV 0x8C26
+#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27
+#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28
+typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramVertexLimitNV (GLenum target, GLint limit);
+GLAPI void APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
+GLAPI void APIENTRY glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
+#endif
+#endif /* GL_NV_geometry_program4 */
+
+#ifndef GL_NV_geometry_shader4
+#define GL_NV_geometry_shader4 1
+#endif /* GL_NV_geometry_shader4 */
+
+#ifndef GL_NV_geometry_shader_passthrough
+#define GL_NV_geometry_shader_passthrough 1
+#endif /* GL_NV_geometry_shader_passthrough */
+
+#ifndef GL_NV_gpu_multicast
+#define GL_NV_gpu_multicast 1
+#define GL_PER_GPU_STORAGE_BIT_NV 0x0800
+#define GL_MULTICAST_GPUS_NV 0x92BA
+#define GL_RENDER_GPU_MASK_NV 0x9558
+#define GL_PER_GPU_STORAGE_NV 0x9548
+#define GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9549
+typedef void (APIENTRYP PFNGLRENDERGPUMASKNVPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLMULTICASTBUFFERSUBDATANVPROC) (GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+typedef void (APIENTRYP PFNGLMULTICASTCOPYBUFFERSUBDATANVPROC) (GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLMULTICASTCOPYIMAGESUBDATANVPROC) (GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+typedef void (APIENTRYP PFNGLMULTICASTBLITFRAMEBUFFERNVPROC) (GLuint srcGpu, GLuint dstGpu, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+typedef void (APIENTRYP PFNGLMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint gpu, GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLMULTICASTBARRIERNVPROC) (void);
+typedef void (APIENTRYP PFNGLMULTICASTWAITSYNCNVPROC) (GLuint signalGpu, GLbitfield waitGpuMask);
+typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTIVNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTUIVNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTI64VNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLint64 *params);
+typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTUI64VNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLuint64 *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glRenderGpuMaskNV (GLbitfield mask);
+GLAPI void APIENTRY glMulticastBufferSubDataNV (GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
+GLAPI void APIENTRY glMulticastCopyBufferSubDataNV (GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+GLAPI void APIENTRY glMulticastCopyImageSubDataNV (GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+GLAPI void APIENTRY glMulticastBlitFramebufferNV (GLuint srcGpu, GLuint dstGpu, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+GLAPI void APIENTRY glMulticastFramebufferSampleLocationsfvNV (GLuint gpu, GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glMulticastBarrierNV (void);
+GLAPI void APIENTRY glMulticastWaitSyncNV (GLuint signalGpu, GLbitfield waitGpuMask);
+GLAPI void APIENTRY glMulticastGetQueryObjectivNV (GLuint gpu, GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glMulticastGetQueryObjectuivNV (GLuint gpu, GLuint id, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glMulticastGetQueryObjecti64vNV (GLuint gpu, GLuint id, GLenum pname, GLint64 *params);
+GLAPI void APIENTRY glMulticastGetQueryObjectui64vNV (GLuint gpu, GLuint id, GLenum pname, GLuint64 *params);
+#endif
+#endif /* GL_NV_gpu_multicast */
+
+#ifndef GL_NV_gpu_program4
+#define GL_NV_gpu_program4 1
+#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905
+#define GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906
+#define GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907
+#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908
+#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909
+#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5
+#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
+typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
+GLAPI void APIENTRY glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+GLAPI void APIENTRY glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
+GLAPI void APIENTRY glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetProgramLocalParameterIivNV (GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetProgramLocalParameterIuivNV (GLenum target, GLuint index, GLuint *params);
+GLAPI void APIENTRY glGetProgramEnvParameterIivNV (GLenum target, GLuint index, GLint *params);
+GLAPI void APIENTRY glGetProgramEnvParameterIuivNV (GLenum target, GLuint index, GLuint *params);
+#endif
+#endif /* GL_NV_gpu_program4 */
+
+#ifndef GL_NV_gpu_program5
+#define GL_NV_gpu_program5 1
+#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A
+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B
+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C
+#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D
+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F
+#define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44
+#define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV 0x8F45
+typedef void (APIENTRYP PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC) (GLenum target, GLsizei count, const GLuint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC) (GLenum target, GLuint index, GLuint *param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramSubroutineParametersuivNV (GLenum target, GLsizei count, const GLuint *params);
+GLAPI void APIENTRY glGetProgramSubroutineParameteruivNV (GLenum target, GLuint index, GLuint *param);
+#endif
+#endif /* GL_NV_gpu_program5 */
+
+#ifndef GL_NV_gpu_program5_mem_extended
+#define GL_NV_gpu_program5_mem_extended 1
+#endif /* GL_NV_gpu_program5_mem_extended */
+
+#ifndef GL_NV_gpu_shader5
+#define GL_NV_gpu_shader5 1
+#endif /* GL_NV_gpu_shader5 */
+
+#ifndef GL_NV_half_float
+#define GL_NV_half_float 1
+typedef unsigned short GLhalfNV;
+#define GL_HALF_FLOAT_NV 0x140B
+typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y);
+typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z);
+typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
+typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
+typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s);
+typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t);
+typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r);
+typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog);
+typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight);
+typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertex2hNV (GLhalfNV x, GLhalfNV y);
+GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glVertex3hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z);
+GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glVertex4hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glNormal3hNV (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
+GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glColor4hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
+GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV s);
+GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV s, GLhalfNV t);
+GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r);
+GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum target, GLhalfNV s);
+GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum target, GLhalfNV s, GLhalfNV t);
+GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
+GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
+GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum target, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib1hNV (GLuint index, GLhalfNV x);
+GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib2hNV (GLuint index, GLhalfNV x, GLhalfNV y);
+GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib3hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
+GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttrib4hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
+GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint index, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
+GLAPI void APIENTRY glFogCoordhNV (GLhalfNV fog);
+GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *fog);
+GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
+GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *v);
+GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV weight);
+GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *weight);
+#endif
+#endif /* GL_NV_half_float */
+
+#ifndef GL_NV_internalformat_sample_query
+#define GL_NV_internalformat_sample_query 1
+#define GL_MULTISAMPLES_NV 0x9371
+#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372
+#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373
+#define GL_CONFORMANT_NV 0x9374
+typedef void (APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params);
+#endif
+#endif /* GL_NV_internalformat_sample_query */
+
+#ifndef GL_NV_light_max_exponent
+#define GL_NV_light_max_exponent 1
+#define GL_MAX_SHININESS_NV 0x8504
+#define GL_MAX_SPOT_EXPONENT_NV 0x8505
+#endif /* GL_NV_light_max_exponent */
+
+#ifndef GL_NV_memory_attachment
+#define GL_NV_memory_attachment 1
+#define GL_ATTACHED_MEMORY_OBJECT_NV 0x95A4
+#define GL_ATTACHED_MEMORY_OFFSET_NV 0x95A5
+#define GL_MEMORY_ATTACHABLE_ALIGNMENT_NV 0x95A6
+#define GL_MEMORY_ATTACHABLE_SIZE_NV 0x95A7
+#define GL_MEMORY_ATTACHABLE_NV 0x95A8
+#define GL_DETACHED_MEMORY_INCARNATION_NV 0x95A9
+#define GL_DETACHED_TEXTURES_NV 0x95AA
+#define GL_DETACHED_BUFFERS_NV 0x95AB
+#define GL_MAX_DETACHED_TEXTURES_NV 0x95AC
+#define GL_MAX_DETACHED_BUFFERS_NV 0x95AD
+typedef void (APIENTRYP PFNGLGETMEMORYOBJECTDETACHEDRESOURCESUIVNVPROC) (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params);
+typedef void (APIENTRYP PFNGLRESETMEMORYOBJECTPARAMETERNVPROC) (GLuint memory, GLenum pname);
+typedef void (APIENTRYP PFNGLTEXATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLBUFFERATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLTEXTUREATTACHMEMORYNVPROC) (GLuint texture, GLuint memory, GLuint64 offset);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERATTACHMEMORYNVPROC) (GLuint buffer, GLuint memory, GLuint64 offset);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetMemoryObjectDetachedResourcesuivNV (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params);
+GLAPI void APIENTRY glResetMemoryObjectParameterNV (GLuint memory, GLenum pname);
+GLAPI void APIENTRY glTexAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glBufferAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glTextureAttachMemoryNV (GLuint texture, GLuint memory, GLuint64 offset);
+GLAPI void APIENTRY glNamedBufferAttachMemoryNV (GLuint buffer, GLuint memory, GLuint64 offset);
+#endif
+#endif /* GL_NV_memory_attachment */
+
+#ifndef GL_NV_memory_object_sparse
+#define GL_NV_memory_object_sparse 1
+typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTMEMNVPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTMEMNVPROC) (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTMEMNVPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC) (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferPageCommitmentMemNV (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+GLAPI void APIENTRY glTexPageCommitmentMemNV (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+GLAPI void APIENTRY glNamedBufferPageCommitmentMemNV (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit);
+GLAPI void APIENTRY glTexturePageCommitmentMemNV (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit);
+#endif
+#endif /* GL_NV_memory_object_sparse */
+
+#ifndef GL_NV_mesh_shader
+#define GL_NV_mesh_shader 1
+#define GL_MESH_SHADER_NV 0x9559
+#define GL_TASK_SHADER_NV 0x955A
+#define GL_MAX_MESH_UNIFORM_BLOCKS_NV 0x8E60
+#define GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV 0x8E61
+#define GL_MAX_MESH_IMAGE_UNIFORMS_NV 0x8E62
+#define GL_MAX_MESH_UNIFORM_COMPONENTS_NV 0x8E63
+#define GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV 0x8E64
+#define GL_MAX_MESH_ATOMIC_COUNTERS_NV 0x8E65
+#define GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV 0x8E66
+#define GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV 0x8E67
+#define GL_MAX_TASK_UNIFORM_BLOCKS_NV 0x8E68
+#define GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV 0x8E69
+#define GL_MAX_TASK_IMAGE_UNIFORMS_NV 0x8E6A
+#define GL_MAX_TASK_UNIFORM_COMPONENTS_NV 0x8E6B
+#define GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV 0x8E6C
+#define GL_MAX_TASK_ATOMIC_COUNTERS_NV 0x8E6D
+#define GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV 0x8E6E
+#define GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV 0x8E6F
+#define GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV 0x95A2
+#define GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV 0x95A3
+#define GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV 0x9536
+#define GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV 0x9537
+#define GL_MAX_MESH_OUTPUT_VERTICES_NV 0x9538
+#define GL_MAX_MESH_OUTPUT_PRIMITIVES_NV 0x9539
+#define GL_MAX_TASK_OUTPUT_COUNT_NV 0x953A
+#define GL_MAX_DRAW_MESH_TASKS_COUNT_NV 0x953D
+#define GL_MAX_MESH_VIEWS_NV 0x9557
+#define GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV 0x92DF
+#define GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV 0x9543
+#define GL_MAX_MESH_WORK_GROUP_SIZE_NV 0x953B
+#define GL_MAX_TASK_WORK_GROUP_SIZE_NV 0x953C
+#define GL_MESH_WORK_GROUP_SIZE_NV 0x953E
+#define GL_TASK_WORK_GROUP_SIZE_NV 0x953F
+#define GL_MESH_VERTICES_OUT_NV 0x9579
+#define GL_MESH_PRIMITIVES_OUT_NV 0x957A
+#define GL_MESH_OUTPUT_TYPE_NV 0x957B
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV 0x959C
+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV 0x959D
+#define GL_REFERENCED_BY_MESH_SHADER_NV 0x95A0
+#define GL_REFERENCED_BY_TASK_SHADER_NV 0x95A1
+#define GL_MESH_SHADER_BIT_NV 0x00000040
+#define GL_TASK_SHADER_BIT_NV 0x00000080
+#define GL_MESH_SUBROUTINE_NV 0x957C
+#define GL_TASK_SUBROUTINE_NV 0x957D
+#define GL_MESH_SUBROUTINE_UNIFORM_NV 0x957E
+#define GL_TASK_SUBROUTINE_UNIFORM_NV 0x957F
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV 0x959E
+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV 0x959F
+typedef void (APIENTRYP PFNGLDRAWMESHTASKSNVPROC) (GLuint first, GLuint count);
+typedef void (APIENTRYP PFNGLDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect);
+typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect, GLsizei drawcount, GLsizei stride);
+typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTCOUNTNVPROC) (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawMeshTasksNV (GLuint first, GLuint count);
+GLAPI void APIENTRY glDrawMeshTasksIndirectNV (GLintptr indirect);
+GLAPI void APIENTRY glMultiDrawMeshTasksIndirectNV (GLintptr indirect, GLsizei drawcount, GLsizei stride);
+GLAPI void APIENTRY glMultiDrawMeshTasksIndirectCountNV (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
+#endif
+#endif /* GL_NV_mesh_shader */
+
+#ifndef GL_NV_multisample_coverage
+#define GL_NV_multisample_coverage 1
+#endif /* GL_NV_multisample_coverage */
+
+#ifndef GL_NV_multisample_filter_hint
+#define GL_NV_multisample_filter_hint 1
+#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534
+#endif /* GL_NV_multisample_filter_hint */
+
+#ifndef GL_NV_occlusion_query
+#define GL_NV_occlusion_query 1
+#define GL_PIXEL_COUNTER_BITS_NV 0x8864
+#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865
+#define GL_PIXEL_COUNT_NV 0x8866
+#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867
+typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
+typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void);
+typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei n, GLuint *ids);
+GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei n, const GLuint *ids);
+GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint id);
+GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint id);
+GLAPI void APIENTRY glEndOcclusionQueryNV (void);
+GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint id, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_NV_occlusion_query */
+
+#ifndef GL_NV_packed_depth_stencil
+#define GL_NV_packed_depth_stencil 1
+#define GL_DEPTH_STENCIL_NV 0x84F9
+#define GL_UNSIGNED_INT_24_8_NV 0x84FA
+#endif /* GL_NV_packed_depth_stencil */
+
+#ifndef GL_NV_parameter_buffer_object
+#define GL_NV_parameter_buffer_object 1
+#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0
+#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1
+#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2
+#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3
+#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4
+typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params);
+typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params);
+typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glProgramBufferParametersfvNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params);
+GLAPI void APIENTRY glProgramBufferParametersIivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params);
+GLAPI void APIENTRY glProgramBufferParametersIuivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params);
+#endif
+#endif /* GL_NV_parameter_buffer_object */
+
+#ifndef GL_NV_parameter_buffer_object2
+#define GL_NV_parameter_buffer_object2 1
+#endif /* GL_NV_parameter_buffer_object2 */
+
+#ifndef GL_NV_path_rendering
+#define GL_NV_path_rendering 1
+#define GL_PATH_FORMAT_SVG_NV 0x9070
+#define GL_PATH_FORMAT_PS_NV 0x9071
+#define GL_STANDARD_FONT_NAME_NV 0x9072
+#define GL_SYSTEM_FONT_NAME_NV 0x9073
+#define GL_FILE_NAME_NV 0x9074
+#define GL_PATH_STROKE_WIDTH_NV 0x9075
+#define GL_PATH_END_CAPS_NV 0x9076
+#define GL_PATH_INITIAL_END_CAP_NV 0x9077
+#define GL_PATH_TERMINAL_END_CAP_NV 0x9078
+#define GL_PATH_JOIN_STYLE_NV 0x9079
+#define GL_PATH_MITER_LIMIT_NV 0x907A
+#define GL_PATH_DASH_CAPS_NV 0x907B
+#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C
+#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D
+#define GL_PATH_DASH_OFFSET_NV 0x907E
+#define GL_PATH_CLIENT_LENGTH_NV 0x907F
+#define GL_PATH_FILL_MODE_NV 0x9080
+#define GL_PATH_FILL_MASK_NV 0x9081
+#define GL_PATH_FILL_COVER_MODE_NV 0x9082
+#define GL_PATH_STROKE_COVER_MODE_NV 0x9083
+#define GL_PATH_STROKE_MASK_NV 0x9084
+#define GL_COUNT_UP_NV 0x9088
+#define GL_COUNT_DOWN_NV 0x9089
+#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A
+#define GL_CONVEX_HULL_NV 0x908B
+#define GL_BOUNDING_BOX_NV 0x908D
+#define GL_TRANSLATE_X_NV 0x908E
+#define GL_TRANSLATE_Y_NV 0x908F
+#define GL_TRANSLATE_2D_NV 0x9090
+#define GL_TRANSLATE_3D_NV 0x9091
+#define GL_AFFINE_2D_NV 0x9092
+#define GL_AFFINE_3D_NV 0x9094
+#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096
+#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098
+#define GL_UTF8_NV 0x909A
+#define GL_UTF16_NV 0x909B
+#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
+#define GL_PATH_COMMAND_COUNT_NV 0x909D
+#define GL_PATH_COORD_COUNT_NV 0x909E
+#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F
+#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0
+#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1
+#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2
+#define GL_SQUARE_NV 0x90A3
+#define GL_ROUND_NV 0x90A4
+#define GL_TRIANGULAR_NV 0x90A5
+#define GL_BEVEL_NV 0x90A6
+#define GL_MITER_REVERT_NV 0x90A7
+#define GL_MITER_TRUNCATE_NV 0x90A8
+#define GL_SKIP_MISSING_GLYPH_NV 0x90A9
+#define GL_USE_MISSING_GLYPH_NV 0x90AA
+#define GL_PATH_ERROR_POSITION_NV 0x90AB
+#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD
+#define GL_ADJACENT_PAIRS_NV 0x90AE
+#define GL_FIRST_TO_REST_NV 0x90AF
+#define GL_PATH_GEN_MODE_NV 0x90B0
+#define GL_PATH_GEN_COEFF_NV 0x90B1
+#define GL_PATH_GEN_COMPONENTS_NV 0x90B3
+#define GL_PATH_STENCIL_FUNC_NV 0x90B7
+#define GL_PATH_STENCIL_REF_NV 0x90B8
+#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9
+#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
+#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
+#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF
+#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4
+#define GL_MOVE_TO_RESETS_NV 0x90B5
+#define GL_MOVE_TO_CONTINUES_NV 0x90B6
+#define GL_CLOSE_PATH_NV 0x00
+#define GL_MOVE_TO_NV 0x02
+#define GL_RELATIVE_MOVE_TO_NV 0x03
+#define GL_LINE_TO_NV 0x04
+#define GL_RELATIVE_LINE_TO_NV 0x05
+#define GL_HORIZONTAL_LINE_TO_NV 0x06
+#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
+#define GL_VERTICAL_LINE_TO_NV 0x08
+#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09
+#define GL_QUADRATIC_CURVE_TO_NV 0x0A
+#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
+#define GL_CUBIC_CURVE_TO_NV 0x0C
+#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D
+#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E
+#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
+#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10
+#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
+#define GL_SMALL_CCW_ARC_TO_NV 0x12
+#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13
+#define GL_SMALL_CW_ARC_TO_NV 0x14
+#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15
+#define GL_LARGE_CCW_ARC_TO_NV 0x16
+#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17
+#define GL_LARGE_CW_ARC_TO_NV 0x18
+#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19
+#define GL_RESTART_PATH_NV 0xF0
+#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2
+#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4
+#define GL_RECT_NV 0xF6
+#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8
+#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA
+#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC
+#define GL_ARC_TO_NV 0xFE
+#define GL_RELATIVE_ARC_TO_NV 0xFF
+#define GL_BOLD_BIT_NV 0x01
+#define GL_ITALIC_BIT_NV 0x02
+#define GL_GLYPH_WIDTH_BIT_NV 0x01
+#define GL_GLYPH_HEIGHT_BIT_NV 0x02
+#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
+#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
+#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
+#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
+#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
+#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
+#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100
+#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000
+#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000
+#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000
+#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000
+#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000
+#define GL_FONT_ASCENDER_BIT_NV 0x00200000
+#define GL_FONT_DESCENDER_BIT_NV 0x00400000
+#define GL_FONT_HEIGHT_BIT_NV 0x00800000
+#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000
+#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
+#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
+#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
+#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000
+#define GL_ROUNDED_RECT_NV 0xE8
+#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9
+#define GL_ROUNDED_RECT2_NV 0xEA
+#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB
+#define GL_ROUNDED_RECT4_NV 0xEC
+#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED
+#define GL_ROUNDED_RECT8_NV 0xEE
+#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF
+#define GL_RELATIVE_RECT_NV 0xF7
+#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368
+#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369
+#define GL_FONT_UNAVAILABLE_NV 0x936A
+#define GL_FONT_UNINTELLIGIBLE_NV 0x936B
+#define GL_CONIC_CURVE_TO_NV 0x1A
+#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B
+#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000
+#define GL_STANDARD_FONT_FORMAT_NV 0x936C
+#define GL_2_BYTES_NV 0x1407
+#define GL_3_BYTES_NV 0x1408
+#define GL_4_BYTES_NV 0x1409
+#define GL_EYE_LINEAR_NV 0x2400
+#define GL_OBJECT_LINEAR_NV 0x2401
+#define GL_CONSTANT_NV 0x8576
+#define GL_PATH_FOG_GEN_MODE_NV 0x90AC
+#define GL_PRIMARY_COLOR_NV 0x852C
+#define GL_SECONDARY_COLOR_NV 0x852D
+#define GL_PATH_GEN_COLOR_FORMAT_NV 0x90B2
+#define GL_PATH_PROJECTION_NV 0x1701
+#define GL_PATH_MODELVIEW_NV 0x1700
+#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3
+#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6
+#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36
+#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3
+#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4
+#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7
+#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38
+#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4
+#define GL_FRAGMENT_INPUT_NV 0x936D
+typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range);
+typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range);
+typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path);
+typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString);
+typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath);
+typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value);
+typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value);
+typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask);
+typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units);
+typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask);
+typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func);
+typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value);
+typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands);
+typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords);
+typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray);
+typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y);
+typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments);
+typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount);
+typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef GLenum (APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params);
+typedef void (APIENTRYP PFNGLPATHCOLORGENNVPROC) (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs);
+typedef void (APIENTRYP PFNGLPATHTEXGENNVPROC) (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs);
+typedef void (APIENTRYP PFNGLPATHFOGGENNVPROC) (GLenum genMode);
+typedef void (APIENTRYP PFNGLGETPATHCOLORGENIVNVPROC) (GLenum color, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHCOLORGENFVNVPROC) (GLenum color, GLenum pname, GLfloat *value);
+typedef void (APIENTRYP PFNGLGETPATHTEXGENIVNVPROC) (GLenum texCoordSet, GLenum pname, GLint *value);
+typedef void (APIENTRYP PFNGLGETPATHTEXGENFVNVPROC) (GLenum texCoordSet, GLenum pname, GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range);
+GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range);
+GLAPI GLboolean APIENTRY glIsPathNV (GLuint path);
+GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString);
+GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath);
+GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value);
+GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value);
+GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value);
+GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value);
+GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask);
+GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units);
+GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask);
+GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask);
+GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func);
+GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode);
+GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode);
+GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value);
+GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands);
+GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords);
+GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray);
+GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y);
+GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments);
+GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+GLAPI void APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
+GLAPI void APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
+GLAPI void APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
+GLAPI void APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI void APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GLAPI GLenum APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount);
+GLAPI GLenum APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI GLenum APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GLAPI void APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
+GLAPI void APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params);
+GLAPI void APIENTRY glPathColorGenNV (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs);
+GLAPI void APIENTRY glPathTexGenNV (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs);
+GLAPI void APIENTRY glPathFogGenNV (GLenum genMode);
+GLAPI void APIENTRY glGetPathColorGenivNV (GLenum color, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathColorGenfvNV (GLenum color, GLenum pname, GLfloat *value);
+GLAPI void APIENTRY glGetPathTexGenivNV (GLenum texCoordSet, GLenum pname, GLint *value);
+GLAPI void APIENTRY glGetPathTexGenfvNV (GLenum texCoordSet, GLenum pname, GLfloat *value);
+#endif
+#endif /* GL_NV_path_rendering */
+
+#ifndef GL_NV_path_rendering_shared_edge
+#define GL_NV_path_rendering_shared_edge 1
+#define GL_SHARED_EDGE_NV 0xC0
+#endif /* GL_NV_path_rendering_shared_edge */
+
+#ifndef GL_NV_pixel_data_range
+#define GL_NV_pixel_data_range 1
+#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878
+#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879
+#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A
+#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B
+#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C
+#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D
+typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, const void *pointer);
+typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelDataRangeNV (GLenum target, GLsizei length, const void *pointer);
+GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum target);
+#endif
+#endif /* GL_NV_pixel_data_range */
+
+#ifndef GL_NV_point_sprite
+#define GL_NV_point_sprite 1
+#define GL_POINT_SPRITE_NV 0x8861
+#define GL_COORD_REPLACE_NV 0x8862
+#define GL_POINT_SPRITE_R_MODE_NV 0x8863
+typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameteriNV (GLenum pname, GLint param);
+GLAPI void APIENTRY glPointParameterivNV (GLenum pname, const GLint *params);
+#endif
+#endif /* GL_NV_point_sprite */
+
+#ifndef GL_NV_present_video
+#define GL_NV_present_video 1
+#define GL_FRAME_NV 0x8E26
+#define GL_FIELDS_NV 0x8E27
+#define GL_CURRENT_TIME_NV 0x8E28
+#define GL_NUM_FILL_STREAMS_NV 0x8E29
+#define GL_PRESENT_TIME_NV 0x8E2A
+#define GL_PRESENT_DURATION_NV 0x8E2B
+typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
+typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
+typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
+GLAPI void APIENTRY glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
+GLAPI void APIENTRY glGetVideoivNV (GLuint video_slot, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint *params);
+GLAPI void APIENTRY glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT *params);
+GLAPI void APIENTRY glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT *params);
+#endif
+#endif /* GL_NV_present_video */
+
+#ifndef GL_NV_primitive_restart
+#define GL_NV_primitive_restart 1
+#define GL_PRIMITIVE_RESTART_NV 0x8558
+#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void);
+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPrimitiveRestartNV (void);
+GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint index);
+#endif
+#endif /* GL_NV_primitive_restart */
+
+#ifndef GL_NV_primitive_shading_rate
+#define GL_NV_primitive_shading_rate 1
+#define GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV 0x95B1
+#define GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV 0x95B2
+#endif /* GL_NV_primitive_shading_rate */
+
+#ifndef GL_NV_query_resource
+#define GL_NV_query_resource 1
+#define GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV 0x9540
+#define GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV 0x9542
+#define GL_QUERY_RESOURCE_SYS_RESERVED_NV 0x9544
+#define GL_QUERY_RESOURCE_TEXTURE_NV 0x9545
+#define GL_QUERY_RESOURCE_RENDERBUFFER_NV 0x9546
+#define GL_QUERY_RESOURCE_BUFFEROBJECT_NV 0x9547
+typedef GLint (APIENTRYP PFNGLQUERYRESOURCENVPROC) (GLenum queryType, GLint tagId, GLuint count, GLint *buffer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLint APIENTRY glQueryResourceNV (GLenum queryType, GLint tagId, GLuint count, GLint *buffer);
+#endif
+#endif /* GL_NV_query_resource */
+
+#ifndef GL_NV_query_resource_tag
+#define GL_NV_query_resource_tag 1
+typedef void (APIENTRYP PFNGLGENQUERYRESOURCETAGNVPROC) (GLsizei n, GLint *tagIds);
+typedef void (APIENTRYP PFNGLDELETEQUERYRESOURCETAGNVPROC) (GLsizei n, const GLint *tagIds);
+typedef void (APIENTRYP PFNGLQUERYRESOURCETAGNVPROC) (GLint tagId, const GLchar *tagString);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGenQueryResourceTagNV (GLsizei n, GLint *tagIds);
+GLAPI void APIENTRY glDeleteQueryResourceTagNV (GLsizei n, const GLint *tagIds);
+GLAPI void APIENTRY glQueryResourceTagNV (GLint tagId, const GLchar *tagString);
+#endif
+#endif /* GL_NV_query_resource_tag */
+
+#ifndef GL_NV_register_combiners
+#define GL_NV_register_combiners 1
+#define GL_REGISTER_COMBINERS_NV 0x8522
+#define GL_VARIABLE_A_NV 0x8523
+#define GL_VARIABLE_B_NV 0x8524
+#define GL_VARIABLE_C_NV 0x8525
+#define GL_VARIABLE_D_NV 0x8526
+#define GL_VARIABLE_E_NV 0x8527
+#define GL_VARIABLE_F_NV 0x8528
+#define GL_VARIABLE_G_NV 0x8529
+#define GL_CONSTANT_COLOR0_NV 0x852A
+#define GL_CONSTANT_COLOR1_NV 0x852B
+#define GL_SPARE0_NV 0x852E
+#define GL_SPARE1_NV 0x852F
+#define GL_DISCARD_NV 0x8530
+#define GL_E_TIMES_F_NV 0x8531
+#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
+#define GL_UNSIGNED_IDENTITY_NV 0x8536
+#define GL_UNSIGNED_INVERT_NV 0x8537
+#define GL_EXPAND_NORMAL_NV 0x8538
+#define GL_EXPAND_NEGATE_NV 0x8539
+#define GL_HALF_BIAS_NORMAL_NV 0x853A
+#define GL_HALF_BIAS_NEGATE_NV 0x853B
+#define GL_SIGNED_IDENTITY_NV 0x853C
+#define GL_SIGNED_NEGATE_NV 0x853D
+#define GL_SCALE_BY_TWO_NV 0x853E
+#define GL_SCALE_BY_FOUR_NV 0x853F
+#define GL_SCALE_BY_ONE_HALF_NV 0x8540
+#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541
+#define GL_COMBINER_INPUT_NV 0x8542
+#define GL_COMBINER_MAPPING_NV 0x8543
+#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544
+#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545
+#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546
+#define GL_COMBINER_MUX_SUM_NV 0x8547
+#define GL_COMBINER_SCALE_NV 0x8548
+#define GL_COMBINER_BIAS_NV 0x8549
+#define GL_COMBINER_AB_OUTPUT_NV 0x854A
+#define GL_COMBINER_CD_OUTPUT_NV 0x854B
+#define GL_COMBINER_SUM_OUTPUT_NV 0x854C
+#define GL_MAX_GENERAL_COMBINERS_NV 0x854D
+#define GL_NUM_GENERAL_COMBINERS_NV 0x854E
+#define GL_COLOR_SUM_CLAMP_NV 0x854F
+#define GL_COMBINER0_NV 0x8550
+#define GL_COMBINER1_NV 0x8551
+#define GL_COMBINER2_NV 0x8552
+#define GL_COMBINER3_NV 0x8553
+#define GL_COMBINER4_NV 0x8554
+#define GL_COMBINER5_NV 0x8555
+#define GL_COMBINER6_NV 0x8556
+#define GL_COMBINER7_NV 0x8557
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
+typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCombinerParameterfvNV (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glCombinerParameterfNV (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glCombinerParameterivNV (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCombinerParameteriNV (GLenum pname, GLint param);
+GLAPI void APIENTRY glCombinerInputNV (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+GLAPI void APIENTRY glCombinerOutputNV (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
+GLAPI void APIENTRY glFinalCombinerInputNV (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum stage, GLenum portion, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum variable, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum variable, GLenum pname, GLint *params);
+#endif
+#endif /* GL_NV_register_combiners */
+
+#ifndef GL_NV_register_combiners2
+#define GL_NV_register_combiners2 1
+#define GL_PER_STAGE_CONSTANTS_NV 0x8535
+typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum stage, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum stage, GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_NV_register_combiners2 */
+
+#ifndef GL_NV_representative_fragment_test
+#define GL_NV_representative_fragment_test 1
+#define GL_REPRESENTATIVE_FRAGMENT_TEST_NV 0x937F
+#endif /* GL_NV_representative_fragment_test */
+
+#ifndef GL_NV_robustness_video_memory_purge
+#define GL_NV_robustness_video_memory_purge 1
+#define GL_PURGED_CONTEXT_RESET_NV 0x92BB
+#endif /* GL_NV_robustness_video_memory_purge */
+
+#ifndef GL_NV_sample_locations
+#define GL_NV_sample_locations 1
+#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340
+#define GL_SAMPLE_LOCATION_NV 0x8E50
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341
+#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342
+#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343
+typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glResolveDepthValuesNV (void);
+#endif
+#endif /* GL_NV_sample_locations */
+
+#ifndef GL_NV_sample_mask_override_coverage
+#define GL_NV_sample_mask_override_coverage 1
+#endif /* GL_NV_sample_mask_override_coverage */
+
+#ifndef GL_NV_scissor_exclusive
+#define GL_NV_scissor_exclusive 1
+#define GL_SCISSOR_TEST_EXCLUSIVE_NV 0x9555
+#define GL_SCISSOR_BOX_EXCLUSIVE_NV 0x9556
+typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVENVPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVEARRAYVNVPROC) (GLuint first, GLsizei count, const GLint *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glScissorExclusiveNV (GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glScissorExclusiveArrayvNV (GLuint first, GLsizei count, const GLint *v);
+#endif
+#endif /* GL_NV_scissor_exclusive */
+
+#ifndef GL_NV_shader_atomic_counters
+#define GL_NV_shader_atomic_counters 1
+#endif /* GL_NV_shader_atomic_counters */
+
+#ifndef GL_NV_shader_atomic_float
+#define GL_NV_shader_atomic_float 1
+#endif /* GL_NV_shader_atomic_float */
+
+#ifndef GL_NV_shader_atomic_float64
+#define GL_NV_shader_atomic_float64 1
+#endif /* GL_NV_shader_atomic_float64 */
+
+#ifndef GL_NV_shader_atomic_fp16_vector
+#define GL_NV_shader_atomic_fp16_vector 1
+#endif /* GL_NV_shader_atomic_fp16_vector */
+
+#ifndef GL_NV_shader_atomic_int64
+#define GL_NV_shader_atomic_int64 1
+#endif /* GL_NV_shader_atomic_int64 */
+
+#ifndef GL_NV_shader_buffer_load
+#define GL_NV_shader_buffer_load 1
+#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D
+#define GL_GPU_ADDRESS_NV 0x8F34
+#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35
+typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
+typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target);
+typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target);
+typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
+typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer);
+typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer);
+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result);
+typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value);
+typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value);
+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access);
+GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target);
+GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target);
+GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access);
+GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer);
+GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer);
+GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result);
+GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value);
+GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value);
+GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_NV_shader_buffer_load */
+
+#ifndef GL_NV_shader_buffer_store
+#define GL_NV_shader_buffer_store 1
+#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010
+#endif /* GL_NV_shader_buffer_store */
+
+#ifndef GL_NV_shader_storage_buffer_object
+#define GL_NV_shader_storage_buffer_object 1
+#endif /* GL_NV_shader_storage_buffer_object */
+
+#ifndef GL_NV_shader_subgroup_partitioned
+#define GL_NV_shader_subgroup_partitioned 1
+#define GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV 0x00000100
+#endif /* GL_NV_shader_subgroup_partitioned */
+
+#ifndef GL_NV_shader_texture_footprint
+#define GL_NV_shader_texture_footprint 1
+#endif /* GL_NV_shader_texture_footprint */
+
+#ifndef GL_NV_shader_thread_group
+#define GL_NV_shader_thread_group 1
+#define GL_WARP_SIZE_NV 0x9339
+#define GL_WARPS_PER_SM_NV 0x933A
+#define GL_SM_COUNT_NV 0x933B
+#endif /* GL_NV_shader_thread_group */
+
+#ifndef GL_NV_shader_thread_shuffle
+#define GL_NV_shader_thread_shuffle 1
+#endif /* GL_NV_shader_thread_shuffle */
+
+#ifndef GL_NV_shading_rate_image
+#define GL_NV_shading_rate_image 1
+#define GL_SHADING_RATE_IMAGE_NV 0x9563
+#define GL_SHADING_RATE_NO_INVOCATIONS_NV 0x9564
+#define GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV 0x9565
+#define GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV 0x9566
+#define GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV 0x9567
+#define GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV 0x9568
+#define GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV 0x9569
+#define GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV 0x956A
+#define GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV 0x956B
+#define GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV 0x956C
+#define GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV 0x956D
+#define GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV 0x956E
+#define GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV 0x956F
+#define GL_SHADING_RATE_IMAGE_BINDING_NV 0x955B
+#define GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV 0x955C
+#define GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV 0x955D
+#define GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV 0x955E
+#define GL_MAX_COARSE_FRAGMENT_SAMPLES_NV 0x955F
+#define GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV 0x95AE
+#define GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV 0x95AF
+#define GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV 0x95B0
+typedef void (APIENTRYP PFNGLBINDSHADINGRATEIMAGENVPROC) (GLuint texture);
+typedef void (APIENTRYP PFNGLGETSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint entry, GLenum *rate);
+typedef void (APIENTRYP PFNGLGETSHADINGRATESAMPLELOCATIONIVNVPROC) (GLenum rate, GLuint samples, GLuint index, GLint *location);
+typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEBARRIERNVPROC) (GLboolean synchronize);
+typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates);
+typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERNVPROC) (GLenum order);
+typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC) (GLenum rate, GLuint samples, const GLint *locations);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindShadingRateImageNV (GLuint texture);
+GLAPI void APIENTRY glGetShadingRateImagePaletteNV (GLuint viewport, GLuint entry, GLenum *rate);
+GLAPI void APIENTRY glGetShadingRateSampleLocationivNV (GLenum rate, GLuint samples, GLuint index, GLint *location);
+GLAPI void APIENTRY glShadingRateImageBarrierNV (GLboolean synchronize);
+GLAPI void APIENTRY glShadingRateImagePaletteNV (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates);
+GLAPI void APIENTRY glShadingRateSampleOrderNV (GLenum order);
+GLAPI void APIENTRY glShadingRateSampleOrderCustomNV (GLenum rate, GLuint samples, const GLint *locations);
+#endif
+#endif /* GL_NV_shading_rate_image */
+
+#ifndef GL_NV_stereo_view_rendering
+#define GL_NV_stereo_view_rendering 1
+#endif /* GL_NV_stereo_view_rendering */
+
+#ifndef GL_NV_tessellation_program5
+#define GL_NV_tessellation_program5 1
+#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8
+#define GL_TESS_CONTROL_PROGRAM_NV 0x891E
+#define GL_TESS_EVALUATION_PROGRAM_NV 0x891F
+#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74
+#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75
+#endif /* GL_NV_tessellation_program5 */
+
+#ifndef GL_NV_texgen_emboss
+#define GL_NV_texgen_emboss 1
+#define GL_EMBOSS_LIGHT_NV 0x855D
+#define GL_EMBOSS_CONSTANT_NV 0x855E
+#define GL_EMBOSS_MAP_NV 0x855F
+#endif /* GL_NV_texgen_emboss */
+
+#ifndef GL_NV_texgen_reflection
+#define GL_NV_texgen_reflection 1
+#define GL_NORMAL_MAP_NV 0x8511
+#define GL_REFLECTION_MAP_NV 0x8512
+#endif /* GL_NV_texgen_reflection */
+
+#ifndef GL_NV_texture_barrier
+#define GL_NV_texture_barrier 1
+typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureBarrierNV (void);
+#endif
+#endif /* GL_NV_texture_barrier */
+
+#ifndef GL_NV_texture_compression_vtc
+#define GL_NV_texture_compression_vtc 1
+#endif /* GL_NV_texture_compression_vtc */
+
+#ifndef GL_NV_texture_env_combine4
+#define GL_NV_texture_env_combine4 1
+#define GL_COMBINE4_NV 0x8503
+#define GL_SOURCE3_RGB_NV 0x8583
+#define GL_SOURCE3_ALPHA_NV 0x858B
+#define GL_OPERAND3_RGB_NV 0x8593
+#define GL_OPERAND3_ALPHA_NV 0x859B
+#endif /* GL_NV_texture_env_combine4 */
+
+#ifndef GL_NV_texture_expand_normal
+#define GL_NV_texture_expand_normal 1
+#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F
+#endif /* GL_NV_texture_expand_normal */
+
+#ifndef GL_NV_texture_multisample
+#define GL_NV_texture_multisample 1
+#define GL_TEXTURE_COVERAGE_SAMPLES_NV 0x9045
+#define GL_TEXTURE_COLOR_SAMPLES_NV 0x9046
+typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexImage2DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTexImage3DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage2DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage3DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage2DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
+GLAPI void APIENTRY glTextureImage3DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
+#endif
+#endif /* GL_NV_texture_multisample */
+
+#ifndef GL_NV_texture_rectangle
+#define GL_NV_texture_rectangle 1
+#define GL_TEXTURE_RECTANGLE_NV 0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8
+#endif /* GL_NV_texture_rectangle */
+
+#ifndef GL_NV_texture_rectangle_compressed
+#define GL_NV_texture_rectangle_compressed 1
+#endif /* GL_NV_texture_rectangle_compressed */
+
+#ifndef GL_NV_texture_shader
+#define GL_NV_texture_shader 1
+#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C
+#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
+#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
+#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
+#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA
+#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB
+#define GL_DSDT_MAG_INTENSITY_NV 0x86DC
+#define GL_SHADER_CONSISTENT_NV 0x86DD
+#define GL_TEXTURE_SHADER_NV 0x86DE
+#define GL_SHADER_OPERATION_NV 0x86DF
+#define GL_CULL_MODES_NV 0x86E0
+#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1
+#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2
+#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3
+#define GL_OFFSET_TEXTURE_2D_MATRIX_NV 0x86E1
+#define GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2
+#define GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3
+#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4
+#define GL_CONST_EYE_NV 0x86E5
+#define GL_PASS_THROUGH_NV 0x86E6
+#define GL_CULL_FRAGMENT_NV 0x86E7
+#define GL_OFFSET_TEXTURE_2D_NV 0x86E8
+#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9
+#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA
+#define GL_DOT_PRODUCT_NV 0x86EC
+#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED
+#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE
+#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
+#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
+#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
+#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
+#define GL_HILO_NV 0x86F4
+#define GL_DSDT_NV 0x86F5
+#define GL_DSDT_MAG_NV 0x86F6
+#define GL_DSDT_MAG_VIB_NV 0x86F7
+#define GL_HILO16_NV 0x86F8
+#define GL_SIGNED_HILO_NV 0x86F9
+#define GL_SIGNED_HILO16_NV 0x86FA
+#define GL_SIGNED_RGBA_NV 0x86FB
+#define GL_SIGNED_RGBA8_NV 0x86FC
+#define GL_SIGNED_RGB_NV 0x86FE
+#define GL_SIGNED_RGB8_NV 0x86FF
+#define GL_SIGNED_LUMINANCE_NV 0x8701
+#define GL_SIGNED_LUMINANCE8_NV 0x8702
+#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703
+#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704
+#define GL_SIGNED_ALPHA_NV 0x8705
+#define GL_SIGNED_ALPHA8_NV 0x8706
+#define GL_SIGNED_INTENSITY_NV 0x8707
+#define GL_SIGNED_INTENSITY8_NV 0x8708
+#define GL_DSDT8_NV 0x8709
+#define GL_DSDT8_MAG8_NV 0x870A
+#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B
+#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C
+#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
+#define GL_HI_SCALE_NV 0x870E
+#define GL_LO_SCALE_NV 0x870F
+#define GL_DS_SCALE_NV 0x8710
+#define GL_DT_SCALE_NV 0x8711
+#define GL_MAGNITUDE_SCALE_NV 0x8712
+#define GL_VIBRANCE_SCALE_NV 0x8713
+#define GL_HI_BIAS_NV 0x8714
+#define GL_LO_BIAS_NV 0x8715
+#define GL_DS_BIAS_NV 0x8716
+#define GL_DT_BIAS_NV 0x8717
+#define GL_MAGNITUDE_BIAS_NV 0x8718
+#define GL_VIBRANCE_BIAS_NV 0x8719
+#define GL_TEXTURE_BORDER_VALUES_NV 0x871A
+#define GL_TEXTURE_HI_SIZE_NV 0x871B
+#define GL_TEXTURE_LO_SIZE_NV 0x871C
+#define GL_TEXTURE_DS_SIZE_NV 0x871D
+#define GL_TEXTURE_DT_SIZE_NV 0x871E
+#define GL_TEXTURE_MAG_SIZE_NV 0x871F
+#endif /* GL_NV_texture_shader */
+
+#ifndef GL_NV_texture_shader2
+#define GL_NV_texture_shader2 1
+#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF
+#endif /* GL_NV_texture_shader2 */
+
+#ifndef GL_NV_texture_shader3
+#define GL_NV_texture_shader3 1
+#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
+#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
+#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
+#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
+#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854
+#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
+#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
+#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
+#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858
+#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859
+#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
+#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B
+#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C
+#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
+#define GL_HILO8_NV 0x885E
+#define GL_SIGNED_HILO8_NV 0x885F
+#define GL_FORCE_BLUE_TO_ONE_NV 0x8860
+#endif /* GL_NV_texture_shader3 */
+
+#ifndef GL_NV_timeline_semaphore
+#define GL_NV_timeline_semaphore 1
+#define GL_TIMELINE_SEMAPHORE_VALUE_NV 0x9595
+#define GL_SEMAPHORE_TYPE_NV 0x95B3
+#define GL_SEMAPHORE_TYPE_BINARY_NV 0x95B4
+#define GL_SEMAPHORE_TYPE_TIMELINE_NV 0x95B5
+#define GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV 0x95B6
+typedef void (APIENTRYP PFNGLCREATESEMAPHORESNVPROC) (GLsizei n, GLuint *semaphores);
+typedef void (APIENTRYP PFNGLSEMAPHOREPARAMETERIVNVPROC) (GLuint semaphore, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETSEMAPHOREPARAMETERIVNVPROC) (GLuint semaphore, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glCreateSemaphoresNV (GLsizei n, GLuint *semaphores);
+GLAPI void APIENTRY glSemaphoreParameterivNV (GLuint semaphore, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetSemaphoreParameterivNV (GLuint semaphore, GLenum pname, GLint *params);
+#endif
+#endif /* GL_NV_timeline_semaphore */
+
+#ifndef GL_NV_transform_feedback
+#define GL_NV_transform_feedback 1
+#define GL_BACK_PRIMARY_COLOR_NV 0x8C77
+#define GL_BACK_SECONDARY_COLOR_NV 0x8C78
+#define GL_TEXTURE_COORD_NV 0x8C79
+#define GL_CLIP_DISTANCE_NV 0x8C7A
+#define GL_VERTEX_ID_NV 0x8C7B
+#define GL_PRIMITIVE_ID_NV 0x8C7C
+#define GL_GENERIC_ATTRIB_NV 0x8C7D
+#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80
+#define GL_ACTIVE_VARYINGS_NV 0x8C81
+#define GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82
+#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85
+#define GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86
+#define GL_PRIMITIVES_GENERATED_NV 0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88
+#define GL_RASTERIZER_DISCARD_NV 0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B
+#define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C
+#define GL_SEPARATE_ATTRIBS_NV 0x8C8D
+#define GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F
+#define GL_LAYER_NV 0x8DAA
+#define GL_NEXT_BUFFER_NV -2
+#define GL_SKIP_COMPONENTS4_NV -3
+#define GL_SKIP_COMPONENTS3_NV -4
+#define GL_SKIP_COMPONENTS2_NV -5
+#define GL_SKIP_COMPONENTS1_NV -6
+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode);
+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
+typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name);
+typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name);
+typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location);
+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginTransformFeedbackNV (GLenum primitiveMode);
+GLAPI void APIENTRY glEndTransformFeedbackNV (void);
+GLAPI void APIENTRY glTransformFeedbackAttribsNV (GLsizei count, const GLint *attribs, GLenum bufferMode);
+GLAPI void APIENTRY glBindBufferRangeNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+GLAPI void APIENTRY glBindBufferOffsetNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+GLAPI void APIENTRY glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer);
+GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
+GLAPI void APIENTRY glActiveVaryingNV (GLuint program, const GLchar *name);
+GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint program, const GLchar *name);
+GLAPI void APIENTRY glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
+GLAPI void APIENTRY glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location);
+GLAPI void APIENTRY glTransformFeedbackStreamAttribsNV (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
+#endif
+#endif /* GL_NV_transform_feedback */
+
+#ifndef GL_NV_transform_feedback2
+#define GL_NV_transform_feedback2 1
+#define GL_TRANSFORM_FEEDBACK_NV 0x8E22
+#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23
+#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24
+#define GL_TRANSFORM_FEEDBACK_BINDING_NV 0x8E25
+typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint *ids);
+typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint *ids);
+typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void);
+typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void);
+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBindTransformFeedbackNV (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteTransformFeedbacksNV (GLsizei n, const GLuint *ids);
+GLAPI void APIENTRY glGenTransformFeedbacksNV (GLsizei n, GLuint *ids);
+GLAPI GLboolean APIENTRY glIsTransformFeedbackNV (GLuint id);
+GLAPI void APIENTRY glPauseTransformFeedbackNV (void);
+GLAPI void APIENTRY glResumeTransformFeedbackNV (void);
+GLAPI void APIENTRY glDrawTransformFeedbackNV (GLenum mode, GLuint id);
+#endif
+#endif /* GL_NV_transform_feedback2 */
+
+#ifndef GL_NV_uniform_buffer_unified_memory
+#define GL_NV_uniform_buffer_unified_memory 1
+#define GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E
+#define GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F
+#define GL_UNIFORM_BUFFER_LENGTH_NV 0x9370
+#endif /* GL_NV_uniform_buffer_unified_memory */
+
+#ifndef GL_NV_vdpau_interop
+#define GL_NV_vdpau_interop 1
+typedef GLintptr GLvdpauSurfaceNV;
+#define GL_SURFACE_STATE_NV 0x86EB
+#define GL_SURFACE_REGISTERED_NV 0x86FD
+#define GL_SURFACE_MAPPED_NV 0x8700
+#define GL_WRITE_DISCARD_NV 0x88BE
+typedef void (APIENTRYP PFNGLVDPAUINITNVPROC) (const void *vdpDevice, const void *getProcAddress);
+typedef void (APIENTRYP PFNGLVDPAUFININVPROC) (void);
+typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+typedef GLboolean (APIENTRYP PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface);
+typedef void (APIENTRYP PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface);
+typedef void (APIENTRYP PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
+typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
+typedef void (APIENTRYP PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
+typedef void (APIENTRYP PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVDPAUInitNV (const void *vdpDevice, const void *getProcAddress);
+GLAPI void APIENTRY glVDPAUFiniNV (void);
+GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterOutputSurfaceNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
+GLAPI GLboolean APIENTRY glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface);
+GLAPI void APIENTRY glVDPAUUnregisterSurfaceNV (GLvdpauSurfaceNV surface);
+GLAPI void APIENTRY glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
+GLAPI void APIENTRY glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access);
+GLAPI void APIENTRY glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
+GLAPI void APIENTRY glVDPAUUnmapSurfacesNV (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
+#endif
+#endif /* GL_NV_vdpau_interop */
+
+#ifndef GL_NV_vdpau_interop2
+#define GL_NV_vdpau_interop2 1
+typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACEWITHPICTURESTRUCTURENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames, GLboolean isFrameStructure);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceWithPictureStructureNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames, GLboolean isFrameStructure);
+#endif
+#endif /* GL_NV_vdpau_interop2 */
+
+#ifndef GL_NV_vertex_array_range
+#define GL_NV_vertex_array_range 1
+#define GL_VERTEX_ARRAY_RANGE_NV 0x851D
+#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E
+#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F
+#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
+#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521
+typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void);
+typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const void *pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFlushVertexArrayRangeNV (void);
+GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei length, const void *pointer);
+#endif
+#endif /* GL_NV_vertex_array_range */
+
+#ifndef GL_NV_vertex_array_range2
+#define GL_NV_vertex_array_range2 1
+#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
+#endif /* GL_NV_vertex_array_range2 */
+
+#ifndef GL_NV_vertex_attrib_integer_64bit
+#define GL_NV_vertex_attrib_integer_64bit 1
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x);
+GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y);
+GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x);
+GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y);
+GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v);
+GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params);
+GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params);
+GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
+#endif
+#endif /* GL_NV_vertex_attrib_integer_64bit */
+
+#ifndef GL_NV_vertex_buffer_unified_memory
+#define GL_NV_vertex_buffer_unified_memory 1
+#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E
+#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F
+#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20
+#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21
+#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22
+#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23
+#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24
+#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25
+#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26
+#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27
+#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28
+#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29
+#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A
+#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B
+#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C
+#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D
+#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E
+#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F
+#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30
+#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31
+#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32
+#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33
+#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40
+#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41
+#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42
+typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
+typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride);
+typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
+typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
+GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride);
+GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
+GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
+GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result);
+#endif
+#endif /* GL_NV_vertex_buffer_unified_memory */
+
+#ifndef GL_NV_vertex_program
+#define GL_NV_vertex_program 1
+#define GL_VERTEX_PROGRAM_NV 0x8620
+#define GL_VERTEX_STATE_PROGRAM_NV 0x8621
+#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623
+#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624
+#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625
+#define GL_CURRENT_ATTRIB_NV 0x8626
+#define GL_PROGRAM_LENGTH_NV 0x8627
+#define GL_PROGRAM_STRING_NV 0x8628
+#define GL_MODELVIEW_PROJECTION_NV 0x8629
+#define GL_IDENTITY_NV 0x862A
+#define GL_INVERSE_NV 0x862B
+#define GL_TRANSPOSE_NV 0x862C
+#define GL_INVERSE_TRANSPOSE_NV 0x862D
+#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E
+#define GL_MAX_TRACK_MATRICES_NV 0x862F
+#define GL_MATRIX0_NV 0x8630
+#define GL_MATRIX1_NV 0x8631
+#define GL_MATRIX2_NV 0x8632
+#define GL_MATRIX3_NV 0x8633
+#define GL_MATRIX4_NV 0x8634
+#define GL_MATRIX5_NV 0x8635
+#define GL_MATRIX6_NV 0x8636
+#define GL_MATRIX7_NV 0x8637
+#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640
+#define GL_CURRENT_MATRIX_NV 0x8641
+#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642
+#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643
+#define GL_PROGRAM_PARAMETER_NV 0x8644
+#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645
+#define GL_PROGRAM_TARGET_NV 0x8646
+#define GL_PROGRAM_RESIDENT_NV 0x8647
+#define GL_TRACK_MATRIX_NV 0x8648
+#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649
+#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A
+#define GL_PROGRAM_ERROR_POSITION_NV 0x864B
+#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650
+#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651
+#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652
+#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653
+#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654
+#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655
+#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656
+#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657
+#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658
+#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659
+#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A
+#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B
+#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C
+#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D
+#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E
+#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F
+#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660
+#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661
+#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662
+#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663
+#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664
+#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665
+#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666
+#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667
+#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668
+#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669
+#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A
+#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B
+#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C
+#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D
+#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E
+#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F
+#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670
+#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671
+#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672
+#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673
+#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674
+#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675
+#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676
+#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677
+#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678
+#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679
+#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A
+#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B
+#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C
+#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D
+#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E
+#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F
+typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences);
+typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id);
+typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
+typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs);
+typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program);
+typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, void **pointer);
+typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id);
+typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
+typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei n, const GLuint *programs, GLboolean *residences);
+GLAPI void APIENTRY glBindProgramNV (GLenum target, GLuint id);
+GLAPI void APIENTRY glDeleteProgramsNV (GLsizei n, const GLuint *programs);
+GLAPI void APIENTRY glExecuteProgramNV (GLenum target, GLuint id, const GLfloat *params);
+GLAPI void APIENTRY glGenProgramsNV (GLsizei n, GLuint *programs);
+GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum target, GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetProgramivNV (GLuint id, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetProgramStringNV (GLuint id, GLenum pname, GLubyte *program);
+GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum target, GLuint address, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint index, GLenum pname, GLdouble *params);
+GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint index, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVertexAttribivNV (GLuint index, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint index, GLenum pname, void **pointer);
+GLAPI GLboolean APIENTRY glIsProgramNV (GLuint id);
+GLAPI void APIENTRY glLoadProgramNV (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
+GLAPI void APIENTRY glProgramParameter4dNV (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glProgramParameter4dvNV (GLenum target, GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glProgramParameter4fNV (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glProgramParameter4fvNV (GLenum target, GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glProgramParameters4dvNV (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glProgramParameters4fvNV (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei n, const GLuint *programs);
+GLAPI void APIENTRY glTrackMatrixNV (GLenum target, GLuint address, GLenum matrix, GLenum transform);
+GLAPI void APIENTRY glVertexAttribPointerNV (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer);
+GLAPI void APIENTRY glVertexAttrib1dNV (GLuint index, GLdouble x);
+GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib1fNV (GLuint index, GLfloat x);
+GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib1sNV (GLuint index, GLshort x);
+GLAPI void APIENTRY glVertexAttrib1svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib2dNV (GLuint index, GLdouble x, GLdouble y);
+GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib2fNV (GLuint index, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib2sNV (GLuint index, GLshort x, GLshort y);
+GLAPI void APIENTRY glVertexAttrib2svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib3dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib3fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib3sNV (GLuint index, GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glVertexAttrib3svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint index, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttrib4fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint index, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttrib4sNV (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glVertexAttrib4svNV (GLuint index, const GLshort *v);
+GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint index, const GLubyte *v);
+GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs1svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs2svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs3svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint index, GLsizei count, const GLdouble *v);
+GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint index, GLsizei count, const GLfloat *v);
+GLAPI void APIENTRY glVertexAttribs4svNV (GLuint index, GLsizei count, const GLshort *v);
+GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint index, GLsizei count, const GLubyte *v);
+#endif
+#endif /* GL_NV_vertex_program */
+
+#ifndef GL_NV_vertex_program1_1
+#define GL_NV_vertex_program1_1 1
+#endif /* GL_NV_vertex_program1_1 */
+
+#ifndef GL_NV_vertex_program2
+#define GL_NV_vertex_program2 1
+#endif /* GL_NV_vertex_program2 */
+
+#ifndef GL_NV_vertex_program2_option
+#define GL_NV_vertex_program2_option 1
+#endif /* GL_NV_vertex_program2_option */
+
+#ifndef GL_NV_vertex_program3
+#define GL_NV_vertex_program3 1
+#endif /* GL_NV_vertex_program3 */
+
+#ifndef GL_NV_vertex_program4
+#define GL_NV_vertex_program4 1
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD
+#endif /* GL_NV_vertex_program4 */
+
+#ifndef GL_NV_video_capture
+#define GL_NV_video_capture 1
+#define GL_VIDEO_BUFFER_NV 0x9020
+#define GL_VIDEO_BUFFER_BINDING_NV 0x9021
+#define GL_FIELD_UPPER_NV 0x9022
+#define GL_FIELD_LOWER_NV 0x9023
+#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV 0x9024
+#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025
+#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026
+#define GL_LAST_VIDEO_CAPTURE_STATUS_NV 0x9027
+#define GL_VIDEO_BUFFER_PITCH_NV 0x9028
+#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029
+#define GL_VIDEO_COLOR_CONVERSION_MAX_NV 0x902A
+#define GL_VIDEO_COLOR_CONVERSION_MIN_NV 0x902B
+#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C
+#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D
+#define GL_PARTIAL_SUCCESS_NV 0x902E
+#define GL_SUCCESS_NV 0x902F
+#define GL_FAILURE_NV 0x9030
+#define GL_YCBYCR8_422_NV 0x9031
+#define GL_YCBAYCR8A_4224_NV 0x9032
+#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV 0x9033
+#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034
+#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV 0x9035
+#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036
+#define GL_Z4Y12Z4CB12Z4CR12_444_NV 0x9037
+#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV 0x9038
+#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV 0x9039
+#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A
+#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B
+#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C
+typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
+typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
+typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
+typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
+typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
+typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glBeginVideoCaptureNV (GLuint video_capture_slot);
+GLAPI void APIENTRY glBindVideoCaptureStreamBufferNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
+GLAPI void APIENTRY glBindVideoCaptureStreamTextureNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
+GLAPI void APIENTRY glEndVideoCaptureNV (GLuint video_capture_slot);
+GLAPI void APIENTRY glGetVideoCaptureivNV (GLuint video_capture_slot, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVideoCaptureStreamivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetVideoCaptureStreamfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetVideoCaptureStreamdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
+GLAPI GLenum APIENTRY glVideoCaptureNV (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
+GLAPI void APIENTRY glVideoCaptureStreamParameterivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glVideoCaptureStreamParameterfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glVideoCaptureStreamParameterdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
+#endif
+#endif /* GL_NV_video_capture */
+
+#ifndef GL_NV_viewport_array2
+#define GL_NV_viewport_array2 1
+#endif /* GL_NV_viewport_array2 */
+
+#ifndef GL_NV_viewport_swizzle
+#define GL_NV_viewport_swizzle 1
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357
+#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358
+#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359
+#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A
+#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B
+typedef void (APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glViewportSwizzleNV (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
+#endif
+#endif /* GL_NV_viewport_swizzle */
+
+#ifndef GL_OML_interlace
+#define GL_OML_interlace 1
+#define GL_INTERLACE_OML 0x8980
+#define GL_INTERLACE_READ_OML 0x8981
+#endif /* GL_OML_interlace */
+
+#ifndef GL_OML_resample
+#define GL_OML_resample 1
+#define GL_PACK_RESAMPLE_OML 0x8984
+#define GL_UNPACK_RESAMPLE_OML 0x8985
+#define GL_RESAMPLE_REPLICATE_OML 0x8986
+#define GL_RESAMPLE_ZERO_FILL_OML 0x8987
+#define GL_RESAMPLE_AVERAGE_OML 0x8988
+#define GL_RESAMPLE_DECIMATE_OML 0x8989
+#endif /* GL_OML_resample */
+
+#ifndef GL_OML_subsample
+#define GL_OML_subsample 1
+#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982
+#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983
+#endif /* GL_OML_subsample */
+
+#ifndef GL_OVR_multiview
+#define GL_OVR_multiview 1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632
+#define GL_MAX_VIEWS_OVR 0x9631
+#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633
+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
+#endif
+#endif /* GL_OVR_multiview */
+
+#ifndef GL_OVR_multiview2
+#define GL_OVR_multiview2 1
+#endif /* GL_OVR_multiview2 */
+
+#ifndef GL_PGI_misc_hints
+#define GL_PGI_misc_hints 1
+#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 0x1A1F8
+#define GL_CONSERVE_MEMORY_HINT_PGI 0x1A1FD
+#define GL_RECLAIM_MEMORY_HINT_PGI 0x1A1FE
+#define GL_NATIVE_GRAPHICS_HANDLE_PGI 0x1A202
+#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
+#define GL_NATIVE_GRAPHICS_END_HINT_PGI 0x1A204
+#define GL_ALWAYS_FAST_HINT_PGI 0x1A20C
+#define GL_ALWAYS_SOFT_HINT_PGI 0x1A20D
+#define GL_ALLOW_DRAW_OBJ_HINT_PGI 0x1A20E
+#define GL_ALLOW_DRAW_WIN_HINT_PGI 0x1A20F
+#define GL_ALLOW_DRAW_FRG_HINT_PGI 0x1A210
+#define GL_ALLOW_DRAW_MEM_HINT_PGI 0x1A211
+#define GL_STRICT_DEPTHFUNC_HINT_PGI 0x1A216
+#define GL_STRICT_LIGHTING_HINT_PGI 0x1A217
+#define GL_STRICT_SCISSOR_HINT_PGI 0x1A218
+#define GL_FULL_STIPPLE_HINT_PGI 0x1A219
+#define GL_CLIP_NEAR_HINT_PGI 0x1A220
+#define GL_CLIP_FAR_HINT_PGI 0x1A221
+#define GL_WIDE_LINE_HINT_PGI 0x1A222
+#define GL_BACK_NORMALS_HINT_PGI 0x1A223
+typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glHintPGI (GLenum target, GLint mode);
+#endif
+#endif /* GL_PGI_misc_hints */
+
+#ifndef GL_PGI_vertex_hints
+#define GL_PGI_vertex_hints 1
+#define GL_VERTEX_DATA_HINT_PGI 0x1A22A
+#define GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B
+#define GL_MATERIAL_SIDE_HINT_PGI 0x1A22C
+#define GL_MAX_VERTEX_HINT_PGI 0x1A22D
+#define GL_COLOR3_BIT_PGI 0x00010000
+#define GL_COLOR4_BIT_PGI 0x00020000
+#define GL_EDGEFLAG_BIT_PGI 0x00040000
+#define GL_INDEX_BIT_PGI 0x00080000
+#define GL_MAT_AMBIENT_BIT_PGI 0x00100000
+#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
+#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000
+#define GL_MAT_EMISSION_BIT_PGI 0x00800000
+#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000
+#define GL_MAT_SHININESS_BIT_PGI 0x02000000
+#define GL_MAT_SPECULAR_BIT_PGI 0x04000000
+#define GL_NORMAL_BIT_PGI 0x08000000
+#define GL_TEXCOORD1_BIT_PGI 0x10000000
+#define GL_TEXCOORD2_BIT_PGI 0x20000000
+#define GL_TEXCOORD3_BIT_PGI 0x40000000
+#define GL_TEXCOORD4_BIT_PGI 0x80000000
+#define GL_VERTEX23_BIT_PGI 0x00000004
+#define GL_VERTEX4_BIT_PGI 0x00000008
+#endif /* GL_PGI_vertex_hints */
+
+#ifndef GL_REND_screen_coordinates
+#define GL_REND_screen_coordinates 1
+#define GL_SCREEN_COORDINATES_REND 0x8490
+#define GL_INVERTED_SCREEN_W_REND 0x8491
+#endif /* GL_REND_screen_coordinates */
+
+#ifndef GL_S3_s3tc
+#define GL_S3_s3tc 1
+#define GL_RGB_S3TC 0x83A0
+#define GL_RGB4_S3TC 0x83A1
+#define GL_RGBA_S3TC 0x83A2
+#define GL_RGBA4_S3TC 0x83A3
+#define GL_RGBA_DXT5_S3TC 0x83A4
+#define GL_RGBA4_DXT5_S3TC 0x83A5
+#endif /* GL_S3_s3tc */
+
+#ifndef GL_SGIS_detail_texture
+#define GL_SGIS_detail_texture 1
+#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095
+#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
+#define GL_LINEAR_DETAIL_SGIS 0x8097
+#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098
+#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099
+#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A
+#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B
+#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
+typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
+typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum target, GLfloat *points);
+#endif
+#endif /* GL_SGIS_detail_texture */
+
+#ifndef GL_SGIS_fog_function
+#define GL_SGIS_fog_function 1
+#define GL_FOG_FUNC_SGIS 0x812A
+#define GL_FOG_FUNC_POINTS_SGIS 0x812B
+#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C
+typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points);
+typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFogFuncSGIS (GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *points);
+#endif
+#endif /* GL_SGIS_fog_function */
+
+#ifndef GL_SGIS_generate_mipmap
+#define GL_SGIS_generate_mipmap 1
+#define GL_GENERATE_MIPMAP_SGIS 0x8191
+#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192
+#endif /* GL_SGIS_generate_mipmap */
+
+#ifndef GL_SGIS_multisample
+#define GL_SGIS_multisample 1
+#define GL_MULTISAMPLE_SGIS 0x809D
+#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F
+#define GL_SAMPLE_MASK_SGIS 0x80A0
+#define GL_1PASS_SGIS 0x80A1
+#define GL_2PASS_0_SGIS 0x80A2
+#define GL_2PASS_1_SGIS 0x80A3
+#define GL_4PASS_0_SGIS 0x80A4
+#define GL_4PASS_1_SGIS 0x80A5
+#define GL_4PASS_2_SGIS 0x80A6
+#define GL_4PASS_3_SGIS 0x80A7
+#define GL_SAMPLE_BUFFERS_SGIS 0x80A8
+#define GL_SAMPLES_SGIS 0x80A9
+#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA
+#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB
+#define GL_SAMPLE_PATTERN_SGIS 0x80AC
+typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSampleMaskSGIS (GLclampf value, GLboolean invert);
+GLAPI void APIENTRY glSamplePatternSGIS (GLenum pattern);
+#endif
+#endif /* GL_SGIS_multisample */
+
+#ifndef GL_SGIS_pixel_texture
+#define GL_SGIS_pixel_texture 1
+#define GL_PIXEL_TEXTURE_SGIS 0x8353
+#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
+#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
+#define GL_PIXEL_GROUP_COLOR_SGIS 0x8356
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum pname, GLint param);
+GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum pname, GLfloat *params);
+#endif
+#endif /* GL_SGIS_pixel_texture */
+
+#ifndef GL_SGIS_point_line_texgen
+#define GL_SGIS_point_line_texgen 1
+#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0
+#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1
+#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2
+#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3
+#define GL_EYE_POINT_SGIS 0x81F4
+#define GL_OBJECT_POINT_SGIS 0x81F5
+#define GL_EYE_LINE_SGIS 0x81F6
+#define GL_OBJECT_LINE_SGIS 0x81F7
+#endif /* GL_SGIS_point_line_texgen */
+
+#ifndef GL_SGIS_point_parameters
+#define GL_SGIS_point_parameters 1
+#define GL_POINT_SIZE_MIN_SGIS 0x8126
+#define GL_POINT_SIZE_MAX_SGIS 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
+#define GL_DISTANCE_ATTENUATION_SGIS 0x8129
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPointParameterfSGIS (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvSGIS (GLenum pname, const GLfloat *params);
+#endif
+#endif /* GL_SGIS_point_parameters */
+
+#ifndef GL_SGIS_sharpen_texture
+#define GL_SGIS_sharpen_texture 1
+#define GL_LINEAR_SHARPEN_SGIS 0x80AD
+#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE
+#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF
+#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
+typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
+typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum target, GLfloat *points);
+#endif
+#endif /* GL_SGIS_sharpen_texture */
+
+#ifndef GL_SGIS_texture4D
+#define GL_SGIS_texture4D 1
+#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130
+#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131
+#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132
+#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133
+#define GL_TEXTURE_4D_SGIS 0x8134
+#define GL_PROXY_TEXTURE_4D_SGIS 0x8135
+#define GL_TEXTURE_4DSIZE_SGIS 0x8136
+#define GL_TEXTURE_WRAP_Q_SGIS 0x8137
+#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138
+#define GL_TEXTURE_4D_BINDING_SGIS 0x814F
+typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void *pixels);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTexImage4DSGIS (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void *pixels);
+#endif
+#endif /* GL_SGIS_texture4D */
+
+#ifndef GL_SGIS_texture_border_clamp
+#define GL_SGIS_texture_border_clamp 1
+#define GL_CLAMP_TO_BORDER_SGIS 0x812D
+#endif /* GL_SGIS_texture_border_clamp */
+
+#ifndef GL_SGIS_texture_color_mask
+#define GL_SGIS_texture_color_mask 1
+#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF
+typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+#endif
+#endif /* GL_SGIS_texture_color_mask */
+
+#ifndef GL_SGIS_texture_edge_clamp
+#define GL_SGIS_texture_edge_clamp 1
+#define GL_CLAMP_TO_EDGE_SGIS 0x812F
+#endif /* GL_SGIS_texture_edge_clamp */
+
+#ifndef GL_SGIS_texture_filter4
+#define GL_SGIS_texture_filter4 1
+#define GL_FILTER4_SGIS 0x8146
+#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147
+typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights);
+typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum target, GLenum filter, GLfloat *weights);
+GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
+#endif
+#endif /* GL_SGIS_texture_filter4 */
+
+#ifndef GL_SGIS_texture_lod
+#define GL_SGIS_texture_lod 1
+#define GL_TEXTURE_MIN_LOD_SGIS 0x813A
+#define GL_TEXTURE_MAX_LOD_SGIS 0x813B
+#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C
+#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D
+#endif /* GL_SGIS_texture_lod */
+
+#ifndef GL_SGIS_texture_select
+#define GL_SGIS_texture_select 1
+#define GL_DUAL_ALPHA4_SGIS 0x8110
+#define GL_DUAL_ALPHA8_SGIS 0x8111
+#define GL_DUAL_ALPHA12_SGIS 0x8112
+#define GL_DUAL_ALPHA16_SGIS 0x8113
+#define GL_DUAL_LUMINANCE4_SGIS 0x8114
+#define GL_DUAL_LUMINANCE8_SGIS 0x8115
+#define GL_DUAL_LUMINANCE12_SGIS 0x8116
+#define GL_DUAL_LUMINANCE16_SGIS 0x8117
+#define GL_DUAL_INTENSITY4_SGIS 0x8118
+#define GL_DUAL_INTENSITY8_SGIS 0x8119
+#define GL_DUAL_INTENSITY12_SGIS 0x811A
+#define GL_DUAL_INTENSITY16_SGIS 0x811B
+#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C
+#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D
+#define GL_QUAD_ALPHA4_SGIS 0x811E
+#define GL_QUAD_ALPHA8_SGIS 0x811F
+#define GL_QUAD_LUMINANCE4_SGIS 0x8120
+#define GL_QUAD_LUMINANCE8_SGIS 0x8121
+#define GL_QUAD_INTENSITY4_SGIS 0x8122
+#define GL_QUAD_INTENSITY8_SGIS 0x8123
+#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124
+#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125
+#endif /* GL_SGIS_texture_select */
+
+#ifndef GL_SGIX_async
+#define GL_SGIX_async 1
+#define GL_ASYNC_MARKER_SGIX 0x8329
+typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker);
+typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp);
+typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp);
+typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range);
+typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range);
+typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint marker);
+GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *markerp);
+GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *markerp);
+GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei range);
+GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint marker, GLsizei range);
+GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint marker);
+#endif
+#endif /* GL_SGIX_async */
+
+#ifndef GL_SGIX_async_histogram
+#define GL_SGIX_async_histogram 1
+#define GL_ASYNC_HISTOGRAM_SGIX 0x832C
+#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D
+#endif /* GL_SGIX_async_histogram */
+
+#ifndef GL_SGIX_async_pixel
+#define GL_SGIX_async_pixel 1
+#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C
+#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D
+#define GL_ASYNC_READ_PIXELS_SGIX 0x835E
+#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F
+#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360
+#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361
+#endif /* GL_SGIX_async_pixel */
+
+#ifndef GL_SGIX_blend_alpha_minmax
+#define GL_SGIX_blend_alpha_minmax 1
+#define GL_ALPHA_MIN_SGIX 0x8320
+#define GL_ALPHA_MAX_SGIX 0x8321
+#endif /* GL_SGIX_blend_alpha_minmax */
+
+#ifndef GL_SGIX_calligraphic_fragment
+#define GL_SGIX_calligraphic_fragment 1
+#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183
+#endif /* GL_SGIX_calligraphic_fragment */
+
+#ifndef GL_SGIX_clipmap
+#define GL_SGIX_clipmap 1
+#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170
+#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171
+#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172
+#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173
+#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
+#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
+#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176
+#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177
+#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
+#define GL_NEAREST_CLIPMAP_NEAREST_SGIX 0x844D
+#define GL_NEAREST_CLIPMAP_LINEAR_SGIX 0x844E
+#define GL_LINEAR_CLIPMAP_NEAREST_SGIX 0x844F
+#endif /* GL_SGIX_clipmap */
+
+#ifndef GL_SGIX_convolution_accuracy
+#define GL_SGIX_convolution_accuracy 1
+#define GL_CONVOLUTION_HINT_SGIX 0x8316
+#endif /* GL_SGIX_convolution_accuracy */
+
+#ifndef GL_SGIX_depth_pass_instrument
+#define GL_SGIX_depth_pass_instrument 1
+#endif /* GL_SGIX_depth_pass_instrument */
+
+#ifndef GL_SGIX_depth_texture
+#define GL_SGIX_depth_texture 1
+#define GL_DEPTH_COMPONENT16_SGIX 0x81A5
+#define GL_DEPTH_COMPONENT24_SGIX 0x81A6
+#define GL_DEPTH_COMPONENT32_SGIX 0x81A7
+#endif /* GL_SGIX_depth_texture */
+
+#ifndef GL_SGIX_flush_raster
+#define GL_SGIX_flush_raster 1
+typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFlushRasterSGIX (void);
+#endif
+#endif /* GL_SGIX_flush_raster */
+
+#ifndef GL_SGIX_fog_offset
+#define GL_SGIX_fog_offset 1
+#define GL_FOG_OFFSET_SGIX 0x8198
+#define GL_FOG_OFFSET_VALUE_SGIX 0x8199
+#endif /* GL_SGIX_fog_offset */
+
+#ifndef GL_SGIX_fragment_lighting
+#define GL_SGIX_fragment_lighting 1
+#define GL_FRAGMENT_LIGHTING_SGIX 0x8400
+#define GL_FRAGMENT_COLOR_MATERIAL_SGIX 0x8401
+#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
+#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
+#define GL_MAX_FRAGMENT_LIGHTS_SGIX 0x8404
+#define GL_MAX_ACTIVE_LIGHTS_SGIX 0x8405
+#define GL_CURRENT_RASTER_NORMAL_SGIX 0x8406
+#define GL_LIGHT_ENV_MODE_SGIX 0x8407
+#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
+#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
+#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
+#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
+#define GL_FRAGMENT_LIGHT0_SGIX 0x840C
+#define GL_FRAGMENT_LIGHT1_SGIX 0x840D
+#define GL_FRAGMENT_LIGHT2_SGIX 0x840E
+#define GL_FRAGMENT_LIGHT3_SGIX 0x840F
+#define GL_FRAGMENT_LIGHT4_SGIX 0x8410
+#define GL_FRAGMENT_LIGHT5_SGIX 0x8411
+#define GL_FRAGMENT_LIGHT6_SGIX 0x8412
+#define GL_FRAGMENT_LIGHT7_SGIX 0x8413
+typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum face, GLenum mode);
+GLAPI void APIENTRY glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glFragmentLightiSGIX (GLenum light, GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum pname, const GLint *params);
+GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
+GLAPI void APIENTRY glLightEnviSGIX (GLenum pname, GLint param);
+#endif
+#endif /* GL_SGIX_fragment_lighting */
+
+#ifndef GL_SGIX_framezoom
+#define GL_SGIX_framezoom 1
+#define GL_FRAMEZOOM_SGIX 0x818B
+#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C
+#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D
+typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFrameZoomSGIX (GLint factor);
+#endif
+#endif /* GL_SGIX_framezoom */
+
+#ifndef GL_SGIX_igloo_interface
+#define GL_SGIX_igloo_interface 1
+typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const void *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum pname, const void *params);
+#endif
+#endif /* GL_SGIX_igloo_interface */
+
+#ifndef GL_SGIX_instruments
+#define GL_SGIX_instruments 1
+#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
+#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181
+typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void);
+typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer);
+typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p);
+typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker);
+typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void);
+typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI GLint APIENTRY glGetInstrumentsSGIX (void);
+GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei size, GLint *buffer);
+GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *marker_p);
+GLAPI void APIENTRY glReadInstrumentsSGIX (GLint marker);
+GLAPI void APIENTRY glStartInstrumentsSGIX (void);
+GLAPI void APIENTRY glStopInstrumentsSGIX (GLint marker);
+#endif
+#endif /* GL_SGIX_instruments */
+
+#ifndef GL_SGIX_interlace
+#define GL_SGIX_interlace 1
+#define GL_INTERLACE_SGIX 0x8094
+#endif /* GL_SGIX_interlace */
+
+#ifndef GL_SGIX_ir_instrument1
+#define GL_SGIX_ir_instrument1 1
+#define GL_IR_INSTRUMENT1_SGIX 0x817F
+#endif /* GL_SGIX_ir_instrument1 */
+
+#ifndef GL_SGIX_list_priority
+#define GL_SGIX_list_priority 1
+#define GL_LIST_PRIORITY_SGIX 0x8182
+typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params);
+typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint list, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetListParameterivSGIX (GLuint list, GLenum pname, GLint *params);
+GLAPI void APIENTRY glListParameterfSGIX (GLuint list, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glListParameterfvSGIX (GLuint list, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glListParameteriSGIX (GLuint list, GLenum pname, GLint param);
+GLAPI void APIENTRY glListParameterivSGIX (GLuint list, GLenum pname, const GLint *params);
+#endif
+#endif /* GL_SGIX_list_priority */
+
+#ifndef GL_SGIX_pixel_texture
+#define GL_SGIX_pixel_texture 1
+#define GL_PIXEL_TEX_GEN_SGIX 0x8139
+#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B
+typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glPixelTexGenSGIX (GLenum mode);
+#endif
+#endif /* GL_SGIX_pixel_texture */
+
+#ifndef GL_SGIX_pixel_tiles
+#define GL_SGIX_pixel_tiles 1
+#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
+#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
+#define GL_PIXEL_TILE_WIDTH_SGIX 0x8140
+#define GL_PIXEL_TILE_HEIGHT_SGIX 0x8141
+#define GL_PIXEL_TILE_GRID_WIDTH_SGIX 0x8142
+#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX 0x8143
+#define GL_PIXEL_TILE_GRID_DEPTH_SGIX 0x8144
+#define GL_PIXEL_TILE_CACHE_SIZE_SGIX 0x8145
+#endif /* GL_SGIX_pixel_tiles */
+
+#ifndef GL_SGIX_polynomial_ffd
+#define GL_SGIX_polynomial_ffd 1
+#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001
+#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002
+#define GL_GEOMETRY_DEFORMATION_SGIX 0x8194
+#define GL_TEXTURE_DEFORMATION_SGIX 0x8195
+#define GL_DEFORMATIONS_MASK_SGIX 0x8196
+#define GL_MAX_DEFORMATION_ORDER_SGIX 0x8197
+typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
+typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
+typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask);
+typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
+GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
+GLAPI void APIENTRY glDeformSGIX (GLbitfield mask);
+GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield mask);
+#endif
+#endif /* GL_SGIX_polynomial_ffd */
+
+#ifndef GL_SGIX_reference_plane
+#define GL_SGIX_reference_plane 1
+#define GL_REFERENCE_PLANE_SGIX 0x817D
+#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E
+typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *equation);
+#endif
+#endif /* GL_SGIX_reference_plane */
+
+#ifndef GL_SGIX_resample
+#define GL_SGIX_resample 1
+#define GL_PACK_RESAMPLE_SGIX 0x842E
+#define GL_UNPACK_RESAMPLE_SGIX 0x842F
+#define GL_RESAMPLE_REPLICATE_SGIX 0x8433
+#define GL_RESAMPLE_ZERO_FILL_SGIX 0x8434
+#define GL_RESAMPLE_DECIMATE_SGIX 0x8430
+#endif /* GL_SGIX_resample */
+
+#ifndef GL_SGIX_scalebias_hint
+#define GL_SGIX_scalebias_hint 1
+#define GL_SCALEBIAS_HINT_SGIX 0x8322
+#endif /* GL_SGIX_scalebias_hint */
+
+#ifndef GL_SGIX_shadow
+#define GL_SGIX_shadow 1
+#define GL_TEXTURE_COMPARE_SGIX 0x819A
+#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B
+#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C
+#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D
+#endif /* GL_SGIX_shadow */
+
+#ifndef GL_SGIX_shadow_ambient
+#define GL_SGIX_shadow_ambient 1
+#define GL_SHADOW_AMBIENT_SGIX 0x80BF
+#endif /* GL_SGIX_shadow_ambient */
+
+#ifndef GL_SGIX_sprite
+#define GL_SGIX_sprite 1
+#define GL_SPRITE_SGIX 0x8148
+#define GL_SPRITE_MODE_SGIX 0x8149
+#define GL_SPRITE_AXIS_SGIX 0x814A
+#define GL_SPRITE_TRANSLATION_SGIX 0x814B
+#define GL_SPRITE_AXIAL_SGIX 0x814C
+#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D
+#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param);
+typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum pname, GLfloat param);
+GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum pname, GLint param);
+GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum pname, const GLint *params);
+#endif
+#endif /* GL_SGIX_sprite */
+
+#ifndef GL_SGIX_subsample
+#define GL_SGIX_subsample 1
+#define GL_PACK_SUBSAMPLE_RATE_SGIX 0x85A0
+#define GL_UNPACK_SUBSAMPLE_RATE_SGIX 0x85A1
+#define GL_PIXEL_SUBSAMPLE_4444_SGIX 0x85A2
+#define GL_PIXEL_SUBSAMPLE_2424_SGIX 0x85A3
+#define GL_PIXEL_SUBSAMPLE_4242_SGIX 0x85A4
+#endif /* GL_SGIX_subsample */
+
+#ifndef GL_SGIX_tag_sample_buffer
+#define GL_SGIX_tag_sample_buffer 1
+typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glTagSampleBufferSGIX (void);
+#endif
+#endif /* GL_SGIX_tag_sample_buffer */
+
+#ifndef GL_SGIX_texture_add_env
+#define GL_SGIX_texture_add_env 1
+#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE
+#endif /* GL_SGIX_texture_add_env */
+
+#ifndef GL_SGIX_texture_coordinate_clamp
+#define GL_SGIX_texture_coordinate_clamp 1
+#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369
+#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A
+#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B
+#endif /* GL_SGIX_texture_coordinate_clamp */
+
+#ifndef GL_SGIX_texture_lod_bias
+#define GL_SGIX_texture_lod_bias 1
+#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E
+#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F
+#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190
+#endif /* GL_SGIX_texture_lod_bias */
+
+#ifndef GL_SGIX_texture_multi_buffer
+#define GL_SGIX_texture_multi_buffer 1
+#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
+#endif /* GL_SGIX_texture_multi_buffer */
+
+#ifndef GL_SGIX_texture_scale_bias
+#define GL_SGIX_texture_scale_bias 1
+#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179
+#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
+#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
+#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
+#endif /* GL_SGIX_texture_scale_bias */
+
+#ifndef GL_SGIX_vertex_preclip
+#define GL_SGIX_vertex_preclip 1
+#define GL_VERTEX_PRECLIP_SGIX 0x83EE
+#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF
+#endif /* GL_SGIX_vertex_preclip */
+
+#ifndef GL_SGIX_ycrcb
+#define GL_SGIX_ycrcb 1
+#define GL_YCRCB_422_SGIX 0x81BB
+#define GL_YCRCB_444_SGIX 0x81BC
+#endif /* GL_SGIX_ycrcb */
+
+#ifndef GL_SGIX_ycrcb_subsample
+#define GL_SGIX_ycrcb_subsample 1
+#endif /* GL_SGIX_ycrcb_subsample */
+
+#ifndef GL_SGIX_ycrcba
+#define GL_SGIX_ycrcba 1
+#define GL_YCRCB_SGIX 0x8318
+#define GL_YCRCBA_SGIX 0x8319
+#endif /* GL_SGIX_ycrcba */
+
+#ifndef GL_SGI_color_matrix
+#define GL_SGI_color_matrix 1
+#define GL_COLOR_MATRIX_SGI 0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
+#endif /* GL_SGI_color_matrix */
+
+#ifndef GL_SGI_color_table
+#define GL_SGI_color_table 1
+#define GL_COLOR_TABLE_SGI 0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
+#define GL_PROXY_COLOR_TABLE_SGI 0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
+#define GL_COLOR_TABLE_SCALE_SGI 0x80D6
+#define GL_COLOR_TABLE_BIAS_SGI 0x80D7
+#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8
+#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
+typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, void *table);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColorTableSGI (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
+GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glColorTableParameterivSGI (GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyColorTableSGI (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glGetColorTableSGI (GLenum target, GLenum format, GLenum type, void *table);
+GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum target, GLenum pname, GLint *params);
+#endif
+#endif /* GL_SGI_color_table */
+
+#ifndef GL_SGI_texture_color_table
+#define GL_SGI_texture_color_table 1
+#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC
+#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD
+#endif /* GL_SGI_texture_color_table */
+
+#ifndef GL_SUNX_constant_data
+#define GL_SUNX_constant_data 1
+#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5
+#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6
+typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glFinishTextureSUNX (void);
+#endif
+#endif /* GL_SUNX_constant_data */
+
+#ifndef GL_SUN_convolution_border_modes
+#define GL_SUN_convolution_border_modes 1
+#define GL_WRAP_BORDER_SUN 0x81D4
+#endif /* GL_SUN_convolution_border_modes */
+
+#ifndef GL_SUN_global_alpha
+#define GL_SUN_global_alpha 1
+#define GL_GLOBAL_ALPHA_SUN 0x81D9
+#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor);
+typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte factor);
+GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort factor);
+GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint factor);
+GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat factor);
+GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble factor);
+GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte factor);
+GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort factor);
+GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint factor);
+#endif
+#endif /* GL_SUN_global_alpha */
+
+#ifndef GL_SUN_mesh_array
+#define GL_SUN_mesh_array 1
+#define GL_QUAD_MESH_SUN 0x8614
+#define GL_TRIANGLE_MESH_SUN 0x8615
+typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum mode, GLint first, GLsizei count, GLsizei width);
+#endif
+#endif /* GL_SUN_mesh_array */
+
+#ifndef GL_SUN_slice_accum
+#define GL_SUN_slice_accum 1
+#define GL_SLICE_ACCUM_SUN 0x85CC
+#endif /* GL_SUN_slice_accum */
+
+#ifndef GL_SUN_triangle_list
+#define GL_SUN_triangle_list 1
+#define GL_RESTART_SUN 0x0001
+#define GL_REPLACE_MIDDLE_SUN 0x0002
+#define GL_REPLACE_OLDEST_SUN 0x0003
+#define GL_TRIANGLE_LIST_SUN 0x81D7
+#define GL_REPLACEMENT_CODE_SUN 0x81D8
+#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0
+#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
+#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
+#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
+#define GL_R1UI_V3F_SUN 0x85C4
+#define GL_R1UI_C4UB_V3F_SUN 0x85C5
+#define GL_R1UI_C3F_V3F_SUN 0x85C6
+#define GL_R1UI_N3F_V3F_SUN 0x85C7
+#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8
+#define GL_R1UI_T2F_V3F_SUN 0x85C9
+#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA
+#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const void **pointer);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint code);
+GLAPI void APIENTRY glReplacementCodeusSUN (GLushort code);
+GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte code);
+GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *code);
+GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *code);
+GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *code);
+GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum type, GLsizei stride, const void **pointer);
+#endif
+#endif /* GL_SUN_triangle_list */
+
+#ifndef GL_SUN_vertex
+#define GL_SUN_vertex 1
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *rc, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *rc, const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+#endif
+#endif /* GL_SUN_vertex */
+
+#ifndef GL_WIN_phong_shading
+#define GL_WIN_phong_shading 1
+#define GL_PHONG_WIN 0x80EA
+#define GL_PHONG_HINT_WIN 0x80EB
+#endif /* GL_WIN_phong_shading */
+
+#ifndef GL_WIN_specular_fog
+#define GL_WIN_specular_fog 1
+#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
+#endif /* GL_WIN_specular_fog */
+
+#ifndef GL_MESA_texture_const_bandwidth
+#define GL_MESA_texture_const_bandwidth 1
+#define GL_CONST_BW_TILING_MESA 0x8BBE
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std.h
new file mode 100644
index 0000000000000000000000000000000000000000..347e0d2ae56f1e9a6e3b94c727e67683c946ebd9
--- /dev/null
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std.h
@@ -0,0 +1,394 @@
+#ifndef VULKAN_VIDEO_CODEC_AV1STD_H_
+#define VULKAN_VIDEO_CODEC_AV1STD_H_ 1
+
+/*
+** Copyright 2015-2025 The Khronos Group Inc.
+**
+** SPDX-License-Identifier: Apache-2.0
+*/
+
+/*
+** This header is generated from the Khronos Vulkan XML API Registry.
+**
+*/
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
+// vulkan_video_codec_av1std is a preprocessor guard. Do not pass it to API calls.
+#define vulkan_video_codec_av1std 1
+#include "vulkan_video_codecs_common.h"
+#define STD_VIDEO_AV1_NUM_REF_FRAMES 8
+#define STD_VIDEO_AV1_REFS_PER_FRAME 7
+#define STD_VIDEO_AV1_TOTAL_REFS_PER_FRAME 8
+#define STD_VIDEO_AV1_MAX_TILE_COLS 64
+#define STD_VIDEO_AV1_MAX_TILE_ROWS 64
+#define STD_VIDEO_AV1_MAX_SEGMENTS 8
+#define STD_VIDEO_AV1_SEG_LVL_MAX 8
+#define STD_VIDEO_AV1_PRIMARY_REF_NONE 7
+#define STD_VIDEO_AV1_SELECT_INTEGER_MV 2
+#define STD_VIDEO_AV1_SELECT_SCREEN_CONTENT_TOOLS 2
+#define STD_VIDEO_AV1_SKIP_MODE_FRAMES 2
+#define STD_VIDEO_AV1_MAX_LOOP_FILTER_STRENGTHS 4
+#define STD_VIDEO_AV1_LOOP_FILTER_ADJUSTMENTS 2
+#define STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS 8
+#define STD_VIDEO_AV1_MAX_NUM_PLANES 3
+#define STD_VIDEO_AV1_GLOBAL_MOTION_PARAMS 6
+#define STD_VIDEO_AV1_MAX_NUM_Y_POINTS 14
+#define STD_VIDEO_AV1_MAX_NUM_CB_POINTS 10
+#define STD_VIDEO_AV1_MAX_NUM_CR_POINTS 10
+#define STD_VIDEO_AV1_MAX_NUM_POS_LUMA 24
+#define STD_VIDEO_AV1_MAX_NUM_POS_CHROMA 25
+
+typedef enum StdVideoAV1Profile {
+ STD_VIDEO_AV1_PROFILE_MAIN = 0,
+ STD_VIDEO_AV1_PROFILE_HIGH = 1,
+ STD_VIDEO_AV1_PROFILE_PROFESSIONAL = 2,
+ STD_VIDEO_AV1_PROFILE_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_PROFILE_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1Profile;
+
+typedef enum StdVideoAV1Level {
+ STD_VIDEO_AV1_LEVEL_2_0 = 0,
+ STD_VIDEO_AV1_LEVEL_2_1 = 1,
+ STD_VIDEO_AV1_LEVEL_2_2 = 2,
+ STD_VIDEO_AV1_LEVEL_2_3 = 3,
+ STD_VIDEO_AV1_LEVEL_3_0 = 4,
+ STD_VIDEO_AV1_LEVEL_3_1 = 5,
+ STD_VIDEO_AV1_LEVEL_3_2 = 6,
+ STD_VIDEO_AV1_LEVEL_3_3 = 7,
+ STD_VIDEO_AV1_LEVEL_4_0 = 8,
+ STD_VIDEO_AV1_LEVEL_4_1 = 9,
+ STD_VIDEO_AV1_LEVEL_4_2 = 10,
+ STD_VIDEO_AV1_LEVEL_4_3 = 11,
+ STD_VIDEO_AV1_LEVEL_5_0 = 12,
+ STD_VIDEO_AV1_LEVEL_5_1 = 13,
+ STD_VIDEO_AV1_LEVEL_5_2 = 14,
+ STD_VIDEO_AV1_LEVEL_5_3 = 15,
+ STD_VIDEO_AV1_LEVEL_6_0 = 16,
+ STD_VIDEO_AV1_LEVEL_6_1 = 17,
+ STD_VIDEO_AV1_LEVEL_6_2 = 18,
+ STD_VIDEO_AV1_LEVEL_6_3 = 19,
+ STD_VIDEO_AV1_LEVEL_7_0 = 20,
+ STD_VIDEO_AV1_LEVEL_7_1 = 21,
+ STD_VIDEO_AV1_LEVEL_7_2 = 22,
+ STD_VIDEO_AV1_LEVEL_7_3 = 23,
+ STD_VIDEO_AV1_LEVEL_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_LEVEL_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1Level;
+
+typedef enum StdVideoAV1FrameType {
+ STD_VIDEO_AV1_FRAME_TYPE_KEY = 0,
+ STD_VIDEO_AV1_FRAME_TYPE_INTER = 1,
+ STD_VIDEO_AV1_FRAME_TYPE_INTRA_ONLY = 2,
+ STD_VIDEO_AV1_FRAME_TYPE_SWITCH = 3,
+ STD_VIDEO_AV1_FRAME_TYPE_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_FRAME_TYPE_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1FrameType;
+
+typedef enum StdVideoAV1ReferenceName {
+ STD_VIDEO_AV1_REFERENCE_NAME_INTRA_FRAME = 0,
+ STD_VIDEO_AV1_REFERENCE_NAME_LAST_FRAME = 1,
+ STD_VIDEO_AV1_REFERENCE_NAME_LAST2_FRAME = 2,
+ STD_VIDEO_AV1_REFERENCE_NAME_LAST3_FRAME = 3,
+ STD_VIDEO_AV1_REFERENCE_NAME_GOLDEN_FRAME = 4,
+ STD_VIDEO_AV1_REFERENCE_NAME_BWDREF_FRAME = 5,
+ STD_VIDEO_AV1_REFERENCE_NAME_ALTREF2_FRAME = 6,
+ STD_VIDEO_AV1_REFERENCE_NAME_ALTREF_FRAME = 7,
+ STD_VIDEO_AV1_REFERENCE_NAME_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_REFERENCE_NAME_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1ReferenceName;
+
+typedef enum StdVideoAV1InterpolationFilter {
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_EIGHTTAP = 0,
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_EIGHTTAP_SMOOTH = 1,
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_EIGHTTAP_SHARP = 2,
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_BILINEAR = 3,
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_SWITCHABLE = 4,
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_INTERPOLATION_FILTER_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1InterpolationFilter;
+
+typedef enum StdVideoAV1TxMode {
+ STD_VIDEO_AV1_TX_MODE_ONLY_4X4 = 0,
+ STD_VIDEO_AV1_TX_MODE_LARGEST = 1,
+ STD_VIDEO_AV1_TX_MODE_SELECT = 2,
+ STD_VIDEO_AV1_TX_MODE_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_TX_MODE_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1TxMode;
+
+typedef enum StdVideoAV1FrameRestorationType {
+ STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_NONE = 0,
+ STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_WIENER = 1,
+ STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_SGRPROJ = 2,
+ STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_SWITCHABLE = 3,
+ STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1FrameRestorationType;
+
+typedef enum StdVideoAV1ColorPrimaries {
+ STD_VIDEO_AV1_COLOR_PRIMARIES_BT_709 = 1,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_UNSPECIFIED = 2,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_BT_470_M = 4,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_BT_470_B_G = 5,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_BT_601 = 6,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_SMPTE_240 = 7,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_GENERIC_FILM = 8,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_BT_2020 = 9,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_XYZ = 10,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_SMPTE_431 = 11,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_SMPTE_432 = 12,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_EBU_3213 = 22,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_INVALID = 0x7FFFFFFF,
+ // STD_VIDEO_AV1_COLOR_PRIMARIES_BT_UNSPECIFIED is a deprecated alias
+ STD_VIDEO_AV1_COLOR_PRIMARIES_BT_UNSPECIFIED = STD_VIDEO_AV1_COLOR_PRIMARIES_UNSPECIFIED,
+ STD_VIDEO_AV1_COLOR_PRIMARIES_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1ColorPrimaries;
+
+typedef enum StdVideoAV1TransferCharacteristics {
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_RESERVED_0 = 0,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_709 = 1,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_UNSPECIFIED = 2,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_RESERVED_3 = 3,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_470_M = 4,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_470_B_G = 5,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_601 = 6,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_SMPTE_240 = 7,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_LINEAR = 8,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_LOG_100 = 9,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_LOG_100_SQRT10 = 10,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_IEC_61966 = 11,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_1361 = 12,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_SRGB = 13,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_2020_10_BIT = 14,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_BT_2020_12_BIT = 15,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_SMPTE_2084 = 16,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_SMPTE_428 = 17,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_HLG = 18,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_TRANSFER_CHARACTERISTICS_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1TransferCharacteristics;
+
+typedef enum StdVideoAV1MatrixCoefficients {
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_IDENTITY = 0,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_BT_709 = 1,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_UNSPECIFIED = 2,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_RESERVED_3 = 3,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_FCC = 4,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_BT_470_B_G = 5,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_BT_601 = 6,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_SMPTE_240 = 7,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_SMPTE_YCGCO = 8,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_BT_2020_NCL = 9,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_BT_2020_CL = 10,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_SMPTE_2085 = 11,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_CHROMAT_NCL = 12,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_CHROMAT_CL = 13,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_ICTCP = 14,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_MATRIX_COEFFICIENTS_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1MatrixCoefficients;
+
+typedef enum StdVideoAV1ChromaSamplePosition {
+ STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_UNKNOWN = 0,
+ STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_VERTICAL = 1,
+ STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_COLOCATED = 2,
+ STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_RESERVED = 3,
+ STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_INVALID = 0x7FFFFFFF,
+ STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_MAX_ENUM = 0x7FFFFFFF
+} StdVideoAV1ChromaSamplePosition;
+typedef struct StdVideoAV1ColorConfigFlags {
+ uint32_t mono_chrome : 1;
+ uint32_t color_range : 1;
+ uint32_t separate_uv_delta_q : 1;
+ uint32_t color_description_present_flag : 1;
+ uint32_t reserved : 28;
+} StdVideoAV1ColorConfigFlags;
+
+typedef struct StdVideoAV1ColorConfig {
+ StdVideoAV1ColorConfigFlags flags;
+ uint8_t BitDepth;
+ uint8_t subsampling_x;
+ uint8_t subsampling_y;
+ uint8_t reserved1;
+ StdVideoAV1ColorPrimaries color_primaries;
+ StdVideoAV1TransferCharacteristics transfer_characteristics;
+ StdVideoAV1MatrixCoefficients matrix_coefficients;
+ StdVideoAV1ChromaSamplePosition chroma_sample_position;
+} StdVideoAV1ColorConfig;
+
+typedef struct StdVideoAV1TimingInfoFlags {
+ uint32_t equal_picture_interval : 1;
+ uint32_t reserved : 31;
+} StdVideoAV1TimingInfoFlags;
+
+typedef struct StdVideoAV1TimingInfo {
+ StdVideoAV1TimingInfoFlags flags;
+ uint32_t num_units_in_display_tick;
+ uint32_t time_scale;
+ uint32_t num_ticks_per_picture_minus_1;
+} StdVideoAV1TimingInfo;
+
+typedef struct StdVideoAV1LoopFilterFlags {
+ uint32_t loop_filter_delta_enabled : 1;
+ uint32_t loop_filter_delta_update : 1;
+ uint32_t reserved : 30;
+} StdVideoAV1LoopFilterFlags;
+
+typedef struct StdVideoAV1LoopFilter {
+ StdVideoAV1LoopFilterFlags flags;
+ uint8_t loop_filter_level[STD_VIDEO_AV1_MAX_LOOP_FILTER_STRENGTHS];
+ uint8_t loop_filter_sharpness;
+ uint8_t update_ref_delta;
+ int8_t loop_filter_ref_deltas[STD_VIDEO_AV1_TOTAL_REFS_PER_FRAME];
+ uint8_t update_mode_delta;
+ int8_t loop_filter_mode_deltas[STD_VIDEO_AV1_LOOP_FILTER_ADJUSTMENTS];
+} StdVideoAV1LoopFilter;
+
+typedef struct StdVideoAV1QuantizationFlags {
+ uint32_t using_qmatrix : 1;
+ uint32_t diff_uv_delta : 1;
+ uint32_t reserved : 30;
+} StdVideoAV1QuantizationFlags;
+
+typedef struct StdVideoAV1Quantization {
+ StdVideoAV1QuantizationFlags flags;
+ uint8_t base_q_idx;
+ int8_t DeltaQYDc;
+ int8_t DeltaQUDc;
+ int8_t DeltaQUAc;
+ int8_t DeltaQVDc;
+ int8_t DeltaQVAc;
+ uint8_t qm_y;
+ uint8_t qm_u;
+ uint8_t qm_v;
+} StdVideoAV1Quantization;
+
+typedef struct StdVideoAV1Segmentation {
+ uint8_t FeatureEnabled[STD_VIDEO_AV1_MAX_SEGMENTS];
+ int16_t FeatureData[STD_VIDEO_AV1_MAX_SEGMENTS][STD_VIDEO_AV1_SEG_LVL_MAX];
+} StdVideoAV1Segmentation;
+
+typedef struct StdVideoAV1TileInfoFlags {
+ uint32_t uniform_tile_spacing_flag : 1;
+ uint32_t reserved : 31;
+} StdVideoAV1TileInfoFlags;
+
+typedef struct StdVideoAV1TileInfo {
+ StdVideoAV1TileInfoFlags flags;
+ uint8_t TileCols;
+ uint8_t TileRows;
+ uint16_t context_update_tile_id;
+ uint8_t tile_size_bytes_minus_1;
+ uint8_t reserved1[7];
+ const uint16_t* pMiColStarts;
+ const uint16_t* pMiRowStarts;
+ const uint16_t* pWidthInSbsMinus1;
+ const uint16_t* pHeightInSbsMinus1;
+} StdVideoAV1TileInfo;
+
+typedef struct StdVideoAV1CDEF {
+ uint8_t cdef_damping_minus_3;
+ uint8_t cdef_bits;
+ uint8_t cdef_y_pri_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
+ uint8_t cdef_y_sec_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
+ uint8_t cdef_uv_pri_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
+ uint8_t cdef_uv_sec_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
+} StdVideoAV1CDEF;
+
+typedef struct StdVideoAV1LoopRestoration {
+ StdVideoAV1FrameRestorationType FrameRestorationType[STD_VIDEO_AV1_MAX_NUM_PLANES];
+ uint16_t LoopRestorationSize[STD_VIDEO_AV1_MAX_NUM_PLANES];
+} StdVideoAV1LoopRestoration;
+
+typedef struct StdVideoAV1GlobalMotion {
+ uint8_t GmType[STD_VIDEO_AV1_NUM_REF_FRAMES];
+ int32_t gm_params[STD_VIDEO_AV1_NUM_REF_FRAMES][STD_VIDEO_AV1_GLOBAL_MOTION_PARAMS];
+} StdVideoAV1GlobalMotion;
+
+typedef struct StdVideoAV1FilmGrainFlags {
+ uint32_t chroma_scaling_from_luma : 1;
+ uint32_t overlap_flag : 1;
+ uint32_t clip_to_restricted_range : 1;
+ uint32_t update_grain : 1;
+ uint32_t reserved : 28;
+} StdVideoAV1FilmGrainFlags;
+
+typedef struct StdVideoAV1FilmGrain {
+ StdVideoAV1FilmGrainFlags flags;
+ uint8_t grain_scaling_minus_8;
+ uint8_t ar_coeff_lag;
+ uint8_t ar_coeff_shift_minus_6;
+ uint8_t grain_scale_shift;
+ uint16_t grain_seed;
+ uint8_t film_grain_params_ref_idx;
+ uint8_t num_y_points;
+ uint8_t point_y_value[STD_VIDEO_AV1_MAX_NUM_Y_POINTS];
+ uint8_t point_y_scaling[STD_VIDEO_AV1_MAX_NUM_Y_POINTS];
+ uint8_t num_cb_points;
+ uint8_t point_cb_value[STD_VIDEO_AV1_MAX_NUM_CB_POINTS];
+ uint8_t point_cb_scaling[STD_VIDEO_AV1_MAX_NUM_CB_POINTS];
+ uint8_t num_cr_points;
+ uint8_t point_cr_value[STD_VIDEO_AV1_MAX_NUM_CR_POINTS];
+ uint8_t point_cr_scaling[STD_VIDEO_AV1_MAX_NUM_CR_POINTS];
+ int8_t ar_coeffs_y_plus_128[STD_VIDEO_AV1_MAX_NUM_POS_LUMA];
+ int8_t ar_coeffs_cb_plus_128[STD_VIDEO_AV1_MAX_NUM_POS_CHROMA];
+ int8_t ar_coeffs_cr_plus_128[STD_VIDEO_AV1_MAX_NUM_POS_CHROMA];
+ uint8_t cb_mult;
+ uint8_t cb_luma_mult;
+ uint16_t cb_offset;
+ uint8_t cr_mult;
+ uint8_t cr_luma_mult;
+ uint16_t cr_offset;
+} StdVideoAV1FilmGrain;
+
+typedef struct StdVideoAV1SequenceHeaderFlags {
+ uint32_t still_picture : 1;
+ uint32_t reduced_still_picture_header : 1;
+ uint32_t use_128x128_superblock : 1;
+ uint32_t enable_filter_intra : 1;
+ uint32_t enable_intra_edge_filter : 1;
+ uint32_t enable_interintra_compound : 1;
+ uint32_t enable_masked_compound : 1;
+ uint32_t enable_warped_motion : 1;
+ uint32_t enable_dual_filter : 1;
+ uint32_t enable_order_hint : 1;
+ uint32_t enable_jnt_comp : 1;
+ uint32_t enable_ref_frame_mvs : 1;
+ uint32_t frame_id_numbers_present_flag : 1;
+ uint32_t enable_superres : 1;
+ uint32_t enable_cdef : 1;
+ uint32_t enable_restoration : 1;
+ uint32_t film_grain_params_present : 1;
+ uint32_t timing_info_present_flag : 1;
+ uint32_t initial_display_delay_present_flag : 1;
+ uint32_t reserved : 13;
+} StdVideoAV1SequenceHeaderFlags;
+
+typedef struct StdVideoAV1SequenceHeader {
+ StdVideoAV1SequenceHeaderFlags flags;
+ StdVideoAV1Profile seq_profile;
+ uint8_t frame_width_bits_minus_1;
+ uint8_t frame_height_bits_minus_1;
+ uint16_t max_frame_width_minus_1;
+ uint16_t max_frame_height_minus_1;
+ uint8_t delta_frame_id_length_minus_2;
+ uint8_t additional_frame_id_length_minus_1;
+ uint8_t order_hint_bits_minus_1;
+ uint8_t seq_force_integer_mv;
+ uint8_t seq_force_screen_content_tools;
+ uint8_t reserved1[5];
+ const StdVideoAV1ColorConfig* pColorConfig;
+ const StdVideoAV1TimingInfo* pTimingInfo;
+} StdVideoAV1SequenceHeader;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_decode.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_decode.h
new file mode 100644
index 0000000000000000000000000000000000000000..522628e86d1d26088876fd1624d65007946cdf24
--- /dev/null
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_decode.h
@@ -0,0 +1,109 @@
+#ifndef VULKAN_VIDEO_CODEC_AV1STD_DECODE_H_
+#define VULKAN_VIDEO_CODEC_AV1STD_DECODE_H_ 1
+
+/*
+** Copyright 2015-2025 The Khronos Group Inc.
+**
+** SPDX-License-Identifier: Apache-2.0
+*/
+
+/*
+** This header is generated from the Khronos Vulkan XML API Registry.
+**
+*/
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
+// vulkan_video_codec_av1std_decode is a preprocessor guard. Do not pass it to API calls.
+#define vulkan_video_codec_av1std_decode 1
+#include "vulkan_video_codec_av1std.h"
+
+#define VK_STD_VULKAN_VIDEO_CODEC_AV1_DECODE_API_VERSION_1_0_0 VK_MAKE_VIDEO_STD_VERSION(1, 0, 0)
+
+#define VK_STD_VULKAN_VIDEO_CODEC_AV1_DECODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_AV1_DECODE_API_VERSION_1_0_0
+#define VK_STD_VULKAN_VIDEO_CODEC_AV1_DECODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_av1_decode"
+typedef struct StdVideoDecodeAV1PictureInfoFlags {
+ uint32_t error_resilient_mode : 1;
+ uint32_t disable_cdf_update : 1;
+ uint32_t use_superres : 1;
+ uint32_t render_and_frame_size_different : 1;
+ uint32_t allow_screen_content_tools : 1;
+ uint32_t is_filter_switchable : 1;
+ uint32_t force_integer_mv : 1;
+ uint32_t frame_size_override_flag : 1;
+ uint32_t buffer_removal_time_present_flag : 1;
+ uint32_t allow_intrabc : 1;
+ uint32_t frame_refs_short_signaling : 1;
+ uint32_t allow_high_precision_mv : 1;
+ uint32_t is_motion_mode_switchable : 1;
+ uint32_t use_ref_frame_mvs : 1;
+ uint32_t disable_frame_end_update_cdf : 1;
+ uint32_t allow_warped_motion : 1;
+ uint32_t reduced_tx_set : 1;
+ uint32_t reference_select : 1;
+ uint32_t skip_mode_present : 1;
+ uint32_t delta_q_present : 1;
+ uint32_t delta_lf_present : 1;
+ uint32_t delta_lf_multi : 1;
+ uint32_t segmentation_enabled : 1;
+ uint32_t segmentation_update_map : 1;
+ uint32_t segmentation_temporal_update : 1;
+ uint32_t segmentation_update_data : 1;
+ uint32_t UsesLr : 1;
+ uint32_t usesChromaLr : 1;
+ uint32_t apply_grain : 1;
+ uint32_t reserved : 3;
+} StdVideoDecodeAV1PictureInfoFlags;
+
+typedef struct StdVideoDecodeAV1PictureInfo {
+ StdVideoDecodeAV1PictureInfoFlags flags;
+ StdVideoAV1FrameType frame_type;
+ uint32_t current_frame_id;
+ uint8_t OrderHint;
+ uint8_t primary_ref_frame;
+ uint8_t refresh_frame_flags;
+ uint8_t reserved1;
+ StdVideoAV1InterpolationFilter interpolation_filter;
+ StdVideoAV1TxMode TxMode;
+ uint8_t delta_q_res;
+ uint8_t delta_lf_res;
+ uint8_t SkipModeFrame[STD_VIDEO_AV1_SKIP_MODE_FRAMES];
+ uint8_t coded_denom;
+ uint8_t reserved2[3];
+ uint8_t OrderHints[STD_VIDEO_AV1_NUM_REF_FRAMES];
+ uint32_t expectedFrameId[STD_VIDEO_AV1_NUM_REF_FRAMES];
+ const StdVideoAV1TileInfo* pTileInfo;
+ const StdVideoAV1Quantization* pQuantization;
+ const StdVideoAV1Segmentation* pSegmentation;
+ const StdVideoAV1LoopFilter* pLoopFilter;
+ const StdVideoAV1CDEF* pCDEF;
+ const StdVideoAV1LoopRestoration* pLoopRestoration;
+ const StdVideoAV1GlobalMotion* pGlobalMotion;
+ const StdVideoAV1FilmGrain* pFilmGrain;
+} StdVideoDecodeAV1PictureInfo;
+
+typedef struct StdVideoDecodeAV1ReferenceInfoFlags {
+ uint32_t disable_frame_end_update_cdf : 1;
+ uint32_t segmentation_enabled : 1;
+ uint32_t reserved : 30;
+} StdVideoDecodeAV1ReferenceInfoFlags;
+
+typedef struct StdVideoDecodeAV1ReferenceInfo {
+ StdVideoDecodeAV1ReferenceInfoFlags flags;
+ uint8_t frame_type;
+ uint8_t RefFrameSignBias;
+ uint8_t OrderHint;
+ uint8_t SavedOrderHints[STD_VIDEO_AV1_NUM_REF_FRAMES];
+} StdVideoDecodeAV1ReferenceInfo;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_encode.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_encode.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca5f6f474ea1085b64bb005c161d23380ed3c740
--- /dev/null
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_av1std_encode.h
@@ -0,0 +1,143 @@
+#ifndef VULKAN_VIDEO_CODEC_AV1STD_ENCODE_H_
+#define VULKAN_VIDEO_CODEC_AV1STD_ENCODE_H_ 1
+
+/*
+** Copyright 2015-2025 The Khronos Group Inc.
+**
+** SPDX-License-Identifier: Apache-2.0
+*/
+
+/*
+** This header is generated from the Khronos Vulkan XML API Registry.
+**
+*/
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
+// vulkan_video_codec_av1std_encode is a preprocessor guard. Do not pass it to API calls.
+#define vulkan_video_codec_av1std_encode 1
+#include "vulkan_video_codec_av1std.h"
+
+#define VK_STD_VULKAN_VIDEO_CODEC_AV1_ENCODE_API_VERSION_1_0_0 VK_MAKE_VIDEO_STD_VERSION(1, 0, 0)
+
+#define VK_STD_VULKAN_VIDEO_CODEC_AV1_ENCODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_AV1_ENCODE_API_VERSION_1_0_0
+#define VK_STD_VULKAN_VIDEO_CODEC_AV1_ENCODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_av1_encode"
+typedef struct StdVideoEncodeAV1DecoderModelInfo {
+ uint8_t buffer_delay_length_minus_1;
+ uint8_t buffer_removal_time_length_minus_1;
+ uint8_t frame_presentation_time_length_minus_1;
+ uint8_t reserved1;
+ uint32_t num_units_in_decoding_tick;
+} StdVideoEncodeAV1DecoderModelInfo;
+
+typedef struct StdVideoEncodeAV1ExtensionHeader {
+ uint8_t temporal_id;
+ uint8_t spatial_id;
+} StdVideoEncodeAV1ExtensionHeader;
+
+typedef struct StdVideoEncodeAV1OperatingPointInfoFlags {
+ uint32_t decoder_model_present_for_this_op : 1;
+ uint32_t low_delay_mode_flag : 1;
+ uint32_t initial_display_delay_present_for_this_op : 1;
+ uint32_t reserved : 29;
+} StdVideoEncodeAV1OperatingPointInfoFlags;
+
+typedef struct StdVideoEncodeAV1OperatingPointInfo {
+ StdVideoEncodeAV1OperatingPointInfoFlags flags;
+ uint16_t operating_point_idc;
+ uint8_t seq_level_idx;
+ uint8_t seq_tier;
+ uint32_t decoder_buffer_delay;
+ uint32_t encoder_buffer_delay;
+ uint8_t initial_display_delay_minus_1;
+} StdVideoEncodeAV1OperatingPointInfo;
+
+typedef struct StdVideoEncodeAV1PictureInfoFlags {
+ uint32_t error_resilient_mode : 1;
+ uint32_t disable_cdf_update : 1;
+ uint32_t use_superres : 1;
+ uint32_t render_and_frame_size_different : 1;
+ uint32_t allow_screen_content_tools : 1;
+ uint32_t is_filter_switchable : 1;
+ uint32_t force_integer_mv : 1;
+ uint32_t frame_size_override_flag : 1;
+ uint32_t buffer_removal_time_present_flag : 1;
+ uint32_t allow_intrabc : 1;
+ uint32_t frame_refs_short_signaling : 1;
+ uint32_t allow_high_precision_mv : 1;
+ uint32_t is_motion_mode_switchable : 1;
+ uint32_t use_ref_frame_mvs : 1;
+ uint32_t disable_frame_end_update_cdf : 1;
+ uint32_t allow_warped_motion : 1;
+ uint32_t reduced_tx_set : 1;
+ uint32_t skip_mode_present : 1;
+ uint32_t delta_q_present : 1;
+ uint32_t delta_lf_present : 1;
+ uint32_t delta_lf_multi : 1;
+ uint32_t segmentation_enabled : 1;
+ uint32_t segmentation_update_map : 1;
+ uint32_t segmentation_temporal_update : 1;
+ uint32_t segmentation_update_data : 1;
+ uint32_t UsesLr : 1;
+ uint32_t usesChromaLr : 1;
+ uint32_t show_frame : 1;
+ uint32_t showable_frame : 1;
+ uint32_t reserved : 3;
+} StdVideoEncodeAV1PictureInfoFlags;
+
+typedef struct StdVideoEncodeAV1PictureInfo {
+ StdVideoEncodeAV1PictureInfoFlags flags;
+ StdVideoAV1FrameType frame_type;
+ uint32_t frame_presentation_time;
+ uint32_t current_frame_id;
+ uint8_t order_hint;
+ uint8_t primary_ref_frame;
+ uint8_t refresh_frame_flags;
+ uint8_t coded_denom;
+ uint16_t render_width_minus_1;
+ uint16_t render_height_minus_1;
+ StdVideoAV1InterpolationFilter interpolation_filter;
+ StdVideoAV1TxMode TxMode;
+ uint8_t delta_q_res;
+ uint8_t delta_lf_res;
+ uint8_t ref_order_hint[STD_VIDEO_AV1_NUM_REF_FRAMES];
+ int8_t ref_frame_idx[STD_VIDEO_AV1_REFS_PER_FRAME];
+ uint8_t reserved1[3];
+ uint32_t delta_frame_id_minus_1[STD_VIDEO_AV1_REFS_PER_FRAME];
+ const StdVideoAV1TileInfo* pTileInfo;
+ const StdVideoAV1Quantization* pQuantization;
+ const StdVideoAV1Segmentation* pSegmentation;
+ const StdVideoAV1LoopFilter* pLoopFilter;
+ const StdVideoAV1CDEF* pCDEF;
+ const StdVideoAV1LoopRestoration* pLoopRestoration;
+ const StdVideoAV1GlobalMotion* pGlobalMotion;
+ const StdVideoEncodeAV1ExtensionHeader* pExtensionHeader;
+ const uint32_t* pBufferRemovalTimes;
+} StdVideoEncodeAV1PictureInfo;
+
+typedef struct StdVideoEncodeAV1ReferenceInfoFlags {
+ uint32_t disable_frame_end_update_cdf : 1;
+ uint32_t segmentation_enabled : 1;
+ uint32_t reserved : 30;
+} StdVideoEncodeAV1ReferenceInfoFlags;
+
+typedef struct StdVideoEncodeAV1ReferenceInfo {
+ StdVideoEncodeAV1ReferenceInfoFlags flags;
+ uint32_t RefFrameId;
+ StdVideoAV1FrameType frame_type;
+ uint8_t OrderHint;
+ uint8_t reserved1[3];
+ const StdVideoEncodeAV1ExtensionHeader* pExtensionHeader;
+} StdVideoEncodeAV1ReferenceInfo;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std.h
index 6d27af37b73342388f3281a70c8af34efe1de567..6fd381066f03e69bb35aca797c91ca5ce861080f 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODEC_H264STD_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_decode.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_decode.h
index 439cb885e71b7dcbde9b477b2bfb3fd4613bec10..d6a90b4981f643060fa453c355219790d99f974e 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_decode.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_decode.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_encode.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_encode.h
index 9e24aa5d991d3b4388b4bd297d66faf46a698f7a..410b1b254987d28d63232233f27212394f49a522 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_encode.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_encode.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODEC_H264STD_ENCODE_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std.h
index d0a1bacbea378c7e0acc1ebcf2596da80525bfe9..3eecd601115441bb25e9edc977a8f7afba6d3571 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODEC_H265STD_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_decode.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_decode.h
index 0178793e5111ac4eea8f26185bea2312ce645dd3..a9e1a0964596e1d360a1f8342a28000e8cbbacee 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_decode.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_decode.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODEC_H265STD_DECODE_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_encode.h b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_encode.h
index ee34491f4e9c0a5fa3740193802ecd437f93473f..fe2f28d57f6b566c763fcf7aef57276c44d8afc1 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_encode.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_encode.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODEC_H265STD_ENCODE_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vk_video/vulkan_video_codecs_common.h b/third_party/vulkan-headers/vk_video/vulkan_video_codecs_common.h
index 5e6ef1db48ee560e2004388f95d25c6a5bc6a19b..a5f0f3d94098577f16e8356588664a62ede525f9 100644
--- a/third_party/vulkan-headers/vk_video/vulkan_video_codecs_common.h
+++ b/third_party/vulkan-headers/vk_video/vulkan_video_codecs_common.h
@@ -2,7 +2,7 @@
#define VULKAN_VIDEO_CODECS_COMMON_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vulkan/vk_platform.h b/third_party/vulkan-headers/vulkan/vk_platform.h
index 34fce70cf365c6b923a645f8f4a5f6aacb21fed7..4ccce0443b5000167977d83c44774c460e33330b 100644
--- a/third_party/vulkan-headers/vulkan/vk_platform.h
+++ b/third_party/vulkan-headers/vulkan/vk_platform.h
@@ -2,7 +2,7 @@
// File: vk_platform.h
//
/*
-** Copyright 2014-2024 The Khronos Group Inc.
+** Copyright 2014-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vulkan/vulkan.h b/third_party/vulkan-headers/vulkan/vulkan.h
index f39cc20ff38e2f7fcde09dc51f155828076dabf3..89364eb17f630522b688a41cff78cd5762addf49 100644
--- a/third_party/vulkan-headers/vulkan/vulkan.h
+++ b/third_party/vulkan-headers/vulkan/vulkan.h
@@ -2,7 +2,7 @@
#define VULKAN_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
diff --git a/third_party/vulkan-headers/vulkan/vulkan_core.h b/third_party/vulkan-headers/vulkan/vulkan_core.h
index 7f6ab796caddd5b0d601169a97aff3ec0ffc73da..193c1eae81a553e440a8c15ecd1ce3c369c515fe 100644
--- a/third_party/vulkan-headers/vulkan/vulkan_core.h
+++ b/third_party/vulkan-headers/vulkan/vulkan_core.h
@@ -2,7 +2,7 @@
#define VULKAN_CORE_H_ 1
/*
-** Copyright 2015-2024 The Khronos Group Inc.
+** Copyright 2015-2025 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
@@ -69,21 +69,25 @@ extern "C" {
#define VK_API_VERSION_1_0 VK_MAKE_API_VERSION(0, 1, 0, 0)// Patch version should always be set to 0
// Version of this file
-#define VK_HEADER_VERSION 275
+#define VK_HEADER_VERSION 309
// Complete version of this file
-#define VK_HEADER_VERSION_COMPLETE VK_MAKE_API_VERSION(0, 1, 3, VK_HEADER_VERSION)
+#define VK_HEADER_VERSION_COMPLETE VK_MAKE_API_VERSION(0, 1, 4, VK_HEADER_VERSION)
+// VK_MAKE_VERSION is deprecated, but no reason was given in the API XML
// DEPRECATED: This define is deprecated. VK_MAKE_API_VERSION should be used instead.
#define VK_MAKE_VERSION(major, minor, patch) \
((((uint32_t)(major)) << 22U) | (((uint32_t)(minor)) << 12U) | ((uint32_t)(patch)))
+// VK_VERSION_MAJOR is deprecated, but no reason was given in the API XML
// DEPRECATED: This define is deprecated. VK_API_VERSION_MAJOR should be used instead.
#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22U)
+// VK_VERSION_MINOR is deprecated, but no reason was given in the API XML
// DEPRECATED: This define is deprecated. VK_API_VERSION_MINOR should be used instead.
#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12U) & 0x3FFU)
+// VK_VERSION_PATCH is deprecated, but no reason was given in the API XML
// DEPRECATED: This define is deprecated. VK_API_VERSION_PATCH should be used instead.
#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xFFFU)
@@ -162,6 +166,7 @@ typedef enum VkResult {
VK_ERROR_FRAGMENTATION = -1000161000,
VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS = -1000257000,
VK_PIPELINE_COMPILE_REQUIRED = 1000297000,
+ VK_ERROR_NOT_PERMITTED = -1000174001,
VK_ERROR_SURFACE_LOST_KHR = -1000000000,
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001,
VK_SUBOPTIMAL_KHR = 1000001003,
@@ -176,7 +181,6 @@ typedef enum VkResult {
VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR = -1000023004,
VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR = -1000023005,
VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT = -1000158000,
- VK_ERROR_NOT_PERMITTED_KHR = -1000174001,
VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT = -1000255000,
VK_THREAD_IDLE_KHR = 1000268000,
VK_THREAD_DONE_KHR = 1000268001,
@@ -184,15 +188,20 @@ typedef enum VkResult {
VK_OPERATION_NOT_DEFERRED_KHR = 1000268003,
VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR = -1000299000,
VK_ERROR_COMPRESSION_EXHAUSTED_EXT = -1000338000,
- VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT = 1000482000,
+ VK_INCOMPATIBLE_SHADER_BINARY_EXT = 1000482000,
+ VK_PIPELINE_BINARY_MISSING_KHR = 1000483000,
+ VK_ERROR_NOT_ENOUGH_SPACE_KHR = -1000483000,
VK_ERROR_OUT_OF_POOL_MEMORY_KHR = VK_ERROR_OUT_OF_POOL_MEMORY,
VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR = VK_ERROR_INVALID_EXTERNAL_HANDLE,
VK_ERROR_FRAGMENTATION_EXT = VK_ERROR_FRAGMENTATION,
- VK_ERROR_NOT_PERMITTED_EXT = VK_ERROR_NOT_PERMITTED_KHR,
+ VK_ERROR_NOT_PERMITTED_EXT = VK_ERROR_NOT_PERMITTED,
+ VK_ERROR_NOT_PERMITTED_KHR = VK_ERROR_NOT_PERMITTED,
VK_ERROR_INVALID_DEVICE_ADDRESS_EXT = VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS,
VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR = VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS,
VK_PIPELINE_COMPILE_REQUIRED_EXT = VK_PIPELINE_COMPILE_REQUIRED,
VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT = VK_PIPELINE_COMPILE_REQUIRED,
+ // VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT is a deprecated alias
+ VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT = VK_INCOMPATIBLE_SHADER_BINARY_EXT,
VK_RESULT_MAX_ENUM = 0x7FFFFFFF
} VkResult;
@@ -413,6 +422,56 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES = 1000413001,
VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS = 1000413002,
VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS = 1000413003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_4_FEATURES = 55,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_4_PROPERTIES = 56,
+ VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO = 1000174000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES = 1000388000,
+ VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES = 1000388001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_ROTATE_FEATURES = 1000416000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES = 1000528000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EXPECT_ASSUME_FEATURES = 1000544000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES = 1000259000,
+ VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO = 1000259001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES = 1000259002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES = 1000525000,
+ VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO = 1000190001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES = 1000190002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES = 1000265000,
+ VK_STRUCTURE_TYPE_MEMORY_MAP_INFO = 1000271000,
+ VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO = 1000271001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_FEATURES = 1000470000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES = 1000470001,
+ VK_STRUCTURE_TYPE_RENDERING_AREA_INFO = 1000470003,
+ VK_STRUCTURE_TYPE_DEVICE_IMAGE_SUBRESOURCE_INFO = 1000470004,
+ VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2 = 1000338002,
+ VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2 = 1000338003,
+ VK_STRUCTURE_TYPE_PIPELINE_CREATE_FLAGS_2_CREATE_INFO = 1000470005,
+ VK_STRUCTURE_TYPE_BUFFER_USAGE_FLAGS_2_CREATE_INFO = 1000470006,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES = 1000080000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_LOCAL_READ_FEATURES = 1000232000,
+ VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_LOCATION_INFO = 1000232001,
+ VK_STRUCTURE_TYPE_RENDERING_INPUT_ATTACHMENT_INDEX_INFO = 1000232002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_FEATURES = 1000545000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_PROPERTIES = 1000545001,
+ VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS = 1000545002,
+ VK_STRUCTURE_TYPE_BIND_DESCRIPTOR_SETS_INFO = 1000545003,
+ VK_STRUCTURE_TYPE_PUSH_CONSTANTS_INFO = 1000545004,
+ VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_INFO = 1000545005,
+ VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_WITH_TEMPLATE_INFO = 1000545006,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_PROTECTED_ACCESS_FEATURES = 1000466000,
+ VK_STRUCTURE_TYPE_PIPELINE_ROBUSTNESS_CREATE_INFO = 1000068000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_FEATURES = 1000068001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_PROPERTIES = 1000068002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES = 1000270000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES = 1000270001,
+ VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY = 1000270002,
+ VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY = 1000270003,
+ VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO = 1000270004,
+ VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO = 1000270005,
+ VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO = 1000270006,
+ VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO = 1000270007,
+ VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE = 1000270008,
+ VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY = 1000270009,
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000,
VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001,
VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHR = 1000060007,
@@ -463,6 +522,7 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_CU_MODULE_CREATE_INFO_NVX = 1000029000,
VK_STRUCTURE_TYPE_CU_FUNCTION_CREATE_INFO_NVX = 1000029001,
VK_STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX = 1000029002,
+ VK_STRUCTURE_TYPE_CU_MODULE_TEXTURING_MODE_CREATE_INFO_NVX = 1000029004,
VK_STRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVX = 1000030000,
VK_STRUCTURE_TYPE_IMAGE_VIEW_ADDRESS_PROPERTIES_NVX = 1000030001,
VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_CAPABILITIES_KHR = 1000038000,
@@ -500,10 +560,6 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_KHR = 1000040005,
VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_DPB_SLOT_INFO_KHR = 1000040006,
VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD = 1000041000,
- VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR = 1000044006,
- VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT = 1000044007,
- VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD = 1000044008,
- VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX = 1000044009,
VK_STRUCTURE_TYPE_STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP = 1000049000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV = 1000050000,
VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000,
@@ -515,9 +571,6 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN = 1000062000,
VK_STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT = 1000067000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT = 1000067001,
- VK_STRUCTURE_TYPE_PIPELINE_ROBUSTNESS_CREATE_INFO_EXT = 1000068000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_FEATURES_EXT = 1000068001,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_PROPERTIES_EXT = 1000068002,
VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR = 1000073000,
VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR = 1000073001,
VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR = 1000073002,
@@ -532,7 +585,6 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR = 1000078003,
VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR = 1000079000,
VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR = 1000079001,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR = 1000080000,
VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT = 1000081000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT = 1000081001,
VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT = 1000081002,
@@ -545,6 +597,7 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT = 1000091003,
VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE = 1000092000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX = 1000097000,
+ VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX = 1000044009,
VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV = 1000098000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT = 1000099000,
VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT = 1000099001,
@@ -604,6 +657,7 @@ typedef enum VkStructureType {
#ifdef VK_ENABLE_BETA_EXTENSIONS
VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_NODE_CREATE_INFO_AMDX = 1000134004,
#endif
+ VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD = 1000044008,
VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT = 1000143000,
VK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT = 1000143001,
VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT = 1000143002,
@@ -682,13 +736,9 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PROFILE_INFO_KHR = 1000187003,
VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PICTURE_INFO_KHR = 1000187004,
VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_DPB_SLOT_INFO_KHR = 1000187005,
- VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR = 1000174000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHR = 1000388000,
- VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR = 1000388001,
VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD = 1000189000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT = 1000190000,
VK_STRUCTURE_TYPE_PRESENT_FRAME_TOKEN_GGP = 1000191000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV = 1000201000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV = 1000202000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV = 1000202001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV = 1000204000,
@@ -696,6 +746,8 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV = 1000205002,
VK_STRUCTURE_TYPE_CHECKPOINT_DATA_NV = 1000206000,
VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV = 1000206001,
+ VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV = 1000314008,
+ VK_STRUCTURE_TYPE_CHECKPOINT_DATA_2_NV = 1000314009,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL = 1000209000,
VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL = 1000210000,
VK_STRUCTURE_TYPE_INITIALIZE_PERFORMANCE_API_INFO_INTEL = 1000210001,
@@ -711,14 +763,17 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT = 1000218000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT = 1000218001,
VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT = 1000218002,
+ VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT = 1000044007,
VK_STRUCTURE_TYPE_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR = 1000226000,
VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR = 1000226001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_PROPERTIES_KHR = 1000226002,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR = 1000226003,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHR = 1000226004,
+ VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR = 1000044006,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD = 1000227000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD = 1000229000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT = 1000234000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_QUAD_CONTROL_FEATURES_KHR = 1000235000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT = 1000237000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT = 1000238000,
VK_STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT = 1000238001,
@@ -743,11 +798,7 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT = 1000255002,
VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT = 1000255001,
VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT = 1000256000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT = 1000259000,
- VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT = 1000259001,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT = 1000259002,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT = 1000260000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT = 1000265000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT = 1000267000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR = 1000269000,
VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR = 1000269001,
@@ -755,18 +806,9 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_INFO_KHR = 1000269003,
VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_STATISTIC_KHR = 1000269004,
VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR = 1000269005,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT = 1000270000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT = 1000270001,
- VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT = 1000270002,
- VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT = 1000270003,
- VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT = 1000270004,
- VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT = 1000270005,
- VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT = 1000270006,
- VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT = 1000270007,
- VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT = 1000270008,
- VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT = 1000270009,
- VK_STRUCTURE_TYPE_MEMORY_MAP_INFO_KHR = 1000271000,
- VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHR = 1000271001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAP_MEMORY_PLACED_FEATURES_EXT = 1000272000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAP_MEMORY_PLACED_PROPERTIES_EXT = 1000272001,
+ VK_STRUCTURE_TYPE_MEMORY_MAP_PLACED_INFO_EXT = 1000272002,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT = 1000273000,
VK_STRUCTURE_TYPE_SURFACE_PRESENT_MODE_EXT = 1000274000,
VK_STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_EXT = 1000274001,
@@ -838,8 +880,6 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_IMPORT_METAL_IO_SURFACE_INFO_EXT = 1000311009,
VK_STRUCTURE_TYPE_EXPORT_METAL_SHARED_EVENT_INFO_EXT = 1000311010,
VK_STRUCTURE_TYPE_IMPORT_METAL_SHARED_EVENT_INFO_EXT = 1000311011,
- VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV = 1000314008,
- VK_STRUCTURE_TYPE_CHECKPOINT_DATA_2_NV = 1000314009,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_BUFFER_PROPERTIES_EXT = 1000316000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_BUFFER_DENSITY_MAP_PROPERTIES_EXT = 1000316001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_BUFFER_FEATURES_EXT = 1000316002,
@@ -892,6 +932,7 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT = 1000355000,
VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT = 1000355001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT = 1000356000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_MODE_FIFO_LATEST_READY_FEATURES_EXT = 1000361000,
VK_STRUCTURE_TYPE_IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA = 1000364000,
VK_STRUCTURE_TYPE_MEMORY_ZIRCON_HANDLE_PROPERTIES_FUCHSIA = 1000364001,
VK_STRUCTURE_TYPE_MEMORY_GET_ZIRCON_HANDLE_INFO_FUCHSIA = 1000364002,
@@ -967,7 +1008,6 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_SET_HOST_MAPPING_FEATURES_VALVE = 1000420000,
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_BINDING_REFERENCE_VALVE = 1000420001,
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_HOST_MAPPING_INFO_VALVE = 1000420002,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_ZERO_ONE_FEATURES_EXT = 1000421000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_NON_SEAMLESS_CUBE_MAP_FEATURES_EXT = 1000422000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RENDER_PASS_STRIPED_FEATURES_ARM = 1000424000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RENDER_PASS_STRIPED_PROPERTIES_ARM = 1000424001,
@@ -984,7 +1024,11 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_COMPUTE_FEATURES_NV = 1000428000,
VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_INDIRECT_BUFFER_INFO_NV = 1000428001,
VK_STRUCTURE_TYPE_PIPELINE_INDIRECT_DEVICE_ADDRESS_INFO_NV = 1000428002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_LINEAR_SWEPT_SPHERES_FEATURES_NV = 1000429008,
+ VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_LINEAR_SWEPT_SPHERES_DATA_NV = 1000429009,
+ VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_SPHERES_DATA_NV = 1000429010,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINEAR_COLOR_ATTACHMENT_FEATURES_NV = 1000430000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_MAXIMAL_RECONVERGENCE_FEATURES_KHR = 1000434000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_FEATURES_EXT = 1000437000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_PROCESSING_FEATURES_QCOM = 1000440000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_PROCESSING_PROPERTIES_QCOM = 1000440001,
@@ -1013,22 +1057,26 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_OPTICAL_FLOW_EXECUTE_INFO_NV = 1000464005,
VK_STRUCTURE_TYPE_OPTICAL_FLOW_SESSION_CREATE_PRIVATE_DATA_INFO_NV = 1000464010,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LEGACY_DITHERING_FEATURES_EXT = 1000465000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_PROTECTED_ACCESS_FEATURES_EXT = 1000466000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID = 1000468000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_PROPERTIES_ANDROID = 1000468001,
VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_RESOLVE_PROPERTIES_ANDROID = 1000468002,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_FEATURES_KHR = 1000470000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR = 1000470001,
- VK_STRUCTURE_TYPE_RENDERING_AREA_INFO_KHR = 1000470003,
- VK_STRUCTURE_TYPE_DEVICE_IMAGE_SUBRESOURCE_INFO_KHR = 1000470004,
- VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_KHR = 1000338002,
- VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_KHR = 1000338003,
- VK_STRUCTURE_TYPE_PIPELINE_CREATE_FLAGS_2_CREATE_INFO_KHR = 1000470005,
- VK_STRUCTURE_TYPE_BUFFER_USAGE_FLAGS_2_CREATE_INFO_KHR = 1000470006,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ANTI_LAG_FEATURES_AMD = 1000476000,
+ VK_STRUCTURE_TYPE_ANTI_LAG_DATA_AMD = 1000476001,
+ VK_STRUCTURE_TYPE_ANTI_LAG_PRESENTATION_INFO_AMD = 1000476002,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_POSITION_FETCH_FEATURES_KHR = 1000481000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_OBJECT_FEATURES_EXT = 1000482000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_OBJECT_PROPERTIES_EXT = 1000482001,
VK_STRUCTURE_TYPE_SHADER_CREATE_INFO_EXT = 1000482002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_BINARY_FEATURES_KHR = 1000483000,
+ VK_STRUCTURE_TYPE_PIPELINE_BINARY_CREATE_INFO_KHR = 1000483001,
+ VK_STRUCTURE_TYPE_PIPELINE_BINARY_INFO_KHR = 1000483002,
+ VK_STRUCTURE_TYPE_PIPELINE_BINARY_KEY_KHR = 1000483003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_BINARY_PROPERTIES_KHR = 1000483004,
+ VK_STRUCTURE_TYPE_RELEASE_CAPTURED_PIPELINE_DATA_INFO_KHR = 1000483005,
+ VK_STRUCTURE_TYPE_PIPELINE_BINARY_DATA_INFO_KHR = 1000483006,
+ VK_STRUCTURE_TYPE_PIPELINE_CREATE_INFO_KHR = 1000483007,
+ VK_STRUCTURE_TYPE_DEVICE_PIPELINE_BINARY_INTERNAL_CACHE_CONTROL_KHR = 1000483008,
+ VK_STRUCTURE_TYPE_PIPELINE_BINARY_HANDLES_INFO_KHR = 1000483009,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TILE_PROPERTIES_FEATURES_QCOM = 1000484000,
VK_STRUCTURE_TYPE_TILE_PROPERTIES_QCOM = 1000484001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_AMIGO_PROFILING_FEATURES_SEC = 1000485000,
@@ -1036,10 +1084,16 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_VIEWPORTS_FEATURES_QCOM = 1000488000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_INVOCATION_REORDER_FEATURES_NV = 1000490000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_INVOCATION_REORDER_PROPERTIES_NV = 1000490001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_VECTOR_FEATURES_NV = 1000491000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_VECTOR_PROPERTIES_NV = 1000491001,
+ VK_STRUCTURE_TYPE_COOPERATIVE_VECTOR_PROPERTIES_NV = 1000491002,
+ VK_STRUCTURE_TYPE_CONVERT_COOPERATIVE_VECTOR_MATRIX_INFO_NV = 1000491004,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_SPARSE_ADDRESS_SPACE_FEATURES_NV = 1000492000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_SPARSE_ADDRESS_SPACE_PROPERTIES_NV = 1000492001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_EXT = 1000351000,
VK_STRUCTURE_TYPE_MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_EXT = 1000351002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LEGACY_VERTEX_ATTRIBUTES_FEATURES_EXT = 1000495000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LEGACY_VERTEX_ATTRIBUTES_PROPERTIES_EXT = 1000495001,
VK_STRUCTURE_TYPE_LAYER_SETTINGS_CREATE_INFO_EXT = 1000496000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_FEATURES_ARM = 1000497000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_PROPERTIES_ARM = 1000497001,
@@ -1059,6 +1113,24 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_KHR = 1000506002,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_RENDER_AREAS_FEATURES_QCOM = 1000510000,
VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_RENDER_AREAS_RENDER_PASS_BEGIN_INFO_QCOM = 1000510001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_KHR = 1000201000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_PROPERTIES_KHR = 1000511000,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_CAPABILITIES_KHR = 1000512000,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PICTURE_INFO_KHR = 1000512001,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PROFILE_INFO_KHR = 1000512003,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_SESSION_PARAMETERS_CREATE_INFO_KHR = 1000512004,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_DPB_SLOT_INFO_KHR = 1000512005,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_CAPABILITIES_KHR = 1000513000,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_SESSION_PARAMETERS_CREATE_INFO_KHR = 1000513001,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_PICTURE_INFO_KHR = 1000513002,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_DPB_SLOT_INFO_KHR = 1000513003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_AV1_FEATURES_KHR = 1000513004,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_PROFILE_INFO_KHR = 1000513005,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_RATE_CONTROL_INFO_KHR = 1000513006,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_RATE_CONTROL_LAYER_INFO_KHR = 1000513007,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_QUALITY_LEVEL_PROPERTIES_KHR = 1000513008,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_SESSION_CREATE_INFO_KHR = 1000513009,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_GOP_REMAINING_FRAME_INFO_KHR = 1000513010,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR = 1000515000,
VK_STRUCTURE_TYPE_VIDEO_INLINE_QUERY_INFO_KHR = 1000515001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PER_STAGE_DESCRIPTOR_SET_FEATURES_NV = 1000516000,
@@ -1072,9 +1144,6 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_YCBCR_DEGAMMA_CREATE_INFO_QCOM = 1000520001,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUBIC_CLAMP_FEATURES_QCOM = 1000521000,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_FEATURES_EXT = 1000524000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_KHR = 1000525000,
- VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_KHR = 1000190001,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_KHR = 1000190002,
VK_STRUCTURE_TYPE_SCREEN_BUFFER_PROPERTIES_QNX = 1000529000,
VK_STRUCTURE_TYPE_SCREEN_BUFFER_FORMAT_PROPERTIES_QNX = 1000529001,
VK_STRUCTURE_TYPE_IMPORT_SCREEN_BUFFER_INFO_QNX = 1000529002,
@@ -1082,16 +1151,89 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCREEN_BUFFER_FEATURES_QNX = 1000529004,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_DRIVER_PROPERTIES_MSFT = 1000530000,
VK_STRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_KHR = 1000184000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_FEATURES_KHR = 1000545000,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_PROPERTIES_KHR = 1000545001,
- VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS_KHR = 1000545002,
- VK_STRUCTURE_TYPE_BIND_DESCRIPTOR_SETS_INFO_KHR = 1000545003,
- VK_STRUCTURE_TYPE_PUSH_CONSTANTS_INFO_KHR = 1000545004,
- VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_INFO_KHR = 1000545005,
- VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_WITH_TEMPLATE_INFO_KHR = 1000545006,
VK_STRUCTURE_TYPE_SET_DESCRIPTOR_BUFFER_OFFSETS_INFO_EXT = 1000545007,
VK_STRUCTURE_TYPE_BIND_DESCRIPTOR_BUFFER_EMBEDDED_SAMPLERS_INFO_EXT = 1000545008,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV = 1000546000,
+ VK_STRUCTURE_TYPE_DISPLAY_SURFACE_STEREO_CREATE_INFO_NV = 1000551000,
+ VK_STRUCTURE_TYPE_DISPLAY_MODE_STEREO_PROPERTIES_NV = 1000551001,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_QUANTIZATION_MAP_CAPABILITIES_KHR = 1000553000,
+ VK_STRUCTURE_TYPE_VIDEO_FORMAT_QUANTIZATION_MAP_PROPERTIES_KHR = 1000553001,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_QUANTIZATION_MAP_INFO_KHR = 1000553002,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_QUANTIZATION_MAP_SESSION_PARAMETERS_CREATE_INFO_KHR = 1000553005,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_QUANTIZATION_MAP_FEATURES_KHR = 1000553009,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_QUANTIZATION_MAP_CAPABILITIES_KHR = 1000553003,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_QUANTIZATION_MAP_CAPABILITIES_KHR = 1000553004,
+ VK_STRUCTURE_TYPE_VIDEO_FORMAT_H265_QUANTIZATION_MAP_PROPERTIES_KHR = 1000553006,
+ VK_STRUCTURE_TYPE_VIDEO_ENCODE_AV1_QUANTIZATION_MAP_CAPABILITIES_KHR = 1000553007,
+ VK_STRUCTURE_TYPE_VIDEO_FORMAT_AV1_QUANTIZATION_MAP_PROPERTIES_KHR = 1000553008,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAW_ACCESS_CHAINS_FEATURES_NV = 1000555000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_RELAXED_EXTENDED_INSTRUCTION_FEATURES_KHR = 1000558000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMMAND_BUFFER_INHERITANCE_FEATURES_NV = 1000559000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_7_FEATURES_KHR = 1000562000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_7_PROPERTIES_KHR = 1000562001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_API_PROPERTIES_LIST_KHR = 1000562002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_API_PROPERTIES_KHR = 1000562003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_API_VULKAN_PROPERTIES_KHR = 1000562004,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV = 1000563000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT = 1000564000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV = 1000568000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_ACCELERATION_STRUCTURE_FEATURES_NV = 1000569000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CLUSTER_ACCELERATION_STRUCTURE_PROPERTIES_NV = 1000569001,
+ VK_STRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_CLUSTERS_BOTTOM_LEVEL_INPUT_NV = 1000569002,
+ VK_STRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_TRIANGLE_CLUSTER_INPUT_NV = 1000569003,
+ VK_STRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_MOVE_OBJECTS_INPUT_NV = 1000569004,
+ VK_STRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_INPUT_INFO_NV = 1000569005,
+ VK_STRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_COMMANDS_INFO_NV = 1000569006,
+ VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CLUSTER_ACCELERATION_STRUCTURE_CREATE_INFO_NV = 1000569007,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PARTITIONED_ACCELERATION_STRUCTURE_FEATURES_NV = 1000570000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PARTITIONED_ACCELERATION_STRUCTURE_PROPERTIES_NV = 1000570001,
+ VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_PARTITIONED_ACCELERATION_STRUCTURE_NV = 1000570002,
+ VK_STRUCTURE_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCES_INPUT_NV = 1000570003,
+ VK_STRUCTURE_TYPE_BUILD_PARTITIONED_ACCELERATION_STRUCTURE_INFO_NV = 1000570004,
+ VK_STRUCTURE_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_FLAGS_NV = 1000570005,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_EXT = 1000572000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_EXT = 1000572001,
+ VK_STRUCTURE_TYPE_GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_EXT = 1000572002,
+ VK_STRUCTURE_TYPE_INDIRECT_EXECUTION_SET_CREATE_INFO_EXT = 1000572003,
+ VK_STRUCTURE_TYPE_GENERATED_COMMANDS_INFO_EXT = 1000572004,
+ VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_EXT = 1000572006,
+ VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_TOKEN_EXT = 1000572007,
+ VK_STRUCTURE_TYPE_WRITE_INDIRECT_EXECUTION_SET_PIPELINE_EXT = 1000572008,
+ VK_STRUCTURE_TYPE_WRITE_INDIRECT_EXECUTION_SET_SHADER_EXT = 1000572009,
+ VK_STRUCTURE_TYPE_INDIRECT_EXECUTION_SET_PIPELINE_INFO_EXT = 1000572010,
+ VK_STRUCTURE_TYPE_INDIRECT_EXECUTION_SET_SHADER_INFO_EXT = 1000572011,
+ VK_STRUCTURE_TYPE_INDIRECT_EXECUTION_SET_SHADER_LAYOUT_INFO_EXT = 1000572012,
+ VK_STRUCTURE_TYPE_GENERATED_COMMANDS_PIPELINE_INFO_EXT = 1000572013,
+ VK_STRUCTURE_TYPE_GENERATED_COMMANDS_SHADER_INFO_EXT = 1000572014,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHR = 1000574000,
+ VK_STRUCTURE_TYPE_MEMORY_BARRIER_ACCESS_FLAGS_3_KHR = 1000574002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA = 1000575000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA = 1000575001,
+ VK_STRUCTURE_TYPE_IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA = 1000575002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_CONTROL_FEATURES_EXT = 1000582000,
+ VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT = 1000582001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_2_FEATURES_KHR = 1000586000,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_INLINE_SESSION_PARAMETERS_INFO_KHR = 1000586001,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_INLINE_SESSION_PARAMETERS_INFO_KHR = 1000586002,
+ VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_INLINE_SESSION_PARAMETERS_INFO_KHR = 1000586003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI = 1000590000,
+ VK_STRUCTURE_TYPE_HDR_VIVID_DYNAMIC_METADATA_HUAWEI = 1000590001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV = 1000593000,
+ VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_FLEXIBLE_DIMENSIONS_PROPERTIES_NV = 1000593001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_PROPERTIES_NV = 1000593002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_OPACITY_MICROMAP_FEATURES_ARM = 1000596000,
+ VK_STRUCTURE_TYPE_IMPORT_MEMORY_METAL_HANDLE_INFO_EXT = 1000602000,
+ VK_STRUCTURE_TYPE_MEMORY_METAL_HANDLE_PROPERTIES_EXT = 1000602001,
+ VK_STRUCTURE_TYPE_MEMORY_GET_METAL_HANDLE_INFO_EXT = 1000602002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_ZERO_ONE_FEATURES_KHR = 1000421000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_ROBUSTNESS_FEATURES_EXT = 1000608000,
+#ifdef VK_ENABLE_BETA_EXTENSIONS
+ VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV = 1000613000,
+#endif
+#ifdef VK_ENABLE_BETA_EXTENSIONS
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV = 1000613001,
+#endif
+
// ---- OHOS Add----
VK_STRUCTURE_TYPE_SURFACE_CREATE_INFO_OHOS = 1000685000,
VK_STRUCTURE_TYPE_NATIVE_BUFFER_OHOS = 1000453001,
@@ -1104,15 +1246,16 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_MEMORY_GET_NATIVE_BUFFER_INFO_OHOS = 1000452004,
VK_STRUCTURE_TYPE_EXTERNAL_FORMAT_OHOS = 1000452005,
// ---- OHOS Add----
+
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES,
+ // VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT is a deprecated alias
VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT,
VK_STRUCTURE_TYPE_RENDERING_INFO_KHR = VK_STRUCTURE_TYPE_RENDERING_INFO,
VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO_KHR = VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO,
VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES,
VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO_KHR = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO,
- VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_NV = VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD,
VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES,
@@ -1133,6 +1276,9 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO_KHR = VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO,
VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO_KHR = VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES,
+ VK_STRUCTURE_TYPE_PIPELINE_ROBUSTNESS_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_ROBUSTNESS_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_ROBUSTNESS_PROPERTIES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES,
VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO,
@@ -1146,10 +1292,12 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO,
VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES_KHR = VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES,
VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES,
VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO,
+ // VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES2_EXT is a deprecated alias
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES2_EXT = VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES,
VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO,
@@ -1185,6 +1333,7 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR = VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2,
VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR = VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2,
VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO,
+ VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_NV = VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD,
VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO,
VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO_KHR = VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO,
VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO_KHR = VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO,
@@ -1200,18 +1349,22 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT_EXT = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES,
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT_KHR = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT,
- VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR,
+ VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES,
VK_STRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_EXT = VK_STRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_KHR,
- VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_KHR,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_KHR,
+ VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES,
+ VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES,
+ VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES,
VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES,
VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE_KHR = VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_KHR,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES,
@@ -1219,6 +1372,7 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO_KHR = VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO,
VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO_KHR = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO,
VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO_KHR = VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO,
+ // VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO_INTEL is a deprecated alias
VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO_INTEL = VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES,
@@ -1226,6 +1380,9 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES,
VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_LOCAL_READ_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_LOCAL_READ_FEATURES,
+ VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_LOCATION_INFO_KHR = VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_LOCATION_INFO,
+ VK_STRUCTURE_TYPE_RENDERING_INPUT_ATTACHMENT_INDEX_INFO_KHR = VK_STRUCTURE_TYPE_RENDERING_INPUT_ATTACHMENT_INDEX_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES,
VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT_KHR = VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT,
VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT_KHR = VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT,
@@ -1239,7 +1396,23 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO,
VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO_KHR = VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO,
VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO_KHR = VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES,
+ VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES,
+ VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT = VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY,
+ VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT = VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY,
+ VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT = VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO,
+ VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT = VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO,
+ VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT = VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO,
+ VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT = VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO,
+ VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT = VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE,
+ VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT = VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY,
+ VK_STRUCTURE_TYPE_MEMORY_MAP_INFO_KHR = VK_STRUCTURE_TYPE_MEMORY_MAP_INFO,
+ VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHR = VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES,
@@ -1269,20 +1442,47 @@ typedef enum VkStructureType {
VK_STRUCTURE_TYPE_IMAGE_BLIT_2_KHR = VK_STRUCTURE_TYPE_IMAGE_BLIT_2,
VK_STRUCTURE_TYPE_BUFFER_IMAGE_COPY_2_KHR = VK_STRUCTURE_TYPE_BUFFER_IMAGE_COPY_2,
VK_STRUCTURE_TYPE_IMAGE_RESOLVE_2_KHR = VK_STRUCTURE_TYPE_IMAGE_RESOLVE_2,
- VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_EXT = VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_KHR,
- VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_EXT = VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_KHR,
+ VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_EXT = VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2,
+ VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_EXT = VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_ARM = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_EXT,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_EXT,
VK_STRUCTURE_TYPE_MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE = VK_STRUCTURE_TYPE_MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_EXT,
VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3,
VK_STRUCTURE_TYPE_PIPELINE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR,
- VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHR,
- VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES,
+ VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES,
VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR = VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS,
VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR = VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_ROTATE_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_ROTATE_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_ZERO_ONE_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_ZERO_ONE_FEATURES_KHR,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_PROTECTED_ACCESS_FEATURES_EXT = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_PROTECTED_ACCESS_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES,
+ VK_STRUCTURE_TYPE_RENDERING_AREA_INFO_KHR = VK_STRUCTURE_TYPE_RENDERING_AREA_INFO,
+ VK_STRUCTURE_TYPE_DEVICE_IMAGE_SUBRESOURCE_INFO_KHR = VK_STRUCTURE_TYPE_DEVICE_IMAGE_SUBRESOURCE_INFO,
+ VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_KHR = VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2,
+ VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_KHR = VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2,
+ VK_STRUCTURE_TYPE_PIPELINE_CREATE_FLAGS_2_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_PIPELINE_CREATE_FLAGS_2_CREATE_INFO,
+ VK_STRUCTURE_TYPE_BUFFER_USAGE_FLAGS_2_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_BUFFER_USAGE_FLAGS_2_CREATE_INFO,
VK_STRUCTURE_TYPE_SHADER_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES,
+ VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES,
+ VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EXPECT_ASSUME_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EXPECT_ASSUME_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_FEATURES,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_PROPERTIES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_PROPERTIES,
+ VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS_KHR = VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS,
+ VK_STRUCTURE_TYPE_BIND_DESCRIPTOR_SETS_INFO_KHR = VK_STRUCTURE_TYPE_BIND_DESCRIPTOR_SETS_INFO,
+ VK_STRUCTURE_TYPE_PUSH_CONSTANTS_INFO_KHR = VK_STRUCTURE_TYPE_PUSH_CONSTANTS_INFO,
+ VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_INFO_KHR = VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_INFO,
+ VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_WITH_TEMPLATE_INFO_KHR = VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_WITH_TEMPLATE_INFO,
VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
} VkStructureType;
@@ -1309,6 +1509,7 @@ typedef enum VkImageLayout {
VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL = 1000241003,
VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL = 1000314000,
VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL = 1000314001,
+ VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ = 1000232000,
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002,
VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR = 1000024000,
VK_IMAGE_LAYOUT_VIDEO_DECODE_SRC_KHR = 1000024001,
@@ -1320,9 +1521,11 @@ typedef enum VkImageLayout {
VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR = 1000299001,
VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR = 1000299002,
VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT = 1000339000,
+ VK_IMAGE_LAYOUT_VIDEO_ENCODE_QUANTIZATION_MAP_KHR = 1000553000,
VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL,
VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR = VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL,
VK_IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NV = VK_IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR,
+ VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR = VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ,
VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL_KHR = VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL_KHR = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR = VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL,
@@ -1384,6 +1587,9 @@ typedef enum VkObjectType {
VK_OBJECT_TYPE_MICROMAP_EXT = 1000396000,
VK_OBJECT_TYPE_OPTICAL_FLOW_SESSION_NV = 1000464000,
VK_OBJECT_TYPE_SHADER_EXT = 1000482000,
+ VK_OBJECT_TYPE_PIPELINE_BINARY_KHR = 1000483000,
+ VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_EXT = 1000572000,
+ VK_OBJECT_TYPE_INDIRECT_EXECUTION_SET_EXT = 1000572001,
VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR = VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE,
VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR = VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION,
VK_OBJECT_TYPE_PRIVATE_DATA_SLOT_EXT = VK_OBJECT_TYPE_PRIVATE_DATA_SLOT,
@@ -1391,6 +1597,7 @@ typedef enum VkObjectType {
} VkObjectType;
typedef enum VkVendorId {
+ VK_VENDOR_ID_KHRONOS = 0x10000,
VK_VENDOR_ID_VIV = 0x10001,
VK_VENDOR_ID_VSI = 0x10002,
VK_VENDOR_ID_KAZAN = 0x10003,
@@ -1655,6 +1862,8 @@ typedef enum VkFormat {
VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK = 1000066011,
VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK = 1000066012,
VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK = 1000066013,
+ VK_FORMAT_A1B5G5R5_UNORM_PACK16 = 1000470000,
+ VK_FORMAT_A8_UNORM = 1000470001,
VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000,
VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = 1000054001,
VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = 1000054002,
@@ -1663,9 +1872,7 @@ typedef enum VkFormat {
VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = 1000054005,
VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006,
VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007,
- VK_FORMAT_R16G16_S10_5_NV = 1000464000,
- VK_FORMAT_A1B5G5R5_UNORM_PACK16_KHR = 1000470000,
- VK_FORMAT_A8_UNORM_KHR = 1000470001,
+ VK_FORMAT_R16G16_SFIXED5_NV = 1000464000,
VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT = VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK,
VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT = VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK,
VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT = VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK,
@@ -1720,6 +1927,10 @@ typedef enum VkFormat {
VK_FORMAT_G16_B16R16_2PLANE_444_UNORM_EXT = VK_FORMAT_G16_B16R16_2PLANE_444_UNORM,
VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT = VK_FORMAT_A4R4G4B4_UNORM_PACK16,
VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT = VK_FORMAT_A4B4G4R4_UNORM_PACK16,
+ // VK_FORMAT_R16G16_S10_5_NV is a deprecated alias
+ VK_FORMAT_R16G16_S10_5_NV = VK_FORMAT_R16G16_SFIXED5_NV,
+ VK_FORMAT_A1B5G5R5_UNORM_PACK16_KHR = VK_FORMAT_A1B5G5R5_UNORM_PACK16,
+ VK_FORMAT_A8_UNORM_KHR = VK_FORMAT_A8_UNORM,
VK_FORMAT_MAX_ENUM = 0x7FFFFFFF
} VkFormat;
@@ -1910,6 +2121,7 @@ typedef enum VkDynamicState {
VK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE = 1000377001,
VK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE = 1000377002,
VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE = 1000377004,
+ VK_DYNAMIC_STATE_LINE_STIPPLE = 1000259000,
VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV = 1000087000,
VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT = 1000099000,
VK_DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT = 1000099001,
@@ -1921,12 +2133,10 @@ typedef enum VkDynamicState {
VK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV = 1000205000,
VK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV = 1000205001,
VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR = 1000226000,
- VK_DYNAMIC_STATE_LINE_STIPPLE_EXT = 1000259000,
VK_DYNAMIC_STATE_VERTEX_INPUT_EXT = 1000352000,
VK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT = 1000377000,
VK_DYNAMIC_STATE_LOGIC_OP_EXT = 1000377003,
VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT = 1000381000,
- VK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT = 1000455002,
VK_DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT = 1000455003,
VK_DYNAMIC_STATE_POLYGON_MODE_EXT = 1000455004,
VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT = 1000455005,
@@ -1937,6 +2147,7 @@ typedef enum VkDynamicState {
VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT = 1000455010,
VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT = 1000455011,
VK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT = 1000455012,
+ VK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT = 1000455002,
VK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT = 1000455013,
VK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT = 1000455014,
VK_DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT = 1000455015,
@@ -1958,6 +2169,8 @@ typedef enum VkDynamicState {
VK_DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV = 1000455031,
VK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV = 1000455032,
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT = 1000524000,
+ VK_DYNAMIC_STATE_DEPTH_CLAMP_RANGE_EXT = 1000582000,
+ VK_DYNAMIC_STATE_LINE_STIPPLE_EXT = VK_DYNAMIC_STATE_LINE_STIPPLE,
VK_DYNAMIC_STATE_CULL_MODE_EXT = VK_DYNAMIC_STATE_CULL_MODE,
VK_DYNAMIC_STATE_FRONT_FACE_EXT = VK_DYNAMIC_STATE_FRONT_FACE,
VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY_EXT = VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY,
@@ -1973,6 +2186,7 @@ typedef enum VkDynamicState {
VK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE_EXT = VK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE,
VK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE_EXT = VK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE,
VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE_EXT = VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE,
+ VK_DYNAMIC_STATE_LINE_STIPPLE_KHR = VK_DYNAMIC_STATE_LINE_STIPPLE,
VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF
} VkDynamicState;
@@ -2069,6 +2283,7 @@ typedef enum VkSamplerAddressMode {
VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2,
VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3,
VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4,
+ // VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE_KHR is a deprecated alias
VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE_KHR = VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE,
VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF
} VkSamplerAddressMode;
@@ -2097,6 +2312,7 @@ typedef enum VkDescriptorType {
VK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM = 1000440000,
VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM = 1000440001,
VK_DESCRIPTOR_TYPE_MUTABLE_EXT = 1000351000,
+ VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV = 1000570000,
VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT = VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK,
VK_DESCRIPTOR_TYPE_MUTABLE_VALVE = VK_DESCRIPTOR_TYPE_MUTABLE_EXT,
VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF
@@ -2106,7 +2322,9 @@ typedef enum VkAttachmentLoadOp {
VK_ATTACHMENT_LOAD_OP_LOAD = 0,
VK_ATTACHMENT_LOAD_OP_CLEAR = 1,
VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2,
- VK_ATTACHMENT_LOAD_OP_NONE_EXT = 1000400000,
+ VK_ATTACHMENT_LOAD_OP_NONE = 1000400000,
+ VK_ATTACHMENT_LOAD_OP_NONE_EXT = VK_ATTACHMENT_LOAD_OP_NONE,
+ VK_ATTACHMENT_LOAD_OP_NONE_KHR = VK_ATTACHMENT_LOAD_OP_NONE,
VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF
} VkAttachmentLoadOp;
@@ -2141,16 +2359,19 @@ typedef enum VkCommandBufferLevel {
typedef enum VkIndexType {
VK_INDEX_TYPE_UINT16 = 0,
VK_INDEX_TYPE_UINT32 = 1,
+ VK_INDEX_TYPE_UINT8 = 1000265000,
VK_INDEX_TYPE_NONE_KHR = 1000165000,
- VK_INDEX_TYPE_UINT8_EXT = 1000265000,
VK_INDEX_TYPE_NONE_NV = VK_INDEX_TYPE_NONE_KHR,
+ VK_INDEX_TYPE_UINT8_EXT = VK_INDEX_TYPE_UINT8,
+ VK_INDEX_TYPE_UINT8_KHR = VK_INDEX_TYPE_UINT8,
VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF
} VkIndexType;
typedef enum VkSubpassContents {
VK_SUBPASS_CONTENTS_INLINE = 0,
VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1,
- VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT = 1000451000,
+ VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_KHR = 1000451000,
+ VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT = VK_SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_KHR,
VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF
} VkSubpassContents;
@@ -2188,6 +2409,8 @@ typedef enum VkAccessFlagBits {
VK_ACCESS_ACCELERATION_STRUCTURE_READ_BIT_NV = VK_ACCESS_ACCELERATION_STRUCTURE_READ_BIT_KHR,
VK_ACCESS_ACCELERATION_STRUCTURE_WRITE_BIT_NV = VK_ACCESS_ACCELERATION_STRUCTURE_WRITE_BIT_KHR,
VK_ACCESS_NONE_KHR = VK_ACCESS_NONE,
+ VK_ACCESS_COMMAND_PREPROCESS_READ_BIT_EXT = VK_ACCESS_COMMAND_PREPROCESS_READ_BIT_NV,
+ VK_ACCESS_COMMAND_PREPROCESS_WRITE_BIT_EXT = VK_ACCESS_COMMAND_PREPROCESS_WRITE_BIT_NV,
VK_ACCESS_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkAccessFlagBits;
typedef VkFlags VkAccessFlags;
@@ -2312,12 +2535,12 @@ typedef enum VkImageUsageFlagBits {
VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020,
VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040,
VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080,
+ VK_IMAGE_USAGE_HOST_TRANSFER_BIT = 0x00400000,
VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR = 0x00000400,
VK_IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR = 0x00000800,
VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR = 0x00001000,
VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT = 0x00000200,
VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00000100,
- VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT = 0x00400000,
VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR = 0x00002000,
VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR = 0x00004000,
VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR = 0x00008000,
@@ -2325,7 +2548,10 @@ typedef enum VkImageUsageFlagBits {
VK_IMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI = 0x00040000,
VK_IMAGE_USAGE_SAMPLE_WEIGHT_BIT_QCOM = 0x00100000,
VK_IMAGE_USAGE_SAMPLE_BLOCK_MATCH_BIT_QCOM = 0x00200000,
+ VK_IMAGE_USAGE_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x02000000,
+ VK_IMAGE_USAGE_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR = 0x04000000,
VK_IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV = VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR,
+ VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT = VK_IMAGE_USAGE_HOST_TRANSFER_BIT,
VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkImageUsageFlagBits;
typedef VkFlags VkImageUsageFlags;
@@ -2412,9 +2638,15 @@ typedef enum VkPipelineStageFlagBits {
VK_PIPELINE_STAGE_TASK_SHADER_BIT_NV = VK_PIPELINE_STAGE_TASK_SHADER_BIT_EXT,
VK_PIPELINE_STAGE_MESH_SHADER_BIT_NV = VK_PIPELINE_STAGE_MESH_SHADER_BIT_EXT,
VK_PIPELINE_STAGE_NONE_KHR = VK_PIPELINE_STAGE_NONE,
+ VK_PIPELINE_STAGE_COMMAND_PREPROCESS_BIT_EXT = VK_PIPELINE_STAGE_COMMAND_PREPROCESS_BIT_NV,
VK_PIPELINE_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkPipelineStageFlagBits;
typedef VkFlags VkPipelineStageFlags;
+
+typedef enum VkMemoryMapFlagBits {
+ VK_MEMORY_MAP_PLACED_BIT_EXT = 0x00000001,
+ VK_MEMORY_MAP_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkMemoryMapFlagBits;
typedef VkFlags VkMemoryMapFlags;
typedef enum VkSparseMemoryBindFlagBits {
@@ -2537,6 +2769,7 @@ typedef VkFlags VkShaderModuleCreateFlags;
typedef enum VkPipelineCacheCreateFlagBits {
VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT = 0x00000001,
+ VK_PIPELINE_CACHE_CREATE_INTERNALLY_SYNCHRONIZED_MERGE_BIT_KHR = 0x00000008,
VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT_EXT = VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT,
VK_PIPELINE_CACHE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkPipelineCacheCreateFlagBits;
@@ -2559,8 +2792,8 @@ typedef enum VkPipelineCreateFlagBits {
VK_PIPELINE_CREATE_DISPATCH_BASE_BIT = 0x00000010,
VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT = 0x00000100,
VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT = 0x00000200,
- VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00200000,
- VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = 0x00400000,
+ VK_PIPELINE_CREATE_NO_PROTECTED_ACCESS_BIT = 0x08000000,
+ VK_PIPELINE_CREATE_PROTECTED_ACCESS_ONLY_BIT = 0x40000000,
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR = 0x00004000,
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR = 0x00008000,
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_MISS_SHADERS_BIT_KHR = 0x00010000,
@@ -2569,6 +2802,8 @@ typedef enum VkPipelineCreateFlagBits {
VK_PIPELINE_CREATE_RAY_TRACING_SKIP_AABBS_BIT_KHR = 0x00002000,
VK_PIPELINE_CREATE_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR = 0x00080000,
VK_PIPELINE_CREATE_DEFER_COMPILE_BIT_NV = 0x00000020,
+ VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = 0x00400000,
+ VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00200000,
VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR = 0x00000040,
VK_PIPELINE_CREATE_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR = 0x00000080,
VK_PIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV = 0x00040000,
@@ -2583,15 +2818,17 @@ typedef enum VkPipelineCreateFlagBits {
#ifdef VK_ENABLE_BETA_EXTENSIONS
VK_PIPELINE_CREATE_RAY_TRACING_DISPLACEMENT_MICROMAP_BIT_NV = 0x10000000,
#endif
- VK_PIPELINE_CREATE_NO_PROTECTED_ACCESS_BIT_EXT = 0x08000000,
- VK_PIPELINE_CREATE_PROTECTED_ACCESS_ONLY_BIT_EXT = 0x40000000,
VK_PIPELINE_CREATE_DISPATCH_BASE = VK_PIPELINE_CREATE_DISPATCH_BASE_BIT,
- VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR,
- VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT,
VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT_KHR = VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT,
VK_PIPELINE_CREATE_DISPATCH_BASE_KHR = VK_PIPELINE_CREATE_DISPATCH_BASE,
+ // VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT is a deprecated alias
+ VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT,
+ // VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR is a deprecated alias
+ VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR,
VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT_EXT = VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT,
VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT_EXT = VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT,
+ VK_PIPELINE_CREATE_NO_PROTECTED_ACCESS_BIT_EXT = VK_PIPELINE_CREATE_NO_PROTECTED_ACCESS_BIT,
+ VK_PIPELINE_CREATE_PROTECTED_ACCESS_ONLY_BIT_EXT = VK_PIPELINE_CREATE_PROTECTED_ACCESS_ONLY_BIT,
VK_PIPELINE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkPipelineCreateFlagBits;
typedef VkFlags VkPipelineCreateFlags;
@@ -2699,12 +2936,13 @@ typedef VkFlags VkDescriptorPoolResetFlags;
typedef enum VkDescriptorSetLayoutCreateFlagBits {
VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT = 0x00000002,
- VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR = 0x00000001,
+ VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT = 0x00000001,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT = 0x00000010,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT = 0x00000020,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV = 0x00000080,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT = 0x00000004,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_PER_STAGE_BIT_NV = 0x00000040,
+ VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR = VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT = VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_VALVE = VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT,
VK_DESCRIPTOR_SET_LAYOUT_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
@@ -2722,6 +2960,7 @@ typedef enum VkDependencyFlagBits {
VK_DEPENDENCY_DEVICE_GROUP_BIT = 0x00000004,
VK_DEPENDENCY_VIEW_LOCAL_BIT = 0x00000002,
VK_DEPENDENCY_FEEDBACK_LOOP_BIT_EXT = 0x00000008,
+ VK_DEPENDENCY_QUEUE_FAMILY_OWNERSHIP_TRANSFER_USE_ALL_STAGES_BIT_KHR = 0x00000020,
VK_DEPENDENCY_VIEW_LOCAL_BIT_KHR = VK_DEPENDENCY_VIEW_LOCAL_BIT,
VK_DEPENDENCY_DEVICE_GROUP_BIT_KHR = VK_DEPENDENCY_DEVICE_GROUP_BIT,
VK_DEPENDENCY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
@@ -2795,6 +3034,7 @@ typedef enum VkStencilFaceFlagBits {
VK_STENCIL_FACE_FRONT_BIT = 0x00000001,
VK_STENCIL_FACE_BACK_BIT = 0x00000002,
VK_STENCIL_FACE_FRONT_AND_BACK = 0x00000003,
+ // VK_STENCIL_FRONT_AND_BACK is a deprecated alias
VK_STENCIL_FRONT_AND_BACK = VK_STENCIL_FACE_FRONT_AND_BACK,
VK_STENCIL_FACE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkStencilFaceFlagBits;
@@ -3205,7 +3445,9 @@ typedef struct VkDeviceCreateInfo {
VkDeviceCreateFlags flags;
uint32_t queueCreateInfoCount;
const VkDeviceQueueCreateInfo* pQueueCreateInfos;
+ // enabledLayerCount is deprecated and should not be used
uint32_t enabledLayerCount;
+ // ppEnabledLayerNames is deprecated and should not be used
const char* const* ppEnabledLayerNames;
uint32_t enabledExtensionCount;
const char* const* ppEnabledExtensionNames;
@@ -4919,7 +5161,8 @@ typedef enum VkChromaLocation {
typedef enum VkDescriptorUpdateTemplateType {
VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET = 0,
- VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR = 1,
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS = 1,
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR = VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS,
VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR = VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET,
VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_MAX_ENUM = 0x7FFFFFFF
} VkDescriptorUpdateTemplateType;
@@ -4933,7 +5176,11 @@ typedef enum VkSubgroupFeatureFlagBits {
VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT = 0x00000020,
VK_SUBGROUP_FEATURE_CLUSTERED_BIT = 0x00000040,
VK_SUBGROUP_FEATURE_QUAD_BIT = 0x00000080,
+ VK_SUBGROUP_FEATURE_ROTATE_BIT = 0x00000200,
+ VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT = 0x00000400,
VK_SUBGROUP_FEATURE_PARTITIONED_BIT_NV = 0x00000100,
+ VK_SUBGROUP_FEATURE_ROTATE_BIT_KHR = VK_SUBGROUP_FEATURE_ROTATE_BIT,
+ VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT_KHR = VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT,
VK_SUBGROUP_FEATURE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkSubgroupFeatureFlagBits;
typedef VkFlags VkSubgroupFeatureFlags;
@@ -4979,6 +5226,9 @@ typedef enum VkExternalMemoryHandleTypeFlagBits {
VK_EXTERNAL_MEMORY_HANDLE_TYPE_ZIRCON_VMO_BIT_FUCHSIA = 0x00000800,
VK_EXTERNAL_MEMORY_HANDLE_TYPE_RDMA_ADDRESS_BIT_NV = 0x00001000,
VK_EXTERNAL_MEMORY_HANDLE_TYPE_SCREEN_BUFFER_BIT_QNX = 0x00004000,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLBUFFER_BIT_EXT = 0x00010000,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLTEXTURE_BIT_EXT = 0x00020000,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLHEAP_BIT_EXT = 0x00040000,
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OHOS_NATIVE_BUFFER_BIT_OHOS = 0x00002000,
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT,
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT,
@@ -5762,7 +6012,8 @@ typedef enum VkDriverId {
VK_DRIVER_ID_MESA_DOZEN = 23,
VK_DRIVER_ID_MESA_NVK = 24,
VK_DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA = 25,
- VK_DRIVER_ID_MESA_AGXV = 26,
+ VK_DRIVER_ID_MESA_HONEYKRISP = 26,
+ VK_DRIVER_ID_VULKAN_SC_EMULATION_ON_VULKAN = 27,
VK_DRIVER_ID_AMD_PROPRIETARY_KHR = VK_DRIVER_ID_AMD_PROPRIETARY,
VK_DRIVER_ID_AMD_OPEN_SOURCE_KHR = VK_DRIVER_ID_AMD_OPEN_SOURCE,
VK_DRIVER_ID_MESA_RADV_KHR = VK_DRIVER_ID_MESA_RADV,
@@ -6527,62 +6778,63 @@ typedef VkFlags64 VkPipelineStageFlags2;
// Flag bits for VkPipelineStageFlagBits2
typedef VkFlags64 VkPipelineStageFlagBits2;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_NONE = 0ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_NONE_KHR = 0ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT = 0x00000001ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT_KHR = 0x00000001ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_DRAW_INDIRECT_BIT = 0x00000002ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_DRAW_INDIRECT_BIT_KHR = 0x00000002ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_INPUT_BIT = 0x00000004ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_INPUT_BIT_KHR = 0x00000004ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_SHADER_BIT = 0x00000008ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_SHADER_BIT_KHR = 0x00000008ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TESSELLATION_CONTROL_SHADER_BIT_KHR = 0x00000010ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TESSELLATION_EVALUATION_SHADER_BIT_KHR = 0x00000020ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_GEOMETRY_SHADER_BIT = 0x00000040ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_GEOMETRY_SHADER_BIT_KHR = 0x00000040ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_FRAGMENT_SHADER_BIT = 0x00000080ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_FRAGMENT_SHADER_BIT_KHR = 0x00000080ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_EARLY_FRAGMENT_TESTS_BIT = 0x00000100ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_EARLY_FRAGMENT_TESTS_BIT_KHR = 0x00000100ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_LATE_FRAGMENT_TESTS_BIT = 0x00000200ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_LATE_FRAGMENT_TESTS_BIT_KHR = 0x00000200ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT_KHR = 0x00000400ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT = 0x00000800ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR = 0x00000800ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT = 0x00001000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR = 0x00001000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TRANSFER_BIT = 0x00001000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TRANSFER_BIT_KHR = 0x00001000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT = 0x00002000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT_KHR = 0x00002000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_HOST_BIT = 0x00004000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_HOST_BIT_KHR = 0x00004000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT = 0x00008000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR = 0x00008000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT = 0x00010000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT_KHR = 0x00010000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COPY_BIT = 0x100000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COPY_BIT_KHR = 0x100000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_RESOLVE_BIT = 0x200000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_RESOLVE_BIT_KHR = 0x200000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_BLIT_BIT = 0x400000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_BLIT_BIT_KHR = 0x400000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_CLEAR_BIT = 0x800000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_CLEAR_BIT_KHR = 0x800000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_INDEX_INPUT_BIT = 0x1000000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_INDEX_INPUT_BIT_KHR = 0x1000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_ATTRIBUTE_INPUT_BIT = 0x2000000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_ATTRIBUTE_INPUT_BIT_KHR = 0x2000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_PRE_RASTERIZATION_SHADERS_BIT = 0x4000000000ULL;
-static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_PRE_RASTERIZATION_SHADERS_BIT_KHR = 0x4000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VIDEO_DECODE_BIT_KHR = 0x04000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VIDEO_ENCODE_BIT_KHR = 0x08000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_NONE_KHR = 0ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT_KHR = 0x00000001ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_DRAW_INDIRECT_BIT_KHR = 0x00000002ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_INPUT_BIT_KHR = 0x00000004ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_SHADER_BIT_KHR = 0x00000008ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TESSELLATION_CONTROL_SHADER_BIT_KHR = 0x00000010ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TESSELLATION_EVALUATION_SHADER_BIT_KHR = 0x00000020ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_GEOMETRY_SHADER_BIT_KHR = 0x00000040ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_FRAGMENT_SHADER_BIT_KHR = 0x00000080ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_EARLY_FRAGMENT_TESTS_BIT_KHR = 0x00000100ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_LATE_FRAGMENT_TESTS_BIT_KHR = 0x00000200ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT_KHR = 0x00000400ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR = 0x00000800ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR = 0x00001000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TRANSFER_BIT_KHR = 0x00001000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT_KHR = 0x00002000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_HOST_BIT_KHR = 0x00004000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR = 0x00008000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT_KHR = 0x00010000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COPY_BIT_KHR = 0x100000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_RESOLVE_BIT_KHR = 0x200000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_BLIT_BIT_KHR = 0x400000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_CLEAR_BIT_KHR = 0x800000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_INDEX_INPUT_BIT_KHR = 0x1000000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_VERTEX_ATTRIBUTE_INPUT_BIT_KHR = 0x2000000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_PRE_RASTERIZATION_SHADERS_BIT_KHR = 0x4000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TRANSFORM_FEEDBACK_BIT_EXT = 0x01000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_CONDITIONAL_RENDERING_BIT_EXT = 0x00040000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COMMAND_PREPROCESS_BIT_NV = 0x00020000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_COMMAND_PREPROCESS_BIT_EXT = 0x00020000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00400000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_SHADING_RATE_IMAGE_BIT_NV = 0x00400000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ACCELERATION_STRUCTURE_BUILD_BIT_KHR = 0x02000000ULL;
@@ -6595,69 +6847,73 @@ static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_MESH_SHADER_BIT_NV = 0
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_TASK_SHADER_BIT_EXT = 0x00080000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_MESH_SHADER_BIT_EXT = 0x00100000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_SUBPASS_SHADER_BIT_HUAWEI = 0x8000000000ULL;
+// VK_PIPELINE_STAGE_2_SUBPASS_SHADING_BIT_HUAWEI is a deprecated alias
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_SUBPASS_SHADING_BIT_HUAWEI = 0x8000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_INVOCATION_MASK_BIT_HUAWEI = 0x10000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_ACCELERATION_STRUCTURE_COPY_BIT_KHR = 0x10000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_MICROMAP_BUILD_BIT_EXT = 0x40000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_CLUSTER_CULLING_SHADER_BIT_HUAWEI = 0x20000000000ULL;
static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_OPTICAL_FLOW_BIT_NV = 0x20000000ULL;
+static const VkPipelineStageFlagBits2 VK_PIPELINE_STAGE_2_CONVERT_COOPERATIVE_VECTOR_MATRIX_BIT_NV = 0x100000000000ULL;
typedef VkFlags64 VkAccessFlags2;
// Flag bits for VkAccessFlagBits2
typedef VkFlags64 VkAccessFlagBits2;
static const VkAccessFlagBits2 VK_ACCESS_2_NONE = 0ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_NONE_KHR = 0ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_INDIRECT_COMMAND_READ_BIT = 0x00000001ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_INDIRECT_COMMAND_READ_BIT_KHR = 0x00000001ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_INDEX_READ_BIT = 0x00000002ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_INDEX_READ_BIT_KHR = 0x00000002ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_VERTEX_ATTRIBUTE_READ_BIT_KHR = 0x00000004ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_UNIFORM_READ_BIT = 0x00000008ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_UNIFORM_READ_BIT_KHR = 0x00000008ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT = 0x00000010ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT_KHR = 0x00000010ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_READ_BIT = 0x00000020ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_READ_BIT_KHR = 0x00000020ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_WRITE_BIT = 0x00000040ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_WRITE_BIT_KHR = 0x00000040ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT = 0x00000080ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR = 0x00000080ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR = 0x00000100ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_READ_BIT_KHR = 0x00000200ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT_KHR = 0x00000400ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFER_READ_BIT = 0x00000800ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFER_READ_BIT_KHR = 0x00000800ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFER_WRITE_BIT = 0x00001000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR = 0x00001000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_HOST_READ_BIT = 0x00002000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_HOST_READ_BIT_KHR = 0x00002000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_HOST_WRITE_BIT = 0x00004000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_HOST_WRITE_BIT_KHR = 0x00004000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_MEMORY_READ_BIT = 0x00008000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_MEMORY_READ_BIT_KHR = 0x00008000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_MEMORY_WRITE_BIT = 0x00010000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_MEMORY_WRITE_BIT_KHR = 0x00010000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_SAMPLED_READ_BIT = 0x100000000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_SAMPLED_READ_BIT_KHR = 0x100000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_STORAGE_READ_BIT = 0x200000000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_STORAGE_READ_BIT_KHR = 0x200000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT = 0x400000000ULL;
-static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT_KHR = 0x400000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_VIDEO_DECODE_READ_BIT_KHR = 0x800000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_VIDEO_DECODE_WRITE_BIT_KHR = 0x1000000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_VIDEO_ENCODE_READ_BIT_KHR = 0x2000000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_VIDEO_ENCODE_WRITE_BIT_KHR = 0x4000000000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_NONE_KHR = 0ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_INDIRECT_COMMAND_READ_BIT_KHR = 0x00000001ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_INDEX_READ_BIT_KHR = 0x00000002ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_VERTEX_ATTRIBUTE_READ_BIT_KHR = 0x00000004ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_UNIFORM_READ_BIT_KHR = 0x00000008ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT_KHR = 0x00000010ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_READ_BIT_KHR = 0x00000020ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_WRITE_BIT_KHR = 0x00000040ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR = 0x00000080ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR = 0x00000100ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_READ_BIT_KHR = 0x00000200ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT_KHR = 0x00000400ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFER_READ_BIT_KHR = 0x00000800ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR = 0x00001000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_HOST_READ_BIT_KHR = 0x00002000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_HOST_WRITE_BIT_KHR = 0x00004000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_MEMORY_READ_BIT_KHR = 0x00008000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_MEMORY_WRITE_BIT_KHR = 0x00010000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_SAMPLED_READ_BIT_KHR = 0x100000000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_STORAGE_READ_BIT_KHR = 0x200000000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT_KHR = 0x400000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFORM_FEEDBACK_WRITE_BIT_EXT = 0x02000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFORM_FEEDBACK_COUNTER_READ_BIT_EXT = 0x04000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_TRANSFORM_FEEDBACK_COUNTER_WRITE_BIT_EXT = 0x08000000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_CONDITIONAL_RENDERING_READ_BIT_EXT = 0x00100000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_COMMAND_PREPROCESS_READ_BIT_NV = 0x00020000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_COMMAND_PREPROCESS_WRITE_BIT_NV = 0x00040000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_COMMAND_PREPROCESS_READ_BIT_EXT = 0x00020000ULL;
+static const VkAccessFlagBits2 VK_ACCESS_2_COMMAND_PREPROCESS_WRITE_BIT_EXT = 0x00040000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_FRAGMENT_SHADING_RATE_ATTACHMENT_READ_BIT_KHR = 0x00800000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_SHADING_RATE_IMAGE_READ_BIT_NV = 0x00800000ULL;
static const VkAccessFlagBits2 VK_ACCESS_2_ACCELERATION_STRUCTURE_READ_BIT_KHR = 0x00200000ULL;
@@ -6686,11 +6942,12 @@ typedef enum VkRenderingFlagBits {
VK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT = 0x00000001,
VK_RENDERING_SUSPENDING_BIT = 0x00000002,
VK_RENDERING_RESUMING_BIT = 0x00000004,
- VK_RENDERING_CONTENTS_INLINE_BIT_EXT = 0x00000010,
VK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT = 0x00000008,
+ VK_RENDERING_CONTENTS_INLINE_BIT_KHR = 0x00000010,
VK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT_KHR = VK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT,
VK_RENDERING_SUSPENDING_BIT_KHR = VK_RENDERING_SUSPENDING_BIT,
VK_RENDERING_RESUMING_BIT_KHR = VK_RENDERING_RESUMING_BIT,
+ VK_RENDERING_CONTENTS_INLINE_BIT_EXT = VK_RENDERING_CONTENTS_INLINE_BIT_KHR,
VK_RENDERING_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
} VkRenderingFlagBits;
typedef VkFlags VkRenderingFlags;
@@ -6699,59 +6956,33 @@ typedef VkFlags64 VkFormatFeatureFlags2;
// Flag bits for VkFormatFeatureFlagBits2
typedef VkFlags64 VkFormatFeatureFlagBits2;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT = 0x00000001ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT_KHR = 0x00000001ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT = 0x00000002ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT_KHR = 0x00000002ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_BIT_KHR = 0x00000004ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT_KHR = 0x00000008ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT = 0x00000010ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT_KHR = 0x00000010ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_ATOMIC_BIT_KHR = 0x00000020ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VERTEX_BUFFER_BIT = 0x00000040ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VERTEX_BUFFER_BIT_KHR = 0x00000040ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT = 0x00000080ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT_KHR = 0x00000080ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT_KHR = 0x00000100ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR = 0x00000200ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BLIT_SRC_BIT = 0x00000400ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BLIT_SRC_BIT_KHR = 0x00000400ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BLIT_DST_BIT = 0x00000800ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BLIT_DST_BIT_KHR = 0x00000800ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_BIT_KHR = 0x00001000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT = 0x00002000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT = 0x00002000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT = 0x00004000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT_KHR = 0x00004000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TRANSFER_DST_BIT = 0x00008000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TRANSFER_DST_BIT_KHR = 0x00008000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT = 0x00010000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT_KHR = 0x00010000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_MIDPOINT_CHROMA_SAMPLES_BIT = 0x00020000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_MIDPOINT_CHROMA_SAMPLES_BIT_KHR = 0x00020000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT = 0x00040000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR = 0x00040000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT = 0x00080000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR = 0x00080000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT = 0x00100000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR = 0x00100000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT = 0x00200000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR = 0x00200000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DISJOINT_BIT = 0x00400000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DISJOINT_BIT_KHR = 0x00400000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COSITED_CHROMA_SAMPLES_BIT = 0x00800000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COSITED_CHROMA_SAMPLES_BIT_KHR = 0x00800000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT = 0x80000000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR = 0x80000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT = 0x100000000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR = 0x100000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT = 0x200000000ULL;
-static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT_KHR = 0x200000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT = 0x00002000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT = 0x400000000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_DECODE_OUTPUT_BIT_KHR = 0x02000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_DECODE_DPB_BIT_KHR = 0x04000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR = 0x20000000ULL;
@@ -6760,6 +6991,34 @@ static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_FRAGMENT_SHADING_RATE_
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT = 0x400000000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_ENCODE_INPUT_BIT_KHR = 0x08000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_ENCODE_DPB_BIT_KHR = 0x10000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT_KHR = 0x00000001ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT_KHR = 0x00000002ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_BIT_KHR = 0x00000004ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT_KHR = 0x00000008ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT_KHR = 0x00000010ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_ATOMIC_BIT_KHR = 0x00000020ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VERTEX_BUFFER_BIT_KHR = 0x00000040ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT_KHR = 0x00000080ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT_KHR = 0x00000100ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR = 0x00000200ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BLIT_SRC_BIT_KHR = 0x00000400ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BLIT_DST_BIT_KHR = 0x00000800ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_BIT_KHR = 0x00001000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT_KHR = 0x00004000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_TRANSFER_DST_BIT_KHR = 0x00008000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_MIDPOINT_CHROMA_SAMPLES_BIT_KHR = 0x00020000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR = 0x00040000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR = 0x00080000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR = 0x00100000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR = 0x00200000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_DISJOINT_BIT_KHR = 0x00400000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_COSITED_CHROMA_SAMPLES_BIT_KHR = 0x00800000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR = 0x80000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR = 0x100000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT_KHR = 0x200000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT_KHR = 0x00010000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT = 0x00002000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_ACCELERATION_STRUCTURE_RADIUS_BUFFER_BIT_NV = 0x8000000000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV = 0x4000000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_WEIGHT_IMAGE_BIT_QCOM = 0x400000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_WEIGHT_SAMPLED_IMAGE_BIT_QCOM = 0x800000000ULL;
@@ -6768,6 +7027,8 @@ static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_BOX_FILTER_SAMPLED_BIT
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_OPTICAL_FLOW_IMAGE_BIT_NV = 0x10000000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_OPTICAL_FLOW_VECTOR_BIT_NV = 0x20000000000ULL;
static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_OPTICAL_FLOW_COST_BIT_NV = 0x40000000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x2000000000000ULL;
+static const VkFormatFeatureFlagBits2 VK_FORMAT_FEATURE_2_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR = 0x4000000000000ULL;
typedef struct VkPhysicalDeviceVulkan13Features {
VkStructureType sType;
@@ -7521,436 +7782,1168 @@ VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSparseMemoryRequirements(
#endif
-// VK_KHR_surface is a preprocessor guard. Do not pass it to API calls.
-#define VK_KHR_surface 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
-#define VK_KHR_SURFACE_SPEC_VERSION 25
-#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface"
+// VK_VERSION_1_4 is a preprocessor guard. Do not pass it to API calls.
+#define VK_VERSION_1_4 1
+// Vulkan 1.4 version number
+#define VK_API_VERSION_1_4 VK_MAKE_API_VERSION(0, 1, 4, 0)// Patch version should always be set to 0
+
+#define VK_MAX_GLOBAL_PRIORITY_SIZE 16U
+
+typedef enum VkPipelineRobustnessBufferBehavior {
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DEVICE_DEFAULT = 0,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DISABLED = 1,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS = 2,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2 = 3,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DEVICE_DEFAULT_EXT = VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DEVICE_DEFAULT,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DISABLED_EXT = VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DISABLED,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT = VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT = VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2,
+ VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_MAX_ENUM = 0x7FFFFFFF
+} VkPipelineRobustnessBufferBehavior;
+
+typedef enum VkPipelineRobustnessImageBehavior {
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT = 0,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED = 1,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS = 2,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2 = 3,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT_EXT = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED_EXT = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_EXT = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2_EXT = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2,
+ VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_MAX_ENUM = 0x7FFFFFFF
+} VkPipelineRobustnessImageBehavior;
+
+typedef enum VkQueueGlobalPriority {
+ VK_QUEUE_GLOBAL_PRIORITY_LOW = 128,
+ VK_QUEUE_GLOBAL_PRIORITY_MEDIUM = 256,
+ VK_QUEUE_GLOBAL_PRIORITY_HIGH = 512,
+ VK_QUEUE_GLOBAL_PRIORITY_REALTIME = 1024,
+ VK_QUEUE_GLOBAL_PRIORITY_LOW_EXT = VK_QUEUE_GLOBAL_PRIORITY_LOW,
+ VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT = VK_QUEUE_GLOBAL_PRIORITY_MEDIUM,
+ VK_QUEUE_GLOBAL_PRIORITY_HIGH_EXT = VK_QUEUE_GLOBAL_PRIORITY_HIGH,
+ VK_QUEUE_GLOBAL_PRIORITY_REALTIME_EXT = VK_QUEUE_GLOBAL_PRIORITY_REALTIME,
+ VK_QUEUE_GLOBAL_PRIORITY_LOW_KHR = VK_QUEUE_GLOBAL_PRIORITY_LOW,
+ VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR = VK_QUEUE_GLOBAL_PRIORITY_MEDIUM,
+ VK_QUEUE_GLOBAL_PRIORITY_HIGH_KHR = VK_QUEUE_GLOBAL_PRIORITY_HIGH,
+ VK_QUEUE_GLOBAL_PRIORITY_REALTIME_KHR = VK_QUEUE_GLOBAL_PRIORITY_REALTIME,
+ VK_QUEUE_GLOBAL_PRIORITY_MAX_ENUM = 0x7FFFFFFF
+} VkQueueGlobalPriority;
+
+typedef enum VkLineRasterizationMode {
+ VK_LINE_RASTERIZATION_MODE_DEFAULT = 0,
+ VK_LINE_RASTERIZATION_MODE_RECTANGULAR = 1,
+ VK_LINE_RASTERIZATION_MODE_BRESENHAM = 2,
+ VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH = 3,
+ VK_LINE_RASTERIZATION_MODE_DEFAULT_EXT = VK_LINE_RASTERIZATION_MODE_DEFAULT,
+ VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT = VK_LINE_RASTERIZATION_MODE_RECTANGULAR,
+ VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT = VK_LINE_RASTERIZATION_MODE_BRESENHAM,
+ VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT = VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH,
+ VK_LINE_RASTERIZATION_MODE_DEFAULT_KHR = VK_LINE_RASTERIZATION_MODE_DEFAULT,
+ VK_LINE_RASTERIZATION_MODE_RECTANGULAR_KHR = VK_LINE_RASTERIZATION_MODE_RECTANGULAR,
+ VK_LINE_RASTERIZATION_MODE_BRESENHAM_KHR = VK_LINE_RASTERIZATION_MODE_BRESENHAM,
+ VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR = VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH,
+ VK_LINE_RASTERIZATION_MODE_MAX_ENUM = 0x7FFFFFFF
+} VkLineRasterizationMode;
+
+typedef enum VkMemoryUnmapFlagBits {
+ VK_MEMORY_UNMAP_RESERVE_BIT_EXT = 0x00000001,
+ VK_MEMORY_UNMAP_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkMemoryUnmapFlagBits;
+typedef VkFlags VkMemoryUnmapFlags;
+typedef VkFlags64 VkPipelineCreateFlags2;
+
+// Flag bits for VkPipelineCreateFlagBits2
+typedef VkFlags64 VkPipelineCreateFlagBits2;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DISABLE_OPTIMIZATION_BIT = 0x00000001ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_ALLOW_DERIVATIVES_BIT = 0x00000002ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DERIVATIVE_BIT = 0x00000004ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_VIEW_INDEX_FROM_DEVICE_INDEX_BIT = 0x00000008ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DISPATCH_BASE_BIT = 0x00000010ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT = 0x00000100ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_EARLY_RETURN_ON_FAILURE_BIT = 0x00000200ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_NO_PROTECTED_ACCESS_BIT = 0x08000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_PROTECTED_ACCESS_ONLY_BIT = 0x40000000ULL;
+#ifdef VK_ENABLE_BETA_EXTENSIONS
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_EXECUTION_GRAPH_BIT_AMDX = 0x100000000ULL;
+#endif
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_SKIP_BUILT_IN_PRIMITIVES_BIT_KHR = 0x00001000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_ALLOW_SPHERES_AND_LINEAR_SWEPT_SPHERES_BIT_NV = 0x200000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT = 0x400000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DISABLE_OPTIMIZATION_BIT_KHR = 0x00000001ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_ALLOW_DERIVATIVES_BIT_KHR = 0x00000002ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DERIVATIVE_BIT_KHR = 0x00000004ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_VIEW_INDEX_FROM_DEVICE_INDEX_BIT_KHR = 0x00000008ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DISPATCH_BASE_BIT_KHR = 0x00000010ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DEFER_COMPILE_BIT_NV = 0x00000020ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_CAPTURE_STATISTICS_BIT_KHR = 0x00000040ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR = 0x00000080ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT_KHR = 0x00000100ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_EARLY_RETURN_ON_FAILURE_BIT_KHR = 0x00000200ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_LINK_TIME_OPTIMIZATION_BIT_EXT = 0x00000400ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RETAIN_LINK_TIME_OPTIMIZATION_INFO_BIT_EXT = 0x00800000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR = 0x00000800ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_SKIP_TRIANGLES_BIT_KHR = 0x00001000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_SKIP_AABBS_BIT_KHR = 0x00002000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR = 0x00004000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR = 0x00008000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_MISS_SHADERS_BIT_KHR = 0x00010000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR = 0x00020000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR = 0x00080000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_INDIRECT_BINDABLE_BIT_NV = 0x00040000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_ALLOW_MOTION_BIT_NV = 0x00100000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00200000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = 0x00400000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_OPACITY_MICROMAP_BIT_EXT = 0x01000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x02000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x04000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_NO_PROTECTED_ACCESS_BIT_EXT = 0x08000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_PROTECTED_ACCESS_ONLY_BIT_EXT = 0x40000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_RAY_TRACING_DISPLACEMENT_MICROMAP_BIT_NV = 0x10000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DESCRIPTOR_BUFFER_BIT_EXT = 0x20000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_DISALLOW_OPACITY_MICROMAP_BIT_ARM = 0x2000000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_CAPTURE_DATA_BIT_KHR = 0x80000000ULL;
+static const VkPipelineCreateFlagBits2 VK_PIPELINE_CREATE_2_INDIRECT_BINDABLE_BIT_EXT = 0x4000000000ULL;
+
+typedef VkFlags64 VkBufferUsageFlags2;
+
+// Flag bits for VkBufferUsageFlagBits2
+typedef VkFlags64 VkBufferUsageFlagBits2;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_TRANSFER_SRC_BIT = 0x00000001ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_TRANSFER_DST_BIT = 0x00000002ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_STORAGE_TEXEL_BUFFER_BIT = 0x00000008ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_UNIFORM_BUFFER_BIT = 0x00000010ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_STORAGE_BUFFER_BIT = 0x00000020ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_INDEX_BUFFER_BIT = 0x00000040ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_VERTEX_BUFFER_BIT = 0x00000080ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_INDIRECT_BUFFER_BIT = 0x00000100ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_SHADER_DEVICE_ADDRESS_BIT = 0x00020000ULL;
+#ifdef VK_ENABLE_BETA_EXTENSIONS
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_EXECUTION_GRAPH_SCRATCH_BIT_AMDX = 0x02000000ULL;
+#endif
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_TRANSFER_SRC_BIT_KHR = 0x00000001ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_TRANSFER_DST_BIT_KHR = 0x00000002ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_UNIFORM_TEXEL_BUFFER_BIT_KHR = 0x00000004ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_STORAGE_TEXEL_BUFFER_BIT_KHR = 0x00000008ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_UNIFORM_BUFFER_BIT_KHR = 0x00000010ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_STORAGE_BUFFER_BIT_KHR = 0x00000020ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_INDEX_BUFFER_BIT_KHR = 0x00000040ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_VERTEX_BUFFER_BIT_KHR = 0x00000080ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_INDIRECT_BUFFER_BIT_KHR = 0x00000100ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_CONDITIONAL_RENDERING_BIT_EXT = 0x00000200ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_SHADER_BINDING_TABLE_BIT_KHR = 0x00000400ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_RAY_TRACING_BIT_NV = 0x00000400ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT = 0x00000800ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT = 0x00001000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_VIDEO_DECODE_SRC_BIT_KHR = 0x00002000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_VIDEO_DECODE_DST_BIT_KHR = 0x00004000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_VIDEO_ENCODE_DST_BIT_KHR = 0x00008000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_VIDEO_ENCODE_SRC_BIT_KHR = 0x00010000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_SHADER_DEVICE_ADDRESS_BIT_KHR = 0x00020000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR = 0x00080000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR = 0x00100000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT = 0x00200000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT = 0x00400000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT = 0x04000000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT = 0x00800000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_MICROMAP_STORAGE_BIT_EXT = 0x01000000ULL;
+static const VkBufferUsageFlagBits2 VK_BUFFER_USAGE_2_PREPROCESS_BUFFER_BIT_EXT = 0x80000000ULL;
+
+
+typedef enum VkHostImageCopyFlagBits {
+ VK_HOST_IMAGE_COPY_MEMCPY = 0x00000001,
+ VK_HOST_IMAGE_COPY_MEMCPY_EXT = VK_HOST_IMAGE_COPY_MEMCPY,
+ VK_HOST_IMAGE_COPY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkHostImageCopyFlagBits;
+typedef VkFlags VkHostImageCopyFlags;
+typedef struct VkPhysicalDeviceVulkan14Features {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 globalPriorityQuery;
+ VkBool32 shaderSubgroupRotate;
+ VkBool32 shaderSubgroupRotateClustered;
+ VkBool32 shaderFloatControls2;
+ VkBool32 shaderExpectAssume;
+ VkBool32 rectangularLines;
+ VkBool32 bresenhamLines;
+ VkBool32 smoothLines;
+ VkBool32 stippledRectangularLines;
+ VkBool32 stippledBresenhamLines;
+ VkBool32 stippledSmoothLines;
+ VkBool32 vertexAttributeInstanceRateDivisor;
+ VkBool32 vertexAttributeInstanceRateZeroDivisor;
+ VkBool32 indexTypeUint8;
+ VkBool32 dynamicRenderingLocalRead;
+ VkBool32 maintenance5;
+ VkBool32 maintenance6;
+ VkBool32 pipelineProtectedAccess;
+ VkBool32 pipelineRobustness;
+ VkBool32 hostImageCopy;
+ VkBool32 pushDescriptor;
+} VkPhysicalDeviceVulkan14Features;
-typedef enum VkPresentModeKHR {
- VK_PRESENT_MODE_IMMEDIATE_KHR = 0,
- VK_PRESENT_MODE_MAILBOX_KHR = 1,
- VK_PRESENT_MODE_FIFO_KHR = 2,
- VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3,
- VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR = 1000111000,
- VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR = 1000111001,
- VK_PRESENT_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkPresentModeKHR;
+typedef struct VkPhysicalDeviceVulkan14Properties {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t lineSubPixelPrecisionBits;
+ uint32_t maxVertexAttribDivisor;
+ VkBool32 supportsNonZeroFirstInstance;
+ uint32_t maxPushDescriptors;
+ VkBool32 dynamicRenderingLocalReadDepthStencilAttachments;
+ VkBool32 dynamicRenderingLocalReadMultisampledAttachments;
+ VkBool32 earlyFragmentMultisampleCoverageAfterSampleCounting;
+ VkBool32 earlyFragmentSampleMaskTestBeforeSampleCounting;
+ VkBool32 depthStencilSwizzleOneSupport;
+ VkBool32 polygonModePointSize;
+ VkBool32 nonStrictSinglePixelWideLinesUseParallelogram;
+ VkBool32 nonStrictWideLinesUseParallelogram;
+ VkBool32 blockTexelViewCompatibleMultipleLayers;
+ uint32_t maxCombinedImageSamplerDescriptorCount;
+ VkBool32 fragmentShadingRateClampCombinerInputs;
+ VkPipelineRobustnessBufferBehavior defaultRobustnessStorageBuffers;
+ VkPipelineRobustnessBufferBehavior defaultRobustnessUniformBuffers;
+ VkPipelineRobustnessBufferBehavior defaultRobustnessVertexInputs;
+ VkPipelineRobustnessImageBehavior defaultRobustnessImages;
+ uint32_t copySrcLayoutCount;
+ VkImageLayout* pCopySrcLayouts;
+ uint32_t copyDstLayoutCount;
+ VkImageLayout* pCopyDstLayouts;
+ uint8_t optimalTilingLayoutUUID[VK_UUID_SIZE];
+ VkBool32 identicalMemoryTypeRequirements;
+} VkPhysicalDeviceVulkan14Properties;
+
+typedef struct VkDeviceQueueGlobalPriorityCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkQueueGlobalPriority globalPriority;
+} VkDeviceQueueGlobalPriorityCreateInfo;
-typedef enum VkColorSpaceKHR {
- VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0,
- VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104001,
- VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT = 1000104002,
- VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT = 1000104003,
- VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT = 1000104004,
- VK_COLOR_SPACE_BT709_LINEAR_EXT = 1000104005,
- VK_COLOR_SPACE_BT709_NONLINEAR_EXT = 1000104006,
- VK_COLOR_SPACE_BT2020_LINEAR_EXT = 1000104007,
- VK_COLOR_SPACE_HDR10_ST2084_EXT = 1000104008,
- VK_COLOR_SPACE_DOLBYVISION_EXT = 1000104009,
- VK_COLOR_SPACE_HDR10_HLG_EXT = 1000104010,
- VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT = 1000104011,
- VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT = 1000104012,
- VK_COLOR_SPACE_PASS_THROUGH_EXT = 1000104013,
- VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT = 1000104014,
- VK_COLOR_SPACE_DISPLAY_NATIVE_AMD = 1000213000,
- VK_COLORSPACE_SRGB_NONLINEAR_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
- VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT,
- VK_COLOR_SPACE_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkColorSpaceKHR;
+typedef struct VkPhysicalDeviceGlobalPriorityQueryFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 globalPriorityQuery;
+} VkPhysicalDeviceGlobalPriorityQueryFeatures;
-typedef enum VkSurfaceTransformFlagBitsKHR {
- VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001,
- VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002,
- VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004,
- VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008,
- VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010,
- VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020,
- VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040,
- VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080,
- VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100,
- VK_SURFACE_TRANSFORM_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkSurfaceTransformFlagBitsKHR;
+typedef struct VkQueueFamilyGlobalPriorityProperties {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t priorityCount;
+ VkQueueGlobalPriority priorities[VK_MAX_GLOBAL_PRIORITY_SIZE];
+} VkQueueFamilyGlobalPriorityProperties;
-typedef enum VkCompositeAlphaFlagBitsKHR {
- VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
- VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
- VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
- VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
- VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkCompositeAlphaFlagBitsKHR;
-typedef VkFlags VkCompositeAlphaFlagsKHR;
-typedef VkFlags VkSurfaceTransformFlagsKHR;
-typedef struct VkSurfaceCapabilitiesKHR {
- uint32_t minImageCount;
- uint32_t maxImageCount;
- VkExtent2D currentExtent;
- VkExtent2D minImageExtent;
- VkExtent2D maxImageExtent;
- uint32_t maxImageArrayLayers;
- VkSurfaceTransformFlagsKHR supportedTransforms;
- VkSurfaceTransformFlagBitsKHR currentTransform;
- VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
- VkImageUsageFlags supportedUsageFlags;
-} VkSurfaceCapabilitiesKHR;
+typedef struct VkPhysicalDeviceShaderSubgroupRotateFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderSubgroupRotate;
+ VkBool32 shaderSubgroupRotateClustered;
+} VkPhysicalDeviceShaderSubgroupRotateFeatures;
-typedef struct VkSurfaceFormatKHR {
- VkFormat format;
- VkColorSpaceKHR colorSpace;
-} VkSurfaceFormatKHR;
+typedef struct VkPhysicalDeviceShaderFloatControls2Features {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderFloatControls2;
+} VkPhysicalDeviceShaderFloatControls2Features;
-typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes);
+typedef struct VkPhysicalDeviceShaderExpectAssumeFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderExpectAssume;
+} VkPhysicalDeviceShaderExpectAssumeFeatures;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(
- VkInstance instance,
- VkSurfaceKHR surface,
- const VkAllocationCallbacks* pAllocator);
+typedef struct VkPhysicalDeviceLineRasterizationFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 rectangularLines;
+ VkBool32 bresenhamLines;
+ VkBool32 smoothLines;
+ VkBool32 stippledRectangularLines;
+ VkBool32 stippledBresenhamLines;
+ VkBool32 stippledSmoothLines;
+} VkPhysicalDeviceLineRasterizationFeatures;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR(
- VkPhysicalDevice physicalDevice,
- uint32_t queueFamilyIndex,
- VkSurfaceKHR surface,
- VkBool32* pSupported);
+typedef struct VkPhysicalDeviceLineRasterizationProperties {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t lineSubPixelPrecisionBits;
+} VkPhysicalDeviceLineRasterizationProperties;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
- VkPhysicalDevice physicalDevice,
- VkSurfaceKHR surface,
- VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
+typedef struct VkPipelineRasterizationLineStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkLineRasterizationMode lineRasterizationMode;
+ VkBool32 stippledLineEnable;
+ uint32_t lineStippleFactor;
+ uint16_t lineStipplePattern;
+} VkPipelineRasterizationLineStateCreateInfo;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(
- VkPhysicalDevice physicalDevice,
- VkSurfaceKHR surface,
- uint32_t* pSurfaceFormatCount,
- VkSurfaceFormatKHR* pSurfaceFormats);
+typedef struct VkPhysicalDeviceVertexAttributeDivisorProperties {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxVertexAttribDivisor;
+ VkBool32 supportsNonZeroFirstInstance;
+} VkPhysicalDeviceVertexAttributeDivisorProperties;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(
- VkPhysicalDevice physicalDevice,
- VkSurfaceKHR surface,
- uint32_t* pPresentModeCount,
- VkPresentModeKHR* pPresentModes);
-#endif
+typedef struct VkVertexInputBindingDivisorDescription {
+ uint32_t binding;
+ uint32_t divisor;
+} VkVertexInputBindingDivisorDescription;
+typedef struct VkPipelineVertexInputDivisorStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t vertexBindingDivisorCount;
+ const VkVertexInputBindingDivisorDescription* pVertexBindingDivisors;
+} VkPipelineVertexInputDivisorStateCreateInfo;
-// VK_KHR_swapchain is a preprocessor guard. Do not pass it to API calls.
-#define VK_KHR_swapchain 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR)
-#define VK_KHR_SWAPCHAIN_SPEC_VERSION 70
-#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain"
+typedef struct VkPhysicalDeviceVertexAttributeDivisorFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 vertexAttributeInstanceRateDivisor;
+ VkBool32 vertexAttributeInstanceRateZeroDivisor;
+} VkPhysicalDeviceVertexAttributeDivisorFeatures;
-typedef enum VkSwapchainCreateFlagBitsKHR {
- VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR = 0x00000001,
- VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR = 0x00000002,
- VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR = 0x00000004,
- VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT = 0x00000008,
- VK_SWAPCHAIN_CREATE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkSwapchainCreateFlagBitsKHR;
-typedef VkFlags VkSwapchainCreateFlagsKHR;
+typedef struct VkPhysicalDeviceIndexTypeUint8Features {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 indexTypeUint8;
+} VkPhysicalDeviceIndexTypeUint8Features;
-typedef enum VkDeviceGroupPresentModeFlagBitsKHR {
- VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR = 0x00000001,
- VK_DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHR = 0x00000002,
- VK_DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHR = 0x00000004,
- VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHR = 0x00000008,
- VK_DEVICE_GROUP_PRESENT_MODE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkDeviceGroupPresentModeFlagBitsKHR;
-typedef VkFlags VkDeviceGroupPresentModeFlagsKHR;
-typedef struct VkSwapchainCreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkSwapchainCreateFlagsKHR flags;
- VkSurfaceKHR surface;
- uint32_t minImageCount;
- VkFormat imageFormat;
- VkColorSpaceKHR imageColorSpace;
- VkExtent2D imageExtent;
- uint32_t imageArrayLayers;
- VkImageUsageFlags imageUsage;
- VkSharingMode imageSharingMode;
- uint32_t queueFamilyIndexCount;
- const uint32_t* pQueueFamilyIndices;
- VkSurfaceTransformFlagBitsKHR preTransform;
- VkCompositeAlphaFlagBitsKHR compositeAlpha;
- VkPresentModeKHR presentMode;
- VkBool32 clipped;
- VkSwapchainKHR oldSwapchain;
-} VkSwapchainCreateInfoKHR;
+typedef struct VkMemoryMapInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkMemoryMapFlags flags;
+ VkDeviceMemory memory;
+ VkDeviceSize offset;
+ VkDeviceSize size;
+} VkMemoryMapInfo;
-typedef struct VkPresentInfoKHR {
- VkStructureType sType;
- const void* pNext;
- uint32_t waitSemaphoreCount;
- const VkSemaphore* pWaitSemaphores;
- uint32_t swapchainCount;
- const VkSwapchainKHR* pSwapchains;
- const uint32_t* pImageIndices;
- VkResult* pResults;
-} VkPresentInfoKHR;
+typedef struct VkMemoryUnmapInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkMemoryUnmapFlags flags;
+ VkDeviceMemory memory;
+} VkMemoryUnmapInfo;
-typedef struct VkImageSwapchainCreateInfoKHR {
+typedef struct VkPhysicalDeviceMaintenance5Features {
VkStructureType sType;
- const void* pNext;
- VkSwapchainKHR swapchain;
-} VkImageSwapchainCreateInfoKHR;
+ void* pNext;
+ VkBool32 maintenance5;
+} VkPhysicalDeviceMaintenance5Features;
-typedef struct VkBindImageMemorySwapchainInfoKHR {
+typedef struct VkPhysicalDeviceMaintenance5Properties {
VkStructureType sType;
- const void* pNext;
- VkSwapchainKHR swapchain;
- uint32_t imageIndex;
-} VkBindImageMemorySwapchainInfoKHR;
+ void* pNext;
+ VkBool32 earlyFragmentMultisampleCoverageAfterSampleCounting;
+ VkBool32 earlyFragmentSampleMaskTestBeforeSampleCounting;
+ VkBool32 depthStencilSwizzleOneSupport;
+ VkBool32 polygonModePointSize;
+ VkBool32 nonStrictSinglePixelWideLinesUseParallelogram;
+ VkBool32 nonStrictWideLinesUseParallelogram;
+} VkPhysicalDeviceMaintenance5Properties;
-typedef struct VkAcquireNextImageInfoKHR {
+typedef struct VkRenderingAreaInfo {
VkStructureType sType;
const void* pNext;
- VkSwapchainKHR swapchain;
- uint64_t timeout;
- VkSemaphore semaphore;
- VkFence fence;
- uint32_t deviceMask;
-} VkAcquireNextImageInfoKHR;
+ uint32_t viewMask;
+ uint32_t colorAttachmentCount;
+ const VkFormat* pColorAttachmentFormats;
+ VkFormat depthAttachmentFormat;
+ VkFormat stencilAttachmentFormat;
+} VkRenderingAreaInfo;
-typedef struct VkDeviceGroupPresentCapabilitiesKHR {
- VkStructureType sType;
- void* pNext;
- uint32_t presentMask[VK_MAX_DEVICE_GROUP_SIZE];
- VkDeviceGroupPresentModeFlagsKHR modes;
-} VkDeviceGroupPresentCapabilitiesKHR;
+typedef struct VkImageSubresource2 {
+ VkStructureType sType;
+ void* pNext;
+ VkImageSubresource imageSubresource;
+} VkImageSubresource2;
-typedef struct VkDeviceGroupPresentInfoKHR {
- VkStructureType sType;
- const void* pNext;
- uint32_t swapchainCount;
- const uint32_t* pDeviceMasks;
- VkDeviceGroupPresentModeFlagBitsKHR mode;
-} VkDeviceGroupPresentInfoKHR;
+typedef struct VkDeviceImageSubresourceInfo {
+ VkStructureType sType;
+ const void* pNext;
+ const VkImageCreateInfo* pCreateInfo;
+ const VkImageSubresource2* pSubresource;
+} VkDeviceImageSubresourceInfo;
-typedef struct VkDeviceGroupSwapchainCreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkDeviceGroupPresentModeFlagsKHR modes;
-} VkDeviceGroupSwapchainCreateInfoKHR;
+typedef struct VkSubresourceLayout2 {
+ VkStructureType sType;
+ void* pNext;
+ VkSubresourceLayout subresourceLayout;
+} VkSubresourceLayout2;
-typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain);
-typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator);
-typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages);
-typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex);
-typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupPresentCapabilitiesKHR)(VkDevice device, VkDeviceGroupPresentCapabilitiesKHR* pDeviceGroupPresentCapabilities);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupSurfacePresentModesKHR)(VkDevice device, VkSurfaceKHR surface, VkDeviceGroupPresentModeFlagsKHR* pModes);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDevicePresentRectanglesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pRectCount, VkRect2D* pRects);
-typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImage2KHR)(VkDevice device, const VkAcquireNextImageInfoKHR* pAcquireInfo, uint32_t* pImageIndex);
+typedef struct VkPipelineCreateFlags2CreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCreateFlags2 flags;
+} VkPipelineCreateFlags2CreateInfo;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR(
- VkDevice device,
- const VkSwapchainCreateInfoKHR* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkSwapchainKHR* pSwapchain);
+typedef struct VkBufferUsageFlags2CreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkBufferUsageFlags2 usage;
+} VkBufferUsageFlags2CreateInfo;
-VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR(
- VkDevice device,
- VkSwapchainKHR swapchain,
- const VkAllocationCallbacks* pAllocator);
+typedef struct VkPhysicalDevicePushDescriptorProperties {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxPushDescriptors;
+} VkPhysicalDevicePushDescriptorProperties;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(
- VkDevice device,
- VkSwapchainKHR swapchain,
- uint32_t* pSwapchainImageCount,
- VkImage* pSwapchainImages);
+typedef struct VkPhysicalDeviceDynamicRenderingLocalReadFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 dynamicRenderingLocalRead;
+} VkPhysicalDeviceDynamicRenderingLocalReadFeatures;
-VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR(
- VkDevice device,
- VkSwapchainKHR swapchain,
- uint64_t timeout,
- VkSemaphore semaphore,
- VkFence fence,
- uint32_t* pImageIndex);
+typedef struct VkRenderingAttachmentLocationInfo {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t colorAttachmentCount;
+ const uint32_t* pColorAttachmentLocations;
+} VkRenderingAttachmentLocationInfo;
-VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR(
- VkQueue queue,
- const VkPresentInfoKHR* pPresentInfo);
+typedef struct VkRenderingInputAttachmentIndexInfo {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t colorAttachmentCount;
+ const uint32_t* pColorAttachmentInputIndices;
+ const uint32_t* pDepthInputAttachmentIndex;
+ const uint32_t* pStencilInputAttachmentIndex;
+} VkRenderingInputAttachmentIndexInfo;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupPresentCapabilitiesKHR(
- VkDevice device,
- VkDeviceGroupPresentCapabilitiesKHR* pDeviceGroupPresentCapabilities);
-
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupSurfacePresentModesKHR(
- VkDevice device,
- VkSurfaceKHR surface,
- VkDeviceGroupPresentModeFlagsKHR* pModes);
-
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDevicePresentRectanglesKHR(
- VkPhysicalDevice physicalDevice,
- VkSurfaceKHR surface,
- uint32_t* pRectCount,
- VkRect2D* pRects);
+typedef struct VkPhysicalDeviceMaintenance6Features {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 maintenance6;
+} VkPhysicalDeviceMaintenance6Features;
-VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImage2KHR(
- VkDevice device,
- const VkAcquireNextImageInfoKHR* pAcquireInfo,
- uint32_t* pImageIndex);
-#endif
+typedef struct VkPhysicalDeviceMaintenance6Properties {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 blockTexelViewCompatibleMultipleLayers;
+ uint32_t maxCombinedImageSamplerDescriptorCount;
+ VkBool32 fragmentShadingRateClampCombinerInputs;
+} VkPhysicalDeviceMaintenance6Properties;
+typedef struct VkBindMemoryStatus {
+ VkStructureType sType;
+ const void* pNext;
+ VkResult* pResult;
+} VkBindMemoryStatus;
-// VK_KHR_display is a preprocessor guard. Do not pass it to API calls.
-#define VK_KHR_display 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR)
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR)
-#define VK_KHR_DISPLAY_SPEC_VERSION 23
-#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display"
-typedef VkFlags VkDisplayModeCreateFlagsKHR;
+typedef struct VkBindDescriptorSetsInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkShaderStageFlags stageFlags;
+ VkPipelineLayout layout;
+ uint32_t firstSet;
+ uint32_t descriptorSetCount;
+ const VkDescriptorSet* pDescriptorSets;
+ uint32_t dynamicOffsetCount;
+ const uint32_t* pDynamicOffsets;
+} VkBindDescriptorSetsInfo;
-typedef enum VkDisplayPlaneAlphaFlagBitsKHR {
- VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
- VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002,
- VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004,
- VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008,
- VK_DISPLAY_PLANE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkDisplayPlaneAlphaFlagBitsKHR;
-typedef VkFlags VkDisplayPlaneAlphaFlagsKHR;
-typedef VkFlags VkDisplaySurfaceCreateFlagsKHR;
-typedef struct VkDisplayModeParametersKHR {
- VkExtent2D visibleRegion;
- uint32_t refreshRate;
-} VkDisplayModeParametersKHR;
+typedef struct VkPushConstantsInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineLayout layout;
+ VkShaderStageFlags stageFlags;
+ uint32_t offset;
+ uint32_t size;
+ const void* pValues;
+} VkPushConstantsInfo;
-typedef struct VkDisplayModeCreateInfoKHR {
+typedef struct VkPushDescriptorSetInfo {
VkStructureType sType;
const void* pNext;
- VkDisplayModeCreateFlagsKHR flags;
- VkDisplayModeParametersKHR parameters;
-} VkDisplayModeCreateInfoKHR;
-
-typedef struct VkDisplayModePropertiesKHR {
- VkDisplayModeKHR displayMode;
- VkDisplayModeParametersKHR parameters;
-} VkDisplayModePropertiesKHR;
-
-typedef struct VkDisplayPlaneCapabilitiesKHR {
- VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
- VkOffset2D minSrcPosition;
- VkOffset2D maxSrcPosition;
- VkExtent2D minSrcExtent;
- VkExtent2D maxSrcExtent;
- VkOffset2D minDstPosition;
- VkOffset2D maxDstPosition;
- VkExtent2D minDstExtent;
- VkExtent2D maxDstExtent;
-} VkDisplayPlaneCapabilitiesKHR;
-
-typedef struct VkDisplayPlanePropertiesKHR {
- VkDisplayKHR currentDisplay;
- uint32_t currentStackIndex;
-} VkDisplayPlanePropertiesKHR;
+ VkShaderStageFlags stageFlags;
+ VkPipelineLayout layout;
+ uint32_t set;
+ uint32_t descriptorWriteCount;
+ const VkWriteDescriptorSet* pDescriptorWrites;
+} VkPushDescriptorSetInfo;
-typedef struct VkDisplayPropertiesKHR {
- VkDisplayKHR display;
- const char* displayName;
- VkExtent2D physicalDimensions;
- VkExtent2D physicalResolution;
- VkSurfaceTransformFlagsKHR supportedTransforms;
- VkBool32 planeReorderPossible;
- VkBool32 persistentContent;
-} VkDisplayPropertiesKHR;
+typedef struct VkPushDescriptorSetWithTemplateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorUpdateTemplate descriptorUpdateTemplate;
+ VkPipelineLayout layout;
+ uint32_t set;
+ const void* pData;
+} VkPushDescriptorSetWithTemplateInfo;
-typedef struct VkDisplaySurfaceCreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkDisplaySurfaceCreateFlagsKHR flags;
- VkDisplayModeKHR displayMode;
- uint32_t planeIndex;
- uint32_t planeStackIndex;
- VkSurfaceTransformFlagBitsKHR transform;
- float globalAlpha;
- VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
- VkExtent2D imageExtent;
-} VkDisplaySurfaceCreateInfoKHR;
+typedef struct VkPhysicalDevicePipelineProtectedAccessFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 pipelineProtectedAccess;
+} VkPhysicalDevicePipelineProtectedAccessFeatures;
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties);
-typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities);
-typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+typedef struct VkPhysicalDevicePipelineRobustnessFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 pipelineRobustness;
+} VkPhysicalDevicePipelineRobustnessFeatures;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR(
- VkPhysicalDevice physicalDevice,
- uint32_t* pPropertyCount,
- VkDisplayPropertiesKHR* pProperties);
+typedef struct VkPhysicalDevicePipelineRobustnessProperties {
+ VkStructureType sType;
+ void* pNext;
+ VkPipelineRobustnessBufferBehavior defaultRobustnessStorageBuffers;
+ VkPipelineRobustnessBufferBehavior defaultRobustnessUniformBuffers;
+ VkPipelineRobustnessBufferBehavior defaultRobustnessVertexInputs;
+ VkPipelineRobustnessImageBehavior defaultRobustnessImages;
+} VkPhysicalDevicePipelineRobustnessProperties;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
- VkPhysicalDevice physicalDevice,
- uint32_t* pPropertyCount,
- VkDisplayPlanePropertiesKHR* pProperties);
+typedef struct VkPipelineRobustnessCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineRobustnessBufferBehavior storageBuffers;
+ VkPipelineRobustnessBufferBehavior uniformBuffers;
+ VkPipelineRobustnessBufferBehavior vertexInputs;
+ VkPipelineRobustnessImageBehavior images;
+} VkPipelineRobustnessCreateInfo;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR(
- VkPhysicalDevice physicalDevice,
- uint32_t planeIndex,
- uint32_t* pDisplayCount,
- VkDisplayKHR* pDisplays);
+typedef struct VkPhysicalDeviceHostImageCopyFeatures {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 hostImageCopy;
+} VkPhysicalDeviceHostImageCopyFeatures;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR(
- VkPhysicalDevice physicalDevice,
- VkDisplayKHR display,
- uint32_t* pPropertyCount,
- VkDisplayModePropertiesKHR* pProperties);
+typedef struct VkPhysicalDeviceHostImageCopyProperties {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t copySrcLayoutCount;
+ VkImageLayout* pCopySrcLayouts;
+ uint32_t copyDstLayoutCount;
+ VkImageLayout* pCopyDstLayouts;
+ uint8_t optimalTilingLayoutUUID[VK_UUID_SIZE];
+ VkBool32 identicalMemoryTypeRequirements;
+} VkPhysicalDeviceHostImageCopyProperties;
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR(
- VkPhysicalDevice physicalDevice,
- VkDisplayKHR display,
- const VkDisplayModeCreateInfoKHR* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkDisplayModeKHR* pMode);
+typedef struct VkMemoryToImageCopy {
+ VkStructureType sType;
+ const void* pNext;
+ const void* pHostPointer;
+ uint32_t memoryRowLength;
+ uint32_t memoryImageHeight;
+ VkImageSubresourceLayers imageSubresource;
+ VkOffset3D imageOffset;
+ VkExtent3D imageExtent;
+} VkMemoryToImageCopy;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR(
- VkPhysicalDevice physicalDevice,
- VkDisplayModeKHR mode,
- uint32_t planeIndex,
- VkDisplayPlaneCapabilitiesKHR* pCapabilities);
+typedef struct VkImageToMemoryCopy {
+ VkStructureType sType;
+ const void* pNext;
+ void* pHostPointer;
+ uint32_t memoryRowLength;
+ uint32_t memoryImageHeight;
+ VkImageSubresourceLayers imageSubresource;
+ VkOffset3D imageOffset;
+ VkExtent3D imageExtent;
+} VkImageToMemoryCopy;
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR(
- VkInstance instance,
- const VkDisplaySurfaceCreateInfoKHR* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkSurfaceKHR* pSurface);
-#endif
+typedef struct VkCopyMemoryToImageInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkHostImageCopyFlags flags;
+ VkImage dstImage;
+ VkImageLayout dstImageLayout;
+ uint32_t regionCount;
+ const VkMemoryToImageCopy* pRegions;
+} VkCopyMemoryToImageInfo;
+
+typedef struct VkCopyImageToMemoryInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkHostImageCopyFlags flags;
+ VkImage srcImage;
+ VkImageLayout srcImageLayout;
+ uint32_t regionCount;
+ const VkImageToMemoryCopy* pRegions;
+} VkCopyImageToMemoryInfo;
+
+typedef struct VkCopyImageToImageInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkHostImageCopyFlags flags;
+ VkImage srcImage;
+ VkImageLayout srcImageLayout;
+ VkImage dstImage;
+ VkImageLayout dstImageLayout;
+ uint32_t regionCount;
+ const VkImageCopy2* pRegions;
+} VkCopyImageToImageInfo;
+typedef struct VkHostImageLayoutTransitionInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+ VkImageLayout oldLayout;
+ VkImageLayout newLayout;
+ VkImageSubresourceRange subresourceRange;
+} VkHostImageLayoutTransitionInfo;
-// VK_KHR_display_swapchain is a preprocessor guard. Do not pass it to API calls.
-#define VK_KHR_display_swapchain 1
-#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 10
-#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain"
-typedef struct VkDisplayPresentInfoKHR {
+typedef struct VkSubresourceHostMemcpySize {
VkStructureType sType;
- const void* pNext;
- VkRect2D srcRect;
- VkRect2D dstRect;
- VkBool32 persistent;
-} VkDisplayPresentInfoKHR;
+ void* pNext;
+ VkDeviceSize size;
+} VkSubresourceHostMemcpySize;
-typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains);
+typedef struct VkHostImageCopyDevicePerformanceQuery {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 optimalDeviceAccess;
+ VkBool32 identicalMemoryLayout;
+} VkHostImageCopyDevicePerformanceQuery;
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetLineStipple)(VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern);
+typedef VkResult (VKAPI_PTR *PFN_vkMapMemory2)(VkDevice device, const VkMemoryMapInfo* pMemoryMapInfo, void** ppData);
+typedef VkResult (VKAPI_PTR *PFN_vkUnmapMemory2)(VkDevice device, const VkMemoryUnmapInfo* pMemoryUnmapInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer2)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkDeviceSize size, VkIndexType indexType);
+typedef void (VKAPI_PTR *PFN_vkGetRenderingAreaGranularity)(VkDevice device, const VkRenderingAreaInfo* pRenderingAreaInfo, VkExtent2D* pGranularity);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceImageSubresourceLayout)(VkDevice device, const VkDeviceImageSubresourceInfo* pInfo, VkSubresourceLayout2* pLayout);
+typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout2)(VkDevice device, VkImage image, const VkImageSubresource2* pSubresource, VkSubresourceLayout2* pLayout);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSet)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetWithTemplate)(VkCommandBuffer commandBuffer, VkDescriptorUpdateTemplate descriptorUpdateTemplate, VkPipelineLayout layout, uint32_t set, const void* pData);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRenderingAttachmentLocations)(VkCommandBuffer commandBuffer, const VkRenderingAttachmentLocationInfo* pLocationInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRenderingInputAttachmentIndices)(VkCommandBuffer commandBuffer, const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets2)(VkCommandBuffer commandBuffer, const VkBindDescriptorSetsInfo* pBindDescriptorSetsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdPushConstants2)(VkCommandBuffer commandBuffer, const VkPushConstantsInfo* pPushConstantsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSet2)(VkCommandBuffer commandBuffer, const VkPushDescriptorSetInfo* pPushDescriptorSetInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetWithTemplate2)(VkCommandBuffer commandBuffer, const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyMemoryToImage)(VkDevice device, const VkCopyMemoryToImageInfo* pCopyMemoryToImageInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyImageToMemory)(VkDevice device, const VkCopyImageToMemoryInfo* pCopyImageToMemoryInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyImageToImage)(VkDevice device, const VkCopyImageToImageInfo* pCopyImageToImageInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkTransitionImageLayout)(VkDevice device, uint32_t transitionCount, const VkHostImageLayoutTransitionInfo* pTransitions);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR(
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLineStipple(
+ VkCommandBuffer commandBuffer,
+ uint32_t lineStippleFactor,
+ uint16_t lineStipplePattern);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory2(
VkDevice device,
- uint32_t swapchainCount,
- const VkSwapchainCreateInfoKHR* pCreateInfos,
- const VkAllocationCallbacks* pAllocator,
- VkSwapchainKHR* pSwapchains);
-#endif
+ const VkMemoryMapInfo* pMemoryMapInfo,
+ void** ppData);
+VKAPI_ATTR VkResult VKAPI_CALL vkUnmapMemory2(
+ VkDevice device,
+ const VkMemoryUnmapInfo* pMemoryUnmapInfo);
-// VK_KHR_sampler_mirror_clamp_to_edge is a preprocessor guard. Do not pass it to API calls.
-#define VK_KHR_sampler_mirror_clamp_to_edge 1
-#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 3
-#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge"
+VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer2(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ VkDeviceSize size,
+ VkIndexType indexType);
+
+VKAPI_ATTR void VKAPI_CALL vkGetRenderingAreaGranularity(
+ VkDevice device,
+ const VkRenderingAreaInfo* pRenderingAreaInfo,
+ VkExtent2D* pGranularity);
+
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSubresourceLayout(
+ VkDevice device,
+ const VkDeviceImageSubresourceInfo* pInfo,
+ VkSubresourceLayout2* pLayout);
+
+VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout2(
+ VkDevice device,
+ VkImage image,
+ const VkImageSubresource2* pSubresource,
+ VkSubresourceLayout2* pLayout);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSet(
+ VkCommandBuffer commandBuffer,
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipelineLayout layout,
+ uint32_t set,
+ uint32_t descriptorWriteCount,
+ const VkWriteDescriptorSet* pDescriptorWrites);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSetWithTemplate(
+ VkCommandBuffer commandBuffer,
+ VkDescriptorUpdateTemplate descriptorUpdateTemplate,
+ VkPipelineLayout layout,
+ uint32_t set,
+ const void* pData);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRenderingAttachmentLocations(
+ VkCommandBuffer commandBuffer,
+ const VkRenderingAttachmentLocationInfo* pLocationInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRenderingInputAttachmentIndices(
+ VkCommandBuffer commandBuffer,
+ const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets2(
+ VkCommandBuffer commandBuffer,
+ const VkBindDescriptorSetsInfo* pBindDescriptorSetsInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants2(
+ VkCommandBuffer commandBuffer,
+ const VkPushConstantsInfo* pPushConstantsInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSet2(
+ VkCommandBuffer commandBuffer,
+ const VkPushDescriptorSetInfo* pPushDescriptorSetInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSetWithTemplate2(
+ VkCommandBuffer commandBuffer,
+ const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyMemoryToImage(
+ VkDevice device,
+ const VkCopyMemoryToImageInfo* pCopyMemoryToImageInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyImageToMemory(
+ VkDevice device,
+ const VkCopyImageToMemoryInfo* pCopyImageToMemoryInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyImageToImage(
+ VkDevice device,
+ const VkCopyImageToImageInfo* pCopyImageToImageInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkTransitionImageLayout(
+ VkDevice device,
+ uint32_t transitionCount,
+ const VkHostImageLayoutTransitionInfo* pTransitions);
+#endif
+
+
+// VK_KHR_surface is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_surface 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
+#define VK_KHR_SURFACE_SPEC_VERSION 25
+#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface"
+
+typedef enum VkPresentModeKHR {
+ VK_PRESENT_MODE_IMMEDIATE_KHR = 0,
+ VK_PRESENT_MODE_MAILBOX_KHR = 1,
+ VK_PRESENT_MODE_FIFO_KHR = 2,
+ VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3,
+ VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR = 1000111000,
+ VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR = 1000111001,
+ VK_PRESENT_MODE_FIFO_LATEST_READY_EXT = 1000361000,
+ VK_PRESENT_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkPresentModeKHR;
+
+typedef enum VkColorSpaceKHR {
+ VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0,
+ VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104001,
+ VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT = 1000104002,
+ VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT = 1000104003,
+ VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT = 1000104004,
+ VK_COLOR_SPACE_BT709_LINEAR_EXT = 1000104005,
+ VK_COLOR_SPACE_BT709_NONLINEAR_EXT = 1000104006,
+ VK_COLOR_SPACE_BT2020_LINEAR_EXT = 1000104007,
+ VK_COLOR_SPACE_HDR10_ST2084_EXT = 1000104008,
+ // VK_COLOR_SPACE_DOLBYVISION_EXT is deprecated, but no reason was given in the API XML
+ VK_COLOR_SPACE_DOLBYVISION_EXT = 1000104009,
+ VK_COLOR_SPACE_HDR10_HLG_EXT = 1000104010,
+ VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT = 1000104011,
+ VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT = 1000104012,
+ VK_COLOR_SPACE_PASS_THROUGH_EXT = 1000104013,
+ VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT = 1000104014,
+ VK_COLOR_SPACE_DISPLAY_NATIVE_AMD = 1000213000,
+ // VK_COLORSPACE_SRGB_NONLINEAR_KHR is a deprecated alias
+ VK_COLORSPACE_SRGB_NONLINEAR_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
+ // VK_COLOR_SPACE_DCI_P3_LINEAR_EXT is a deprecated alias
+ VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT,
+ VK_COLOR_SPACE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkColorSpaceKHR;
+
+typedef enum VkSurfaceTransformFlagBitsKHR {
+ VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001,
+ VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002,
+ VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004,
+ VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080,
+ VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100,
+ VK_SURFACE_TRANSFORM_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkSurfaceTransformFlagBitsKHR;
+
+typedef enum VkCompositeAlphaFlagBitsKHR {
+ VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
+ VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
+ VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
+ VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
+ VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkCompositeAlphaFlagBitsKHR;
+typedef VkFlags VkCompositeAlphaFlagsKHR;
+typedef VkFlags VkSurfaceTransformFlagsKHR;
+typedef struct VkSurfaceCapabilitiesKHR {
+ uint32_t minImageCount;
+ uint32_t maxImageCount;
+ VkExtent2D currentExtent;
+ VkExtent2D minImageExtent;
+ VkExtent2D maxImageExtent;
+ uint32_t maxImageArrayLayers;
+ VkSurfaceTransformFlagsKHR supportedTransforms;
+ VkSurfaceTransformFlagBitsKHR currentTransform;
+ VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
+ VkImageUsageFlags supportedUsageFlags;
+} VkSurfaceCapabilitiesKHR;
+
+typedef struct VkSurfaceFormatKHR {
+ VkFormat format;
+ VkColorSpaceKHR colorSpace;
+} VkSurfaceFormatKHR;
+
+typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(
+ VkInstance instance,
+ VkSurfaceKHR surface,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex,
+ VkSurfaceKHR surface,
+ VkBool32* pSupported);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ uint32_t* pSurfaceFormatCount,
+ VkSurfaceFormatKHR* pSurfaceFormats);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ uint32_t* pPresentModeCount,
+ VkPresentModeKHR* pPresentModes);
+#endif
+
+
+// VK_KHR_swapchain is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_swapchain 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR)
+#define VK_KHR_SWAPCHAIN_SPEC_VERSION 70
+#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain"
+
+typedef enum VkSwapchainCreateFlagBitsKHR {
+ VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR = 0x00000001,
+ VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR = 0x00000002,
+ VK_SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR = 0x00000004,
+ VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT = 0x00000008,
+ VK_SWAPCHAIN_CREATE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkSwapchainCreateFlagBitsKHR;
+typedef VkFlags VkSwapchainCreateFlagsKHR;
+
+typedef enum VkDeviceGroupPresentModeFlagBitsKHR {
+ VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR = 0x00000001,
+ VK_DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHR = 0x00000002,
+ VK_DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHR = 0x00000004,
+ VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHR = 0x00000008,
+ VK_DEVICE_GROUP_PRESENT_MODE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkDeviceGroupPresentModeFlagBitsKHR;
+typedef VkFlags VkDeviceGroupPresentModeFlagsKHR;
+typedef struct VkSwapchainCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainCreateFlagsKHR flags;
+ VkSurfaceKHR surface;
+ uint32_t minImageCount;
+ VkFormat imageFormat;
+ VkColorSpaceKHR imageColorSpace;
+ VkExtent2D imageExtent;
+ uint32_t imageArrayLayers;
+ VkImageUsageFlags imageUsage;
+ VkSharingMode imageSharingMode;
+ uint32_t queueFamilyIndexCount;
+ const uint32_t* pQueueFamilyIndices;
+ VkSurfaceTransformFlagBitsKHR preTransform;
+ VkCompositeAlphaFlagBitsKHR compositeAlpha;
+ VkPresentModeKHR presentMode;
+ VkBool32 clipped;
+ VkSwapchainKHR oldSwapchain;
+} VkSwapchainCreateInfoKHR;
+
+typedef struct VkPresentInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t waitSemaphoreCount;
+ const VkSemaphore* pWaitSemaphores;
+ uint32_t swapchainCount;
+ const VkSwapchainKHR* pSwapchains;
+ const uint32_t* pImageIndices;
+ VkResult* pResults;
+} VkPresentInfoKHR;
+
+typedef struct VkImageSwapchainCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+} VkImageSwapchainCreateInfoKHR;
+
+typedef struct VkBindImageMemorySwapchainInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+ uint32_t imageIndex;
+} VkBindImageMemorySwapchainInfoKHR;
+
+typedef struct VkAcquireNextImageInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+ uint64_t timeout;
+ VkSemaphore semaphore;
+ VkFence fence;
+ uint32_t deviceMask;
+} VkAcquireNextImageInfoKHR;
+
+typedef struct VkDeviceGroupPresentCapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t presentMask[VK_MAX_DEVICE_GROUP_SIZE];
+ VkDeviceGroupPresentModeFlagsKHR modes;
+} VkDeviceGroupPresentCapabilitiesKHR;
+
+typedef struct VkDeviceGroupPresentInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t swapchainCount;
+ const uint32_t* pDeviceMasks;
+ VkDeviceGroupPresentModeFlagBitsKHR mode;
+} VkDeviceGroupPresentInfoKHR;
+
+typedef struct VkDeviceGroupSwapchainCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceGroupPresentModeFlagsKHR modes;
+} VkDeviceGroupSwapchainCreateInfoKHR;
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain);
+typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages);
+typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex);
+typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupPresentCapabilitiesKHR)(VkDevice device, VkDeviceGroupPresentCapabilitiesKHR* pDeviceGroupPresentCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupSurfacePresentModesKHR)(VkDevice device, VkSurfaceKHR surface, VkDeviceGroupPresentModeFlagsKHR* pModes);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDevicePresentRectanglesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pRectCount, VkRect2D* pRects);
+typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImage2KHR)(VkDevice device, const VkAcquireNextImageInfoKHR* pAcquireInfo, uint32_t* pImageIndex);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR(
+ VkDevice device,
+ const VkSwapchainCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSwapchainKHR* pSwapchain);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ uint32_t* pSwapchainImageCount,
+ VkImage* pSwapchainImages);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ uint64_t timeout,
+ VkSemaphore semaphore,
+ VkFence fence,
+ uint32_t* pImageIndex);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR(
+ VkQueue queue,
+ const VkPresentInfoKHR* pPresentInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupPresentCapabilitiesKHR(
+ VkDevice device,
+ VkDeviceGroupPresentCapabilitiesKHR* pDeviceGroupPresentCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupSurfacePresentModesKHR(
+ VkDevice device,
+ VkSurfaceKHR surface,
+ VkDeviceGroupPresentModeFlagsKHR* pModes);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDevicePresentRectanglesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ uint32_t* pRectCount,
+ VkRect2D* pRects);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImage2KHR(
+ VkDevice device,
+ const VkAcquireNextImageInfoKHR* pAcquireInfo,
+ uint32_t* pImageIndex);
+#endif
+
+
+// VK_KHR_display is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_display 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR)
+#define VK_KHR_DISPLAY_SPEC_VERSION 23
+#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display"
+typedef VkFlags VkDisplayModeCreateFlagsKHR;
+
+typedef enum VkDisplayPlaneAlphaFlagBitsKHR {
+ VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
+ VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002,
+ VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004,
+ VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008,
+ VK_DISPLAY_PLANE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkDisplayPlaneAlphaFlagBitsKHR;
+typedef VkFlags VkDisplayPlaneAlphaFlagsKHR;
+typedef VkFlags VkDisplaySurfaceCreateFlagsKHR;
+typedef struct VkDisplayModeParametersKHR {
+ VkExtent2D visibleRegion;
+ uint32_t refreshRate;
+} VkDisplayModeParametersKHR;
+
+typedef struct VkDisplayModeCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplayModeCreateFlagsKHR flags;
+ VkDisplayModeParametersKHR parameters;
+} VkDisplayModeCreateInfoKHR;
+
+typedef struct VkDisplayModePropertiesKHR {
+ VkDisplayModeKHR displayMode;
+ VkDisplayModeParametersKHR parameters;
+} VkDisplayModePropertiesKHR;
+
+typedef struct VkDisplayPlaneCapabilitiesKHR {
+ VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
+ VkOffset2D minSrcPosition;
+ VkOffset2D maxSrcPosition;
+ VkExtent2D minSrcExtent;
+ VkExtent2D maxSrcExtent;
+ VkOffset2D minDstPosition;
+ VkOffset2D maxDstPosition;
+ VkExtent2D minDstExtent;
+ VkExtent2D maxDstExtent;
+} VkDisplayPlaneCapabilitiesKHR;
+
+typedef struct VkDisplayPlanePropertiesKHR {
+ VkDisplayKHR currentDisplay;
+ uint32_t currentStackIndex;
+} VkDisplayPlanePropertiesKHR;
+
+typedef struct VkDisplayPropertiesKHR {
+ VkDisplayKHR display;
+ const char* displayName;
+ VkExtent2D physicalDimensions;
+ VkExtent2D physicalResolution;
+ VkSurfaceTransformFlagsKHR supportedTransforms;
+ VkBool32 planeReorderPossible;
+ VkBool32 persistentContent;
+} VkDisplayPropertiesKHR;
+
+typedef struct VkDisplaySurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplaySurfaceCreateFlagsKHR flags;
+ VkDisplayModeKHR displayMode;
+ uint32_t planeIndex;
+ uint32_t planeStackIndex;
+ VkSurfaceTransformFlagBitsKHR transform;
+ float globalAlpha;
+ VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
+ VkExtent2D imageExtent;
+} VkDisplaySurfaceCreateInfoKHR;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkDisplayPropertiesKHR* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkDisplayPlanePropertiesKHR* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t planeIndex,
+ uint32_t* pDisplayCount,
+ VkDisplayKHR* pDisplays);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayKHR display,
+ uint32_t* pPropertyCount,
+ VkDisplayModePropertiesKHR* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayKHR display,
+ const VkDisplayModeCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDisplayModeKHR* pMode);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayModeKHR mode,
+ uint32_t planeIndex,
+ VkDisplayPlaneCapabilitiesKHR* pCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR(
+ VkInstance instance,
+ const VkDisplaySurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
+
+
+// VK_KHR_display_swapchain is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_display_swapchain 1
+#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 10
+#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain"
+typedef struct VkDisplayPresentInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkRect2D srcRect;
+ VkRect2D dstRect;
+ VkBool32 persistent;
+} VkDisplayPresentInfoKHR;
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR(
+ VkDevice device,
+ uint32_t swapchainCount,
+ const VkSwapchainCreateInfoKHR* pCreateInfos,
+ const VkAllocationCallbacks* pAllocator,
+ VkSwapchainKHR* pSwapchains);
+#endif
+
+
+// VK_KHR_sampler_mirror_clamp_to_edge is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_sampler_mirror_clamp_to_edge 1
+#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 3
+#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge"
// VK_KHR_video_queue is a preprocessor guard. Do not pass it to API calls.
@@ -7974,6 +8967,8 @@ typedef enum VkVideoCodecOperationFlagBitsKHR {
VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR = 0x00020000,
VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR = 0x00000001,
VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR = 0x00000002,
+ VK_VIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR = 0x00000004,
+ VK_VIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR = 0x00040000,
VK_VIDEO_CODEC_OPERATION_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoCodecOperationFlagBitsKHR;
typedef VkFlags VkVideoCodecOperationFlagsKHR;
@@ -8008,9 +9003,17 @@ typedef enum VkVideoSessionCreateFlagBitsKHR {
VK_VIDEO_SESSION_CREATE_PROTECTED_CONTENT_BIT_KHR = 0x00000001,
VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_PARAMETER_OPTIMIZATIONS_BIT_KHR = 0x00000002,
VK_VIDEO_SESSION_CREATE_INLINE_QUERIES_BIT_KHR = 0x00000004,
+ VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x00000008,
+ VK_VIDEO_SESSION_CREATE_ALLOW_ENCODE_EMPHASIS_MAP_BIT_KHR = 0x00000010,
+ VK_VIDEO_SESSION_CREATE_INLINE_SESSION_PARAMETERS_BIT_KHR = 0x00000020,
VK_VIDEO_SESSION_CREATE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoSessionCreateFlagBitsKHR;
typedef VkFlags VkVideoSessionCreateFlagsKHR;
+
+typedef enum VkVideoSessionParametersCreateFlagBitsKHR {
+ VK_VIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR = 0x00000001,
+ VK_VIDEO_SESSION_PARAMETERS_CREATE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoSessionParametersCreateFlagBitsKHR;
typedef VkFlags VkVideoSessionParametersCreateFlagsKHR;
typedef VkFlags VkVideoBeginCodingFlagsKHR;
typedef VkFlags VkVideoEndCodingFlagsKHR;
@@ -8313,6 +9316,7 @@ typedef enum VkVideoEncodeH264CapabilityFlagBitsKHR {
VK_VIDEO_ENCODE_H264_CAPABILITY_PER_PICTURE_TYPE_MIN_MAX_QP_BIT_KHR = 0x00000040,
VK_VIDEO_ENCODE_H264_CAPABILITY_PER_SLICE_CONSTANT_QP_BIT_KHR = 0x00000080,
VK_VIDEO_ENCODE_H264_CAPABILITY_GENERATE_PREFIX_NALU_BIT_KHR = 0x00000100,
+ VK_VIDEO_ENCODE_H264_CAPABILITY_MB_QP_DIFF_WRAPAROUND_BIT_KHR = 0x00000200,
VK_VIDEO_ENCODE_H264_CAPABILITY_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeH264CapabilityFlagBitsKHR;
typedef VkFlags VkVideoEncodeH264CapabilityFlagsKHR;
@@ -8513,6 +9517,7 @@ typedef enum VkVideoEncodeH265CapabilityFlagBitsKHR {
VK_VIDEO_ENCODE_H265_CAPABILITY_PER_SLICE_SEGMENT_CONSTANT_QP_BIT_KHR = 0x00000080,
VK_VIDEO_ENCODE_H265_CAPABILITY_MULTIPLE_TILES_PER_SLICE_SEGMENT_BIT_KHR = 0x00000100,
VK_VIDEO_ENCODE_H265_CAPABILITY_MULTIPLE_SLICE_SEGMENTS_PER_TILE_BIT_KHR = 0x00000200,
+ VK_VIDEO_ENCODE_H265_CAPABILITY_CU_QP_DIFF_WRAPAROUND_BIT_KHR = 0x00000400,
VK_VIDEO_ENCODE_H265_CAPABILITY_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeH265CapabilityFlagBitsKHR;
typedef VkFlags VkVideoEncodeH265CapabilityFlagsKHR;
@@ -8798,38 +9803,6 @@ typedef VkPhysicalDeviceDynamicRenderingFeatures VkPhysicalDeviceDynamicRenderin
typedef VkCommandBufferInheritanceRenderingInfo VkCommandBufferInheritanceRenderingInfoKHR;
-typedef struct VkRenderingFragmentShadingRateAttachmentInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkImageView imageView;
- VkImageLayout imageLayout;
- VkExtent2D shadingRateAttachmentTexelSize;
-} VkRenderingFragmentShadingRateAttachmentInfoKHR;
-
-typedef struct VkRenderingFragmentDensityMapAttachmentInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkImageView imageView;
- VkImageLayout imageLayout;
-} VkRenderingFragmentDensityMapAttachmentInfoEXT;
-
-typedef struct VkAttachmentSampleCountInfoAMD {
- VkStructureType sType;
- const void* pNext;
- uint32_t colorAttachmentCount;
- const VkSampleCountFlagBits* pColorAttachmentSamples;
- VkSampleCountFlagBits depthStencilAttachmentSamples;
-} VkAttachmentSampleCountInfoAMD;
-
-typedef VkAttachmentSampleCountInfoAMD VkAttachmentSampleCountInfoNV;
-
-typedef struct VkMultiviewPerViewAttributesInfoNVX {
- VkStructureType sType;
- const void* pNext;
- VkBool32 perViewAttributes;
- VkBool32 perViewAttributesPositionXOnly;
-} VkMultiviewPerViewAttributesInfoNVX;
-
typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderingKHR)(VkCommandBuffer commandBuffer, const VkRenderingInfo* pRenderingInfo);
typedef void (VKAPI_PTR *PFN_vkCmdEndRenderingKHR)(VkCommandBuffer commandBuffer);
@@ -8984,7 +9957,9 @@ VKAPI_ATTR void VKAPI_CALL vkCmdDispatchBaseKHR(
#define VK_KHR_maintenance1 1
#define VK_KHR_MAINTENANCE_1_SPEC_VERSION 2
#define VK_KHR_MAINTENANCE_1_EXTENSION_NAME "VK_KHR_maintenance1"
+// VK_KHR_MAINTENANCE1_SPEC_VERSION is a deprecated alias
#define VK_KHR_MAINTENANCE1_SPEC_VERSION VK_KHR_MAINTENANCE_1_SPEC_VERSION
+// VK_KHR_MAINTENANCE1_EXTENSION_NAME is a deprecated alias
#define VK_KHR_MAINTENANCE1_EXTENSION_NAME VK_KHR_MAINTENANCE_1_EXTENSION_NAME
typedef VkCommandPoolTrimFlags VkCommandPoolTrimFlagsKHR;
@@ -9183,11 +10158,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreFdKHR(
#define VK_KHR_push_descriptor 1
#define VK_KHR_PUSH_DESCRIPTOR_SPEC_VERSION 2
#define VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME "VK_KHR_push_descriptor"
-typedef struct VkPhysicalDevicePushDescriptorPropertiesKHR {
- VkStructureType sType;
- void* pNext;
- uint32_t maxPushDescriptors;
-} VkPhysicalDevicePushDescriptorPropertiesKHR;
+typedef VkPhysicalDevicePushDescriptorProperties VkPhysicalDevicePushDescriptorPropertiesKHR;
typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetKHR)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites);
typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetWithTemplateKHR)(VkCommandBuffer commandBuffer, VkDescriptorUpdateTemplate descriptorUpdateTemplate, VkPipelineLayout layout, uint32_t set, const void* pData);
@@ -9466,8 +10437,11 @@ typedef enum VkPerformanceCounterScopeKHR {
VK_PERFORMANCE_COUNTER_SCOPE_COMMAND_BUFFER_KHR = 0,
VK_PERFORMANCE_COUNTER_SCOPE_RENDER_PASS_KHR = 1,
VK_PERFORMANCE_COUNTER_SCOPE_COMMAND_KHR = 2,
+ // VK_QUERY_SCOPE_COMMAND_BUFFER_KHR is a deprecated alias
VK_QUERY_SCOPE_COMMAND_BUFFER_KHR = VK_PERFORMANCE_COUNTER_SCOPE_COMMAND_BUFFER_KHR,
+ // VK_QUERY_SCOPE_RENDER_PASS_KHR is a deprecated alias
VK_QUERY_SCOPE_RENDER_PASS_KHR = VK_PERFORMANCE_COUNTER_SCOPE_RENDER_PASS_KHR,
+ // VK_QUERY_SCOPE_COMMAND_KHR is a deprecated alias
VK_QUERY_SCOPE_COMMAND_KHR = VK_PERFORMANCE_COUNTER_SCOPE_COMMAND_KHR,
VK_PERFORMANCE_COUNTER_SCOPE_MAX_ENUM_KHR = 0x7FFFFFFF
} VkPerformanceCounterScopeKHR;
@@ -9485,7 +10459,9 @@ typedef enum VkPerformanceCounterStorageKHR {
typedef enum VkPerformanceCounterDescriptionFlagBitsKHR {
VK_PERFORMANCE_COUNTER_DESCRIPTION_PERFORMANCE_IMPACTING_BIT_KHR = 0x00000001,
VK_PERFORMANCE_COUNTER_DESCRIPTION_CONCURRENTLY_IMPACTED_BIT_KHR = 0x00000002,
+ // VK_PERFORMANCE_COUNTER_DESCRIPTION_PERFORMANCE_IMPACTING_KHR is a deprecated alias
VK_PERFORMANCE_COUNTER_DESCRIPTION_PERFORMANCE_IMPACTING_KHR = VK_PERFORMANCE_COUNTER_DESCRIPTION_PERFORMANCE_IMPACTING_BIT_KHR,
+ // VK_PERFORMANCE_COUNTER_DESCRIPTION_CONCURRENTLY_IMPACTED_KHR is a deprecated alias
VK_PERFORMANCE_COUNTER_DESCRIPTION_CONCURRENTLY_IMPACTED_KHR = VK_PERFORMANCE_COUNTER_DESCRIPTION_CONCURRENTLY_IMPACTED_BIT_KHR,
VK_PERFORMANCE_COUNTER_DESCRIPTION_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkPerformanceCounterDescriptionFlagBitsKHR;
@@ -9587,7 +10563,9 @@ VKAPI_ATTR void VKAPI_CALL vkReleaseProfilingLockKHR(
#define VK_KHR_maintenance2 1
#define VK_KHR_MAINTENANCE_2_SPEC_VERSION 1
#define VK_KHR_MAINTENANCE_2_EXTENSION_NAME "VK_KHR_maintenance2"
+// VK_KHR_MAINTENANCE2_SPEC_VERSION is a deprecated alias
#define VK_KHR_MAINTENANCE2_SPEC_VERSION VK_KHR_MAINTENANCE_2_SPEC_VERSION
+// VK_KHR_MAINTENANCE2_EXTENSION_NAME is a deprecated alias
#define VK_KHR_MAINTENANCE2_EXTENSION_NAME VK_KHR_MAINTENANCE_2_EXTENSION_NAME
typedef VkPointClippingBehavior VkPointClippingBehaviorKHR;
@@ -9854,7 +10832,9 @@ VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory2KHR(
#define VK_KHR_maintenance3 1
#define VK_KHR_MAINTENANCE_3_SPEC_VERSION 1
#define VK_KHR_MAINTENANCE_3_EXTENSION_NAME "VK_KHR_maintenance3"
+// VK_KHR_MAINTENANCE3_SPEC_VERSION is a deprecated alias
#define VK_KHR_MAINTENANCE3_SPEC_VERSION VK_KHR_MAINTENANCE_3_SPEC_VERSION
+// VK_KHR_MAINTENANCE3_EXTENSION_NAME is a deprecated alias
#define VK_KHR_MAINTENANCE3_EXTENSION_NAME VK_KHR_MAINTENANCE_3_EXTENSION_NAME
typedef VkPhysicalDeviceMaintenance3Properties VkPhysicalDeviceMaintenance3PropertiesKHR;
@@ -9990,39 +10970,16 @@ typedef struct VkVideoDecodeH265DpbSlotInfoKHR {
// VK_KHR_global_priority is a preprocessor guard. Do not pass it to API calls.
#define VK_KHR_global_priority 1
-#define VK_MAX_GLOBAL_PRIORITY_SIZE_KHR 16U
#define VK_KHR_GLOBAL_PRIORITY_SPEC_VERSION 1
#define VK_KHR_GLOBAL_PRIORITY_EXTENSION_NAME "VK_KHR_global_priority"
+#define VK_MAX_GLOBAL_PRIORITY_SIZE_KHR VK_MAX_GLOBAL_PRIORITY_SIZE
+typedef VkQueueGlobalPriority VkQueueGlobalPriorityKHR;
-typedef enum VkQueueGlobalPriorityKHR {
- VK_QUEUE_GLOBAL_PRIORITY_LOW_KHR = 128,
- VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR = 256,
- VK_QUEUE_GLOBAL_PRIORITY_HIGH_KHR = 512,
- VK_QUEUE_GLOBAL_PRIORITY_REALTIME_KHR = 1024,
- VK_QUEUE_GLOBAL_PRIORITY_LOW_EXT = VK_QUEUE_GLOBAL_PRIORITY_LOW_KHR,
- VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT = VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR,
- VK_QUEUE_GLOBAL_PRIORITY_HIGH_EXT = VK_QUEUE_GLOBAL_PRIORITY_HIGH_KHR,
- VK_QUEUE_GLOBAL_PRIORITY_REALTIME_EXT = VK_QUEUE_GLOBAL_PRIORITY_REALTIME_KHR,
- VK_QUEUE_GLOBAL_PRIORITY_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkQueueGlobalPriorityKHR;
-typedef struct VkDeviceQueueGlobalPriorityCreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkQueueGlobalPriorityKHR globalPriority;
-} VkDeviceQueueGlobalPriorityCreateInfoKHR;
+typedef VkDeviceQueueGlobalPriorityCreateInfo VkDeviceQueueGlobalPriorityCreateInfoKHR;
-typedef struct VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR {
- VkStructureType sType;
- void* pNext;
- VkBool32 globalPriorityQuery;
-} VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR;
+typedef VkPhysicalDeviceGlobalPriorityQueryFeatures VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR;
-typedef struct VkQueueFamilyGlobalPriorityPropertiesKHR {
- VkStructureType sType;
- void* pNext;
- uint32_t priorityCount;
- VkQueueGlobalPriorityKHR priorities[VK_MAX_GLOBAL_PRIORITY_SIZE_KHR];
-} VkQueueFamilyGlobalPriorityPropertiesKHR;
+typedef VkQueueFamilyGlobalPriorityProperties VkQueueFamilyGlobalPriorityPropertiesKHR;
@@ -10193,6 +11150,14 @@ typedef struct VkPhysicalDeviceFragmentShadingRateKHR {
VkExtent2D fragmentSize;
} VkPhysicalDeviceFragmentShadingRateKHR;
+typedef struct VkRenderingFragmentShadingRateAttachmentInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageView imageView;
+ VkImageLayout imageLayout;
+ VkExtent2D shadingRateAttachmentTexelSize;
+} VkRenderingFragmentShadingRateAttachmentInfoKHR;
+
typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pFragmentShadingRateCount, VkPhysicalDeviceFragmentShadingRateKHR* pFragmentShadingRates);
typedef void (VKAPI_PTR *PFN_vkCmdSetFragmentShadingRateKHR)(VkCommandBuffer commandBuffer, const VkExtent2D* pFragmentSize, const VkFragmentShadingRateCombinerOpKHR combinerOps[2]);
@@ -10209,6 +11174,42 @@ VKAPI_ATTR void VKAPI_CALL vkCmdSetFragmentShadingRateKHR(
#endif
+// VK_KHR_dynamic_rendering_local_read is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_dynamic_rendering_local_read 1
+#define VK_KHR_DYNAMIC_RENDERING_LOCAL_READ_SPEC_VERSION 1
+#define VK_KHR_DYNAMIC_RENDERING_LOCAL_READ_EXTENSION_NAME "VK_KHR_dynamic_rendering_local_read"
+typedef VkPhysicalDeviceDynamicRenderingLocalReadFeatures VkPhysicalDeviceDynamicRenderingLocalReadFeaturesKHR;
+
+typedef VkRenderingAttachmentLocationInfo VkRenderingAttachmentLocationInfoKHR;
+
+typedef VkRenderingInputAttachmentIndexInfo VkRenderingInputAttachmentIndexInfoKHR;
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetRenderingAttachmentLocationsKHR)(VkCommandBuffer commandBuffer, const VkRenderingAttachmentLocationInfo* pLocationInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRenderingInputAttachmentIndicesKHR)(VkCommandBuffer commandBuffer, const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRenderingAttachmentLocationsKHR(
+ VkCommandBuffer commandBuffer,
+ const VkRenderingAttachmentLocationInfo* pLocationInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRenderingInputAttachmentIndicesKHR(
+ VkCommandBuffer commandBuffer,
+ const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);
+#endif
+
+
+// VK_KHR_shader_quad_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_shader_quad_control 1
+#define VK_KHR_SHADER_QUAD_CONTROL_SPEC_VERSION 1
+#define VK_KHR_SHADER_QUAD_CONTROL_EXTENSION_NAME "VK_KHR_shader_quad_control"
+typedef struct VkPhysicalDeviceShaderQuadControlFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderQuadControl;
+} VkPhysicalDeviceShaderQuadControlFeaturesKHR;
+
+
+
// VK_KHR_spirv_1_4 is a preprocessor guard. Do not pass it to API calls.
#define VK_KHR_spirv_1_4 1
#define VK_KHR_SPIRV_1_4_SPEC_VERSION 1
@@ -10432,35 +11433,26 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineExecutableInternalRepresentationsKHR
#define VK_KHR_map_memory2 1
#define VK_KHR_MAP_MEMORY_2_SPEC_VERSION 1
#define VK_KHR_MAP_MEMORY_2_EXTENSION_NAME "VK_KHR_map_memory2"
-typedef VkFlags VkMemoryUnmapFlagsKHR;
-typedef struct VkMemoryMapInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkMemoryMapFlags flags;
- VkDeviceMemory memory;
- VkDeviceSize offset;
- VkDeviceSize size;
-} VkMemoryMapInfoKHR;
+typedef VkMemoryUnmapFlagBits VkMemoryUnmapFlagBitsKHR;
-typedef struct VkMemoryUnmapInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkMemoryUnmapFlagsKHR flags;
- VkDeviceMemory memory;
-} VkMemoryUnmapInfoKHR;
+typedef VkMemoryUnmapFlags VkMemoryUnmapFlagsKHR;
+
+typedef VkMemoryMapInfo VkMemoryMapInfoKHR;
-typedef VkResult (VKAPI_PTR *PFN_vkMapMemory2KHR)(VkDevice device, const VkMemoryMapInfoKHR* pMemoryMapInfo, void** ppData);
-typedef VkResult (VKAPI_PTR *PFN_vkUnmapMemory2KHR)(VkDevice device, const VkMemoryUnmapInfoKHR* pMemoryUnmapInfo);
+typedef VkMemoryUnmapInfo VkMemoryUnmapInfoKHR;
+
+typedef VkResult (VKAPI_PTR *PFN_vkMapMemory2KHR)(VkDevice device, const VkMemoryMapInfo* pMemoryMapInfo, void** ppData);
+typedef VkResult (VKAPI_PTR *PFN_vkUnmapMemory2KHR)(VkDevice device, const VkMemoryUnmapInfo* pMemoryUnmapInfo);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory2KHR(
VkDevice device,
- const VkMemoryMapInfoKHR* pMemoryMapInfo,
+ const VkMemoryMapInfo* pMemoryMapInfo,
void** ppData);
VKAPI_ATTR VkResult VKAPI_CALL vkUnmapMemory2KHR(
VkDevice device,
- const VkMemoryUnmapInfoKHR* pMemoryUnmapInfo);
+ const VkMemoryUnmapInfo* pMemoryUnmapInfo);
#endif
@@ -10525,11 +11517,19 @@ typedef enum VkVideoEncodeTuningModeKHR {
VK_VIDEO_ENCODE_TUNING_MODE_LOSSLESS_KHR = 4,
VK_VIDEO_ENCODE_TUNING_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeTuningModeKHR;
+
+typedef enum VkVideoEncodeFlagBitsKHR {
+ VK_VIDEO_ENCODE_WITH_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x00000001,
+ VK_VIDEO_ENCODE_WITH_EMPHASIS_MAP_BIT_KHR = 0x00000002,
+ VK_VIDEO_ENCODE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeFlagBitsKHR;
typedef VkFlags VkVideoEncodeFlagsKHR;
typedef enum VkVideoEncodeCapabilityFlagBitsKHR {
VK_VIDEO_ENCODE_CAPABILITY_PRECEDING_EXTERNALLY_ENCODED_BYTES_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_CAPABILITY_INSUFFICIENT_BITSTREAM_BUFFER_RANGE_DETECTION_BIT_KHR = 0x00000002,
+ VK_VIDEO_ENCODE_CAPABILITY_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x00000004,
+ VK_VIDEO_ENCODE_CAPABILITY_EMPHASIS_MAP_BIT_KHR = 0x00000008,
VK_VIDEO_ENCODE_CAPABILITY_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeCapabilityFlagBitsKHR;
typedef VkFlags VkVideoEncodeCapabilityFlagsKHR;
@@ -10717,27 +11717,12 @@ typedef VkCommandBufferSubmitInfo VkCommandBufferSubmitInfoKHR;
typedef VkPhysicalDeviceSynchronization2Features VkPhysicalDeviceSynchronization2FeaturesKHR;
-typedef struct VkQueueFamilyCheckpointProperties2NV {
- VkStructureType sType;
- void* pNext;
- VkPipelineStageFlags2 checkpointExecutionStageMask;
-} VkQueueFamilyCheckpointProperties2NV;
-
-typedef struct VkCheckpointData2NV {
- VkStructureType sType;
- void* pNext;
- VkPipelineStageFlags2 stage;
- void* pCheckpointMarker;
-} VkCheckpointData2NV;
-
typedef void (VKAPI_PTR *PFN_vkCmdSetEvent2KHR)(VkCommandBuffer commandBuffer, VkEvent event, const VkDependencyInfo* pDependencyInfo);
typedef void (VKAPI_PTR *PFN_vkCmdResetEvent2KHR)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags2 stageMask);
typedef void (VKAPI_PTR *PFN_vkCmdWaitEvents2KHR)(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, const VkDependencyInfo* pDependencyInfos);
typedef void (VKAPI_PTR *PFN_vkCmdPipelineBarrier2KHR)(VkCommandBuffer commandBuffer, const VkDependencyInfo* pDependencyInfo);
typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp2KHR)(VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkQueryPool queryPool, uint32_t query);
typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit2KHR)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo2* pSubmits, VkFence fence);
-typedef void (VKAPI_PTR *PFN_vkCmdWriteBufferMarker2AMD)(VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker);
-typedef void (VKAPI_PTR *PFN_vkGetQueueCheckpointData2NV)(VkQueue queue, uint32_t* pCheckpointDataCount, VkCheckpointData2NV* pCheckpointData);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent2KHR(
@@ -10771,18 +11756,6 @@ VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit2KHR(
uint32_t submitCount,
const VkSubmitInfo2* pSubmits,
VkFence fence);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdWriteBufferMarker2AMD(
- VkCommandBuffer commandBuffer,
- VkPipelineStageFlags2 stage,
- VkBuffer dstBuffer,
- VkDeviceSize dstOffset,
- uint32_t marker);
-
-VKAPI_ATTR void VKAPI_CALL vkGetQueueCheckpointData2NV(
- VkQueue queue,
- uint32_t* pCheckpointDataCount,
- VkCheckpointData2NV* pCheckpointData);
#endif
@@ -10989,181 +11962,217 @@ VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSparseMemoryRequirementsKHR(
#endif
+// VK_KHR_shader_subgroup_rotate is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_shader_subgroup_rotate 1
+#define VK_KHR_SHADER_SUBGROUP_ROTATE_SPEC_VERSION 2
+#define VK_KHR_SHADER_SUBGROUP_ROTATE_EXTENSION_NAME "VK_KHR_shader_subgroup_rotate"
+typedef VkPhysicalDeviceShaderSubgroupRotateFeatures VkPhysicalDeviceShaderSubgroupRotateFeaturesKHR;
+
+
+
+// VK_KHR_shader_maximal_reconvergence is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_shader_maximal_reconvergence 1
+#define VK_KHR_SHADER_MAXIMAL_RECONVERGENCE_SPEC_VERSION 1
+#define VK_KHR_SHADER_MAXIMAL_RECONVERGENCE_EXTENSION_NAME "VK_KHR_shader_maximal_reconvergence"
+typedef struct VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderMaximalReconvergence;
+} VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR;
+
+
+
// VK_KHR_maintenance5 is a preprocessor guard. Do not pass it to API calls.
#define VK_KHR_maintenance5 1
#define VK_KHR_MAINTENANCE_5_SPEC_VERSION 1
#define VK_KHR_MAINTENANCE_5_EXTENSION_NAME "VK_KHR_maintenance5"
-typedef VkFlags64 VkPipelineCreateFlags2KHR;
-
-// Flag bits for VkPipelineCreateFlagBits2KHR
-typedef VkFlags64 VkPipelineCreateFlagBits2KHR;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_DISABLE_OPTIMIZATION_BIT_KHR = 0x00000001ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_ALLOW_DERIVATIVES_BIT_KHR = 0x00000002ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_DERIVATIVE_BIT_KHR = 0x00000004ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_VIEW_INDEX_FROM_DEVICE_INDEX_BIT_KHR = 0x00000008ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_DISPATCH_BASE_BIT_KHR = 0x00000010ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_DEFER_COMPILE_BIT_NV = 0x00000020ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_CAPTURE_STATISTICS_BIT_KHR = 0x00000040ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR = 0x00000080ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT_KHR = 0x00000100ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_EARLY_RETURN_ON_FAILURE_BIT_KHR = 0x00000200ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_LINK_TIME_OPTIMIZATION_BIT_EXT = 0x00000400ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RETAIN_LINK_TIME_OPTIMIZATION_INFO_BIT_EXT = 0x00800000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR = 0x00000800ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_SKIP_TRIANGLES_BIT_KHR = 0x00001000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_SKIP_AABBS_BIT_KHR = 0x00002000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR = 0x00004000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR = 0x00008000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_MISS_SHADERS_BIT_KHR = 0x00010000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR = 0x00020000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR = 0x00080000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_INDIRECT_BINDABLE_BIT_NV = 0x00040000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_ALLOW_MOTION_BIT_NV = 0x00100000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00200000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = 0x00400000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_OPACITY_MICROMAP_BIT_EXT = 0x01000000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x02000000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x04000000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_NO_PROTECTED_ACCESS_BIT_EXT = 0x08000000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_PROTECTED_ACCESS_ONLY_BIT_EXT = 0x40000000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_RAY_TRACING_DISPLACEMENT_MICROMAP_BIT_NV = 0x10000000ULL;
-static const VkPipelineCreateFlagBits2KHR VK_PIPELINE_CREATE_2_DESCRIPTOR_BUFFER_BIT_EXT = 0x20000000ULL;
-
-typedef VkFlags64 VkBufferUsageFlags2KHR;
-
-// Flag bits for VkBufferUsageFlagBits2KHR
-typedef VkFlags64 VkBufferUsageFlagBits2KHR;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_TRANSFER_SRC_BIT_KHR = 0x00000001ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_TRANSFER_DST_BIT_KHR = 0x00000002ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_UNIFORM_TEXEL_BUFFER_BIT_KHR = 0x00000004ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_STORAGE_TEXEL_BUFFER_BIT_KHR = 0x00000008ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_UNIFORM_BUFFER_BIT_KHR = 0x00000010ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_STORAGE_BUFFER_BIT_KHR = 0x00000020ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_INDEX_BUFFER_BIT_KHR = 0x00000040ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_VERTEX_BUFFER_BIT_KHR = 0x00000080ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_INDIRECT_BUFFER_BIT_KHR = 0x00000100ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_EXECUTION_GRAPH_SCRATCH_BIT_AMDX = 0x02000000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_CONDITIONAL_RENDERING_BIT_EXT = 0x00000200ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_SHADER_BINDING_TABLE_BIT_KHR = 0x00000400ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_RAY_TRACING_BIT_NV = 0x00000400ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT = 0x00000800ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT = 0x00001000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_VIDEO_DECODE_SRC_BIT_KHR = 0x00002000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_VIDEO_DECODE_DST_BIT_KHR = 0x00004000ULL;
-#ifdef VK_ENABLE_BETA_EXTENSIONS
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_VIDEO_ENCODE_DST_BIT_KHR = 0x00008000ULL;
-#endif
-#ifdef VK_ENABLE_BETA_EXTENSIONS
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_VIDEO_ENCODE_SRC_BIT_KHR = 0x00010000ULL;
+typedef VkPipelineCreateFlags2 VkPipelineCreateFlags2KHR;
+
+typedef VkPipelineCreateFlagBits2 VkPipelineCreateFlagBits2KHR;
+
+typedef VkBufferUsageFlags2 VkBufferUsageFlags2KHR;
+
+typedef VkBufferUsageFlagBits2 VkBufferUsageFlagBits2KHR;
+
+typedef VkPhysicalDeviceMaintenance5Features VkPhysicalDeviceMaintenance5FeaturesKHR;
+
+typedef VkPhysicalDeviceMaintenance5Properties VkPhysicalDeviceMaintenance5PropertiesKHR;
+
+typedef VkRenderingAreaInfo VkRenderingAreaInfoKHR;
+
+typedef VkDeviceImageSubresourceInfo VkDeviceImageSubresourceInfoKHR;
+
+typedef VkImageSubresource2 VkImageSubresource2KHR;
+
+typedef VkSubresourceLayout2 VkSubresourceLayout2KHR;
+
+typedef VkPipelineCreateFlags2CreateInfo VkPipelineCreateFlags2CreateInfoKHR;
+
+typedef VkBufferUsageFlags2CreateInfo VkBufferUsageFlags2CreateInfoKHR;
+
+typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer2KHR)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkDeviceSize size, VkIndexType indexType);
+typedef void (VKAPI_PTR *PFN_vkGetRenderingAreaGranularityKHR)(VkDevice device, const VkRenderingAreaInfo* pRenderingAreaInfo, VkExtent2D* pGranularity);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceImageSubresourceLayoutKHR)(VkDevice device, const VkDeviceImageSubresourceInfo* pInfo, VkSubresourceLayout2* pLayout);
+typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout2KHR)(VkDevice device, VkImage image, const VkImageSubresource2* pSubresource, VkSubresourceLayout2* pLayout);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer2KHR(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ VkDeviceSize size,
+ VkIndexType indexType);
+
+VKAPI_ATTR void VKAPI_CALL vkGetRenderingAreaGranularityKHR(
+ VkDevice device,
+ const VkRenderingAreaInfo* pRenderingAreaInfo,
+ VkExtent2D* pGranularity);
+
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSubresourceLayoutKHR(
+ VkDevice device,
+ const VkDeviceImageSubresourceInfo* pInfo,
+ VkSubresourceLayout2* pLayout);
+
+VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout2KHR(
+ VkDevice device,
+ VkImage image,
+ const VkImageSubresource2* pSubresource,
+ VkSubresourceLayout2* pLayout);
#endif
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_SHADER_DEVICE_ADDRESS_BIT_KHR = 0x00020000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR = 0x00080000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR = 0x00100000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT = 0x00200000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT = 0x00400000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT = 0x04000000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT = 0x00800000ULL;
-static const VkBufferUsageFlagBits2KHR VK_BUFFER_USAGE_2_MICROMAP_STORAGE_BIT_EXT = 0x01000000ULL;
-typedef struct VkPhysicalDeviceMaintenance5FeaturesKHR {
+
+// VK_KHR_ray_tracing_position_fetch is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_ray_tracing_position_fetch 1
+#define VK_KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION 1
+#define VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME "VK_KHR_ray_tracing_position_fetch"
+typedef struct VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR {
VkStructureType sType;
void* pNext;
- VkBool32 maintenance5;
-} VkPhysicalDeviceMaintenance5FeaturesKHR;
+ VkBool32 rayTracingPositionFetch;
+} VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR;
+
-typedef struct VkPhysicalDeviceMaintenance5PropertiesKHR {
+
+// VK_KHR_pipeline_binary is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_pipeline_binary 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineBinaryKHR)
+#define VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR 32U
+#define VK_KHR_PIPELINE_BINARY_SPEC_VERSION 1
+#define VK_KHR_PIPELINE_BINARY_EXTENSION_NAME "VK_KHR_pipeline_binary"
+typedef struct VkPhysicalDevicePipelineBinaryFeaturesKHR {
VkStructureType sType;
void* pNext;
- VkBool32 earlyFragmentMultisampleCoverageAfterSampleCounting;
- VkBool32 earlyFragmentSampleMaskTestBeforeSampleCounting;
- VkBool32 depthStencilSwizzleOneSupport;
- VkBool32 polygonModePointSize;
- VkBool32 nonStrictSinglePixelWideLinesUseParallelogram;
- VkBool32 nonStrictWideLinesUseParallelogram;
-} VkPhysicalDeviceMaintenance5PropertiesKHR;
+ VkBool32 pipelineBinaries;
+} VkPhysicalDevicePipelineBinaryFeaturesKHR;
+
+typedef struct VkPhysicalDevicePipelineBinaryPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 pipelineBinaryInternalCache;
+ VkBool32 pipelineBinaryInternalCacheControl;
+ VkBool32 pipelineBinaryPrefersInternalCache;
+ VkBool32 pipelineBinaryPrecompiledInternalCache;
+ VkBool32 pipelineBinaryCompressedData;
+} VkPhysicalDevicePipelineBinaryPropertiesKHR;
-typedef struct VkRenderingAreaInfoKHR {
+typedef struct VkDevicePipelineBinaryInternalCacheControlKHR {
VkStructureType sType;
const void* pNext;
- uint32_t viewMask;
- uint32_t colorAttachmentCount;
- const VkFormat* pColorAttachmentFormats;
- VkFormat depthAttachmentFormat;
- VkFormat stencilAttachmentFormat;
-} VkRenderingAreaInfoKHR;
+ VkBool32 disableInternalCache;
+} VkDevicePipelineBinaryInternalCacheControlKHR;
-typedef struct VkImageSubresource2KHR {
- VkStructureType sType;
- void* pNext;
- VkImageSubresource imageSubresource;
-} VkImageSubresource2KHR;
+typedef struct VkPipelineBinaryKeyKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t keySize;
+ uint8_t key[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR];
+} VkPipelineBinaryKeyKHR;
+
+typedef struct VkPipelineBinaryDataKHR {
+ size_t dataSize;
+ void* pData;
+} VkPipelineBinaryDataKHR;
+
+typedef struct VkPipelineBinaryKeysAndDataKHR {
+ uint32_t binaryCount;
+ const VkPipelineBinaryKeyKHR* pPipelineBinaryKeys;
+ const VkPipelineBinaryDataKHR* pPipelineBinaryData;
+} VkPipelineBinaryKeysAndDataKHR;
+
+typedef struct VkPipelineCreateInfoKHR {
+ VkStructureType sType;
+ void* pNext;
+} VkPipelineCreateInfoKHR;
+
+typedef struct VkPipelineBinaryCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const VkPipelineBinaryKeysAndDataKHR* pKeysAndDataInfo;
+ VkPipeline pipeline;
+ const VkPipelineCreateInfoKHR* pPipelineCreateInfo;
+} VkPipelineBinaryCreateInfoKHR;
+
+typedef struct VkPipelineBinaryInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t binaryCount;
+ const VkPipelineBinaryKHR* pPipelineBinaries;
+} VkPipelineBinaryInfoKHR;
-typedef struct VkDeviceImageSubresourceInfoKHR {
- VkStructureType sType;
- const void* pNext;
- const VkImageCreateInfo* pCreateInfo;
- const VkImageSubresource2KHR* pSubresource;
-} VkDeviceImageSubresourceInfoKHR;
+typedef struct VkReleaseCapturedPipelineDataInfoKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkPipeline pipeline;
+} VkReleaseCapturedPipelineDataInfoKHR;
-typedef struct VkSubresourceLayout2KHR {
+typedef struct VkPipelineBinaryDataInfoKHR {
VkStructureType sType;
void* pNext;
- VkSubresourceLayout subresourceLayout;
-} VkSubresourceLayout2KHR;
-
-typedef struct VkPipelineCreateFlags2CreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkPipelineCreateFlags2KHR flags;
-} VkPipelineCreateFlags2CreateInfoKHR;
+ VkPipelineBinaryKHR pipelineBinary;
+} VkPipelineBinaryDataInfoKHR;
-typedef struct VkBufferUsageFlags2CreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkBufferUsageFlags2KHR usage;
-} VkBufferUsageFlags2CreateInfoKHR;
+typedef struct VkPipelineBinaryHandlesInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t pipelineBinaryCount;
+ VkPipelineBinaryKHR* pPipelineBinaries;
+} VkPipelineBinaryHandlesInfoKHR;
-typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer2KHR)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkDeviceSize size, VkIndexType indexType);
-typedef void (VKAPI_PTR *PFN_vkGetRenderingAreaGranularityKHR)(VkDevice device, const VkRenderingAreaInfoKHR* pRenderingAreaInfo, VkExtent2D* pGranularity);
-typedef void (VKAPI_PTR *PFN_vkGetDeviceImageSubresourceLayoutKHR)(VkDevice device, const VkDeviceImageSubresourceInfoKHR* pInfo, VkSubresourceLayout2KHR* pLayout);
-typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout2KHR)(VkDevice device, VkImage image, const VkImageSubresource2KHR* pSubresource, VkSubresourceLayout2KHR* pLayout);
+typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineBinariesKHR)(VkDevice device, const VkPipelineBinaryCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineBinaryHandlesInfoKHR* pBinaries);
+typedef void (VKAPI_PTR *PFN_vkDestroyPipelineBinaryKHR)(VkDevice device, VkPipelineBinaryKHR pipelineBinary, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineKeyKHR)(VkDevice device, const VkPipelineCreateInfoKHR* pPipelineCreateInfo, VkPipelineBinaryKeyKHR* pPipelineKey);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineBinaryDataKHR)(VkDevice device, const VkPipelineBinaryDataInfoKHR* pInfo, VkPipelineBinaryKeyKHR* pPipelineBinaryKey, size_t* pPipelineBinaryDataSize, void* pPipelineBinaryData);
+typedef VkResult (VKAPI_PTR *PFN_vkReleaseCapturedPipelineDataKHR)(VkDevice device, const VkReleaseCapturedPipelineDataInfoKHR* pInfo, const VkAllocationCallbacks* pAllocator);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer2KHR(
- VkCommandBuffer commandBuffer,
- VkBuffer buffer,
- VkDeviceSize offset,
- VkDeviceSize size,
- VkIndexType indexType);
-
-VKAPI_ATTR void VKAPI_CALL vkGetRenderingAreaGranularityKHR(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineBinariesKHR(
VkDevice device,
- const VkRenderingAreaInfoKHR* pRenderingAreaInfo,
- VkExtent2D* pGranularity);
+ const VkPipelineBinaryCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkPipelineBinaryHandlesInfoKHR* pBinaries);
-VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSubresourceLayoutKHR(
+VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineBinaryKHR(
VkDevice device,
- const VkDeviceImageSubresourceInfoKHR* pInfo,
- VkSubresourceLayout2KHR* pLayout);
+ VkPipelineBinaryKHR pipelineBinary,
+ const VkAllocationCallbacks* pAllocator);
-VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout2KHR(
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineKeyKHR(
VkDevice device,
- VkImage image,
- const VkImageSubresource2KHR* pSubresource,
- VkSubresourceLayout2KHR* pLayout);
-#endif
+ const VkPipelineCreateInfoKHR* pPipelineCreateInfo,
+ VkPipelineBinaryKeyKHR* pPipelineKey);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineBinaryDataKHR(
+ VkDevice device,
+ const VkPipelineBinaryDataInfoKHR* pInfo,
+ VkPipelineBinaryKeyKHR* pPipelineBinaryKey,
+ size_t* pPipelineBinaryDataSize,
+ void* pPipelineBinaryData);
-// VK_KHR_ray_tracing_position_fetch is a preprocessor guard. Do not pass it to API calls.
-#define VK_KHR_ray_tracing_position_fetch 1
-#define VK_KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION 1
-#define VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME "VK_KHR_ray_tracing_position_fetch"
-typedef struct VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR {
- VkStructureType sType;
- void* pNext;
- VkBool32 rayTracingPositionFetch;
-} VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR;
-
+VKAPI_ATTR VkResult VKAPI_CALL vkReleaseCapturedPipelineDataKHR(
+ VkDevice device,
+ const VkReleaseCapturedPipelineDataInfoKHR* pInfo,
+ const VkAllocationCallbacks* pAllocator);
+#endif
// VK_KHR_cooperative_matrix is a preprocessor guard. Do not pass it to API calls.
@@ -11183,6 +12192,10 @@ typedef enum VkComponentTypeKHR {
VK_COMPONENT_TYPE_UINT16_KHR = 8,
VK_COMPONENT_TYPE_UINT32_KHR = 9,
VK_COMPONENT_TYPE_UINT64_KHR = 10,
+ VK_COMPONENT_TYPE_SINT8_PACKED_NV = 1000491000,
+ VK_COMPONENT_TYPE_UINT8_PACKED_NV = 1000491001,
+ VK_COMPONENT_TYPE_FLOAT_E4M3_NV = 1000491002,
+ VK_COMPONENT_TYPE_FLOAT_E5M2_NV = 1000491003,
VK_COMPONENT_TYPE_FLOAT16_NV = VK_COMPONENT_TYPE_FLOAT16_KHR,
VK_COMPONENT_TYPE_FLOAT32_NV = VK_COMPONENT_TYPE_FLOAT32_KHR,
VK_COMPONENT_TYPE_FLOAT64_NV = VK_COMPONENT_TYPE_FLOAT64_KHR,
@@ -11245,6 +12258,264 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR
#endif
+// VK_KHR_compute_shader_derivatives is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_compute_shader_derivatives 1
+#define VK_KHR_COMPUTE_SHADER_DERIVATIVES_SPEC_VERSION 1
+#define VK_KHR_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME "VK_KHR_compute_shader_derivatives"
+typedef struct VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 computeDerivativeGroupQuads;
+ VkBool32 computeDerivativeGroupLinear;
+} VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR;
+
+typedef struct VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 meshAndTaskShaderDerivatives;
+} VkPhysicalDeviceComputeShaderDerivativesPropertiesKHR;
+
+
+
+// VK_KHR_video_decode_av1 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_video_decode_av1 1
+#include "vk_video/vulkan_video_codec_av1std.h"
+#include "vk_video/vulkan_video_codec_av1std_decode.h"
+#define VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR 7U
+#define VK_KHR_VIDEO_DECODE_AV1_SPEC_VERSION 1
+#define VK_KHR_VIDEO_DECODE_AV1_EXTENSION_NAME "VK_KHR_video_decode_av1"
+typedef struct VkVideoDecodeAV1ProfileInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ StdVideoAV1Profile stdProfile;
+ VkBool32 filmGrainSupport;
+} VkVideoDecodeAV1ProfileInfoKHR;
+
+typedef struct VkVideoDecodeAV1CapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ StdVideoAV1Level maxLevel;
+} VkVideoDecodeAV1CapabilitiesKHR;
+
+typedef struct VkVideoDecodeAV1SessionParametersCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoAV1SequenceHeader* pStdSequenceHeader;
+} VkVideoDecodeAV1SessionParametersCreateInfoKHR;
+
+typedef struct VkVideoDecodeAV1PictureInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoDecodeAV1PictureInfo* pStdPictureInfo;
+ int32_t referenceNameSlotIndices[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR];
+ uint32_t frameHeaderOffset;
+ uint32_t tileCount;
+ const uint32_t* pTileOffsets;
+ const uint32_t* pTileSizes;
+} VkVideoDecodeAV1PictureInfoKHR;
+
+typedef struct VkVideoDecodeAV1DpbSlotInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoDecodeAV1ReferenceInfo* pStdReferenceInfo;
+} VkVideoDecodeAV1DpbSlotInfoKHR;
+
+
+
+// VK_KHR_video_encode_av1 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_video_encode_av1 1
+#include "vk_video/vulkan_video_codec_av1std_encode.h"
+#define VK_KHR_VIDEO_ENCODE_AV1_SPEC_VERSION 1
+#define VK_KHR_VIDEO_ENCODE_AV1_EXTENSION_NAME "VK_KHR_video_encode_av1"
+
+typedef enum VkVideoEncodeAV1PredictionModeKHR {
+ VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_INTRA_ONLY_KHR = 0,
+ VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_SINGLE_REFERENCE_KHR = 1,
+ VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_UNIDIRECTIONAL_COMPOUND_KHR = 2,
+ VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_BIDIRECTIONAL_COMPOUND_KHR = 3,
+ VK_VIDEO_ENCODE_AV1_PREDICTION_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeAV1PredictionModeKHR;
+
+typedef enum VkVideoEncodeAV1RateControlGroupKHR {
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_GROUP_INTRA_KHR = 0,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_GROUP_PREDICTIVE_KHR = 1,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_GROUP_BIPREDICTIVE_KHR = 2,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_GROUP_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeAV1RateControlGroupKHR;
+
+typedef enum VkVideoEncodeAV1CapabilityFlagBitsKHR {
+ VK_VIDEO_ENCODE_AV1_CAPABILITY_PER_RATE_CONTROL_GROUP_MIN_MAX_Q_INDEX_BIT_KHR = 0x00000001,
+ VK_VIDEO_ENCODE_AV1_CAPABILITY_GENERATE_OBU_EXTENSION_HEADER_BIT_KHR = 0x00000002,
+ VK_VIDEO_ENCODE_AV1_CAPABILITY_PRIMARY_REFERENCE_CDF_ONLY_BIT_KHR = 0x00000004,
+ VK_VIDEO_ENCODE_AV1_CAPABILITY_FRAME_SIZE_OVERRIDE_BIT_KHR = 0x00000008,
+ VK_VIDEO_ENCODE_AV1_CAPABILITY_MOTION_VECTOR_SCALING_BIT_KHR = 0x00000010,
+ VK_VIDEO_ENCODE_AV1_CAPABILITY_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeAV1CapabilityFlagBitsKHR;
+typedef VkFlags VkVideoEncodeAV1CapabilityFlagsKHR;
+
+typedef enum VkVideoEncodeAV1StdFlagBitsKHR {
+ VK_VIDEO_ENCODE_AV1_STD_UNIFORM_TILE_SPACING_FLAG_SET_BIT_KHR = 0x00000001,
+ VK_VIDEO_ENCODE_AV1_STD_SKIP_MODE_PRESENT_UNSET_BIT_KHR = 0x00000002,
+ VK_VIDEO_ENCODE_AV1_STD_PRIMARY_REF_FRAME_BIT_KHR = 0x00000004,
+ VK_VIDEO_ENCODE_AV1_STD_DELTA_Q_BIT_KHR = 0x00000008,
+ VK_VIDEO_ENCODE_AV1_STD_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeAV1StdFlagBitsKHR;
+typedef VkFlags VkVideoEncodeAV1StdFlagsKHR;
+
+typedef enum VkVideoEncodeAV1SuperblockSizeFlagBitsKHR {
+ VK_VIDEO_ENCODE_AV1_SUPERBLOCK_SIZE_64_BIT_KHR = 0x00000001,
+ VK_VIDEO_ENCODE_AV1_SUPERBLOCK_SIZE_128_BIT_KHR = 0x00000002,
+ VK_VIDEO_ENCODE_AV1_SUPERBLOCK_SIZE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeAV1SuperblockSizeFlagBitsKHR;
+typedef VkFlags VkVideoEncodeAV1SuperblockSizeFlagsKHR;
+
+typedef enum VkVideoEncodeAV1RateControlFlagBitsKHR {
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_REGULAR_GOP_BIT_KHR = 0x00000001,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_TEMPORAL_LAYER_PATTERN_DYADIC_BIT_KHR = 0x00000002,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_REFERENCE_PATTERN_FLAT_BIT_KHR = 0x00000004,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_REFERENCE_PATTERN_DYADIC_BIT_KHR = 0x00000008,
+ VK_VIDEO_ENCODE_AV1_RATE_CONTROL_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkVideoEncodeAV1RateControlFlagBitsKHR;
+typedef VkFlags VkVideoEncodeAV1RateControlFlagsKHR;
+typedef struct VkPhysicalDeviceVideoEncodeAV1FeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 videoEncodeAV1;
+} VkPhysicalDeviceVideoEncodeAV1FeaturesKHR;
+
+typedef struct VkVideoEncodeAV1CapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkVideoEncodeAV1CapabilityFlagsKHR flags;
+ StdVideoAV1Level maxLevel;
+ VkExtent2D codedPictureAlignment;
+ VkExtent2D maxTiles;
+ VkExtent2D minTileSize;
+ VkExtent2D maxTileSize;
+ VkVideoEncodeAV1SuperblockSizeFlagsKHR superblockSizes;
+ uint32_t maxSingleReferenceCount;
+ uint32_t singleReferenceNameMask;
+ uint32_t maxUnidirectionalCompoundReferenceCount;
+ uint32_t maxUnidirectionalCompoundGroup1ReferenceCount;
+ uint32_t unidirectionalCompoundReferenceNameMask;
+ uint32_t maxBidirectionalCompoundReferenceCount;
+ uint32_t maxBidirectionalCompoundGroup1ReferenceCount;
+ uint32_t maxBidirectionalCompoundGroup2ReferenceCount;
+ uint32_t bidirectionalCompoundReferenceNameMask;
+ uint32_t maxTemporalLayerCount;
+ uint32_t maxSpatialLayerCount;
+ uint32_t maxOperatingPoints;
+ uint32_t minQIndex;
+ uint32_t maxQIndex;
+ VkBool32 prefersGopRemainingFrames;
+ VkBool32 requiresGopRemainingFrames;
+ VkVideoEncodeAV1StdFlagsKHR stdSyntaxFlags;
+} VkVideoEncodeAV1CapabilitiesKHR;
+
+typedef struct VkVideoEncodeAV1QIndexKHR {
+ uint32_t intraQIndex;
+ uint32_t predictiveQIndex;
+ uint32_t bipredictiveQIndex;
+} VkVideoEncodeAV1QIndexKHR;
+
+typedef struct VkVideoEncodeAV1QualityLevelPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkVideoEncodeAV1RateControlFlagsKHR preferredRateControlFlags;
+ uint32_t preferredGopFrameCount;
+ uint32_t preferredKeyFramePeriod;
+ uint32_t preferredConsecutiveBipredictiveFrameCount;
+ uint32_t preferredTemporalLayerCount;
+ VkVideoEncodeAV1QIndexKHR preferredConstantQIndex;
+ uint32_t preferredMaxSingleReferenceCount;
+ uint32_t preferredSingleReferenceNameMask;
+ uint32_t preferredMaxUnidirectionalCompoundReferenceCount;
+ uint32_t preferredMaxUnidirectionalCompoundGroup1ReferenceCount;
+ uint32_t preferredUnidirectionalCompoundReferenceNameMask;
+ uint32_t preferredMaxBidirectionalCompoundReferenceCount;
+ uint32_t preferredMaxBidirectionalCompoundGroup1ReferenceCount;
+ uint32_t preferredMaxBidirectionalCompoundGroup2ReferenceCount;
+ uint32_t preferredBidirectionalCompoundReferenceNameMask;
+} VkVideoEncodeAV1QualityLevelPropertiesKHR;
+
+typedef struct VkVideoEncodeAV1SessionCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 useMaxLevel;
+ StdVideoAV1Level maxLevel;
+} VkVideoEncodeAV1SessionCreateInfoKHR;
+
+typedef struct VkVideoEncodeAV1SessionParametersCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoAV1SequenceHeader* pStdSequenceHeader;
+ const StdVideoEncodeAV1DecoderModelInfo* pStdDecoderModelInfo;
+ uint32_t stdOperatingPointCount;
+ const StdVideoEncodeAV1OperatingPointInfo* pStdOperatingPoints;
+} VkVideoEncodeAV1SessionParametersCreateInfoKHR;
+
+typedef struct VkVideoEncodeAV1PictureInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkVideoEncodeAV1PredictionModeKHR predictionMode;
+ VkVideoEncodeAV1RateControlGroupKHR rateControlGroup;
+ uint32_t constantQIndex;
+ const StdVideoEncodeAV1PictureInfo* pStdPictureInfo;
+ int32_t referenceNameSlotIndices[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR];
+ VkBool32 primaryReferenceCdfOnly;
+ VkBool32 generateObuExtensionHeader;
+} VkVideoEncodeAV1PictureInfoKHR;
+
+typedef struct VkVideoEncodeAV1DpbSlotInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoEncodeAV1ReferenceInfo* pStdReferenceInfo;
+} VkVideoEncodeAV1DpbSlotInfoKHR;
+
+typedef struct VkVideoEncodeAV1ProfileInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ StdVideoAV1Profile stdProfile;
+} VkVideoEncodeAV1ProfileInfoKHR;
+
+typedef struct VkVideoEncodeAV1FrameSizeKHR {
+ uint32_t intraFrameSize;
+ uint32_t predictiveFrameSize;
+ uint32_t bipredictiveFrameSize;
+} VkVideoEncodeAV1FrameSizeKHR;
+
+typedef struct VkVideoEncodeAV1GopRemainingFrameInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 useGopRemainingFrames;
+ uint32_t gopRemainingIntra;
+ uint32_t gopRemainingPredictive;
+ uint32_t gopRemainingBipredictive;
+} VkVideoEncodeAV1GopRemainingFrameInfoKHR;
+
+typedef struct VkVideoEncodeAV1RateControlInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkVideoEncodeAV1RateControlFlagsKHR flags;
+ uint32_t gopFrameCount;
+ uint32_t keyFramePeriod;
+ uint32_t consecutiveBipredictiveFrameCount;
+ uint32_t temporalLayerCount;
+} VkVideoEncodeAV1RateControlInfoKHR;
+
+typedef struct VkVideoEncodeAV1RateControlLayerInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 useMinQIndex;
+ VkVideoEncodeAV1QIndexKHR minQIndex;
+ VkBool32 useMaxQIndex;
+ VkVideoEncodeAV1QIndexKHR maxQIndex;
+ VkBool32 useMaxFrameSize;
+ VkVideoEncodeAV1FrameSizeKHR maxFrameSize;
+} VkVideoEncodeAV1RateControlLayerInfoKHR;
+
+
+
// VK_KHR_video_maintenance1 is a preprocessor guard. Do not pass it to API calls.
#define VK_KHR_video_maintenance1 1
#define VK_KHR_VIDEO_MAINTENANCE_1_SPEC_VERSION 1
@@ -11269,33 +12540,59 @@ typedef struct VkVideoInlineQueryInfoKHR {
#define VK_KHR_vertex_attribute_divisor 1
#define VK_KHR_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION 1
#define VK_KHR_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME "VK_KHR_vertex_attribute_divisor"
-typedef struct VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR {
- VkStructureType sType;
- void* pNext;
- uint32_t maxVertexAttribDivisor;
- VkBool32 supportsNonZeroFirstInstance;
-} VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR;
+typedef VkPhysicalDeviceVertexAttributeDivisorProperties VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR;
-typedef struct VkVertexInputBindingDivisorDescriptionKHR {
- uint32_t binding;
- uint32_t divisor;
-} VkVertexInputBindingDivisorDescriptionKHR;
+typedef VkVertexInputBindingDivisorDescription VkVertexInputBindingDivisorDescriptionKHR;
-typedef struct VkPipelineVertexInputDivisorStateCreateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- uint32_t vertexBindingDivisorCount;
- const VkVertexInputBindingDivisorDescriptionKHR* pVertexBindingDivisors;
-} VkPipelineVertexInputDivisorStateCreateInfoKHR;
+typedef VkPipelineVertexInputDivisorStateCreateInfo VkPipelineVertexInputDivisorStateCreateInfoKHR;
-typedef struct VkPhysicalDeviceVertexAttributeDivisorFeaturesKHR {
- VkStructureType sType;
- void* pNext;
- VkBool32 vertexAttributeInstanceRateDivisor;
- VkBool32 vertexAttributeInstanceRateZeroDivisor;
-} VkPhysicalDeviceVertexAttributeDivisorFeaturesKHR;
+typedef VkPhysicalDeviceVertexAttributeDivisorFeatures VkPhysicalDeviceVertexAttributeDivisorFeaturesKHR;
+
+
+
+// VK_KHR_load_store_op_none is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_load_store_op_none 1
+#define VK_KHR_LOAD_STORE_OP_NONE_SPEC_VERSION 1
+#define VK_KHR_LOAD_STORE_OP_NONE_EXTENSION_NAME "VK_KHR_load_store_op_none"
+// VK_KHR_shader_float_controls2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_shader_float_controls2 1
+#define VK_KHR_SHADER_FLOAT_CONTROLS_2_SPEC_VERSION 1
+#define VK_KHR_SHADER_FLOAT_CONTROLS_2_EXTENSION_NAME "VK_KHR_shader_float_controls2"
+typedef VkPhysicalDeviceShaderFloatControls2Features VkPhysicalDeviceShaderFloatControls2FeaturesKHR;
+
+
+
+// VK_KHR_index_type_uint8 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_index_type_uint8 1
+#define VK_KHR_INDEX_TYPE_UINT8_SPEC_VERSION 1
+#define VK_KHR_INDEX_TYPE_UINT8_EXTENSION_NAME "VK_KHR_index_type_uint8"
+typedef VkPhysicalDeviceIndexTypeUint8Features VkPhysicalDeviceIndexTypeUint8FeaturesKHR;
+
+
+
+// VK_KHR_line_rasterization is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_line_rasterization 1
+#define VK_KHR_LINE_RASTERIZATION_SPEC_VERSION 1
+#define VK_KHR_LINE_RASTERIZATION_EXTENSION_NAME "VK_KHR_line_rasterization"
+typedef VkLineRasterizationMode VkLineRasterizationModeKHR;
+
+typedef VkPhysicalDeviceLineRasterizationFeatures VkPhysicalDeviceLineRasterizationFeaturesKHR;
+
+typedef VkPhysicalDeviceLineRasterizationProperties VkPhysicalDeviceLineRasterizationPropertiesKHR;
+
+typedef VkPipelineRasterizationLineStateCreateInfo VkPipelineRasterizationLineStateCreateInfoKHR;
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetLineStippleKHR)(VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLineStippleKHR(
+ VkCommandBuffer commandBuffer,
+ uint32_t lineStippleFactor,
+ uint16_t lineStipplePattern);
+#endif
+
// VK_KHR_calibrated_timestamps is a preprocessor guard. Do not pass it to API calls.
#define VK_KHR_calibrated_timestamps 1
@@ -11337,70 +12634,31 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetCalibratedTimestampsKHR(
#endif
+// VK_KHR_shader_expect_assume is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_shader_expect_assume 1
+#define VK_KHR_SHADER_EXPECT_ASSUME_SPEC_VERSION 1
+#define VK_KHR_SHADER_EXPECT_ASSUME_EXTENSION_NAME "VK_KHR_shader_expect_assume"
+typedef VkPhysicalDeviceShaderExpectAssumeFeatures VkPhysicalDeviceShaderExpectAssumeFeaturesKHR;
+
+
+
// VK_KHR_maintenance6 is a preprocessor guard. Do not pass it to API calls.
#define VK_KHR_maintenance6 1
#define VK_KHR_MAINTENANCE_6_SPEC_VERSION 1
#define VK_KHR_MAINTENANCE_6_EXTENSION_NAME "VK_KHR_maintenance6"
-typedef struct VkPhysicalDeviceMaintenance6FeaturesKHR {
- VkStructureType sType;
- void* pNext;
- VkBool32 maintenance6;
-} VkPhysicalDeviceMaintenance6FeaturesKHR;
+typedef VkPhysicalDeviceMaintenance6Features VkPhysicalDeviceMaintenance6FeaturesKHR;
-typedef struct VkPhysicalDeviceMaintenance6PropertiesKHR {
- VkStructureType sType;
- void* pNext;
- VkBool32 blockTexelViewCompatibleMultipleLayers;
- uint32_t maxCombinedImageSamplerDescriptorCount;
- VkBool32 fragmentShadingRateClampCombinerInputs;
-} VkPhysicalDeviceMaintenance6PropertiesKHR;
+typedef VkPhysicalDeviceMaintenance6Properties VkPhysicalDeviceMaintenance6PropertiesKHR;
-typedef struct VkBindMemoryStatusKHR {
- VkStructureType sType;
- const void* pNext;
- VkResult* pResult;
-} VkBindMemoryStatusKHR;
+typedef VkBindMemoryStatus VkBindMemoryStatusKHR;
-typedef struct VkBindDescriptorSetsInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkShaderStageFlags stageFlags;
- VkPipelineLayout layout;
- uint32_t firstSet;
- uint32_t descriptorSetCount;
- const VkDescriptorSet* pDescriptorSets;
- uint32_t dynamicOffsetCount;
- const uint32_t* pDynamicOffsets;
-} VkBindDescriptorSetsInfoKHR;
+typedef VkBindDescriptorSetsInfo VkBindDescriptorSetsInfoKHR;
-typedef struct VkPushConstantsInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkPipelineLayout layout;
- VkShaderStageFlags stageFlags;
- uint32_t offset;
- uint32_t size;
- const void* pValues;
-} VkPushConstantsInfoKHR;
+typedef VkPushConstantsInfo VkPushConstantsInfoKHR;
-typedef struct VkPushDescriptorSetInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkShaderStageFlags stageFlags;
- VkPipelineLayout layout;
- uint32_t set;
- uint32_t descriptorWriteCount;
- const VkWriteDescriptorSet* pDescriptorWrites;
-} VkPushDescriptorSetInfoKHR;
+typedef VkPushDescriptorSetInfo VkPushDescriptorSetInfoKHR;
-typedef struct VkPushDescriptorSetWithTemplateInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkDescriptorUpdateTemplate descriptorUpdateTemplate;
- VkPipelineLayout layout;
- uint32_t set;
- const void* pData;
-} VkPushDescriptorSetWithTemplateInfoKHR;
+typedef VkPushDescriptorSetWithTemplateInfo VkPushDescriptorSetWithTemplateInfoKHR;
typedef struct VkSetDescriptorBufferOffsetsInfoEXT {
VkStructureType sType;
@@ -11421,38 +12679,246 @@ typedef struct VkBindDescriptorBufferEmbeddedSamplersInfoEXT {
uint32_t set;
} VkBindDescriptorBufferEmbeddedSamplersInfoEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets2KHR)(VkCommandBuffer commandBuffer, const VkBindDescriptorSetsInfoKHR* pBindDescriptorSetsInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdPushConstants2KHR)(VkCommandBuffer commandBuffer, const VkPushConstantsInfoKHR* pPushConstantsInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSet2KHR)(VkCommandBuffer commandBuffer, const VkPushDescriptorSetInfoKHR* pPushDescriptorSetInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetWithTemplate2KHR)(VkCommandBuffer commandBuffer, const VkPushDescriptorSetWithTemplateInfoKHR* pPushDescriptorSetWithTemplateInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets2KHR)(VkCommandBuffer commandBuffer, const VkBindDescriptorSetsInfo* pBindDescriptorSetsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdPushConstants2KHR)(VkCommandBuffer commandBuffer, const VkPushConstantsInfo* pPushConstantsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSet2KHR)(VkCommandBuffer commandBuffer, const VkPushDescriptorSetInfo* pPushDescriptorSetInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetWithTemplate2KHR)(VkCommandBuffer commandBuffer, const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
typedef void (VKAPI_PTR *PFN_vkCmdSetDescriptorBufferOffsets2EXT)(VkCommandBuffer commandBuffer, const VkSetDescriptorBufferOffsetsInfoEXT* pSetDescriptorBufferOffsetsInfo);
typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorBufferEmbeddedSamplers2EXT)(VkCommandBuffer commandBuffer, const VkBindDescriptorBufferEmbeddedSamplersInfoEXT* pBindDescriptorBufferEmbeddedSamplersInfo);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets2KHR(
VkCommandBuffer commandBuffer,
- const VkBindDescriptorSetsInfoKHR* pBindDescriptorSetsInfo);
+ const VkBindDescriptorSetsInfo* pBindDescriptorSetsInfo);
VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants2KHR(
VkCommandBuffer commandBuffer,
- const VkPushConstantsInfoKHR* pPushConstantsInfo);
+ const VkPushConstantsInfo* pPushConstantsInfo);
VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSet2KHR(
VkCommandBuffer commandBuffer,
- const VkPushDescriptorSetInfoKHR* pPushDescriptorSetInfo);
+ const VkPushDescriptorSetInfo* pPushDescriptorSetInfo);
VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSetWithTemplate2KHR(
VkCommandBuffer commandBuffer,
- const VkPushDescriptorSetWithTemplateInfoKHR* pPushDescriptorSetWithTemplateInfo);
+ const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
VKAPI_ATTR void VKAPI_CALL vkCmdSetDescriptorBufferOffsets2EXT(
VkCommandBuffer commandBuffer,
const VkSetDescriptorBufferOffsetsInfoEXT* pSetDescriptorBufferOffsetsInfo);
-VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
- VkCommandBuffer commandBuffer,
- const VkBindDescriptorBufferEmbeddedSamplersInfoEXT* pBindDescriptorBufferEmbeddedSamplersInfo);
-#endif
+VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
+ VkCommandBuffer commandBuffer,
+ const VkBindDescriptorBufferEmbeddedSamplersInfoEXT* pBindDescriptorBufferEmbeddedSamplersInfo);
+#endif
+
+
+// VK_KHR_video_encode_quantization_map is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_video_encode_quantization_map 1
+#define VK_KHR_VIDEO_ENCODE_QUANTIZATION_MAP_SPEC_VERSION 2
+#define VK_KHR_VIDEO_ENCODE_QUANTIZATION_MAP_EXTENSION_NAME "VK_KHR_video_encode_quantization_map"
+typedef struct VkVideoEncodeQuantizationMapCapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkExtent2D maxQuantizationMapExtent;
+} VkVideoEncodeQuantizationMapCapabilitiesKHR;
+
+typedef struct VkVideoFormatQuantizationMapPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkExtent2D quantizationMapTexelSize;
+} VkVideoFormatQuantizationMapPropertiesKHR;
+
+typedef struct VkVideoEncodeQuantizationMapInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageView quantizationMap;
+ VkExtent2D quantizationMapExtent;
+} VkVideoEncodeQuantizationMapInfoKHR;
+
+typedef struct VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExtent2D quantizationMapTexelSize;
+} VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR;
+
+typedef struct VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 videoEncodeQuantizationMap;
+} VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR;
+
+typedef struct VkVideoEncodeH264QuantizationMapCapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ int32_t minQpDelta;
+ int32_t maxQpDelta;
+} VkVideoEncodeH264QuantizationMapCapabilitiesKHR;
+
+typedef struct VkVideoEncodeH265QuantizationMapCapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ int32_t minQpDelta;
+ int32_t maxQpDelta;
+} VkVideoEncodeH265QuantizationMapCapabilitiesKHR;
+
+typedef struct VkVideoFormatH265QuantizationMapPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkVideoEncodeH265CtbSizeFlagsKHR compatibleCtbSizes;
+} VkVideoFormatH265QuantizationMapPropertiesKHR;
+
+typedef struct VkVideoEncodeAV1QuantizationMapCapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ int32_t minQIndexDelta;
+ int32_t maxQIndexDelta;
+} VkVideoEncodeAV1QuantizationMapCapabilitiesKHR;
+
+typedef struct VkVideoFormatAV1QuantizationMapPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkVideoEncodeAV1SuperblockSizeFlagsKHR compatibleSuperblockSizes;
+} VkVideoFormatAV1QuantizationMapPropertiesKHR;
+
+
+
+// VK_KHR_shader_relaxed_extended_instruction is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_shader_relaxed_extended_instruction 1
+#define VK_KHR_SHADER_RELAXED_EXTENDED_INSTRUCTION_SPEC_VERSION 1
+#define VK_KHR_SHADER_RELAXED_EXTENDED_INSTRUCTION_EXTENSION_NAME "VK_KHR_shader_relaxed_extended_instruction"
+typedef struct VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderRelaxedExtendedInstruction;
+} VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR;
+
+
+
+// VK_KHR_maintenance7 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_maintenance7 1
+#define VK_KHR_MAINTENANCE_7_SPEC_VERSION 1
+#define VK_KHR_MAINTENANCE_7_EXTENSION_NAME "VK_KHR_maintenance7"
+
+typedef enum VkPhysicalDeviceLayeredApiKHR {
+ VK_PHYSICAL_DEVICE_LAYERED_API_VULKAN_KHR = 0,
+ VK_PHYSICAL_DEVICE_LAYERED_API_D3D12_KHR = 1,
+ VK_PHYSICAL_DEVICE_LAYERED_API_METAL_KHR = 2,
+ VK_PHYSICAL_DEVICE_LAYERED_API_OPENGL_KHR = 3,
+ VK_PHYSICAL_DEVICE_LAYERED_API_OPENGLES_KHR = 4,
+ VK_PHYSICAL_DEVICE_LAYERED_API_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkPhysicalDeviceLayeredApiKHR;
+typedef struct VkPhysicalDeviceMaintenance7FeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 maintenance7;
+} VkPhysicalDeviceMaintenance7FeaturesKHR;
+
+typedef struct VkPhysicalDeviceMaintenance7PropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 robustFragmentShadingRateAttachmentAccess;
+ VkBool32 separateDepthStencilAttachmentAccess;
+ uint32_t maxDescriptorSetTotalUniformBuffersDynamic;
+ uint32_t maxDescriptorSetTotalStorageBuffersDynamic;
+ uint32_t maxDescriptorSetTotalBuffersDynamic;
+ uint32_t maxDescriptorSetUpdateAfterBindTotalUniformBuffersDynamic;
+ uint32_t maxDescriptorSetUpdateAfterBindTotalStorageBuffersDynamic;
+ uint32_t maxDescriptorSetUpdateAfterBindTotalBuffersDynamic;
+} VkPhysicalDeviceMaintenance7PropertiesKHR;
+
+typedef struct VkPhysicalDeviceLayeredApiPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t vendorID;
+ uint32_t deviceID;
+ VkPhysicalDeviceLayeredApiKHR layeredAPI;
+ char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
+} VkPhysicalDeviceLayeredApiPropertiesKHR;
+
+typedef struct VkPhysicalDeviceLayeredApiPropertiesListKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t layeredApiCount;
+ VkPhysicalDeviceLayeredApiPropertiesKHR* pLayeredApis;
+} VkPhysicalDeviceLayeredApiPropertiesListKHR;
+
+typedef struct VkPhysicalDeviceLayeredApiVulkanPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkPhysicalDeviceProperties2 properties;
+} VkPhysicalDeviceLayeredApiVulkanPropertiesKHR;
+
+
+
+// VK_KHR_maintenance8 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_maintenance8 1
+#define VK_KHR_MAINTENANCE_8_SPEC_VERSION 1
+#define VK_KHR_MAINTENANCE_8_EXTENSION_NAME "VK_KHR_maintenance8"
+typedef VkFlags64 VkAccessFlags3KHR;
+
+// Flag bits for VkAccessFlagBits3KHR
+typedef VkFlags64 VkAccessFlagBits3KHR;
+static const VkAccessFlagBits3KHR VK_ACCESS_3_NONE_KHR = 0ULL;
+
+typedef struct VkPhysicalDeviceMaintenance8FeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 maintenance8;
+} VkPhysicalDeviceMaintenance8FeaturesKHR;
+
+typedef struct VkMemoryBarrierAccessFlags3KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkAccessFlags3KHR srcAccessMask3;
+ VkAccessFlags3KHR dstAccessMask3;
+} VkMemoryBarrierAccessFlags3KHR;
+
+
+
+// VK_KHR_video_maintenance2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_video_maintenance2 1
+#define VK_KHR_VIDEO_MAINTENANCE_2_SPEC_VERSION 1
+#define VK_KHR_VIDEO_MAINTENANCE_2_EXTENSION_NAME "VK_KHR_video_maintenance2"
+typedef struct VkPhysicalDeviceVideoMaintenance2FeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 videoMaintenance2;
+} VkPhysicalDeviceVideoMaintenance2FeaturesKHR;
+
+typedef struct VkVideoDecodeH264InlineSessionParametersInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoH264SequenceParameterSet* pStdSPS;
+ const StdVideoH264PictureParameterSet* pStdPPS;
+} VkVideoDecodeH264InlineSessionParametersInfoKHR;
+
+typedef struct VkVideoDecodeH265InlineSessionParametersInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoH265VideoParameterSet* pStdVPS;
+ const StdVideoH265SequenceParameterSet* pStdSPS;
+ const StdVideoH265PictureParameterSet* pStdPPS;
+} VkVideoDecodeH265InlineSessionParametersInfoKHR;
+
+typedef struct VkVideoDecodeAV1InlineSessionParametersInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const StdVideoAV1SequenceHeader* pStdSequenceHeader;
+} VkVideoDecodeAV1InlineSessionParametersInfoKHR;
+
+
+
+// VK_KHR_depth_clamp_zero_one is a preprocessor guard. Do not pass it to API calls.
+#define VK_KHR_depth_clamp_zero_one 1
+#define VK_KHR_DEPTH_CLAMP_ZERO_ONE_SPEC_VERSION 1
+#define VK_KHR_DEPTH_CLAMP_ZERO_ONE_EXTENSION_NAME "VK_KHR_depth_clamp_zero_one"
+typedef struct VkPhysicalDeviceDepthClampZeroOneFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 depthClampZeroOne;
+} VkPhysicalDeviceDepthClampZeroOneFeaturesKHR;
+
// VK_EXT_debug_report is a preprocessor guard. Do not pass it to API calls.
@@ -11503,7 +12969,9 @@ typedef enum VkDebugReportObjectTypeEXT {
VK_DEBUG_REPORT_OBJECT_TYPE_CUDA_MODULE_NV_EXT = 1000307000,
VK_DEBUG_REPORT_OBJECT_TYPE_CUDA_FUNCTION_NV_EXT = 1000307001,
VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA_EXT = 1000366000,
+ // VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT is a deprecated alias
VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT,
+ // VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT is a deprecated alias
VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT_EXT,
VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_EXT,
VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_EXT,
@@ -11793,7 +13261,7 @@ VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirectByteCountEXT(
#define VK_NVX_binary_import 1
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCuModuleNVX)
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCuFunctionNVX)
-#define VK_NVX_BINARY_IMPORT_SPEC_VERSION 1
+#define VK_NVX_BINARY_IMPORT_SPEC_VERSION 2
#define VK_NVX_BINARY_IMPORT_EXTENSION_NAME "VK_NVX_binary_import"
typedef struct VkCuModuleCreateInfoNVX {
VkStructureType sType;
@@ -11802,6 +13270,12 @@ typedef struct VkCuModuleCreateInfoNVX {
const void* pData;
} VkCuModuleCreateInfoNVX;
+typedef struct VkCuModuleTexturingModeCreateInfoNVX {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 use64bitTexturing;
+} VkCuModuleTexturingModeCreateInfoNVX;
+
typedef struct VkCuFunctionCreateInfoNVX {
VkStructureType sType;
const void* pNext;
@@ -11863,7 +13337,7 @@ VKAPI_ATTR void VKAPI_CALL vkCmdCuLaunchKernelNVX(
// VK_NVX_image_view_handle is a preprocessor guard. Do not pass it to API calls.
#define VK_NVX_image_view_handle 1
-#define VK_NVX_IMAGE_VIEW_HANDLE_SPEC_VERSION 2
+#define VK_NVX_IMAGE_VIEW_HANDLE_SPEC_VERSION 3
#define VK_NVX_IMAGE_VIEW_HANDLE_EXTENSION_NAME "VK_NVX_image_view_handle"
typedef struct VkImageViewHandleInfoNVX {
VkStructureType sType;
@@ -11881,6 +13355,7 @@ typedef struct VkImageViewAddressPropertiesNVX {
} VkImageViewAddressPropertiesNVX;
typedef uint32_t (VKAPI_PTR *PFN_vkGetImageViewHandleNVX)(VkDevice device, const VkImageViewHandleInfoNVX* pInfo);
+typedef uint64_t (VKAPI_PTR *PFN_vkGetImageViewHandle64NVX)(VkDevice device, const VkImageViewHandleInfoNVX* pInfo);
typedef VkResult (VKAPI_PTR *PFN_vkGetImageViewAddressNVX)(VkDevice device, VkImageView imageView, VkImageViewAddressPropertiesNVX* pProperties);
#ifndef VK_NO_PROTOTYPES
@@ -11888,6 +13363,10 @@ VKAPI_ATTR uint32_t VKAPI_CALL vkGetImageViewHandleNVX(
VkDevice device,
const VkImageViewHandleInfoNVX* pInfo);
+VKAPI_ATTR uint64_t VKAPI_CALL vkGetImageViewHandle64NVX(
+ VkDevice device,
+ const VkImageViewHandleInfoNVX* pInfo);
+
VKAPI_ATTR VkResult VKAPI_CALL vkGetImageViewAddressNVX(
VkDevice device,
VkImageView imageView,
@@ -12141,45 +13620,15 @@ typedef struct VkPhysicalDeviceASTCDecodeFeaturesEXT {
#define VK_EXT_pipeline_robustness 1
#define VK_EXT_PIPELINE_ROBUSTNESS_SPEC_VERSION 1
#define VK_EXT_PIPELINE_ROBUSTNESS_EXTENSION_NAME "VK_EXT_pipeline_robustness"
+typedef VkPipelineRobustnessBufferBehavior VkPipelineRobustnessBufferBehaviorEXT;
-typedef enum VkPipelineRobustnessBufferBehaviorEXT {
- VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DEVICE_DEFAULT_EXT = 0,
- VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_DISABLED_EXT = 1,
- VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT = 2,
- VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT = 3,
- VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkPipelineRobustnessBufferBehaviorEXT;
+typedef VkPipelineRobustnessImageBehavior VkPipelineRobustnessImageBehaviorEXT;
-typedef enum VkPipelineRobustnessImageBehaviorEXT {
- VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT_EXT = 0,
- VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED_EXT = 1,
- VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_EXT = 2,
- VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2_EXT = 3,
- VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkPipelineRobustnessImageBehaviorEXT;
-typedef struct VkPhysicalDevicePipelineRobustnessFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 pipelineRobustness;
-} VkPhysicalDevicePipelineRobustnessFeaturesEXT;
+typedef VkPhysicalDevicePipelineRobustnessFeatures VkPhysicalDevicePipelineRobustnessFeaturesEXT;
-typedef struct VkPhysicalDevicePipelineRobustnessPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- VkPipelineRobustnessBufferBehaviorEXT defaultRobustnessStorageBuffers;
- VkPipelineRobustnessBufferBehaviorEXT defaultRobustnessUniformBuffers;
- VkPipelineRobustnessBufferBehaviorEXT defaultRobustnessVertexInputs;
- VkPipelineRobustnessImageBehaviorEXT defaultRobustnessImages;
-} VkPhysicalDevicePipelineRobustnessPropertiesEXT;
-
-typedef struct VkPipelineRobustnessCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkPipelineRobustnessBufferBehaviorEXT storageBuffers;
- VkPipelineRobustnessBufferBehaviorEXT uniformBuffers;
- VkPipelineRobustnessBufferBehaviorEXT vertexInputs;
- VkPipelineRobustnessImageBehaviorEXT images;
-} VkPipelineRobustnessCreateInfoEXT;
+typedef VkPhysicalDevicePipelineRobustnessProperties VkPhysicalDevicePipelineRobustnessPropertiesEXT;
+
+typedef VkPipelineRobustnessCreateInfo VkPipelineRobustnessCreateInfoEXT;
@@ -12275,6 +13724,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkReleaseDisplayEXT(
typedef enum VkSurfaceCounterFlagBitsEXT {
VK_SURFACE_COUNTER_VBLANK_BIT_EXT = 0x00000001,
+ // VK_SURFACE_COUNTER_VBLANK_EXT is a deprecated alias
VK_SURFACE_COUNTER_VBLANK_EXT = VK_SURFACE_COUNTER_VBLANK_BIT_EXT,
VK_SURFACE_COUNTER_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
} VkSurfaceCounterFlagBitsEXT;
@@ -12443,7 +13893,9 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetPastPresentationTimingGOOGLE(
#define VK_NV_viewport_array2 1
#define VK_NV_VIEWPORT_ARRAY_2_SPEC_VERSION 1
#define VK_NV_VIEWPORT_ARRAY_2_EXTENSION_NAME "VK_NV_viewport_array2"
+// VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION is a deprecated alias
#define VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION VK_NV_VIEWPORT_ARRAY_2_SPEC_VERSION
+// VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME is a deprecated alias
#define VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME VK_NV_VIEWPORT_ARRAY_2_EXTENSION_NAME
@@ -12457,6 +13909,13 @@ typedef struct VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX {
VkBool32 perViewPositionAllComponents;
} VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX;
+typedef struct VkMultiviewPerViewAttributesInfoNVX {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 perViewAttributes;
+ VkBool32 perViewAttributesPositionXOnly;
+} VkMultiviewPerViewAttributesInfoNVX;
+
// VK_NV_viewport_swizzle is a preprocessor guard. Do not pass it to API calls.
@@ -12598,13 +14057,13 @@ typedef struct VkPipelineRasterizationDepthClipStateCreateInfoEXT {
// VK_EXT_swapchain_colorspace is a preprocessor guard. Do not pass it to API calls.
#define VK_EXT_swapchain_colorspace 1
-#define VK_EXT_SWAPCHAIN_COLOR_SPACE_SPEC_VERSION 4
+#define VK_EXT_SWAPCHAIN_COLOR_SPACE_SPEC_VERSION 5
#define VK_EXT_SWAPCHAIN_COLOR_SPACE_EXTENSION_NAME "VK_EXT_swapchain_colorspace"
// VK_EXT_hdr_metadata is a preprocessor guard. Do not pass it to API calls.
#define VK_EXT_hdr_metadata 1
-#define VK_EXT_HDR_METADATA_SPEC_VERSION 2
+#define VK_EXT_HDR_METADATA_SPEC_VERSION 3
#define VK_EXT_HDR_METADATA_EXTENSION_NAME "VK_EXT_hdr_metadata"
typedef struct VkXYColorEXT {
float x;
@@ -12825,6 +14284,14 @@ typedef VkPhysicalDeviceSamplerFilterMinmaxProperties VkPhysicalDeviceSamplerFil
#define VK_AMD_mixed_attachment_samples 1
#define VK_AMD_MIXED_ATTACHMENT_SAMPLES_SPEC_VERSION 1
#define VK_AMD_MIXED_ATTACHMENT_SAMPLES_EXTENSION_NAME "VK_AMD_mixed_attachment_samples"
+typedef struct VkAttachmentSampleCountInfoAMD {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t colorAttachmentCount;
+ const VkSampleCountFlagBits* pColorAttachmentSamples;
+ VkSampleCountFlagBits depthStencilAttachmentSamples;
+} VkAttachmentSampleCountInfoAMD;
+
// VK_AMD_shader_fragment_mask is a preprocessor guard. Do not pass it to API calls.
@@ -13004,6 +14471,8 @@ typedef struct VkPipelineCoverageModulationStateCreateInfoNV {
const float* pCoverageModulationTable;
} VkPipelineCoverageModulationStateCreateInfoNV;
+typedef VkAttachmentSampleCountInfoAMD VkAttachmentSampleCountInfoNV;
+
// VK_NV_fill_rectangle is a preprocessor guard. Do not pass it to API calls.
@@ -13314,6 +14783,8 @@ typedef enum VkGeometryTypeKHR {
VK_GEOMETRY_TYPE_TRIANGLES_KHR = 0,
VK_GEOMETRY_TYPE_AABBS_KHR = 1,
VK_GEOMETRY_TYPE_INSTANCES_KHR = 2,
+ VK_GEOMETRY_TYPE_SPHERES_NV = 1000429004,
+ VK_GEOMETRY_TYPE_LINEAR_SWEPT_SPHERES_NV = 1000429005,
VK_GEOMETRY_TYPE_TRIANGLES_NV = VK_GEOMETRY_TYPE_TRIANGLES_KHR,
VK_GEOMETRY_TYPE_AABBS_NV = VK_GEOMETRY_TYPE_AABBS_KHR,
VK_GEOMETRY_TYPE_MAX_ENUM_KHR = 0x7FFFFFFF
@@ -13694,5180 +15165,6225 @@ typedef struct VkPipelineRepresentativeFragmentTestStateCreateInfoNV {
typedef struct VkPhysicalDeviceImageViewImageFormatInfoEXT {
VkStructureType sType;
void* pNext;
- VkImageViewType imageViewType;
-} VkPhysicalDeviceImageViewImageFormatInfoEXT;
+ VkImageViewType imageViewType;
+} VkPhysicalDeviceImageViewImageFormatInfoEXT;
+
+typedef struct VkFilterCubicImageViewImageFormatPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 filterCubic;
+ VkBool32 filterCubicMinmax;
+} VkFilterCubicImageViewImageFormatPropertiesEXT;
+
+
+
+// VK_QCOM_render_pass_shader_resolve is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_render_pass_shader_resolve 1
+#define VK_QCOM_RENDER_PASS_SHADER_RESOLVE_SPEC_VERSION 4
+#define VK_QCOM_RENDER_PASS_SHADER_RESOLVE_EXTENSION_NAME "VK_QCOM_render_pass_shader_resolve"
+
+
+// VK_EXT_global_priority is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_global_priority 1
+#define VK_EXT_GLOBAL_PRIORITY_SPEC_VERSION 2
+#define VK_EXT_GLOBAL_PRIORITY_EXTENSION_NAME "VK_EXT_global_priority"
+typedef VkQueueGlobalPriority VkQueueGlobalPriorityEXT;
+
+typedef VkDeviceQueueGlobalPriorityCreateInfo VkDeviceQueueGlobalPriorityCreateInfoEXT;
+
+
+
+// VK_EXT_external_memory_host is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_external_memory_host 1
+#define VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION 1
+#define VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME "VK_EXT_external_memory_host"
+typedef struct VkImportMemoryHostPointerInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagBits handleType;
+ void* pHostPointer;
+} VkImportMemoryHostPointerInfoEXT;
+
+typedef struct VkMemoryHostPointerPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t memoryTypeBits;
+} VkMemoryHostPointerPropertiesEXT;
+
+typedef struct VkPhysicalDeviceExternalMemoryHostPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkDeviceSize minImportedHostPointerAlignment;
+} VkPhysicalDeviceExternalMemoryHostPropertiesEXT;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryHostPointerPropertiesEXT)(VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, const void* pHostPointer, VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryHostPointerPropertiesEXT(
+ VkDevice device,
+ VkExternalMemoryHandleTypeFlagBits handleType,
+ const void* pHostPointer,
+ VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);
+#endif
+
+
+// VK_AMD_buffer_marker is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_buffer_marker 1
+#define VK_AMD_BUFFER_MARKER_SPEC_VERSION 1
+#define VK_AMD_BUFFER_MARKER_EXTENSION_NAME "VK_AMD_buffer_marker"
+typedef void (VKAPI_PTR *PFN_vkCmdWriteBufferMarkerAMD)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker);
+typedef void (VKAPI_PTR *PFN_vkCmdWriteBufferMarker2AMD)(VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdWriteBufferMarkerAMD(
+ VkCommandBuffer commandBuffer,
+ VkPipelineStageFlagBits pipelineStage,
+ VkBuffer dstBuffer,
+ VkDeviceSize dstOffset,
+ uint32_t marker);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdWriteBufferMarker2AMD(
+ VkCommandBuffer commandBuffer,
+ VkPipelineStageFlags2 stage,
+ VkBuffer dstBuffer,
+ VkDeviceSize dstOffset,
+ uint32_t marker);
+#endif
+
+
+// VK_AMD_pipeline_compiler_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_pipeline_compiler_control 1
+#define VK_AMD_PIPELINE_COMPILER_CONTROL_SPEC_VERSION 1
+#define VK_AMD_PIPELINE_COMPILER_CONTROL_EXTENSION_NAME "VK_AMD_pipeline_compiler_control"
+
+typedef enum VkPipelineCompilerControlFlagBitsAMD {
+ VK_PIPELINE_COMPILER_CONTROL_FLAG_BITS_MAX_ENUM_AMD = 0x7FFFFFFF
+} VkPipelineCompilerControlFlagBitsAMD;
+typedef VkFlags VkPipelineCompilerControlFlagsAMD;
+typedef struct VkPipelineCompilerControlCreateInfoAMD {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCompilerControlFlagsAMD compilerControlFlags;
+} VkPipelineCompilerControlCreateInfoAMD;
+
+
+
+// VK_EXT_calibrated_timestamps is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_calibrated_timestamps 1
+#define VK_EXT_CALIBRATED_TIMESTAMPS_SPEC_VERSION 2
+#define VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME "VK_EXT_calibrated_timestamps"
+typedef VkTimeDomainKHR VkTimeDomainEXT;
+
+typedef VkCalibratedTimestampInfoKHR VkCalibratedTimestampInfoEXT;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT)(VkPhysicalDevice physicalDevice, uint32_t* pTimeDomainCount, VkTimeDomainKHR* pTimeDomains);
+typedef VkResult (VKAPI_PTR *PFN_vkGetCalibratedTimestampsEXT)(VkDevice device, uint32_t timestampCount, const VkCalibratedTimestampInfoKHR* pTimestampInfos, uint64_t* pTimestamps, uint64_t* pMaxDeviation);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pTimeDomainCount,
+ VkTimeDomainKHR* pTimeDomains);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetCalibratedTimestampsEXT(
+ VkDevice device,
+ uint32_t timestampCount,
+ const VkCalibratedTimestampInfoKHR* pTimestampInfos,
+ uint64_t* pTimestamps,
+ uint64_t* pMaxDeviation);
+#endif
+
+
+// VK_AMD_shader_core_properties is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_shader_core_properties 1
+#define VK_AMD_SHADER_CORE_PROPERTIES_SPEC_VERSION 2
+#define VK_AMD_SHADER_CORE_PROPERTIES_EXTENSION_NAME "VK_AMD_shader_core_properties"
+typedef struct VkPhysicalDeviceShaderCorePropertiesAMD {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t shaderEngineCount;
+ uint32_t shaderArraysPerEngineCount;
+ uint32_t computeUnitsPerShaderArray;
+ uint32_t simdPerComputeUnit;
+ uint32_t wavefrontsPerSimd;
+ uint32_t wavefrontSize;
+ uint32_t sgprsPerSimd;
+ uint32_t minSgprAllocation;
+ uint32_t maxSgprAllocation;
+ uint32_t sgprAllocationGranularity;
+ uint32_t vgprsPerSimd;
+ uint32_t minVgprAllocation;
+ uint32_t maxVgprAllocation;
+ uint32_t vgprAllocationGranularity;
+} VkPhysicalDeviceShaderCorePropertiesAMD;
+
+
+
+// VK_AMD_memory_overallocation_behavior is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_memory_overallocation_behavior 1
+#define VK_AMD_MEMORY_OVERALLOCATION_BEHAVIOR_SPEC_VERSION 1
+#define VK_AMD_MEMORY_OVERALLOCATION_BEHAVIOR_EXTENSION_NAME "VK_AMD_memory_overallocation_behavior"
+
+typedef enum VkMemoryOverallocationBehaviorAMD {
+ VK_MEMORY_OVERALLOCATION_BEHAVIOR_DEFAULT_AMD = 0,
+ VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD = 1,
+ VK_MEMORY_OVERALLOCATION_BEHAVIOR_DISALLOWED_AMD = 2,
+ VK_MEMORY_OVERALLOCATION_BEHAVIOR_MAX_ENUM_AMD = 0x7FFFFFFF
+} VkMemoryOverallocationBehaviorAMD;
+typedef struct VkDeviceMemoryOverallocationCreateInfoAMD {
+ VkStructureType sType;
+ const void* pNext;
+ VkMemoryOverallocationBehaviorAMD overallocationBehavior;
+} VkDeviceMemoryOverallocationCreateInfoAMD;
+
+
+
+// VK_EXT_vertex_attribute_divisor is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_vertex_attribute_divisor 1
+#define VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION 3
+#define VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME "VK_EXT_vertex_attribute_divisor"
+typedef struct VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxVertexAttribDivisor;
+} VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT;
+
+typedef VkVertexInputBindingDivisorDescription VkVertexInputBindingDivisorDescriptionEXT;
+
+typedef VkPipelineVertexInputDivisorStateCreateInfo VkPipelineVertexInputDivisorStateCreateInfoEXT;
+
+typedef VkPhysicalDeviceVertexAttributeDivisorFeatures VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT;
+
+
+
+// VK_EXT_pipeline_creation_feedback is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pipeline_creation_feedback 1
+#define VK_EXT_PIPELINE_CREATION_FEEDBACK_SPEC_VERSION 1
+#define VK_EXT_PIPELINE_CREATION_FEEDBACK_EXTENSION_NAME "VK_EXT_pipeline_creation_feedback"
+typedef VkPipelineCreationFeedbackFlagBits VkPipelineCreationFeedbackFlagBitsEXT;
+
+typedef VkPipelineCreationFeedbackFlags VkPipelineCreationFeedbackFlagsEXT;
+
+typedef VkPipelineCreationFeedbackCreateInfo VkPipelineCreationFeedbackCreateInfoEXT;
+
+typedef VkPipelineCreationFeedback VkPipelineCreationFeedbackEXT;
+
+
+
+// VK_NV_shader_subgroup_partitioned is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_shader_subgroup_partitioned 1
+#define VK_NV_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION 1
+#define VK_NV_SHADER_SUBGROUP_PARTITIONED_EXTENSION_NAME "VK_NV_shader_subgroup_partitioned"
+
+
+// VK_NV_compute_shader_derivatives is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_compute_shader_derivatives 1
+#define VK_NV_COMPUTE_SHADER_DERIVATIVES_SPEC_VERSION 1
+#define VK_NV_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME "VK_NV_compute_shader_derivatives"
+typedef VkPhysicalDeviceComputeShaderDerivativesFeaturesKHR VkPhysicalDeviceComputeShaderDerivativesFeaturesNV;
+
+
+
+// VK_NV_mesh_shader is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_mesh_shader 1
+#define VK_NV_MESH_SHADER_SPEC_VERSION 1
+#define VK_NV_MESH_SHADER_EXTENSION_NAME "VK_NV_mesh_shader"
+typedef struct VkPhysicalDeviceMeshShaderFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 taskShader;
+ VkBool32 meshShader;
+} VkPhysicalDeviceMeshShaderFeaturesNV;
-typedef struct VkFilterCubicImageViewImageFormatPropertiesEXT {
+typedef struct VkPhysicalDeviceMeshShaderPropertiesNV {
VkStructureType sType;
void* pNext;
- VkBool32 filterCubic;
- VkBool32 filterCubicMinmax;
-} VkFilterCubicImageViewImageFormatPropertiesEXT;
+ uint32_t maxDrawMeshTasksCount;
+ uint32_t maxTaskWorkGroupInvocations;
+ uint32_t maxTaskWorkGroupSize[3];
+ uint32_t maxTaskTotalMemorySize;
+ uint32_t maxTaskOutputCount;
+ uint32_t maxMeshWorkGroupInvocations;
+ uint32_t maxMeshWorkGroupSize[3];
+ uint32_t maxMeshTotalMemorySize;
+ uint32_t maxMeshOutputVertices;
+ uint32_t maxMeshOutputPrimitives;
+ uint32_t maxMeshMultiviewViewCount;
+ uint32_t meshOutputPerVertexGranularity;
+ uint32_t meshOutputPerPrimitiveGranularity;
+} VkPhysicalDeviceMeshShaderPropertiesNV;
+typedef struct VkDrawMeshTasksIndirectCommandNV {
+ uint32_t taskCount;
+ uint32_t firstTask;
+} VkDrawMeshTasksIndirectCommandNV;
+typedef void (VKAPI_PTR *PFN_vkCmdDrawMeshTasksNV)(VkCommandBuffer commandBuffer, uint32_t taskCount, uint32_t firstTask);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawMeshTasksIndirectNV)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawMeshTasksIndirectCountNV)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride);
-// VK_QCOM_render_pass_shader_resolve is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_render_pass_shader_resolve 1
-#define VK_QCOM_RENDER_PASS_SHADER_RESOLVE_SPEC_VERSION 4
-#define VK_QCOM_RENDER_PASS_SHADER_RESOLVE_EXTENSION_NAME "VK_QCOM_render_pass_shader_resolve"
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawMeshTasksNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t taskCount,
+ uint32_t firstTask);
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawMeshTasksIndirectNV(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ uint32_t drawCount,
+ uint32_t stride);
-// VK_EXT_global_priority is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_global_priority 1
-#define VK_EXT_GLOBAL_PRIORITY_SPEC_VERSION 2
-#define VK_EXT_GLOBAL_PRIORITY_EXTENSION_NAME "VK_EXT_global_priority"
-typedef VkQueueGlobalPriorityKHR VkQueueGlobalPriorityEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawMeshTasksIndirectCountNV(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ VkBuffer countBuffer,
+ VkDeviceSize countBufferOffset,
+ uint32_t maxDrawCount,
+ uint32_t stride);
+#endif
-typedef VkDeviceQueueGlobalPriorityCreateInfoKHR VkDeviceQueueGlobalPriorityCreateInfoEXT;
+// VK_NV_fragment_shader_barycentric is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_fragment_shader_barycentric 1
+#define VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION 1
+#define VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME "VK_NV_fragment_shader_barycentric"
+typedef VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV;
-// VK_EXT_external_memory_host is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_external_memory_host 1
-#define VK_EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION 1
-#define VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME "VK_EXT_external_memory_host"
-typedef struct VkImportMemoryHostPointerInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkExternalMemoryHandleTypeFlagBits handleType;
- void* pHostPointer;
-} VkImportMemoryHostPointerInfoEXT;
-typedef struct VkMemoryHostPointerPropertiesEXT {
+// VK_NV_shader_image_footprint is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_shader_image_footprint 1
+#define VK_NV_SHADER_IMAGE_FOOTPRINT_SPEC_VERSION 2
+#define VK_NV_SHADER_IMAGE_FOOTPRINT_EXTENSION_NAME "VK_NV_shader_image_footprint"
+typedef struct VkPhysicalDeviceShaderImageFootprintFeaturesNV {
VkStructureType sType;
void* pNext;
- uint32_t memoryTypeBits;
-} VkMemoryHostPointerPropertiesEXT;
+ VkBool32 imageFootprint;
+} VkPhysicalDeviceShaderImageFootprintFeaturesNV;
-typedef struct VkPhysicalDeviceExternalMemoryHostPropertiesEXT {
+
+
+// VK_NV_scissor_exclusive is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_scissor_exclusive 1
+#define VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION 2
+#define VK_NV_SCISSOR_EXCLUSIVE_EXTENSION_NAME "VK_NV_scissor_exclusive"
+typedef struct VkPipelineViewportExclusiveScissorStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t exclusiveScissorCount;
+ const VkRect2D* pExclusiveScissors;
+} VkPipelineViewportExclusiveScissorStateCreateInfoNV;
+
+typedef struct VkPhysicalDeviceExclusiveScissorFeaturesNV {
VkStructureType sType;
void* pNext;
- VkDeviceSize minImportedHostPointerAlignment;
-} VkPhysicalDeviceExternalMemoryHostPropertiesEXT;
+ VkBool32 exclusiveScissor;
+} VkPhysicalDeviceExclusiveScissorFeaturesNV;
-typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryHostPointerPropertiesEXT)(VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, const void* pHostPointer, VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);
+typedef void (VKAPI_PTR *PFN_vkCmdSetExclusiveScissorEnableNV)(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkBool32* pExclusiveScissorEnables);
+typedef void (VKAPI_PTR *PFN_vkCmdSetExclusiveScissorNV)(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkRect2D* pExclusiveScissors);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryHostPointerPropertiesEXT(
- VkDevice device,
- VkExternalMemoryHandleTypeFlagBits handleType,
- const void* pHostPointer,
- VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetExclusiveScissorEnableNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstExclusiveScissor,
+ uint32_t exclusiveScissorCount,
+ const VkBool32* pExclusiveScissorEnables);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetExclusiveScissorNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstExclusiveScissor,
+ uint32_t exclusiveScissorCount,
+ const VkRect2D* pExclusiveScissors);
#endif
-// VK_AMD_buffer_marker is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_buffer_marker 1
-#define VK_AMD_BUFFER_MARKER_SPEC_VERSION 1
-#define VK_AMD_BUFFER_MARKER_EXTENSION_NAME "VK_AMD_buffer_marker"
-typedef void (VKAPI_PTR *PFN_vkCmdWriteBufferMarkerAMD)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker);
+// VK_NV_device_diagnostic_checkpoints is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_device_diagnostic_checkpoints 1
+#define VK_NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_SPEC_VERSION 2
+#define VK_NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_EXTENSION_NAME "VK_NV_device_diagnostic_checkpoints"
+typedef struct VkQueueFamilyCheckpointPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkPipelineStageFlags checkpointExecutionStageMask;
+} VkQueueFamilyCheckpointPropertiesNV;
+
+typedef struct VkCheckpointDataNV {
+ VkStructureType sType;
+ void* pNext;
+ VkPipelineStageFlagBits stage;
+ void* pCheckpointMarker;
+} VkCheckpointDataNV;
+
+typedef struct VkQueueFamilyCheckpointProperties2NV {
+ VkStructureType sType;
+ void* pNext;
+ VkPipelineStageFlags2 checkpointExecutionStageMask;
+} VkQueueFamilyCheckpointProperties2NV;
+
+typedef struct VkCheckpointData2NV {
+ VkStructureType sType;
+ void* pNext;
+ VkPipelineStageFlags2 stage;
+ void* pCheckpointMarker;
+} VkCheckpointData2NV;
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetCheckpointNV)(VkCommandBuffer commandBuffer, const void* pCheckpointMarker);
+typedef void (VKAPI_PTR *PFN_vkGetQueueCheckpointDataNV)(VkQueue queue, uint32_t* pCheckpointDataCount, VkCheckpointDataNV* pCheckpointData);
+typedef void (VKAPI_PTR *PFN_vkGetQueueCheckpointData2NV)(VkQueue queue, uint32_t* pCheckpointDataCount, VkCheckpointData2NV* pCheckpointData);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdWriteBufferMarkerAMD(
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCheckpointNV(
VkCommandBuffer commandBuffer,
- VkPipelineStageFlagBits pipelineStage,
- VkBuffer dstBuffer,
- VkDeviceSize dstOffset,
- uint32_t marker);
+ const void* pCheckpointMarker);
+
+VKAPI_ATTR void VKAPI_CALL vkGetQueueCheckpointDataNV(
+ VkQueue queue,
+ uint32_t* pCheckpointDataCount,
+ VkCheckpointDataNV* pCheckpointData);
+
+VKAPI_ATTR void VKAPI_CALL vkGetQueueCheckpointData2NV(
+ VkQueue queue,
+ uint32_t* pCheckpointDataCount,
+ VkCheckpointData2NV* pCheckpointData);
#endif
-// VK_AMD_pipeline_compiler_control is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_pipeline_compiler_control 1
-#define VK_AMD_PIPELINE_COMPILER_CONTROL_SPEC_VERSION 1
-#define VK_AMD_PIPELINE_COMPILER_CONTROL_EXTENSION_NAME "VK_AMD_pipeline_compiler_control"
+// VK_INTEL_shader_integer_functions2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_INTEL_shader_integer_functions2 1
+#define VK_INTEL_SHADER_INTEGER_FUNCTIONS_2_SPEC_VERSION 1
+#define VK_INTEL_SHADER_INTEGER_FUNCTIONS_2_EXTENSION_NAME "VK_INTEL_shader_integer_functions2"
+typedef struct VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderIntegerFunctions2;
+} VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL;
-typedef enum VkPipelineCompilerControlFlagBitsAMD {
- VK_PIPELINE_COMPILER_CONTROL_FLAG_BITS_MAX_ENUM_AMD = 0x7FFFFFFF
-} VkPipelineCompilerControlFlagBitsAMD;
-typedef VkFlags VkPipelineCompilerControlFlagsAMD;
-typedef struct VkPipelineCompilerControlCreateInfoAMD {
- VkStructureType sType;
- const void* pNext;
- VkPipelineCompilerControlFlagsAMD compilerControlFlags;
-} VkPipelineCompilerControlCreateInfoAMD;
+// VK_INTEL_performance_query is a preprocessor guard. Do not pass it to API calls.
+#define VK_INTEL_performance_query 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPerformanceConfigurationINTEL)
+#define VK_INTEL_PERFORMANCE_QUERY_SPEC_VERSION 2
+#define VK_INTEL_PERFORMANCE_QUERY_EXTENSION_NAME "VK_INTEL_performance_query"
-// VK_EXT_calibrated_timestamps is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_calibrated_timestamps 1
-#define VK_EXT_CALIBRATED_TIMESTAMPS_SPEC_VERSION 2
-#define VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME "VK_EXT_calibrated_timestamps"
-typedef VkTimeDomainKHR VkTimeDomainEXT;
+typedef enum VkPerformanceConfigurationTypeINTEL {
+ VK_PERFORMANCE_CONFIGURATION_TYPE_COMMAND_QUEUE_METRICS_DISCOVERY_ACTIVATED_INTEL = 0,
+ VK_PERFORMANCE_CONFIGURATION_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
+} VkPerformanceConfigurationTypeINTEL;
-typedef VkCalibratedTimestampInfoKHR VkCalibratedTimestampInfoEXT;
+typedef enum VkQueryPoolSamplingModeINTEL {
+ VK_QUERY_POOL_SAMPLING_MODE_MANUAL_INTEL = 0,
+ VK_QUERY_POOL_SAMPLING_MODE_MAX_ENUM_INTEL = 0x7FFFFFFF
+} VkQueryPoolSamplingModeINTEL;
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT)(VkPhysicalDevice physicalDevice, uint32_t* pTimeDomainCount, VkTimeDomainKHR* pTimeDomains);
-typedef VkResult (VKAPI_PTR *PFN_vkGetCalibratedTimestampsEXT)(VkDevice device, uint32_t timestampCount, const VkCalibratedTimestampInfoKHR* pTimestampInfos, uint64_t* pTimestamps, uint64_t* pMaxDeviation);
+typedef enum VkPerformanceOverrideTypeINTEL {
+ VK_PERFORMANCE_OVERRIDE_TYPE_NULL_HARDWARE_INTEL = 0,
+ VK_PERFORMANCE_OVERRIDE_TYPE_FLUSH_GPU_CACHES_INTEL = 1,
+ VK_PERFORMANCE_OVERRIDE_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
+} VkPerformanceOverrideTypeINTEL;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(
- VkPhysicalDevice physicalDevice,
- uint32_t* pTimeDomainCount,
- VkTimeDomainKHR* pTimeDomains);
+typedef enum VkPerformanceParameterTypeINTEL {
+ VK_PERFORMANCE_PARAMETER_TYPE_HW_COUNTERS_SUPPORTED_INTEL = 0,
+ VK_PERFORMANCE_PARAMETER_TYPE_STREAM_MARKER_VALID_BITS_INTEL = 1,
+ VK_PERFORMANCE_PARAMETER_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
+} VkPerformanceParameterTypeINTEL;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetCalibratedTimestampsEXT(
- VkDevice device,
- uint32_t timestampCount,
- const VkCalibratedTimestampInfoKHR* pTimestampInfos,
- uint64_t* pTimestamps,
- uint64_t* pMaxDeviation);
-#endif
+typedef enum VkPerformanceValueTypeINTEL {
+ VK_PERFORMANCE_VALUE_TYPE_UINT32_INTEL = 0,
+ VK_PERFORMANCE_VALUE_TYPE_UINT64_INTEL = 1,
+ VK_PERFORMANCE_VALUE_TYPE_FLOAT_INTEL = 2,
+ VK_PERFORMANCE_VALUE_TYPE_BOOL_INTEL = 3,
+ VK_PERFORMANCE_VALUE_TYPE_STRING_INTEL = 4,
+ VK_PERFORMANCE_VALUE_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
+} VkPerformanceValueTypeINTEL;
+typedef union VkPerformanceValueDataINTEL {
+ uint32_t value32;
+ uint64_t value64;
+ float valueFloat;
+ VkBool32 valueBool;
+ const char* valueString;
+} VkPerformanceValueDataINTEL;
+typedef struct VkPerformanceValueINTEL {
+ VkPerformanceValueTypeINTEL type;
+ VkPerformanceValueDataINTEL data;
+} VkPerformanceValueINTEL;
-// VK_AMD_shader_core_properties is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_shader_core_properties 1
-#define VK_AMD_SHADER_CORE_PROPERTIES_SPEC_VERSION 2
-#define VK_AMD_SHADER_CORE_PROPERTIES_EXTENSION_NAME "VK_AMD_shader_core_properties"
-typedef struct VkPhysicalDeviceShaderCorePropertiesAMD {
+typedef struct VkInitializePerformanceApiInfoINTEL {
VkStructureType sType;
- void* pNext;
- uint32_t shaderEngineCount;
- uint32_t shaderArraysPerEngineCount;
- uint32_t computeUnitsPerShaderArray;
- uint32_t simdPerComputeUnit;
- uint32_t wavefrontsPerSimd;
- uint32_t wavefrontSize;
- uint32_t sgprsPerSimd;
- uint32_t minSgprAllocation;
- uint32_t maxSgprAllocation;
- uint32_t sgprAllocationGranularity;
- uint32_t vgprsPerSimd;
- uint32_t minVgprAllocation;
- uint32_t maxVgprAllocation;
- uint32_t vgprAllocationGranularity;
-} VkPhysicalDeviceShaderCorePropertiesAMD;
+ const void* pNext;
+ void* pUserData;
+} VkInitializePerformanceApiInfoINTEL;
+typedef struct VkQueryPoolPerformanceQueryCreateInfoINTEL {
+ VkStructureType sType;
+ const void* pNext;
+ VkQueryPoolSamplingModeINTEL performanceCountersSampling;
+} VkQueryPoolPerformanceQueryCreateInfoINTEL;
+typedef VkQueryPoolPerformanceQueryCreateInfoINTEL VkQueryPoolCreateInfoINTEL;
-// VK_AMD_memory_overallocation_behavior is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_memory_overallocation_behavior 1
-#define VK_AMD_MEMORY_OVERALLOCATION_BEHAVIOR_SPEC_VERSION 1
-#define VK_AMD_MEMORY_OVERALLOCATION_BEHAVIOR_EXTENSION_NAME "VK_AMD_memory_overallocation_behavior"
+typedef struct VkPerformanceMarkerInfoINTEL {
+ VkStructureType sType;
+ const void* pNext;
+ uint64_t marker;
+} VkPerformanceMarkerInfoINTEL;
-typedef enum VkMemoryOverallocationBehaviorAMD {
- VK_MEMORY_OVERALLOCATION_BEHAVIOR_DEFAULT_AMD = 0,
- VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD = 1,
- VK_MEMORY_OVERALLOCATION_BEHAVIOR_DISALLOWED_AMD = 2,
- VK_MEMORY_OVERALLOCATION_BEHAVIOR_MAX_ENUM_AMD = 0x7FFFFFFF
-} VkMemoryOverallocationBehaviorAMD;
-typedef struct VkDeviceMemoryOverallocationCreateInfoAMD {
- VkStructureType sType;
- const void* pNext;
- VkMemoryOverallocationBehaviorAMD overallocationBehavior;
-} VkDeviceMemoryOverallocationCreateInfoAMD;
+typedef struct VkPerformanceStreamMarkerInfoINTEL {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t marker;
+} VkPerformanceStreamMarkerInfoINTEL;
+typedef struct VkPerformanceOverrideInfoINTEL {
+ VkStructureType sType;
+ const void* pNext;
+ VkPerformanceOverrideTypeINTEL type;
+ VkBool32 enable;
+ uint64_t parameter;
+} VkPerformanceOverrideInfoINTEL;
+typedef struct VkPerformanceConfigurationAcquireInfoINTEL {
+ VkStructureType sType;
+ const void* pNext;
+ VkPerformanceConfigurationTypeINTEL type;
+} VkPerformanceConfigurationAcquireInfoINTEL;
-// VK_EXT_vertex_attribute_divisor is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_vertex_attribute_divisor 1
-#define VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION 3
-#define VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME "VK_EXT_vertex_attribute_divisor"
-typedef struct VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- uint32_t maxVertexAttribDivisor;
-} VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT;
+typedef VkResult (VKAPI_PTR *PFN_vkInitializePerformanceApiINTEL)(VkDevice device, const VkInitializePerformanceApiInfoINTEL* pInitializeInfo);
+typedef void (VKAPI_PTR *PFN_vkUninitializePerformanceApiINTEL)(VkDevice device);
+typedef VkResult (VKAPI_PTR *PFN_vkCmdSetPerformanceMarkerINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceMarkerInfoINTEL* pMarkerInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCmdSetPerformanceStreamMarkerINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceStreamMarkerInfoINTEL* pMarkerInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCmdSetPerformanceOverrideINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceOverrideInfoINTEL* pOverrideInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkAcquirePerformanceConfigurationINTEL)(VkDevice device, const VkPerformanceConfigurationAcquireInfoINTEL* pAcquireInfo, VkPerformanceConfigurationINTEL* pConfiguration);
+typedef VkResult (VKAPI_PTR *PFN_vkReleasePerformanceConfigurationINTEL)(VkDevice device, VkPerformanceConfigurationINTEL configuration);
+typedef VkResult (VKAPI_PTR *PFN_vkQueueSetPerformanceConfigurationINTEL)(VkQueue queue, VkPerformanceConfigurationINTEL configuration);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPerformanceParameterINTEL)(VkDevice device, VkPerformanceParameterTypeINTEL parameter, VkPerformanceValueINTEL* pValue);
-typedef VkVertexInputBindingDivisorDescriptionKHR VkVertexInputBindingDivisorDescriptionEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkInitializePerformanceApiINTEL(
+ VkDevice device,
+ const VkInitializePerformanceApiInfoINTEL* pInitializeInfo);
-typedef VkPipelineVertexInputDivisorStateCreateInfoKHR VkPipelineVertexInputDivisorStateCreateInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkUninitializePerformanceApiINTEL(
+ VkDevice device);
-typedef VkPhysicalDeviceVertexAttributeDivisorFeaturesKHR VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkCmdSetPerformanceMarkerINTEL(
+ VkCommandBuffer commandBuffer,
+ const VkPerformanceMarkerInfoINTEL* pMarkerInfo);
+VKAPI_ATTR VkResult VKAPI_CALL vkCmdSetPerformanceStreamMarkerINTEL(
+ VkCommandBuffer commandBuffer,
+ const VkPerformanceStreamMarkerInfoINTEL* pMarkerInfo);
+VKAPI_ATTR VkResult VKAPI_CALL vkCmdSetPerformanceOverrideINTEL(
+ VkCommandBuffer commandBuffer,
+ const VkPerformanceOverrideInfoINTEL* pOverrideInfo);
-// VK_EXT_pipeline_creation_feedback is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pipeline_creation_feedback 1
-#define VK_EXT_PIPELINE_CREATION_FEEDBACK_SPEC_VERSION 1
-#define VK_EXT_PIPELINE_CREATION_FEEDBACK_EXTENSION_NAME "VK_EXT_pipeline_creation_feedback"
-typedef VkPipelineCreationFeedbackFlagBits VkPipelineCreationFeedbackFlagBitsEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquirePerformanceConfigurationINTEL(
+ VkDevice device,
+ const VkPerformanceConfigurationAcquireInfoINTEL* pAcquireInfo,
+ VkPerformanceConfigurationINTEL* pConfiguration);
-typedef VkPipelineCreationFeedbackFlags VkPipelineCreationFeedbackFlagsEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkReleasePerformanceConfigurationINTEL(
+ VkDevice device,
+ VkPerformanceConfigurationINTEL configuration);
-typedef VkPipelineCreationFeedbackCreateInfo VkPipelineCreationFeedbackCreateInfoEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkQueueSetPerformanceConfigurationINTEL(
+ VkQueue queue,
+ VkPerformanceConfigurationINTEL configuration);
-typedef VkPipelineCreationFeedback VkPipelineCreationFeedbackEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPerformanceParameterINTEL(
+ VkDevice device,
+ VkPerformanceParameterTypeINTEL parameter,
+ VkPerformanceValueINTEL* pValue);
+#endif
+// VK_EXT_pci_bus_info is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pci_bus_info 1
+#define VK_EXT_PCI_BUS_INFO_SPEC_VERSION 2
+#define VK_EXT_PCI_BUS_INFO_EXTENSION_NAME "VK_EXT_pci_bus_info"
+typedef struct VkPhysicalDevicePCIBusInfoPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t pciDomain;
+ uint32_t pciBus;
+ uint32_t pciDevice;
+ uint32_t pciFunction;
+} VkPhysicalDevicePCIBusInfoPropertiesEXT;
-// VK_NV_shader_subgroup_partitioned is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_shader_subgroup_partitioned 1
-#define VK_NV_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION 1
-#define VK_NV_SHADER_SUBGROUP_PARTITIONED_EXTENSION_NAME "VK_NV_shader_subgroup_partitioned"
-// VK_NV_compute_shader_derivatives is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_compute_shader_derivatives 1
-#define VK_NV_COMPUTE_SHADER_DERIVATIVES_SPEC_VERSION 1
-#define VK_NV_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME "VK_NV_compute_shader_derivatives"
-typedef struct VkPhysicalDeviceComputeShaderDerivativesFeaturesNV {
+// VK_AMD_display_native_hdr is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_display_native_hdr 1
+#define VK_AMD_DISPLAY_NATIVE_HDR_SPEC_VERSION 1
+#define VK_AMD_DISPLAY_NATIVE_HDR_EXTENSION_NAME "VK_AMD_display_native_hdr"
+typedef struct VkDisplayNativeHdrSurfaceCapabilitiesAMD {
VkStructureType sType;
void* pNext;
- VkBool32 computeDerivativeGroupQuads;
- VkBool32 computeDerivativeGroupLinear;
-} VkPhysicalDeviceComputeShaderDerivativesFeaturesNV;
+ VkBool32 localDimmingSupport;
+} VkDisplayNativeHdrSurfaceCapabilitiesAMD;
+typedef struct VkSwapchainDisplayNativeHdrCreateInfoAMD {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 localDimmingEnable;
+} VkSwapchainDisplayNativeHdrCreateInfoAMD;
+typedef void (VKAPI_PTR *PFN_vkSetLocalDimmingAMD)(VkDevice device, VkSwapchainKHR swapChain, VkBool32 localDimmingEnable);
-// VK_NV_mesh_shader is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_mesh_shader 1
-#define VK_NV_MESH_SHADER_SPEC_VERSION 1
-#define VK_NV_MESH_SHADER_EXTENSION_NAME "VK_NV_mesh_shader"
-typedef struct VkPhysicalDeviceMeshShaderFeaturesNV {
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkSetLocalDimmingAMD(
+ VkDevice device,
+ VkSwapchainKHR swapChain,
+ VkBool32 localDimmingEnable);
+#endif
+
+
+// VK_EXT_fragment_density_map is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_fragment_density_map 1
+#define VK_EXT_FRAGMENT_DENSITY_MAP_SPEC_VERSION 2
+#define VK_EXT_FRAGMENT_DENSITY_MAP_EXTENSION_NAME "VK_EXT_fragment_density_map"
+typedef struct VkPhysicalDeviceFragmentDensityMapFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 taskShader;
- VkBool32 meshShader;
-} VkPhysicalDeviceMeshShaderFeaturesNV;
+ VkBool32 fragmentDensityMap;
+ VkBool32 fragmentDensityMapDynamic;
+ VkBool32 fragmentDensityMapNonSubsampledImages;
+} VkPhysicalDeviceFragmentDensityMapFeaturesEXT;
-typedef struct VkPhysicalDeviceMeshShaderPropertiesNV {
+typedef struct VkPhysicalDeviceFragmentDensityMapPropertiesEXT {
VkStructureType sType;
void* pNext;
- uint32_t maxDrawMeshTasksCount;
- uint32_t maxTaskWorkGroupInvocations;
- uint32_t maxTaskWorkGroupSize[3];
- uint32_t maxTaskTotalMemorySize;
- uint32_t maxTaskOutputCount;
- uint32_t maxMeshWorkGroupInvocations;
- uint32_t maxMeshWorkGroupSize[3];
- uint32_t maxMeshTotalMemorySize;
- uint32_t maxMeshOutputVertices;
- uint32_t maxMeshOutputPrimitives;
- uint32_t maxMeshMultiviewViewCount;
- uint32_t meshOutputPerVertexGranularity;
- uint32_t meshOutputPerPrimitiveGranularity;
-} VkPhysicalDeviceMeshShaderPropertiesNV;
+ VkExtent2D minFragmentDensityTexelSize;
+ VkExtent2D maxFragmentDensityTexelSize;
+ VkBool32 fragmentDensityInvocations;
+} VkPhysicalDeviceFragmentDensityMapPropertiesEXT;
-typedef struct VkDrawMeshTasksIndirectCommandNV {
- uint32_t taskCount;
- uint32_t firstTask;
-} VkDrawMeshTasksIndirectCommandNV;
+typedef struct VkRenderPassFragmentDensityMapCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkAttachmentReference fragmentDensityMapAttachment;
+} VkRenderPassFragmentDensityMapCreateInfoEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdDrawMeshTasksNV)(VkCommandBuffer commandBuffer, uint32_t taskCount, uint32_t firstTask);
-typedef void (VKAPI_PTR *PFN_vkCmdDrawMeshTasksIndirectNV)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
-typedef void (VKAPI_PTR *PFN_vkCmdDrawMeshTasksIndirectCountNV)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride);
+typedef struct VkRenderingFragmentDensityMapAttachmentInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageView imageView;
+ VkImageLayout imageLayout;
+} VkRenderingFragmentDensityMapAttachmentInfoEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawMeshTasksNV(
- VkCommandBuffer commandBuffer,
- uint32_t taskCount,
- uint32_t firstTask);
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawMeshTasksIndirectNV(
- VkCommandBuffer commandBuffer,
- VkBuffer buffer,
- VkDeviceSize offset,
- uint32_t drawCount,
- uint32_t stride);
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawMeshTasksIndirectCountNV(
- VkCommandBuffer commandBuffer,
- VkBuffer buffer,
- VkDeviceSize offset,
- VkBuffer countBuffer,
- VkDeviceSize countBufferOffset,
- uint32_t maxDrawCount,
- uint32_t stride);
-#endif
+// VK_EXT_scalar_block_layout is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_scalar_block_layout 1
+#define VK_EXT_SCALAR_BLOCK_LAYOUT_SPEC_VERSION 1
+#define VK_EXT_SCALAR_BLOCK_LAYOUT_EXTENSION_NAME "VK_EXT_scalar_block_layout"
+typedef VkPhysicalDeviceScalarBlockLayoutFeatures VkPhysicalDeviceScalarBlockLayoutFeaturesEXT;
+
+
+// VK_GOOGLE_hlsl_functionality1 is a preprocessor guard. Do not pass it to API calls.
+#define VK_GOOGLE_hlsl_functionality1 1
+#define VK_GOOGLE_HLSL_FUNCTIONALITY_1_SPEC_VERSION 1
+#define VK_GOOGLE_HLSL_FUNCTIONALITY_1_EXTENSION_NAME "VK_GOOGLE_hlsl_functionality1"
+// VK_GOOGLE_HLSL_FUNCTIONALITY1_SPEC_VERSION is a deprecated alias
+#define VK_GOOGLE_HLSL_FUNCTIONALITY1_SPEC_VERSION VK_GOOGLE_HLSL_FUNCTIONALITY_1_SPEC_VERSION
+// VK_GOOGLE_HLSL_FUNCTIONALITY1_EXTENSION_NAME is a deprecated alias
+#define VK_GOOGLE_HLSL_FUNCTIONALITY1_EXTENSION_NAME VK_GOOGLE_HLSL_FUNCTIONALITY_1_EXTENSION_NAME
-// VK_NV_fragment_shader_barycentric is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_fragment_shader_barycentric 1
-#define VK_NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION 1
-#define VK_NV_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME "VK_NV_fragment_shader_barycentric"
-typedef VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV;
+// VK_GOOGLE_decorate_string is a preprocessor guard. Do not pass it to API calls.
+#define VK_GOOGLE_decorate_string 1
+#define VK_GOOGLE_DECORATE_STRING_SPEC_VERSION 1
+#define VK_GOOGLE_DECORATE_STRING_EXTENSION_NAME "VK_GOOGLE_decorate_string"
-// VK_NV_shader_image_footprint is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_shader_image_footprint 1
-#define VK_NV_SHADER_IMAGE_FOOTPRINT_SPEC_VERSION 2
-#define VK_NV_SHADER_IMAGE_FOOTPRINT_EXTENSION_NAME "VK_NV_shader_image_footprint"
-typedef struct VkPhysicalDeviceShaderImageFootprintFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 imageFootprint;
-} VkPhysicalDeviceShaderImageFootprintFeaturesNV;
+// VK_EXT_subgroup_size_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_subgroup_size_control 1
+#define VK_EXT_SUBGROUP_SIZE_CONTROL_SPEC_VERSION 2
+#define VK_EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME "VK_EXT_subgroup_size_control"
+typedef VkPhysicalDeviceSubgroupSizeControlFeatures VkPhysicalDeviceSubgroupSizeControlFeaturesEXT;
+typedef VkPhysicalDeviceSubgroupSizeControlProperties VkPhysicalDeviceSubgroupSizeControlPropertiesEXT;
+typedef VkPipelineShaderStageRequiredSubgroupSizeCreateInfo VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT;
-// VK_NV_scissor_exclusive is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_scissor_exclusive 1
-#define VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION 2
-#define VK_NV_SCISSOR_EXCLUSIVE_EXTENSION_NAME "VK_NV_scissor_exclusive"
-typedef struct VkPipelineViewportExclusiveScissorStateCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- uint32_t exclusiveScissorCount;
- const VkRect2D* pExclusiveScissors;
-} VkPipelineViewportExclusiveScissorStateCreateInfoNV;
-typedef struct VkPhysicalDeviceExclusiveScissorFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 exclusiveScissor;
-} VkPhysicalDeviceExclusiveScissorFeaturesNV;
-typedef void (VKAPI_PTR *PFN_vkCmdSetExclusiveScissorEnableNV)(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkBool32* pExclusiveScissorEnables);
-typedef void (VKAPI_PTR *PFN_vkCmdSetExclusiveScissorNV)(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkRect2D* pExclusiveScissors);
+// VK_AMD_shader_core_properties2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_shader_core_properties2 1
+#define VK_AMD_SHADER_CORE_PROPERTIES_2_SPEC_VERSION 1
+#define VK_AMD_SHADER_CORE_PROPERTIES_2_EXTENSION_NAME "VK_AMD_shader_core_properties2"
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetExclusiveScissorEnableNV(
- VkCommandBuffer commandBuffer,
- uint32_t firstExclusiveScissor,
- uint32_t exclusiveScissorCount,
- const VkBool32* pExclusiveScissorEnables);
+typedef enum VkShaderCorePropertiesFlagBitsAMD {
+ VK_SHADER_CORE_PROPERTIES_FLAG_BITS_MAX_ENUM_AMD = 0x7FFFFFFF
+} VkShaderCorePropertiesFlagBitsAMD;
+typedef VkFlags VkShaderCorePropertiesFlagsAMD;
+typedef struct VkPhysicalDeviceShaderCoreProperties2AMD {
+ VkStructureType sType;
+ void* pNext;
+ VkShaderCorePropertiesFlagsAMD shaderCoreFeatures;
+ uint32_t activeComputeUnitCount;
+} VkPhysicalDeviceShaderCoreProperties2AMD;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetExclusiveScissorNV(
- VkCommandBuffer commandBuffer,
- uint32_t firstExclusiveScissor,
- uint32_t exclusiveScissorCount,
- const VkRect2D* pExclusiveScissors);
-#endif
-// VK_NV_device_diagnostic_checkpoints is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_device_diagnostic_checkpoints 1
-#define VK_NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_SPEC_VERSION 2
-#define VK_NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_EXTENSION_NAME "VK_NV_device_diagnostic_checkpoints"
-typedef struct VkQueueFamilyCheckpointPropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkPipelineStageFlags checkpointExecutionStageMask;
-} VkQueueFamilyCheckpointPropertiesNV;
+// VK_AMD_device_coherent_memory is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_device_coherent_memory 1
+#define VK_AMD_DEVICE_COHERENT_MEMORY_SPEC_VERSION 1
+#define VK_AMD_DEVICE_COHERENT_MEMORY_EXTENSION_NAME "VK_AMD_device_coherent_memory"
+typedef struct VkPhysicalDeviceCoherentMemoryFeaturesAMD {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 deviceCoherentMemory;
+} VkPhysicalDeviceCoherentMemoryFeaturesAMD;
-typedef struct VkCheckpointDataNV {
- VkStructureType sType;
- void* pNext;
- VkPipelineStageFlagBits stage;
- void* pCheckpointMarker;
-} VkCheckpointDataNV;
-typedef void (VKAPI_PTR *PFN_vkCmdSetCheckpointNV)(VkCommandBuffer commandBuffer, const void* pCheckpointMarker);
-typedef void (VKAPI_PTR *PFN_vkGetQueueCheckpointDataNV)(VkQueue queue, uint32_t* pCheckpointDataCount, VkCheckpointDataNV* pCheckpointData);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCheckpointNV(
- VkCommandBuffer commandBuffer,
- const void* pCheckpointMarker);
+// VK_EXT_shader_image_atomic_int64 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_image_atomic_int64 1
+#define VK_EXT_SHADER_IMAGE_ATOMIC_INT64_SPEC_VERSION 1
+#define VK_EXT_SHADER_IMAGE_ATOMIC_INT64_EXTENSION_NAME "VK_EXT_shader_image_atomic_int64"
+typedef struct VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 shaderImageInt64Atomics;
+ VkBool32 sparseImageInt64Atomics;
+} VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT;
-VKAPI_ATTR void VKAPI_CALL vkGetQueueCheckpointDataNV(
- VkQueue queue,
- uint32_t* pCheckpointDataCount,
- VkCheckpointDataNV* pCheckpointData);
-#endif
-// VK_INTEL_shader_integer_functions2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_INTEL_shader_integer_functions2 1
-#define VK_INTEL_SHADER_INTEGER_FUNCTIONS_2_SPEC_VERSION 1
-#define VK_INTEL_SHADER_INTEGER_FUNCTIONS_2_EXTENSION_NAME "VK_INTEL_shader_integer_functions2"
-typedef struct VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL {
+// VK_EXT_memory_budget is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_memory_budget 1
+#define VK_EXT_MEMORY_BUDGET_SPEC_VERSION 1
+#define VK_EXT_MEMORY_BUDGET_EXTENSION_NAME "VK_EXT_memory_budget"
+typedef struct VkPhysicalDeviceMemoryBudgetPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 shaderIntegerFunctions2;
-} VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL;
+ VkDeviceSize heapBudget[VK_MAX_MEMORY_HEAPS];
+ VkDeviceSize heapUsage[VK_MAX_MEMORY_HEAPS];
+} VkPhysicalDeviceMemoryBudgetPropertiesEXT;
-// VK_INTEL_performance_query is a preprocessor guard. Do not pass it to API calls.
-#define VK_INTEL_performance_query 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPerformanceConfigurationINTEL)
-#define VK_INTEL_PERFORMANCE_QUERY_SPEC_VERSION 2
-#define VK_INTEL_PERFORMANCE_QUERY_EXTENSION_NAME "VK_INTEL_performance_query"
+// VK_EXT_memory_priority is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_memory_priority 1
+#define VK_EXT_MEMORY_PRIORITY_SPEC_VERSION 1
+#define VK_EXT_MEMORY_PRIORITY_EXTENSION_NAME "VK_EXT_memory_priority"
+typedef struct VkPhysicalDeviceMemoryPriorityFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 memoryPriority;
+} VkPhysicalDeviceMemoryPriorityFeaturesEXT;
-typedef enum VkPerformanceConfigurationTypeINTEL {
- VK_PERFORMANCE_CONFIGURATION_TYPE_COMMAND_QUEUE_METRICS_DISCOVERY_ACTIVATED_INTEL = 0,
- VK_PERFORMANCE_CONFIGURATION_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
-} VkPerformanceConfigurationTypeINTEL;
+typedef struct VkMemoryPriorityAllocateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ float priority;
+} VkMemoryPriorityAllocateInfoEXT;
-typedef enum VkQueryPoolSamplingModeINTEL {
- VK_QUERY_POOL_SAMPLING_MODE_MANUAL_INTEL = 0,
- VK_QUERY_POOL_SAMPLING_MODE_MAX_ENUM_INTEL = 0x7FFFFFFF
-} VkQueryPoolSamplingModeINTEL;
-typedef enum VkPerformanceOverrideTypeINTEL {
- VK_PERFORMANCE_OVERRIDE_TYPE_NULL_HARDWARE_INTEL = 0,
- VK_PERFORMANCE_OVERRIDE_TYPE_FLUSH_GPU_CACHES_INTEL = 1,
- VK_PERFORMANCE_OVERRIDE_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
-} VkPerformanceOverrideTypeINTEL;
-typedef enum VkPerformanceParameterTypeINTEL {
- VK_PERFORMANCE_PARAMETER_TYPE_HW_COUNTERS_SUPPORTED_INTEL = 0,
- VK_PERFORMANCE_PARAMETER_TYPE_STREAM_MARKER_VALID_BITS_INTEL = 1,
- VK_PERFORMANCE_PARAMETER_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
-} VkPerformanceParameterTypeINTEL;
+// VK_NV_dedicated_allocation_image_aliasing is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_dedicated_allocation_image_aliasing 1
+#define VK_NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_SPEC_VERSION 1
+#define VK_NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_EXTENSION_NAME "VK_NV_dedicated_allocation_image_aliasing"
+typedef struct VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 dedicatedAllocationImageAliasing;
+} VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV;
-typedef enum VkPerformanceValueTypeINTEL {
- VK_PERFORMANCE_VALUE_TYPE_UINT32_INTEL = 0,
- VK_PERFORMANCE_VALUE_TYPE_UINT64_INTEL = 1,
- VK_PERFORMANCE_VALUE_TYPE_FLOAT_INTEL = 2,
- VK_PERFORMANCE_VALUE_TYPE_BOOL_INTEL = 3,
- VK_PERFORMANCE_VALUE_TYPE_STRING_INTEL = 4,
- VK_PERFORMANCE_VALUE_TYPE_MAX_ENUM_INTEL = 0x7FFFFFFF
-} VkPerformanceValueTypeINTEL;
-typedef union VkPerformanceValueDataINTEL {
- uint32_t value32;
- uint64_t value64;
- float valueFloat;
- VkBool32 valueBool;
- const char* valueString;
-} VkPerformanceValueDataINTEL;
-typedef struct VkPerformanceValueINTEL {
- VkPerformanceValueTypeINTEL type;
- VkPerformanceValueDataINTEL data;
-} VkPerformanceValueINTEL;
-typedef struct VkInitializePerformanceApiInfoINTEL {
+// VK_EXT_buffer_device_address is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_buffer_device_address 1
+#define VK_EXT_BUFFER_DEVICE_ADDRESS_SPEC_VERSION 2
+#define VK_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME "VK_EXT_buffer_device_address"
+typedef struct VkPhysicalDeviceBufferDeviceAddressFeaturesEXT {
VkStructureType sType;
- const void* pNext;
- void* pUserData;
-} VkInitializePerformanceApiInfoINTEL;
+ void* pNext;
+ VkBool32 bufferDeviceAddress;
+ VkBool32 bufferDeviceAddressCaptureReplay;
+ VkBool32 bufferDeviceAddressMultiDevice;
+} VkPhysicalDeviceBufferDeviceAddressFeaturesEXT;
-typedef struct VkQueryPoolPerformanceQueryCreateInfoINTEL {
- VkStructureType sType;
- const void* pNext;
- VkQueryPoolSamplingModeINTEL performanceCountersSampling;
-} VkQueryPoolPerformanceQueryCreateInfoINTEL;
+typedef VkPhysicalDeviceBufferDeviceAddressFeaturesEXT VkPhysicalDeviceBufferAddressFeaturesEXT;
-typedef VkQueryPoolPerformanceQueryCreateInfoINTEL VkQueryPoolCreateInfoINTEL;
+typedef VkBufferDeviceAddressInfo VkBufferDeviceAddressInfoEXT;
-typedef struct VkPerformanceMarkerInfoINTEL {
+typedef struct VkBufferDeviceAddressCreateInfoEXT {
VkStructureType sType;
const void* pNext;
- uint64_t marker;
-} VkPerformanceMarkerInfoINTEL;
+ VkDeviceAddress deviceAddress;
+} VkBufferDeviceAddressCreateInfoEXT;
-typedef struct VkPerformanceStreamMarkerInfoINTEL {
- VkStructureType sType;
- const void* pNext;
- uint32_t marker;
-} VkPerformanceStreamMarkerInfoINTEL;
+typedef VkDeviceAddress (VKAPI_PTR *PFN_vkGetBufferDeviceAddressEXT)(VkDevice device, const VkBufferDeviceAddressInfo* pInfo);
-typedef struct VkPerformanceOverrideInfoINTEL {
- VkStructureType sType;
- const void* pNext;
- VkPerformanceOverrideTypeINTEL type;
- VkBool32 enable;
- uint64_t parameter;
-} VkPerformanceOverrideInfoINTEL;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkDeviceAddress VKAPI_CALL vkGetBufferDeviceAddressEXT(
+ VkDevice device,
+ const VkBufferDeviceAddressInfo* pInfo);
+#endif
-typedef struct VkPerformanceConfigurationAcquireInfoINTEL {
- VkStructureType sType;
- const void* pNext;
- VkPerformanceConfigurationTypeINTEL type;
-} VkPerformanceConfigurationAcquireInfoINTEL;
-typedef VkResult (VKAPI_PTR *PFN_vkInitializePerformanceApiINTEL)(VkDevice device, const VkInitializePerformanceApiInfoINTEL* pInitializeInfo);
-typedef void (VKAPI_PTR *PFN_vkUninitializePerformanceApiINTEL)(VkDevice device);
-typedef VkResult (VKAPI_PTR *PFN_vkCmdSetPerformanceMarkerINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceMarkerInfoINTEL* pMarkerInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkCmdSetPerformanceStreamMarkerINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceStreamMarkerInfoINTEL* pMarkerInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkCmdSetPerformanceOverrideINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceOverrideInfoINTEL* pOverrideInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkAcquirePerformanceConfigurationINTEL)(VkDevice device, const VkPerformanceConfigurationAcquireInfoINTEL* pAcquireInfo, VkPerformanceConfigurationINTEL* pConfiguration);
-typedef VkResult (VKAPI_PTR *PFN_vkReleasePerformanceConfigurationINTEL)(VkDevice device, VkPerformanceConfigurationINTEL configuration);
-typedef VkResult (VKAPI_PTR *PFN_vkQueueSetPerformanceConfigurationINTEL)(VkQueue queue, VkPerformanceConfigurationINTEL configuration);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPerformanceParameterINTEL)(VkDevice device, VkPerformanceParameterTypeINTEL parameter, VkPerformanceValueINTEL* pValue);
+// VK_EXT_tooling_info is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_tooling_info 1
+#define VK_EXT_TOOLING_INFO_SPEC_VERSION 1
+#define VK_EXT_TOOLING_INFO_EXTENSION_NAME "VK_EXT_tooling_info"
+typedef VkToolPurposeFlagBits VkToolPurposeFlagBitsEXT;
+
+typedef VkToolPurposeFlags VkToolPurposeFlagsEXT;
+
+typedef VkPhysicalDeviceToolProperties VkPhysicalDeviceToolPropertiesEXT;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceToolPropertiesEXT)(VkPhysicalDevice physicalDevice, uint32_t* pToolCount, VkPhysicalDeviceToolProperties* pToolProperties);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkInitializePerformanceApiINTEL(
- VkDevice device,
- const VkInitializePerformanceApiInfoINTEL* pInitializeInfo);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceToolPropertiesEXT(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pToolCount,
+ VkPhysicalDeviceToolProperties* pToolProperties);
+#endif
-VKAPI_ATTR void VKAPI_CALL vkUninitializePerformanceApiINTEL(
- VkDevice device);
-VKAPI_ATTR VkResult VKAPI_CALL vkCmdSetPerformanceMarkerINTEL(
- VkCommandBuffer commandBuffer,
- const VkPerformanceMarkerInfoINTEL* pMarkerInfo);
+// VK_EXT_separate_stencil_usage is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_separate_stencil_usage 1
+#define VK_EXT_SEPARATE_STENCIL_USAGE_SPEC_VERSION 1
+#define VK_EXT_SEPARATE_STENCIL_USAGE_EXTENSION_NAME "VK_EXT_separate_stencil_usage"
+typedef VkImageStencilUsageCreateInfo VkImageStencilUsageCreateInfoEXT;
-VKAPI_ATTR VkResult VKAPI_CALL vkCmdSetPerformanceStreamMarkerINTEL(
- VkCommandBuffer commandBuffer,
- const VkPerformanceStreamMarkerInfoINTEL* pMarkerInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkCmdSetPerformanceOverrideINTEL(
- VkCommandBuffer commandBuffer,
- const VkPerformanceOverrideInfoINTEL* pOverrideInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkAcquirePerformanceConfigurationINTEL(
- VkDevice device,
- const VkPerformanceConfigurationAcquireInfoINTEL* pAcquireInfo,
- VkPerformanceConfigurationINTEL* pConfiguration);
+// VK_EXT_validation_features is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_validation_features 1
+#define VK_EXT_VALIDATION_FEATURES_SPEC_VERSION 6
+#define VK_EXT_VALIDATION_FEATURES_EXTENSION_NAME "VK_EXT_validation_features"
-VKAPI_ATTR VkResult VKAPI_CALL vkReleasePerformanceConfigurationINTEL(
- VkDevice device,
- VkPerformanceConfigurationINTEL configuration);
+typedef enum VkValidationFeatureEnableEXT {
+ VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT = 0,
+ VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT = 1,
+ VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT = 2,
+ VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT = 3,
+ VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT = 4,
+ VK_VALIDATION_FEATURE_ENABLE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkValidationFeatureEnableEXT;
-VKAPI_ATTR VkResult VKAPI_CALL vkQueueSetPerformanceConfigurationINTEL(
- VkQueue queue,
- VkPerformanceConfigurationINTEL configuration);
+typedef enum VkValidationFeatureDisableEXT {
+ VK_VALIDATION_FEATURE_DISABLE_ALL_EXT = 0,
+ VK_VALIDATION_FEATURE_DISABLE_SHADERS_EXT = 1,
+ VK_VALIDATION_FEATURE_DISABLE_THREAD_SAFETY_EXT = 2,
+ VK_VALIDATION_FEATURE_DISABLE_API_PARAMETERS_EXT = 3,
+ VK_VALIDATION_FEATURE_DISABLE_OBJECT_LIFETIMES_EXT = 4,
+ VK_VALIDATION_FEATURE_DISABLE_CORE_CHECKS_EXT = 5,
+ VK_VALIDATION_FEATURE_DISABLE_UNIQUE_HANDLES_EXT = 6,
+ VK_VALIDATION_FEATURE_DISABLE_SHADER_VALIDATION_CACHE_EXT = 7,
+ VK_VALIDATION_FEATURE_DISABLE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkValidationFeatureDisableEXT;
+typedef struct VkValidationFeaturesEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t enabledValidationFeatureCount;
+ const VkValidationFeatureEnableEXT* pEnabledValidationFeatures;
+ uint32_t disabledValidationFeatureCount;
+ const VkValidationFeatureDisableEXT* pDisabledValidationFeatures;
+} VkValidationFeaturesEXT;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPerformanceParameterINTEL(
- VkDevice device,
- VkPerformanceParameterTypeINTEL parameter,
- VkPerformanceValueINTEL* pValue);
-#endif
-// VK_EXT_pci_bus_info is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pci_bus_info 1
-#define VK_EXT_PCI_BUS_INFO_SPEC_VERSION 2
-#define VK_EXT_PCI_BUS_INFO_EXTENSION_NAME "VK_EXT_pci_bus_info"
-typedef struct VkPhysicalDevicePCIBusInfoPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- uint32_t pciDomain;
- uint32_t pciBus;
- uint32_t pciDevice;
- uint32_t pciFunction;
-} VkPhysicalDevicePCIBusInfoPropertiesEXT;
+// VK_NV_cooperative_matrix is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_cooperative_matrix 1
+#define VK_NV_COOPERATIVE_MATRIX_SPEC_VERSION 1
+#define VK_NV_COOPERATIVE_MATRIX_EXTENSION_NAME "VK_NV_cooperative_matrix"
+typedef VkComponentTypeKHR VkComponentTypeNV;
+typedef VkScopeKHR VkScopeNV;
+typedef struct VkCooperativeMatrixPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t MSize;
+ uint32_t NSize;
+ uint32_t KSize;
+ VkComponentTypeNV AType;
+ VkComponentTypeNV BType;
+ VkComponentTypeNV CType;
+ VkComponentTypeNV DType;
+ VkScopeNV scope;
+} VkCooperativeMatrixPropertiesNV;
-// VK_AMD_display_native_hdr is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_display_native_hdr 1
-#define VK_AMD_DISPLAY_NATIVE_HDR_SPEC_VERSION 1
-#define VK_AMD_DISPLAY_NATIVE_HDR_EXTENSION_NAME "VK_AMD_display_native_hdr"
-typedef struct VkDisplayNativeHdrSurfaceCapabilitiesAMD {
+typedef struct VkPhysicalDeviceCooperativeMatrixFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 localDimmingSupport;
-} VkDisplayNativeHdrSurfaceCapabilitiesAMD;
+ VkBool32 cooperativeMatrix;
+ VkBool32 cooperativeMatrixRobustBufferAccess;
+} VkPhysicalDeviceCooperativeMatrixFeaturesNV;
-typedef struct VkSwapchainDisplayNativeHdrCreateInfoAMD {
- VkStructureType sType;
- const void* pNext;
- VkBool32 localDimmingEnable;
-} VkSwapchainDisplayNativeHdrCreateInfoAMD;
+typedef struct VkPhysicalDeviceCooperativeMatrixPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkShaderStageFlags cooperativeMatrixSupportedStages;
+} VkPhysicalDeviceCooperativeMatrixPropertiesNV;
-typedef void (VKAPI_PTR *PFN_vkSetLocalDimmingAMD)(VkDevice device, VkSwapchainKHR swapChain, VkBool32 localDimmingEnable);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkCooperativeMatrixPropertiesNV* pProperties);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkSetLocalDimmingAMD(
- VkDevice device,
- VkSwapchainKHR swapChain,
- VkBool32 localDimmingEnable);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkCooperativeMatrixPropertiesNV* pProperties);
#endif
-// VK_EXT_fragment_density_map is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_fragment_density_map 1
-#define VK_EXT_FRAGMENT_DENSITY_MAP_SPEC_VERSION 2
-#define VK_EXT_FRAGMENT_DENSITY_MAP_EXTENSION_NAME "VK_EXT_fragment_density_map"
-typedef struct VkPhysicalDeviceFragmentDensityMapFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 fragmentDensityMap;
- VkBool32 fragmentDensityMapDynamic;
- VkBool32 fragmentDensityMapNonSubsampledImages;
-} VkPhysicalDeviceFragmentDensityMapFeaturesEXT;
+// VK_NV_coverage_reduction_mode is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_coverage_reduction_mode 1
+#define VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSION 1
+#define VK_NV_COVERAGE_REDUCTION_MODE_EXTENSION_NAME "VK_NV_coverage_reduction_mode"
-typedef struct VkPhysicalDeviceFragmentDensityMapPropertiesEXT {
+typedef enum VkCoverageReductionModeNV {
+ VK_COVERAGE_REDUCTION_MODE_MERGE_NV = 0,
+ VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NV = 1,
+ VK_COVERAGE_REDUCTION_MODE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkCoverageReductionModeNV;
+typedef VkFlags VkPipelineCoverageReductionStateCreateFlagsNV;
+typedef struct VkPhysicalDeviceCoverageReductionModeFeaturesNV {
VkStructureType sType;
void* pNext;
- VkExtent2D minFragmentDensityTexelSize;
- VkExtent2D maxFragmentDensityTexelSize;
- VkBool32 fragmentDensityInvocations;
-} VkPhysicalDeviceFragmentDensityMapPropertiesEXT;
+ VkBool32 coverageReductionMode;
+} VkPhysicalDeviceCoverageReductionModeFeaturesNV;
-typedef struct VkRenderPassFragmentDensityMapCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkAttachmentReference fragmentDensityMapAttachment;
-} VkRenderPassFragmentDensityMapCreateInfoEXT;
+typedef struct VkPipelineCoverageReductionStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCoverageReductionStateCreateFlagsNV flags;
+ VkCoverageReductionModeNV coverageReductionMode;
+} VkPipelineCoverageReductionStateCreateInfoNV;
+
+typedef struct VkFramebufferMixedSamplesCombinationNV {
+ VkStructureType sType;
+ void* pNext;
+ VkCoverageReductionModeNV coverageReductionMode;
+ VkSampleCountFlagBits rasterizationSamples;
+ VkSampleCountFlags depthStencilSamples;
+ VkSampleCountFlags colorSamples;
+} VkFramebufferMixedSamplesCombinationNV;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV)(VkPhysicalDevice physicalDevice, uint32_t* pCombinationCount, VkFramebufferMixedSamplesCombinationNV* pCombinations);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pCombinationCount,
+ VkFramebufferMixedSamplesCombinationNV* pCombinations);
+#endif
-// VK_EXT_scalar_block_layout is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_scalar_block_layout 1
-#define VK_EXT_SCALAR_BLOCK_LAYOUT_SPEC_VERSION 1
-#define VK_EXT_SCALAR_BLOCK_LAYOUT_EXTENSION_NAME "VK_EXT_scalar_block_layout"
-typedef VkPhysicalDeviceScalarBlockLayoutFeatures VkPhysicalDeviceScalarBlockLayoutFeaturesEXT;
+// VK_EXT_fragment_shader_interlock is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_fragment_shader_interlock 1
+#define VK_EXT_FRAGMENT_SHADER_INTERLOCK_SPEC_VERSION 1
+#define VK_EXT_FRAGMENT_SHADER_INTERLOCK_EXTENSION_NAME "VK_EXT_fragment_shader_interlock"
+typedef struct VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 fragmentShaderSampleInterlock;
+ VkBool32 fragmentShaderPixelInterlock;
+ VkBool32 fragmentShaderShadingRateInterlock;
+} VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT;
-// VK_GOOGLE_hlsl_functionality1 is a preprocessor guard. Do not pass it to API calls.
-#define VK_GOOGLE_hlsl_functionality1 1
-#define VK_GOOGLE_HLSL_FUNCTIONALITY_1_SPEC_VERSION 1
-#define VK_GOOGLE_HLSL_FUNCTIONALITY_1_EXTENSION_NAME "VK_GOOGLE_hlsl_functionality1"
-#define VK_GOOGLE_HLSL_FUNCTIONALITY1_SPEC_VERSION VK_GOOGLE_HLSL_FUNCTIONALITY_1_SPEC_VERSION
-#define VK_GOOGLE_HLSL_FUNCTIONALITY1_EXTENSION_NAME VK_GOOGLE_HLSL_FUNCTIONALITY_1_EXTENSION_NAME
+// VK_EXT_ycbcr_image_arrays is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_ycbcr_image_arrays 1
+#define VK_EXT_YCBCR_IMAGE_ARRAYS_SPEC_VERSION 1
+#define VK_EXT_YCBCR_IMAGE_ARRAYS_EXTENSION_NAME "VK_EXT_ycbcr_image_arrays"
+typedef struct VkPhysicalDeviceYcbcrImageArraysFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 ycbcrImageArrays;
+} VkPhysicalDeviceYcbcrImageArraysFeaturesEXT;
-// VK_GOOGLE_decorate_string is a preprocessor guard. Do not pass it to API calls.
-#define VK_GOOGLE_decorate_string 1
-#define VK_GOOGLE_DECORATE_STRING_SPEC_VERSION 1
-#define VK_GOOGLE_DECORATE_STRING_EXTENSION_NAME "VK_GOOGLE_decorate_string"
+// VK_EXT_provoking_vertex is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_provoking_vertex 1
+#define VK_EXT_PROVOKING_VERTEX_SPEC_VERSION 1
+#define VK_EXT_PROVOKING_VERTEX_EXTENSION_NAME "VK_EXT_provoking_vertex"
-// VK_EXT_subgroup_size_control is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_subgroup_size_control 1
-#define VK_EXT_SUBGROUP_SIZE_CONTROL_SPEC_VERSION 2
-#define VK_EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME "VK_EXT_subgroup_size_control"
-typedef VkPhysicalDeviceSubgroupSizeControlFeatures VkPhysicalDeviceSubgroupSizeControlFeaturesEXT;
+typedef enum VkProvokingVertexModeEXT {
+ VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT = 0,
+ VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT = 1,
+ VK_PROVOKING_VERTEX_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkProvokingVertexModeEXT;
+typedef struct VkPhysicalDeviceProvokingVertexFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 provokingVertexLast;
+ VkBool32 transformFeedbackPreservesProvokingVertex;
+} VkPhysicalDeviceProvokingVertexFeaturesEXT;
-typedef VkPhysicalDeviceSubgroupSizeControlProperties VkPhysicalDeviceSubgroupSizeControlPropertiesEXT;
+typedef struct VkPhysicalDeviceProvokingVertexPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 provokingVertexModePerPipeline;
+ VkBool32 transformFeedbackPreservesTriangleFanProvokingVertex;
+} VkPhysicalDeviceProvokingVertexPropertiesEXT;
-typedef VkPipelineShaderStageRequiredSubgroupSizeCreateInfo VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT;
+typedef struct VkPipelineRasterizationProvokingVertexStateCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkProvokingVertexModeEXT provokingVertexMode;
+} VkPipelineRasterizationProvokingVertexStateCreateInfoEXT;
-// VK_AMD_shader_core_properties2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_shader_core_properties2 1
-#define VK_AMD_SHADER_CORE_PROPERTIES_2_SPEC_VERSION 1
-#define VK_AMD_SHADER_CORE_PROPERTIES_2_EXTENSION_NAME "VK_AMD_shader_core_properties2"
+// VK_EXT_headless_surface is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_headless_surface 1
+#define VK_EXT_HEADLESS_SURFACE_SPEC_VERSION 1
+#define VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME "VK_EXT_headless_surface"
+typedef VkFlags VkHeadlessSurfaceCreateFlagsEXT;
+typedef struct VkHeadlessSurfaceCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkHeadlessSurfaceCreateFlagsEXT flags;
+} VkHeadlessSurfaceCreateInfoEXT;
-typedef enum VkShaderCorePropertiesFlagBitsAMD {
- VK_SHADER_CORE_PROPERTIES_FLAG_BITS_MAX_ENUM_AMD = 0x7FFFFFFF
-} VkShaderCorePropertiesFlagBitsAMD;
-typedef VkFlags VkShaderCorePropertiesFlagsAMD;
-typedef struct VkPhysicalDeviceShaderCoreProperties2AMD {
- VkStructureType sType;
- void* pNext;
- VkShaderCorePropertiesFlagsAMD shaderCoreFeatures;
- uint32_t activeComputeUnitCount;
-} VkPhysicalDeviceShaderCoreProperties2AMD;
+typedef VkResult (VKAPI_PTR *PFN_vkCreateHeadlessSurfaceEXT)(VkInstance instance, const VkHeadlessSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateHeadlessSurfaceEXT(
+ VkInstance instance,
+ const VkHeadlessSurfaceCreateInfoEXT* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
-// VK_AMD_device_coherent_memory is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_device_coherent_memory 1
-#define VK_AMD_DEVICE_COHERENT_MEMORY_SPEC_VERSION 1
-#define VK_AMD_DEVICE_COHERENT_MEMORY_EXTENSION_NAME "VK_AMD_device_coherent_memory"
-typedef struct VkPhysicalDeviceCoherentMemoryFeaturesAMD {
- VkStructureType sType;
- void* pNext;
- VkBool32 deviceCoherentMemory;
-} VkPhysicalDeviceCoherentMemoryFeaturesAMD;
+// VK_EXT_line_rasterization is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_line_rasterization 1
+#define VK_EXT_LINE_RASTERIZATION_SPEC_VERSION 1
+#define VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME "VK_EXT_line_rasterization"
+typedef VkLineRasterizationMode VkLineRasterizationModeEXT;
+typedef VkPhysicalDeviceLineRasterizationFeatures VkPhysicalDeviceLineRasterizationFeaturesEXT;
+typedef VkPhysicalDeviceLineRasterizationProperties VkPhysicalDeviceLineRasterizationPropertiesEXT;
-// VK_EXT_shader_image_atomic_int64 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_image_atomic_int64 1
-#define VK_EXT_SHADER_IMAGE_ATOMIC_INT64_SPEC_VERSION 1
-#define VK_EXT_SHADER_IMAGE_ATOMIC_INT64_EXTENSION_NAME "VK_EXT_shader_image_atomic_int64"
-typedef struct VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 shaderImageInt64Atomics;
- VkBool32 sparseImageInt64Atomics;
-} VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT;
+typedef VkPipelineRasterizationLineStateCreateInfo VkPipelineRasterizationLineStateCreateInfoEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdSetLineStippleEXT)(VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLineStippleEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t lineStippleFactor,
+ uint16_t lineStipplePattern);
+#endif
-// VK_EXT_memory_budget is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_memory_budget 1
-#define VK_EXT_MEMORY_BUDGET_SPEC_VERSION 1
-#define VK_EXT_MEMORY_BUDGET_EXTENSION_NAME "VK_EXT_memory_budget"
-typedef struct VkPhysicalDeviceMemoryBudgetPropertiesEXT {
+
+// VK_EXT_shader_atomic_float is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_atomic_float 1
+#define VK_EXT_SHADER_ATOMIC_FLOAT_SPEC_VERSION 1
+#define VK_EXT_SHADER_ATOMIC_FLOAT_EXTENSION_NAME "VK_EXT_shader_atomic_float"
+typedef struct VkPhysicalDeviceShaderAtomicFloatFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkDeviceSize heapBudget[VK_MAX_MEMORY_HEAPS];
- VkDeviceSize heapUsage[VK_MAX_MEMORY_HEAPS];
-} VkPhysicalDeviceMemoryBudgetPropertiesEXT;
+ VkBool32 shaderBufferFloat32Atomics;
+ VkBool32 shaderBufferFloat32AtomicAdd;
+ VkBool32 shaderBufferFloat64Atomics;
+ VkBool32 shaderBufferFloat64AtomicAdd;
+ VkBool32 shaderSharedFloat32Atomics;
+ VkBool32 shaderSharedFloat32AtomicAdd;
+ VkBool32 shaderSharedFloat64Atomics;
+ VkBool32 shaderSharedFloat64AtomicAdd;
+ VkBool32 shaderImageFloat32Atomics;
+ VkBool32 shaderImageFloat32AtomicAdd;
+ VkBool32 sparseImageFloat32Atomics;
+ VkBool32 sparseImageFloat32AtomicAdd;
+} VkPhysicalDeviceShaderAtomicFloatFeaturesEXT;
-// VK_EXT_memory_priority is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_memory_priority 1
-#define VK_EXT_MEMORY_PRIORITY_SPEC_VERSION 1
-#define VK_EXT_MEMORY_PRIORITY_EXTENSION_NAME "VK_EXT_memory_priority"
-typedef struct VkPhysicalDeviceMemoryPriorityFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 memoryPriority;
-} VkPhysicalDeviceMemoryPriorityFeaturesEXT;
+// VK_EXT_host_query_reset is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_host_query_reset 1
+#define VK_EXT_HOST_QUERY_RESET_SPEC_VERSION 1
+#define VK_EXT_HOST_QUERY_RESET_EXTENSION_NAME "VK_EXT_host_query_reset"
+typedef VkPhysicalDeviceHostQueryResetFeatures VkPhysicalDeviceHostQueryResetFeaturesEXT;
-typedef struct VkMemoryPriorityAllocateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- float priority;
-} VkMemoryPriorityAllocateInfoEXT;
+typedef void (VKAPI_PTR *PFN_vkResetQueryPoolEXT)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkResetQueryPoolEXT(
+ VkDevice device,
+ VkQueryPool queryPool,
+ uint32_t firstQuery,
+ uint32_t queryCount);
+#endif
-// VK_NV_dedicated_allocation_image_aliasing is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_dedicated_allocation_image_aliasing 1
-#define VK_NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_SPEC_VERSION 1
-#define VK_NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_EXTENSION_NAME "VK_NV_dedicated_allocation_image_aliasing"
-typedef struct VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 dedicatedAllocationImageAliasing;
-} VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV;
+// VK_EXT_index_type_uint8 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_index_type_uint8 1
+#define VK_EXT_INDEX_TYPE_UINT8_SPEC_VERSION 1
+#define VK_EXT_INDEX_TYPE_UINT8_EXTENSION_NAME "VK_EXT_index_type_uint8"
+typedef VkPhysicalDeviceIndexTypeUint8Features VkPhysicalDeviceIndexTypeUint8FeaturesEXT;
-// VK_EXT_buffer_device_address is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_buffer_device_address 1
-#define VK_EXT_BUFFER_DEVICE_ADDRESS_SPEC_VERSION 2
-#define VK_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME "VK_EXT_buffer_device_address"
-typedef struct VkPhysicalDeviceBufferDeviceAddressFeaturesEXT {
+// VK_EXT_extended_dynamic_state is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_extended_dynamic_state 1
+#define VK_EXT_EXTENDED_DYNAMIC_STATE_SPEC_VERSION 1
+#define VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME "VK_EXT_extended_dynamic_state"
+typedef struct VkPhysicalDeviceExtendedDynamicStateFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 bufferDeviceAddress;
- VkBool32 bufferDeviceAddressCaptureReplay;
- VkBool32 bufferDeviceAddressMultiDevice;
-} VkPhysicalDeviceBufferDeviceAddressFeaturesEXT;
+ VkBool32 extendedDynamicState;
+} VkPhysicalDeviceExtendedDynamicStateFeaturesEXT;
-typedef VkPhysicalDeviceBufferDeviceAddressFeaturesEXT VkPhysicalDeviceBufferAddressFeaturesEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdSetCullModeEXT)(VkCommandBuffer commandBuffer, VkCullModeFlags cullMode);
+typedef void (VKAPI_PTR *PFN_vkCmdSetFrontFaceEXT)(VkCommandBuffer commandBuffer, VkFrontFace frontFace);
+typedef void (VKAPI_PTR *PFN_vkCmdSetPrimitiveTopologyEXT)(VkCommandBuffer commandBuffer, VkPrimitiveTopology primitiveTopology);
+typedef void (VKAPI_PTR *PFN_vkCmdSetViewportWithCountEXT)(VkCommandBuffer commandBuffer, uint32_t viewportCount, const VkViewport* pViewports);
+typedef void (VKAPI_PTR *PFN_vkCmdSetScissorWithCountEXT)(VkCommandBuffer commandBuffer, uint32_t scissorCount, const VkRect2D* pScissors);
+typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers2EXT)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets, const VkDeviceSize* pSizes, const VkDeviceSize* pStrides);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthTestEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthTestEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthWriteEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthWriteEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthCompareOpEXT)(VkCommandBuffer commandBuffer, VkCompareOp depthCompareOp);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBoundsTestEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthBoundsTestEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetStencilTestEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 stencilTestEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetStencilOpEXT)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp);
-typedef VkBufferDeviceAddressInfo VkBufferDeviceAddressInfoEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCullModeEXT(
+ VkCommandBuffer commandBuffer,
+ VkCullModeFlags cullMode);
-typedef struct VkBufferDeviceAddressCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkDeviceAddress deviceAddress;
-} VkBufferDeviceAddressCreateInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetFrontFaceEXT(
+ VkCommandBuffer commandBuffer,
+ VkFrontFace frontFace);
-typedef VkDeviceAddress (VKAPI_PTR *PFN_vkGetBufferDeviceAddressEXT)(VkDevice device, const VkBufferDeviceAddressInfo* pInfo);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetPrimitiveTopologyEXT(
+ VkCommandBuffer commandBuffer,
+ VkPrimitiveTopology primitiveTopology);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkDeviceAddress VKAPI_CALL vkGetBufferDeviceAddressEXT(
- VkDevice device,
- const VkBufferDeviceAddressInfo* pInfo);
-#endif
+VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportWithCountEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t viewportCount,
+ const VkViewport* pViewports);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetScissorWithCountEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t scissorCount,
+ const VkRect2D* pScissors);
-// VK_EXT_tooling_info is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_tooling_info 1
-#define VK_EXT_TOOLING_INFO_SPEC_VERSION 1
-#define VK_EXT_TOOLING_INFO_EXTENSION_NAME "VK_EXT_tooling_info"
-typedef VkToolPurposeFlagBits VkToolPurposeFlagBitsEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers2EXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstBinding,
+ uint32_t bindingCount,
+ const VkBuffer* pBuffers,
+ const VkDeviceSize* pOffsets,
+ const VkDeviceSize* pSizes,
+ const VkDeviceSize* pStrides);
-typedef VkToolPurposeFlags VkToolPurposeFlagsEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthTestEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 depthTestEnable);
-typedef VkPhysicalDeviceToolProperties VkPhysicalDeviceToolPropertiesEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthWriteEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 depthWriteEnable);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceToolPropertiesEXT)(VkPhysicalDevice physicalDevice, uint32_t* pToolCount, VkPhysicalDeviceToolProperties* pToolProperties);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthCompareOpEXT(
+ VkCommandBuffer commandBuffer,
+ VkCompareOp depthCompareOp);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceToolPropertiesEXT(
- VkPhysicalDevice physicalDevice,
- uint32_t* pToolCount,
- VkPhysicalDeviceToolProperties* pToolProperties);
-#endif
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBoundsTestEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 depthBoundsTestEnable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilTestEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 stencilTestEnable);
-// VK_EXT_separate_stencil_usage is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_separate_stencil_usage 1
-#define VK_EXT_SEPARATE_STENCIL_USAGE_SPEC_VERSION 1
-#define VK_EXT_SEPARATE_STENCIL_USAGE_EXTENSION_NAME "VK_EXT_separate_stencil_usage"
-typedef VkImageStencilUsageCreateInfo VkImageStencilUsageCreateInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilOpEXT(
+ VkCommandBuffer commandBuffer,
+ VkStencilFaceFlags faceMask,
+ VkStencilOp failOp,
+ VkStencilOp passOp,
+ VkStencilOp depthFailOp,
+ VkCompareOp compareOp);
+#endif
+// VK_EXT_host_image_copy is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_host_image_copy 1
+#define VK_EXT_HOST_IMAGE_COPY_SPEC_VERSION 1
+#define VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME "VK_EXT_host_image_copy"
+typedef VkHostImageCopyFlagBits VkHostImageCopyFlagBitsEXT;
-// VK_EXT_validation_features is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_validation_features 1
-#define VK_EXT_VALIDATION_FEATURES_SPEC_VERSION 6
-#define VK_EXT_VALIDATION_FEATURES_EXTENSION_NAME "VK_EXT_validation_features"
+typedef VkHostImageCopyFlags VkHostImageCopyFlagsEXT;
-typedef enum VkValidationFeatureEnableEXT {
- VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT = 0,
- VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT = 1,
- VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT = 2,
- VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT = 3,
- VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT = 4,
- VK_VALIDATION_FEATURE_ENABLE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkValidationFeatureEnableEXT;
+typedef VkPhysicalDeviceHostImageCopyFeatures VkPhysicalDeviceHostImageCopyFeaturesEXT;
-typedef enum VkValidationFeatureDisableEXT {
- VK_VALIDATION_FEATURE_DISABLE_ALL_EXT = 0,
- VK_VALIDATION_FEATURE_DISABLE_SHADERS_EXT = 1,
- VK_VALIDATION_FEATURE_DISABLE_THREAD_SAFETY_EXT = 2,
- VK_VALIDATION_FEATURE_DISABLE_API_PARAMETERS_EXT = 3,
- VK_VALIDATION_FEATURE_DISABLE_OBJECT_LIFETIMES_EXT = 4,
- VK_VALIDATION_FEATURE_DISABLE_CORE_CHECKS_EXT = 5,
- VK_VALIDATION_FEATURE_DISABLE_UNIQUE_HANDLES_EXT = 6,
- VK_VALIDATION_FEATURE_DISABLE_SHADER_VALIDATION_CACHE_EXT = 7,
- VK_VALIDATION_FEATURE_DISABLE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkValidationFeatureDisableEXT;
-typedef struct VkValidationFeaturesEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t enabledValidationFeatureCount;
- const VkValidationFeatureEnableEXT* pEnabledValidationFeatures;
- uint32_t disabledValidationFeatureCount;
- const VkValidationFeatureDisableEXT* pDisabledValidationFeatures;
-} VkValidationFeaturesEXT;
+typedef VkPhysicalDeviceHostImageCopyProperties VkPhysicalDeviceHostImageCopyPropertiesEXT;
+typedef VkMemoryToImageCopy VkMemoryToImageCopyEXT;
+typedef VkImageToMemoryCopy VkImageToMemoryCopyEXT;
-// VK_NV_cooperative_matrix is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_cooperative_matrix 1
-#define VK_NV_COOPERATIVE_MATRIX_SPEC_VERSION 1
-#define VK_NV_COOPERATIVE_MATRIX_EXTENSION_NAME "VK_NV_cooperative_matrix"
-typedef VkComponentTypeKHR VkComponentTypeNV;
+typedef VkCopyMemoryToImageInfo VkCopyMemoryToImageInfoEXT;
-typedef VkScopeKHR VkScopeNV;
+typedef VkCopyImageToMemoryInfo VkCopyImageToMemoryInfoEXT;
-typedef struct VkCooperativeMatrixPropertiesNV {
- VkStructureType sType;
- void* pNext;
- uint32_t MSize;
- uint32_t NSize;
- uint32_t KSize;
- VkComponentTypeNV AType;
- VkComponentTypeNV BType;
- VkComponentTypeNV CType;
- VkComponentTypeNV DType;
- VkScopeNV scope;
-} VkCooperativeMatrixPropertiesNV;
+typedef VkCopyImageToImageInfo VkCopyImageToImageInfoEXT;
-typedef struct VkPhysicalDeviceCooperativeMatrixFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 cooperativeMatrix;
- VkBool32 cooperativeMatrixRobustBufferAccess;
-} VkPhysicalDeviceCooperativeMatrixFeaturesNV;
+typedef VkHostImageLayoutTransitionInfo VkHostImageLayoutTransitionInfoEXT;
-typedef struct VkPhysicalDeviceCooperativeMatrixPropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkShaderStageFlags cooperativeMatrixSupportedStages;
-} VkPhysicalDeviceCooperativeMatrixPropertiesNV;
+typedef VkSubresourceHostMemcpySize VkSubresourceHostMemcpySizeEXT;
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkCooperativeMatrixPropertiesNV* pProperties);
+typedef VkHostImageCopyDevicePerformanceQuery VkHostImageCopyDevicePerformanceQueryEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
- VkPhysicalDevice physicalDevice,
- uint32_t* pPropertyCount,
- VkCooperativeMatrixPropertiesNV* pProperties);
-#endif
+typedef VkSubresourceLayout2 VkSubresourceLayout2EXT;
+typedef VkImageSubresource2 VkImageSubresource2EXT;
-// VK_NV_coverage_reduction_mode is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_coverage_reduction_mode 1
-#define VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSION 1
-#define VK_NV_COVERAGE_REDUCTION_MODE_EXTENSION_NAME "VK_NV_coverage_reduction_mode"
+typedef VkResult (VKAPI_PTR *PFN_vkCopyMemoryToImageEXT)(VkDevice device, const VkCopyMemoryToImageInfo* pCopyMemoryToImageInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyImageToMemoryEXT)(VkDevice device, const VkCopyImageToMemoryInfo* pCopyImageToMemoryInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyImageToImageEXT)(VkDevice device, const VkCopyImageToImageInfo* pCopyImageToImageInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkTransitionImageLayoutEXT)(VkDevice device, uint32_t transitionCount, const VkHostImageLayoutTransitionInfo* pTransitions);
+typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout2EXT)(VkDevice device, VkImage image, const VkImageSubresource2* pSubresource, VkSubresourceLayout2* pLayout);
-typedef enum VkCoverageReductionModeNV {
- VK_COVERAGE_REDUCTION_MODE_MERGE_NV = 0,
- VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NV = 1,
- VK_COVERAGE_REDUCTION_MODE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkCoverageReductionModeNV;
-typedef VkFlags VkPipelineCoverageReductionStateCreateFlagsNV;
-typedef struct VkPhysicalDeviceCoverageReductionModeFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 coverageReductionMode;
-} VkPhysicalDeviceCoverageReductionModeFeaturesNV;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyMemoryToImageEXT(
+ VkDevice device,
+ const VkCopyMemoryToImageInfo* pCopyMemoryToImageInfo);
-typedef struct VkPipelineCoverageReductionStateCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkPipelineCoverageReductionStateCreateFlagsNV flags;
- VkCoverageReductionModeNV coverageReductionMode;
-} VkPipelineCoverageReductionStateCreateInfoNV;
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyImageToMemoryEXT(
+ VkDevice device,
+ const VkCopyImageToMemoryInfo* pCopyImageToMemoryInfo);
-typedef struct VkFramebufferMixedSamplesCombinationNV {
- VkStructureType sType;
- void* pNext;
- VkCoverageReductionModeNV coverageReductionMode;
- VkSampleCountFlagBits rasterizationSamples;
- VkSampleCountFlags depthStencilSamples;
- VkSampleCountFlags colorSamples;
-} VkFramebufferMixedSamplesCombinationNV;
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyImageToImageEXT(
+ VkDevice device,
+ const VkCopyImageToImageInfo* pCopyImageToImageInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV)(VkPhysicalDevice physicalDevice, uint32_t* pCombinationCount, VkFramebufferMixedSamplesCombinationNV* pCombinations);
+VKAPI_ATTR VkResult VKAPI_CALL vkTransitionImageLayoutEXT(
+ VkDevice device,
+ uint32_t transitionCount,
+ const VkHostImageLayoutTransitionInfo* pTransitions);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
- VkPhysicalDevice physicalDevice,
- uint32_t* pCombinationCount,
- VkFramebufferMixedSamplesCombinationNV* pCombinations);
+VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout2EXT(
+ VkDevice device,
+ VkImage image,
+ const VkImageSubresource2* pSubresource,
+ VkSubresourceLayout2* pLayout);
#endif
-// VK_EXT_fragment_shader_interlock is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_fragment_shader_interlock 1
-#define VK_EXT_FRAGMENT_SHADER_INTERLOCK_SPEC_VERSION 1
-#define VK_EXT_FRAGMENT_SHADER_INTERLOCK_EXTENSION_NAME "VK_EXT_fragment_shader_interlock"
-typedef struct VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT {
+// VK_EXT_map_memory_placed is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_map_memory_placed 1
+#define VK_EXT_MAP_MEMORY_PLACED_SPEC_VERSION 1
+#define VK_EXT_MAP_MEMORY_PLACED_EXTENSION_NAME "VK_EXT_map_memory_placed"
+typedef struct VkPhysicalDeviceMapMemoryPlacedFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 fragmentShaderSampleInterlock;
- VkBool32 fragmentShaderPixelInterlock;
- VkBool32 fragmentShaderShadingRateInterlock;
-} VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT;
+ VkBool32 memoryMapPlaced;
+ VkBool32 memoryMapRangePlaced;
+ VkBool32 memoryUnmapReserve;
+} VkPhysicalDeviceMapMemoryPlacedFeaturesEXT;
-
-
-// VK_EXT_ycbcr_image_arrays is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_ycbcr_image_arrays 1
-#define VK_EXT_YCBCR_IMAGE_ARRAYS_SPEC_VERSION 1
-#define VK_EXT_YCBCR_IMAGE_ARRAYS_EXTENSION_NAME "VK_EXT_ycbcr_image_arrays"
-typedef struct VkPhysicalDeviceYcbcrImageArraysFeaturesEXT {
+typedef struct VkPhysicalDeviceMapMemoryPlacedPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 ycbcrImageArrays;
-} VkPhysicalDeviceYcbcrImageArraysFeaturesEXT;
+ VkDeviceSize minPlacedMemoryMapAlignment;
+} VkPhysicalDeviceMapMemoryPlacedPropertiesEXT;
+typedef struct VkMemoryMapPlacedInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ void* pPlacedAddress;
+} VkMemoryMapPlacedInfoEXT;
-// VK_EXT_provoking_vertex is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_provoking_vertex 1
-#define VK_EXT_PROVOKING_VERTEX_SPEC_VERSION 1
-#define VK_EXT_PROVOKING_VERTEX_EXTENSION_NAME "VK_EXT_provoking_vertex"
-typedef enum VkProvokingVertexModeEXT {
- VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT = 0,
- VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT = 1,
- VK_PROVOKING_VERTEX_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkProvokingVertexModeEXT;
-typedef struct VkPhysicalDeviceProvokingVertexFeaturesEXT {
+// VK_EXT_shader_atomic_float2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_atomic_float2 1
+#define VK_EXT_SHADER_ATOMIC_FLOAT_2_SPEC_VERSION 1
+#define VK_EXT_SHADER_ATOMIC_FLOAT_2_EXTENSION_NAME "VK_EXT_shader_atomic_float2"
+typedef struct VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 provokingVertexLast;
- VkBool32 transformFeedbackPreservesProvokingVertex;
-} VkPhysicalDeviceProvokingVertexFeaturesEXT;
+ VkBool32 shaderBufferFloat16Atomics;
+ VkBool32 shaderBufferFloat16AtomicAdd;
+ VkBool32 shaderBufferFloat16AtomicMinMax;
+ VkBool32 shaderBufferFloat32AtomicMinMax;
+ VkBool32 shaderBufferFloat64AtomicMinMax;
+ VkBool32 shaderSharedFloat16Atomics;
+ VkBool32 shaderSharedFloat16AtomicAdd;
+ VkBool32 shaderSharedFloat16AtomicMinMax;
+ VkBool32 shaderSharedFloat32AtomicMinMax;
+ VkBool32 shaderSharedFloat64AtomicMinMax;
+ VkBool32 shaderImageFloat32AtomicMinMax;
+ VkBool32 sparseImageFloat32AtomicMinMax;
+} VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT;
-typedef struct VkPhysicalDeviceProvokingVertexPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 provokingVertexModePerPipeline;
- VkBool32 transformFeedbackPreservesTriangleFanProvokingVertex;
-} VkPhysicalDeviceProvokingVertexPropertiesEXT;
-typedef struct VkPipelineRasterizationProvokingVertexStateCreateInfoEXT {
+
+// VK_EXT_surface_maintenance1 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_surface_maintenance1 1
+#define VK_EXT_SURFACE_MAINTENANCE_1_SPEC_VERSION 1
+#define VK_EXT_SURFACE_MAINTENANCE_1_EXTENSION_NAME "VK_EXT_surface_maintenance1"
+
+typedef enum VkPresentScalingFlagBitsEXT {
+ VK_PRESENT_SCALING_ONE_TO_ONE_BIT_EXT = 0x00000001,
+ VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_EXT = 0x00000002,
+ VK_PRESENT_SCALING_STRETCH_BIT_EXT = 0x00000004,
+ VK_PRESENT_SCALING_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkPresentScalingFlagBitsEXT;
+typedef VkFlags VkPresentScalingFlagsEXT;
+
+typedef enum VkPresentGravityFlagBitsEXT {
+ VK_PRESENT_GRAVITY_MIN_BIT_EXT = 0x00000001,
+ VK_PRESENT_GRAVITY_MAX_BIT_EXT = 0x00000002,
+ VK_PRESENT_GRAVITY_CENTERED_BIT_EXT = 0x00000004,
+ VK_PRESENT_GRAVITY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkPresentGravityFlagBitsEXT;
+typedef VkFlags VkPresentGravityFlagsEXT;
+typedef struct VkSurfacePresentModeEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkPresentModeKHR presentMode;
+} VkSurfacePresentModeEXT;
+
+typedef struct VkSurfacePresentScalingCapabilitiesEXT {
VkStructureType sType;
- const void* pNext;
- VkProvokingVertexModeEXT provokingVertexMode;
-} VkPipelineRasterizationProvokingVertexStateCreateInfoEXT;
+ void* pNext;
+ VkPresentScalingFlagsEXT supportedPresentScaling;
+ VkPresentGravityFlagsEXT supportedPresentGravityX;
+ VkPresentGravityFlagsEXT supportedPresentGravityY;
+ VkExtent2D minScaledImageExtent;
+ VkExtent2D maxScaledImageExtent;
+} VkSurfacePresentScalingCapabilitiesEXT;
+typedef struct VkSurfacePresentModeCompatibilityEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t presentModeCount;
+ VkPresentModeKHR* pPresentModes;
+} VkSurfacePresentModeCompatibilityEXT;
-// VK_EXT_headless_surface is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_headless_surface 1
-#define VK_EXT_HEADLESS_SURFACE_SPEC_VERSION 1
-#define VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME "VK_EXT_headless_surface"
-typedef VkFlags VkHeadlessSurfaceCreateFlagsEXT;
-typedef struct VkHeadlessSurfaceCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkHeadlessSurfaceCreateFlagsEXT flags;
-} VkHeadlessSurfaceCreateInfoEXT;
-typedef VkResult (VKAPI_PTR *PFN_vkCreateHeadlessSurfaceEXT)(VkInstance instance, const VkHeadlessSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+// VK_EXT_swapchain_maintenance1 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_swapchain_maintenance1 1
+#define VK_EXT_SWAPCHAIN_MAINTENANCE_1_SPEC_VERSION 1
+#define VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME "VK_EXT_swapchain_maintenance1"
+typedef struct VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 swapchainMaintenance1;
+} VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateHeadlessSurfaceEXT(
- VkInstance instance,
- const VkHeadlessSurfaceCreateInfoEXT* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkSurfaceKHR* pSurface);
-#endif
+typedef struct VkSwapchainPresentFenceInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t swapchainCount;
+ const VkFence* pFences;
+} VkSwapchainPresentFenceInfoEXT;
+typedef struct VkSwapchainPresentModesCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t presentModeCount;
+ const VkPresentModeKHR* pPresentModes;
+} VkSwapchainPresentModesCreateInfoEXT;
-// VK_EXT_line_rasterization is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_line_rasterization 1
-#define VK_EXT_LINE_RASTERIZATION_SPEC_VERSION 1
-#define VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME "VK_EXT_line_rasterization"
+typedef struct VkSwapchainPresentModeInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t swapchainCount;
+ const VkPresentModeKHR* pPresentModes;
+} VkSwapchainPresentModeInfoEXT;
-typedef enum VkLineRasterizationModeEXT {
- VK_LINE_RASTERIZATION_MODE_DEFAULT_EXT = 0,
- VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT = 1,
- VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT = 2,
- VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT = 3,
- VK_LINE_RASTERIZATION_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkLineRasterizationModeEXT;
-typedef struct VkPhysicalDeviceLineRasterizationFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 rectangularLines;
- VkBool32 bresenhamLines;
- VkBool32 smoothLines;
- VkBool32 stippledRectangularLines;
- VkBool32 stippledBresenhamLines;
- VkBool32 stippledSmoothLines;
-} VkPhysicalDeviceLineRasterizationFeaturesEXT;
+typedef struct VkSwapchainPresentScalingCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkPresentScalingFlagsEXT scalingBehavior;
+ VkPresentGravityFlagsEXT presentGravityX;
+ VkPresentGravityFlagsEXT presentGravityY;
+} VkSwapchainPresentScalingCreateInfoEXT;
-typedef struct VkPhysicalDeviceLineRasterizationPropertiesEXT {
+typedef struct VkReleaseSwapchainImagesInfoEXT {
VkStructureType sType;
- void* pNext;
- uint32_t lineSubPixelPrecisionBits;
-} VkPhysicalDeviceLineRasterizationPropertiesEXT;
-
-typedef struct VkPipelineRasterizationLineStateCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkLineRasterizationModeEXT lineRasterizationMode;
- VkBool32 stippledLineEnable;
- uint32_t lineStippleFactor;
- uint16_t lineStipplePattern;
-} VkPipelineRasterizationLineStateCreateInfoEXT;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+ uint32_t imageIndexCount;
+ const uint32_t* pImageIndices;
+} VkReleaseSwapchainImagesInfoEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdSetLineStippleEXT)(VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern);
+typedef VkResult (VKAPI_PTR *PFN_vkReleaseSwapchainImagesEXT)(VkDevice device, const VkReleaseSwapchainImagesInfoEXT* pReleaseInfo);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetLineStippleEXT(
- VkCommandBuffer commandBuffer,
- uint32_t lineStippleFactor,
- uint16_t lineStipplePattern);
+VKAPI_ATTR VkResult VKAPI_CALL vkReleaseSwapchainImagesEXT(
+ VkDevice device,
+ const VkReleaseSwapchainImagesInfoEXT* pReleaseInfo);
#endif
-// VK_EXT_shader_atomic_float is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_atomic_float 1
-#define VK_EXT_SHADER_ATOMIC_FLOAT_SPEC_VERSION 1
-#define VK_EXT_SHADER_ATOMIC_FLOAT_EXTENSION_NAME "VK_EXT_shader_atomic_float"
-typedef struct VkPhysicalDeviceShaderAtomicFloatFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 shaderBufferFloat32Atomics;
- VkBool32 shaderBufferFloat32AtomicAdd;
- VkBool32 shaderBufferFloat64Atomics;
- VkBool32 shaderBufferFloat64AtomicAdd;
- VkBool32 shaderSharedFloat32Atomics;
- VkBool32 shaderSharedFloat32AtomicAdd;
- VkBool32 shaderSharedFloat64Atomics;
- VkBool32 shaderSharedFloat64AtomicAdd;
- VkBool32 shaderImageFloat32Atomics;
- VkBool32 shaderImageFloat32AtomicAdd;
- VkBool32 sparseImageFloat32Atomics;
- VkBool32 sparseImageFloat32AtomicAdd;
-} VkPhysicalDeviceShaderAtomicFloatFeaturesEXT;
+// VK_EXT_shader_demote_to_helper_invocation is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_demote_to_helper_invocation 1
+#define VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION 1
+#define VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME "VK_EXT_shader_demote_to_helper_invocation"
+typedef VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT;
-// VK_EXT_host_query_reset is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_host_query_reset 1
-#define VK_EXT_HOST_QUERY_RESET_SPEC_VERSION 1
-#define VK_EXT_HOST_QUERY_RESET_EXTENSION_NAME "VK_EXT_host_query_reset"
-typedef VkPhysicalDeviceHostQueryResetFeatures VkPhysicalDeviceHostQueryResetFeaturesEXT;
+// VK_NV_device_generated_commands is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_device_generated_commands 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectCommandsLayoutNV)
+#define VK_NV_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 3
+#define VK_NV_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_NV_device_generated_commands"
-typedef void (VKAPI_PTR *PFN_vkResetQueryPoolEXT)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount);
+typedef enum VkIndirectCommandsTokenTypeNV {
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_SHADER_GROUP_NV = 0,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_STATE_FLAGS_NV = 1,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_NV = 2,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_VERTEX_BUFFER_NV = 3,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_CONSTANT_NV = 4,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_NV = 5,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_NV = 6,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_TASKS_NV = 7,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_MESH_TASKS_NV = 1000328000,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NV = 1000428003,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NV = 1000428004,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkIndirectCommandsTokenTypeNV;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkResetQueryPoolEXT(
- VkDevice device,
- VkQueryPool queryPool,
- uint32_t firstQuery,
- uint32_t queryCount);
-#endif
+typedef enum VkIndirectStateFlagBitsNV {
+ VK_INDIRECT_STATE_FLAG_FRONTFACE_BIT_NV = 0x00000001,
+ VK_INDIRECT_STATE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkIndirectStateFlagBitsNV;
+typedef VkFlags VkIndirectStateFlagsNV;
+typedef enum VkIndirectCommandsLayoutUsageFlagBitsNV {
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EXPLICIT_PREPROCESS_BIT_NV = 0x00000001,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NV = 0x00000002,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_NV = 0x00000004,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkIndirectCommandsLayoutUsageFlagBitsNV;
+typedef VkFlags VkIndirectCommandsLayoutUsageFlagsNV;
+typedef struct VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxGraphicsShaderGroupCount;
+ uint32_t maxIndirectSequenceCount;
+ uint32_t maxIndirectCommandsTokenCount;
+ uint32_t maxIndirectCommandsStreamCount;
+ uint32_t maxIndirectCommandsTokenOffset;
+ uint32_t maxIndirectCommandsStreamStride;
+ uint32_t minSequencesCountBufferOffsetAlignment;
+ uint32_t minSequencesIndexBufferOffsetAlignment;
+ uint32_t minIndirectCommandsBufferOffsetAlignment;
+} VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV;
-// VK_EXT_index_type_uint8 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_index_type_uint8 1
-#define VK_EXT_INDEX_TYPE_UINT8_SPEC_VERSION 1
-#define VK_EXT_INDEX_TYPE_UINT8_EXTENSION_NAME "VK_EXT_index_type_uint8"
-typedef struct VkPhysicalDeviceIndexTypeUint8FeaturesEXT {
+typedef struct VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 indexTypeUint8;
-} VkPhysicalDeviceIndexTypeUint8FeaturesEXT;
+ VkBool32 deviceGeneratedCommands;
+} VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV;
+typedef struct VkGraphicsShaderGroupCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t stageCount;
+ const VkPipelineShaderStageCreateInfo* pStages;
+ const VkPipelineVertexInputStateCreateInfo* pVertexInputState;
+ const VkPipelineTessellationStateCreateInfo* pTessellationState;
+} VkGraphicsShaderGroupCreateInfoNV;
+typedef struct VkGraphicsPipelineShaderGroupsCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t groupCount;
+ const VkGraphicsShaderGroupCreateInfoNV* pGroups;
+ uint32_t pipelineCount;
+ const VkPipeline* pPipelines;
+} VkGraphicsPipelineShaderGroupsCreateInfoNV;
-// VK_EXT_extended_dynamic_state is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_extended_dynamic_state 1
-#define VK_EXT_EXTENDED_DYNAMIC_STATE_SPEC_VERSION 1
-#define VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME "VK_EXT_extended_dynamic_state"
-typedef struct VkPhysicalDeviceExtendedDynamicStateFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 extendedDynamicState;
-} VkPhysicalDeviceExtendedDynamicStateFeaturesEXT;
+typedef struct VkBindShaderGroupIndirectCommandNV {
+ uint32_t groupIndex;
+} VkBindShaderGroupIndirectCommandNV;
-typedef void (VKAPI_PTR *PFN_vkCmdSetCullModeEXT)(VkCommandBuffer commandBuffer, VkCullModeFlags cullMode);
-typedef void (VKAPI_PTR *PFN_vkCmdSetFrontFaceEXT)(VkCommandBuffer commandBuffer, VkFrontFace frontFace);
-typedef void (VKAPI_PTR *PFN_vkCmdSetPrimitiveTopologyEXT)(VkCommandBuffer commandBuffer, VkPrimitiveTopology primitiveTopology);
-typedef void (VKAPI_PTR *PFN_vkCmdSetViewportWithCountEXT)(VkCommandBuffer commandBuffer, uint32_t viewportCount, const VkViewport* pViewports);
-typedef void (VKAPI_PTR *PFN_vkCmdSetScissorWithCountEXT)(VkCommandBuffer commandBuffer, uint32_t scissorCount, const VkRect2D* pScissors);
-typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers2EXT)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets, const VkDeviceSize* pSizes, const VkDeviceSize* pStrides);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthTestEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthTestEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthWriteEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthWriteEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthCompareOpEXT)(VkCommandBuffer commandBuffer, VkCompareOp depthCompareOp);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBoundsTestEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthBoundsTestEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetStencilTestEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 stencilTestEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetStencilOpEXT)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp);
+typedef struct VkBindIndexBufferIndirectCommandNV {
+ VkDeviceAddress bufferAddress;
+ uint32_t size;
+ VkIndexType indexType;
+} VkBindIndexBufferIndirectCommandNV;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCullModeEXT(
- VkCommandBuffer commandBuffer,
- VkCullModeFlags cullMode);
+typedef struct VkBindVertexBufferIndirectCommandNV {
+ VkDeviceAddress bufferAddress;
+ uint32_t size;
+ uint32_t stride;
+} VkBindVertexBufferIndirectCommandNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetFrontFaceEXT(
- VkCommandBuffer commandBuffer,
- VkFrontFace frontFace);
+typedef struct VkSetStateFlagsIndirectCommandNV {
+ uint32_t data;
+} VkSetStateFlagsIndirectCommandNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetPrimitiveTopologyEXT(
- VkCommandBuffer commandBuffer,
- VkPrimitiveTopology primitiveTopology);
+typedef struct VkIndirectCommandsStreamNV {
+ VkBuffer buffer;
+ VkDeviceSize offset;
+} VkIndirectCommandsStreamNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportWithCountEXT(
- VkCommandBuffer commandBuffer,
- uint32_t viewportCount,
- const VkViewport* pViewports);
+typedef struct VkIndirectCommandsLayoutTokenNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkIndirectCommandsTokenTypeNV tokenType;
+ uint32_t stream;
+ uint32_t offset;
+ uint32_t vertexBindingUnit;
+ VkBool32 vertexDynamicStride;
+ VkPipelineLayout pushconstantPipelineLayout;
+ VkShaderStageFlags pushconstantShaderStageFlags;
+ uint32_t pushconstantOffset;
+ uint32_t pushconstantSize;
+ VkIndirectStateFlagsNV indirectStateFlags;
+ uint32_t indexTypeCount;
+ const VkIndexType* pIndexTypes;
+ const uint32_t* pIndexTypeValues;
+} VkIndirectCommandsLayoutTokenNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetScissorWithCountEXT(
- VkCommandBuffer commandBuffer,
- uint32_t scissorCount,
- const VkRect2D* pScissors);
+typedef struct VkIndirectCommandsLayoutCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkIndirectCommandsLayoutUsageFlagsNV flags;
+ VkPipelineBindPoint pipelineBindPoint;
+ uint32_t tokenCount;
+ const VkIndirectCommandsLayoutTokenNV* pTokens;
+ uint32_t streamCount;
+ const uint32_t* pStreamStrides;
+} VkIndirectCommandsLayoutCreateInfoNV;
+
+typedef struct VkGeneratedCommandsInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineBindPoint pipelineBindPoint;
+ VkPipeline pipeline;
+ VkIndirectCommandsLayoutNV indirectCommandsLayout;
+ uint32_t streamCount;
+ const VkIndirectCommandsStreamNV* pStreams;
+ uint32_t sequencesCount;
+ VkBuffer preprocessBuffer;
+ VkDeviceSize preprocessOffset;
+ VkDeviceSize preprocessSize;
+ VkBuffer sequencesCountBuffer;
+ VkDeviceSize sequencesCountOffset;
+ VkBuffer sequencesIndexBuffer;
+ VkDeviceSize sequencesIndexOffset;
+} VkGeneratedCommandsInfoNV;
+
+typedef struct VkGeneratedCommandsMemoryRequirementsInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineBindPoint pipelineBindPoint;
+ VkPipeline pipeline;
+ VkIndirectCommandsLayoutNV indirectCommandsLayout;
+ uint32_t maxSequencesCount;
+} VkGeneratedCommandsMemoryRequirementsInfoNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers2EXT(
- VkCommandBuffer commandBuffer,
- uint32_t firstBinding,
- uint32_t bindingCount,
- const VkBuffer* pBuffers,
- const VkDeviceSize* pOffsets,
- const VkDeviceSize* pSizes,
- const VkDeviceSize* pStrides);
+typedef void (VKAPI_PTR *PFN_vkGetGeneratedCommandsMemoryRequirementsNV)(VkDevice device, const VkGeneratedCommandsMemoryRequirementsInfoNV* pInfo, VkMemoryRequirements2* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkCmdPreprocessGeneratedCommandsNV)(VkCommandBuffer commandBuffer, const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdExecuteGeneratedCommandsNV)(VkCommandBuffer commandBuffer, VkBool32 isPreprocessed, const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdBindPipelineShaderGroupNV)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline, uint32_t groupIndex);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectCommandsLayoutNV)(VkDevice device, const VkIndirectCommandsLayoutCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectCommandsLayoutNV* pIndirectCommandsLayout);
+typedef void (VKAPI_PTR *PFN_vkDestroyIndirectCommandsLayoutNV)(VkDevice device, VkIndirectCommandsLayoutNV indirectCommandsLayout, const VkAllocationCallbacks* pAllocator);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthTestEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 depthTestEnable);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetGeneratedCommandsMemoryRequirementsNV(
+ VkDevice device,
+ const VkGeneratedCommandsMemoryRequirementsInfoNV* pInfo,
+ VkMemoryRequirements2* pMemoryRequirements);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthWriteEnableEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdPreprocessGeneratedCommandsNV(
VkCommandBuffer commandBuffer,
- VkBool32 depthWriteEnable);
+ const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthCompareOpEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdExecuteGeneratedCommandsNV(
VkCommandBuffer commandBuffer,
- VkCompareOp depthCompareOp);
+ VkBool32 isPreprocessed,
+ const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBoundsTestEnableEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdBindPipelineShaderGroupNV(
VkCommandBuffer commandBuffer,
- VkBool32 depthBoundsTestEnable);
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipeline pipeline,
+ uint32_t groupIndex);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilTestEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 stencilTestEnable);
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectCommandsLayoutNV(
+ VkDevice device,
+ const VkIndirectCommandsLayoutCreateInfoNV* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkIndirectCommandsLayoutNV* pIndirectCommandsLayout);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilOpEXT(
- VkCommandBuffer commandBuffer,
- VkStencilFaceFlags faceMask,
- VkStencilOp failOp,
- VkStencilOp passOp,
- VkStencilOp depthFailOp,
- VkCompareOp compareOp);
+VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectCommandsLayoutNV(
+ VkDevice device,
+ VkIndirectCommandsLayoutNV indirectCommandsLayout,
+ const VkAllocationCallbacks* pAllocator);
#endif
-// VK_EXT_host_image_copy is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_host_image_copy 1
-#define VK_EXT_HOST_IMAGE_COPY_SPEC_VERSION 1
-#define VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME "VK_EXT_host_image_copy"
-
-typedef enum VkHostImageCopyFlagBitsEXT {
- VK_HOST_IMAGE_COPY_MEMCPY_EXT = 0x00000001,
- VK_HOST_IMAGE_COPY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkHostImageCopyFlagBitsEXT;
-typedef VkFlags VkHostImageCopyFlagsEXT;
-typedef struct VkPhysicalDeviceHostImageCopyFeaturesEXT {
+// VK_NV_inherited_viewport_scissor is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_inherited_viewport_scissor 1
+#define VK_NV_INHERITED_VIEWPORT_SCISSOR_SPEC_VERSION 1
+#define VK_NV_INHERITED_VIEWPORT_SCISSOR_EXTENSION_NAME "VK_NV_inherited_viewport_scissor"
+typedef struct VkPhysicalDeviceInheritedViewportScissorFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 hostImageCopy;
-} VkPhysicalDeviceHostImageCopyFeaturesEXT;
+ VkBool32 inheritedViewportScissor2D;
+} VkPhysicalDeviceInheritedViewportScissorFeaturesNV;
+
+typedef struct VkCommandBufferInheritanceViewportScissorInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 viewportScissor2D;
+ uint32_t viewportDepthCount;
+ const VkViewport* pViewportDepths;
+} VkCommandBufferInheritanceViewportScissorInfoNV;
+
-typedef struct VkPhysicalDeviceHostImageCopyPropertiesEXT {
+
+// VK_EXT_texel_buffer_alignment is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_texel_buffer_alignment 1
+#define VK_EXT_TEXEL_BUFFER_ALIGNMENT_SPEC_VERSION 1
+#define VK_EXT_TEXEL_BUFFER_ALIGNMENT_EXTENSION_NAME "VK_EXT_texel_buffer_alignment"
+typedef struct VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT {
VkStructureType sType;
void* pNext;
- uint32_t copySrcLayoutCount;
- VkImageLayout* pCopySrcLayouts;
- uint32_t copyDstLayoutCount;
- VkImageLayout* pCopyDstLayouts;
- uint8_t optimalTilingLayoutUUID[VK_UUID_SIZE];
- VkBool32 identicalMemoryTypeRequirements;
-} VkPhysicalDeviceHostImageCopyPropertiesEXT;
+ VkBool32 texelBufferAlignment;
+} VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT;
+
+typedef VkPhysicalDeviceTexelBufferAlignmentProperties VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT;
-typedef struct VkMemoryToImageCopyEXT {
- VkStructureType sType;
- const void* pNext;
- const void* pHostPointer;
- uint32_t memoryRowLength;
- uint32_t memoryImageHeight;
- VkImageSubresourceLayers imageSubresource;
- VkOffset3D imageOffset;
- VkExtent3D imageExtent;
-} VkMemoryToImageCopyEXT;
-typedef struct VkImageToMemoryCopyEXT {
- VkStructureType sType;
- const void* pNext;
- void* pHostPointer;
- uint32_t memoryRowLength;
- uint32_t memoryImageHeight;
- VkImageSubresourceLayers imageSubresource;
- VkOffset3D imageOffset;
- VkExtent3D imageExtent;
-} VkImageToMemoryCopyEXT;
-typedef struct VkCopyMemoryToImageInfoEXT {
+// VK_QCOM_render_pass_transform is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_render_pass_transform 1
+#define VK_QCOM_RENDER_PASS_TRANSFORM_SPEC_VERSION 4
+#define VK_QCOM_RENDER_PASS_TRANSFORM_EXTENSION_NAME "VK_QCOM_render_pass_transform"
+typedef struct VkRenderPassTransformBeginInfoQCOM {
VkStructureType sType;
- const void* pNext;
- VkHostImageCopyFlagsEXT flags;
- VkImage dstImage;
- VkImageLayout dstImageLayout;
- uint32_t regionCount;
- const VkMemoryToImageCopyEXT* pRegions;
-} VkCopyMemoryToImageInfoEXT;
-
-typedef struct VkCopyImageToMemoryInfoEXT {
+ void* pNext;
+ VkSurfaceTransformFlagBitsKHR transform;
+} VkRenderPassTransformBeginInfoQCOM;
+
+typedef struct VkCommandBufferInheritanceRenderPassTransformInfoQCOM {
VkStructureType sType;
- const void* pNext;
- VkHostImageCopyFlagsEXT flags;
- VkImage srcImage;
- VkImageLayout srcImageLayout;
- uint32_t regionCount;
- const VkImageToMemoryCopyEXT* pRegions;
-} VkCopyImageToMemoryInfoEXT;
-
-typedef struct VkCopyImageToImageInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkHostImageCopyFlagsEXT flags;
- VkImage srcImage;
- VkImageLayout srcImageLayout;
- VkImage dstImage;
- VkImageLayout dstImageLayout;
- uint32_t regionCount;
- const VkImageCopy2* pRegions;
-} VkCopyImageToImageInfoEXT;
-
-typedef struct VkHostImageLayoutTransitionInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkImage image;
- VkImageLayout oldLayout;
- VkImageLayout newLayout;
- VkImageSubresourceRange subresourceRange;
-} VkHostImageLayoutTransitionInfoEXT;
+ void* pNext;
+ VkSurfaceTransformFlagBitsKHR transform;
+ VkRect2D renderArea;
+} VkCommandBufferInheritanceRenderPassTransformInfoQCOM;
+
+
-typedef struct VkSubresourceHostMemcpySizeEXT {
+// VK_EXT_depth_bias_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_depth_bias_control 1
+#define VK_EXT_DEPTH_BIAS_CONTROL_SPEC_VERSION 1
+#define VK_EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME "VK_EXT_depth_bias_control"
+
+typedef enum VkDepthBiasRepresentationEXT {
+ VK_DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORMAT_EXT = 0,
+ VK_DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORCE_UNORM_EXT = 1,
+ VK_DEPTH_BIAS_REPRESENTATION_FLOAT_EXT = 2,
+ VK_DEPTH_BIAS_REPRESENTATION_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDepthBiasRepresentationEXT;
+typedef struct VkPhysicalDeviceDepthBiasControlFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkDeviceSize size;
-} VkSubresourceHostMemcpySizeEXT;
+ VkBool32 depthBiasControl;
+ VkBool32 leastRepresentableValueForceUnormRepresentation;
+ VkBool32 floatRepresentation;
+ VkBool32 depthBiasExact;
+} VkPhysicalDeviceDepthBiasControlFeaturesEXT;
+
+typedef struct VkDepthBiasInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ float depthBiasConstantFactor;
+ float depthBiasClamp;
+ float depthBiasSlopeFactor;
+} VkDepthBiasInfoEXT;
+
+typedef struct VkDepthBiasRepresentationInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDepthBiasRepresentationEXT depthBiasRepresentation;
+ VkBool32 depthBiasExact;
+} VkDepthBiasRepresentationInfoEXT;
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias2EXT)(VkCommandBuffer commandBuffer, const VkDepthBiasInfoEXT* pDepthBiasInfo);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias2EXT(
+ VkCommandBuffer commandBuffer,
+ const VkDepthBiasInfoEXT* pDepthBiasInfo);
+#endif
+
+
+// VK_EXT_device_memory_report is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_device_memory_report 1
+#define VK_EXT_DEVICE_MEMORY_REPORT_SPEC_VERSION 2
+#define VK_EXT_DEVICE_MEMORY_REPORT_EXTENSION_NAME "VK_EXT_device_memory_report"
-typedef struct VkHostImageCopyDevicePerformanceQueryEXT {
+typedef enum VkDeviceMemoryReportEventTypeEXT {
+ VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATE_EXT = 0,
+ VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_FREE_EXT = 1,
+ VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_IMPORT_EXT = 2,
+ VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_UNIMPORT_EXT = 3,
+ VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT = 4,
+ VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDeviceMemoryReportEventTypeEXT;
+typedef VkFlags VkDeviceMemoryReportFlagsEXT;
+typedef struct VkPhysicalDeviceDeviceMemoryReportFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 optimalDeviceAccess;
- VkBool32 identicalMemoryLayout;
-} VkHostImageCopyDevicePerformanceQueryEXT;
+ VkBool32 deviceMemoryReport;
+} VkPhysicalDeviceDeviceMemoryReportFeaturesEXT;
-typedef VkSubresourceLayout2KHR VkSubresourceLayout2EXT;
+typedef struct VkDeviceMemoryReportCallbackDataEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkDeviceMemoryReportFlagsEXT flags;
+ VkDeviceMemoryReportEventTypeEXT type;
+ uint64_t memoryObjectId;
+ VkDeviceSize size;
+ VkObjectType objectType;
+ uint64_t objectHandle;
+ uint32_t heapIndex;
+} VkDeviceMemoryReportCallbackDataEXT;
-typedef VkImageSubresource2KHR VkImageSubresource2EXT;
+typedef void (VKAPI_PTR *PFN_vkDeviceMemoryReportCallbackEXT)(
+ const VkDeviceMemoryReportCallbackDataEXT* pCallbackData,
+ void* pUserData);
-typedef VkResult (VKAPI_PTR *PFN_vkCopyMemoryToImageEXT)(VkDevice device, const VkCopyMemoryToImageInfoEXT* pCopyMemoryToImageInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkCopyImageToMemoryEXT)(VkDevice device, const VkCopyImageToMemoryInfoEXT* pCopyImageToMemoryInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkCopyImageToImageEXT)(VkDevice device, const VkCopyImageToImageInfoEXT* pCopyImageToImageInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkTransitionImageLayoutEXT)(VkDevice device, uint32_t transitionCount, const VkHostImageLayoutTransitionInfoEXT* pTransitions);
-typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout2EXT)(VkDevice device, VkImage image, const VkImageSubresource2KHR* pSubresource, VkSubresourceLayout2KHR* pLayout);
+typedef struct VkDeviceDeviceMemoryReportCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceMemoryReportFlagsEXT flags;
+ PFN_vkDeviceMemoryReportCallbackEXT pfnUserCallback;
+ void* pUserData;
+} VkDeviceDeviceMemoryReportCreateInfoEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCopyMemoryToImageEXT(
- VkDevice device,
- const VkCopyMemoryToImageInfoEXT* pCopyMemoryToImageInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkCopyImageToMemoryEXT(
- VkDevice device,
- const VkCopyImageToMemoryInfoEXT* pCopyImageToMemoryInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkCopyImageToImageEXT(
- VkDevice device,
- const VkCopyImageToImageInfoEXT* pCopyImageToImageInfo);
+// VK_EXT_acquire_drm_display is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_acquire_drm_display 1
+#define VK_EXT_ACQUIRE_DRM_DISPLAY_SPEC_VERSION 1
+#define VK_EXT_ACQUIRE_DRM_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_drm_display"
+typedef VkResult (VKAPI_PTR *PFN_vkAcquireDrmDisplayEXT)(VkPhysicalDevice physicalDevice, int32_t drmFd, VkDisplayKHR display);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDrmDisplayEXT)(VkPhysicalDevice physicalDevice, int32_t drmFd, uint32_t connectorId, VkDisplayKHR* display);
-VKAPI_ATTR VkResult VKAPI_CALL vkTransitionImageLayoutEXT(
- VkDevice device,
- uint32_t transitionCount,
- const VkHostImageLayoutTransitionInfoEXT* pTransitions);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquireDrmDisplayEXT(
+ VkPhysicalDevice physicalDevice,
+ int32_t drmFd,
+ VkDisplayKHR display);
-VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout2EXT(
- VkDevice device,
- VkImage image,
- const VkImageSubresource2KHR* pSubresource,
- VkSubresourceLayout2KHR* pLayout);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDrmDisplayEXT(
+ VkPhysicalDevice physicalDevice,
+ int32_t drmFd,
+ uint32_t connectorId,
+ VkDisplayKHR* display);
#endif
-// VK_EXT_shader_atomic_float2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_atomic_float2 1
-#define VK_EXT_SHADER_ATOMIC_FLOAT_2_SPEC_VERSION 1
-#define VK_EXT_SHADER_ATOMIC_FLOAT_2_EXTENSION_NAME "VK_EXT_shader_atomic_float2"
-typedef struct VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT {
+// VK_EXT_robustness2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_robustness2 1
+#define VK_EXT_ROBUSTNESS_2_SPEC_VERSION 1
+#define VK_EXT_ROBUSTNESS_2_EXTENSION_NAME "VK_EXT_robustness2"
+typedef struct VkPhysicalDeviceRobustness2FeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 robustBufferAccess2;
+ VkBool32 robustImageAccess2;
+ VkBool32 nullDescriptor;
+} VkPhysicalDeviceRobustness2FeaturesEXT;
+
+typedef struct VkPhysicalDeviceRobustness2PropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 shaderBufferFloat16Atomics;
- VkBool32 shaderBufferFloat16AtomicAdd;
- VkBool32 shaderBufferFloat16AtomicMinMax;
- VkBool32 shaderBufferFloat32AtomicMinMax;
- VkBool32 shaderBufferFloat64AtomicMinMax;
- VkBool32 shaderSharedFloat16Atomics;
- VkBool32 shaderSharedFloat16AtomicAdd;
- VkBool32 shaderSharedFloat16AtomicMinMax;
- VkBool32 shaderSharedFloat32AtomicMinMax;
- VkBool32 shaderSharedFloat64AtomicMinMax;
- VkBool32 shaderImageFloat32AtomicMinMax;
- VkBool32 sparseImageFloat32AtomicMinMax;
-} VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT;
+ VkDeviceSize robustStorageBufferAccessSizeAlignment;
+ VkDeviceSize robustUniformBufferAccessSizeAlignment;
+} VkPhysicalDeviceRobustness2PropertiesEXT;
-// VK_EXT_surface_maintenance1 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_surface_maintenance1 1
-#define VK_EXT_SURFACE_MAINTENANCE_1_SPEC_VERSION 1
-#define VK_EXT_SURFACE_MAINTENANCE_1_EXTENSION_NAME "VK_EXT_surface_maintenance1"
+// VK_EXT_custom_border_color is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_custom_border_color 1
+#define VK_EXT_CUSTOM_BORDER_COLOR_SPEC_VERSION 12
+#define VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME "VK_EXT_custom_border_color"
+typedef struct VkSamplerCustomBorderColorCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkClearColorValue customBorderColor;
+ VkFormat format;
+} VkSamplerCustomBorderColorCreateInfoEXT;
-typedef enum VkPresentScalingFlagBitsEXT {
- VK_PRESENT_SCALING_ONE_TO_ONE_BIT_EXT = 0x00000001,
- VK_PRESENT_SCALING_ASPECT_RATIO_STRETCH_BIT_EXT = 0x00000002,
- VK_PRESENT_SCALING_STRETCH_BIT_EXT = 0x00000004,
- VK_PRESENT_SCALING_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkPresentScalingFlagBitsEXT;
-typedef VkFlags VkPresentScalingFlagsEXT;
+typedef struct VkPhysicalDeviceCustomBorderColorPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxCustomBorderColorSamplers;
+} VkPhysicalDeviceCustomBorderColorPropertiesEXT;
-typedef enum VkPresentGravityFlagBitsEXT {
- VK_PRESENT_GRAVITY_MIN_BIT_EXT = 0x00000001,
- VK_PRESENT_GRAVITY_MAX_BIT_EXT = 0x00000002,
- VK_PRESENT_GRAVITY_CENTERED_BIT_EXT = 0x00000004,
- VK_PRESENT_GRAVITY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkPresentGravityFlagBitsEXT;
-typedef VkFlags VkPresentGravityFlagsEXT;
-typedef struct VkSurfacePresentModeEXT {
- VkStructureType sType;
- void* pNext;
- VkPresentModeKHR presentMode;
-} VkSurfacePresentModeEXT;
+typedef struct VkPhysicalDeviceCustomBorderColorFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 customBorderColors;
+ VkBool32 customBorderColorWithoutFormat;
+} VkPhysicalDeviceCustomBorderColorFeaturesEXT;
-typedef struct VkSurfacePresentScalingCapabilitiesEXT {
- VkStructureType sType;
- void* pNext;
- VkPresentScalingFlagsEXT supportedPresentScaling;
- VkPresentGravityFlagsEXT supportedPresentGravityX;
- VkPresentGravityFlagsEXT supportedPresentGravityY;
- VkExtent2D minScaledImageExtent;
- VkExtent2D maxScaledImageExtent;
-} VkSurfacePresentScalingCapabilitiesEXT;
-typedef struct VkSurfacePresentModeCompatibilityEXT {
- VkStructureType sType;
- void* pNext;
- uint32_t presentModeCount;
- VkPresentModeKHR* pPresentModes;
-} VkSurfacePresentModeCompatibilityEXT;
+// VK_GOOGLE_user_type is a preprocessor guard. Do not pass it to API calls.
+#define VK_GOOGLE_user_type 1
+#define VK_GOOGLE_USER_TYPE_SPEC_VERSION 1
+#define VK_GOOGLE_USER_TYPE_EXTENSION_NAME "VK_GOOGLE_user_type"
-// VK_EXT_swapchain_maintenance1 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_swapchain_maintenance1 1
-#define VK_EXT_SWAPCHAIN_MAINTENANCE_1_SPEC_VERSION 1
-#define VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME "VK_EXT_swapchain_maintenance1"
-typedef struct VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT {
+// VK_NV_present_barrier is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_present_barrier 1
+#define VK_NV_PRESENT_BARRIER_SPEC_VERSION 1
+#define VK_NV_PRESENT_BARRIER_EXTENSION_NAME "VK_NV_present_barrier"
+typedef struct VkPhysicalDevicePresentBarrierFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 swapchainMaintenance1;
-} VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT;
+ VkBool32 presentBarrier;
+} VkPhysicalDevicePresentBarrierFeaturesNV;
-typedef struct VkSwapchainPresentFenceInfoEXT {
+typedef struct VkSurfaceCapabilitiesPresentBarrierNV {
VkStructureType sType;
- const void* pNext;
- uint32_t swapchainCount;
- const VkFence* pFences;
-} VkSwapchainPresentFenceInfoEXT;
+ void* pNext;
+ VkBool32 presentBarrierSupported;
+} VkSurfaceCapabilitiesPresentBarrierNV;
-typedef struct VkSwapchainPresentModesCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t presentModeCount;
- const VkPresentModeKHR* pPresentModes;
-} VkSwapchainPresentModesCreateInfoEXT;
+typedef struct VkSwapchainPresentBarrierCreateInfoNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 presentBarrierEnable;
+} VkSwapchainPresentBarrierCreateInfoNV;
-typedef struct VkSwapchainPresentModeInfoEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t swapchainCount;
- const VkPresentModeKHR* pPresentModes;
-} VkSwapchainPresentModeInfoEXT;
-typedef struct VkSwapchainPresentScalingCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkPresentScalingFlagsEXT scalingBehavior;
- VkPresentGravityFlagsEXT presentGravityX;
- VkPresentGravityFlagsEXT presentGravityY;
-} VkSwapchainPresentScalingCreateInfoEXT;
-typedef struct VkReleaseSwapchainImagesInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkSwapchainKHR swapchain;
- uint32_t imageIndexCount;
- const uint32_t* pImageIndices;
-} VkReleaseSwapchainImagesInfoEXT;
+// VK_EXT_private_data is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_private_data 1
+typedef VkPrivateDataSlot VkPrivateDataSlotEXT;
-typedef VkResult (VKAPI_PTR *PFN_vkReleaseSwapchainImagesEXT)(VkDevice device, const VkReleaseSwapchainImagesInfoEXT* pReleaseInfo);
+#define VK_EXT_PRIVATE_DATA_SPEC_VERSION 1
+#define VK_EXT_PRIVATE_DATA_EXTENSION_NAME "VK_EXT_private_data"
+typedef VkPrivateDataSlotCreateFlags VkPrivateDataSlotCreateFlagsEXT;
+
+typedef VkPhysicalDevicePrivateDataFeatures VkPhysicalDevicePrivateDataFeaturesEXT;
+
+typedef VkDevicePrivateDataCreateInfo VkDevicePrivateDataCreateInfoEXT;
+
+typedef VkPrivateDataSlotCreateInfo VkPrivateDataSlotCreateInfoEXT;
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreatePrivateDataSlotEXT)(VkDevice device, const VkPrivateDataSlotCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPrivateDataSlot* pPrivateDataSlot);
+typedef void (VKAPI_PTR *PFN_vkDestroyPrivateDataSlotEXT)(VkDevice device, VkPrivateDataSlot privateDataSlot, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkSetPrivateDataEXT)(VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t data);
+typedef void (VKAPI_PTR *PFN_vkGetPrivateDataEXT)(VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t* pData);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkReleaseSwapchainImagesEXT(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreatePrivateDataSlotEXT(
VkDevice device,
- const VkReleaseSwapchainImagesInfoEXT* pReleaseInfo);
-#endif
+ const VkPrivateDataSlotCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkPrivateDataSlot* pPrivateDataSlot);
+VKAPI_ATTR void VKAPI_CALL vkDestroyPrivateDataSlotEXT(
+ VkDevice device,
+ VkPrivateDataSlot privateDataSlot,
+ const VkAllocationCallbacks* pAllocator);
-// VK_EXT_shader_demote_to_helper_invocation is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_demote_to_helper_invocation 1
-#define VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION 1
-#define VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME "VK_EXT_shader_demote_to_helper_invocation"
-typedef VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkSetPrivateDataEXT(
+ VkDevice device,
+ VkObjectType objectType,
+ uint64_t objectHandle,
+ VkPrivateDataSlot privateDataSlot,
+ uint64_t data);
+VKAPI_ATTR void VKAPI_CALL vkGetPrivateDataEXT(
+ VkDevice device,
+ VkObjectType objectType,
+ uint64_t objectHandle,
+ VkPrivateDataSlot privateDataSlot,
+ uint64_t* pData);
+#endif
-// VK_NV_device_generated_commands is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_device_generated_commands 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectCommandsLayoutNV)
-#define VK_NV_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 3
-#define VK_NV_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_NV_device_generated_commands"
+// VK_EXT_pipeline_creation_cache_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pipeline_creation_cache_control 1
+#define VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_SPEC_VERSION 3
+#define VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_EXTENSION_NAME "VK_EXT_pipeline_creation_cache_control"
+typedef VkPhysicalDevicePipelineCreationCacheControlFeatures VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT;
-typedef enum VkIndirectCommandsTokenTypeNV {
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_SHADER_GROUP_NV = 0,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_STATE_FLAGS_NV = 1,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_NV = 2,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_VERTEX_BUFFER_NV = 3,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_CONSTANT_NV = 4,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_NV = 5,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_NV = 6,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_TASKS_NV = 7,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_MESH_TASKS_NV = 1000328000,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NV = 1000428003,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NV = 1000428004,
- VK_INDIRECT_COMMANDS_TOKEN_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkIndirectCommandsTokenTypeNV;
-typedef enum VkIndirectStateFlagBitsNV {
- VK_INDIRECT_STATE_FLAG_FRONTFACE_BIT_NV = 0x00000001,
- VK_INDIRECT_STATE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkIndirectStateFlagBitsNV;
-typedef VkFlags VkIndirectStateFlagsNV;
-typedef enum VkIndirectCommandsLayoutUsageFlagBitsNV {
- VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EXPLICIT_PREPROCESS_BIT_NV = 0x00000001,
- VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NV = 0x00000002,
- VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_NV = 0x00000004,
- VK_INDIRECT_COMMANDS_LAYOUT_USAGE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkIndirectCommandsLayoutUsageFlagBitsNV;
-typedef VkFlags VkIndirectCommandsLayoutUsageFlagsNV;
-typedef struct VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
- VkStructureType sType;
- void* pNext;
- uint32_t maxGraphicsShaderGroupCount;
- uint32_t maxIndirectSequenceCount;
- uint32_t maxIndirectCommandsTokenCount;
- uint32_t maxIndirectCommandsStreamCount;
- uint32_t maxIndirectCommandsTokenOffset;
- uint32_t maxIndirectCommandsStreamStride;
- uint32_t minSequencesCountBufferOffsetAlignment;
- uint32_t minSequencesIndexBufferOffsetAlignment;
- uint32_t minIndirectCommandsBufferOffsetAlignment;
-} VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV;
+// VK_NV_device_diagnostics_config is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_device_diagnostics_config 1
+#define VK_NV_DEVICE_DIAGNOSTICS_CONFIG_SPEC_VERSION 2
+#define VK_NV_DEVICE_DIAGNOSTICS_CONFIG_EXTENSION_NAME "VK_NV_device_diagnostics_config"
-typedef struct VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
+typedef enum VkDeviceDiagnosticsConfigFlagBitsNV {
+ VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_SHADER_DEBUG_INFO_BIT_NV = 0x00000001,
+ VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_RESOURCE_TRACKING_BIT_NV = 0x00000002,
+ VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_AUTOMATIC_CHECKPOINTS_BIT_NV = 0x00000004,
+ VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_SHADER_ERROR_REPORTING_BIT_NV = 0x00000008,
+ VK_DEVICE_DIAGNOSTICS_CONFIG_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkDeviceDiagnosticsConfigFlagBitsNV;
+typedef VkFlags VkDeviceDiagnosticsConfigFlagsNV;
+typedef struct VkPhysicalDeviceDiagnosticsConfigFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 deviceGeneratedCommands;
-} VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV;
-
-typedef struct VkGraphicsShaderGroupCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- uint32_t stageCount;
- const VkPipelineShaderStageCreateInfo* pStages;
- const VkPipelineVertexInputStateCreateInfo* pVertexInputState;
- const VkPipelineTessellationStateCreateInfo* pTessellationState;
-} VkGraphicsShaderGroupCreateInfoNV;
+ VkBool32 diagnosticsConfig;
+} VkPhysicalDeviceDiagnosticsConfigFeaturesNV;
-typedef struct VkGraphicsPipelineShaderGroupsCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- uint32_t groupCount;
- const VkGraphicsShaderGroupCreateInfoNV* pGroups;
- uint32_t pipelineCount;
- const VkPipeline* pPipelines;
-} VkGraphicsPipelineShaderGroupsCreateInfoNV;
+typedef struct VkDeviceDiagnosticsConfigCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceDiagnosticsConfigFlagsNV flags;
+} VkDeviceDiagnosticsConfigCreateInfoNV;
-typedef struct VkBindShaderGroupIndirectCommandNV {
- uint32_t groupIndex;
-} VkBindShaderGroupIndirectCommandNV;
-typedef struct VkBindIndexBufferIndirectCommandNV {
- VkDeviceAddress bufferAddress;
- uint32_t size;
- VkIndexType indexType;
-} VkBindIndexBufferIndirectCommandNV;
-typedef struct VkBindVertexBufferIndirectCommandNV {
- VkDeviceAddress bufferAddress;
- uint32_t size;
- uint32_t stride;
-} VkBindVertexBufferIndirectCommandNV;
+// VK_QCOM_render_pass_store_ops is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_render_pass_store_ops 1
+#define VK_QCOM_RENDER_PASS_STORE_OPS_SPEC_VERSION 2
+#define VK_QCOM_RENDER_PASS_STORE_OPS_EXTENSION_NAME "VK_QCOM_render_pass_store_ops"
-typedef struct VkSetStateFlagsIndirectCommandNV {
- uint32_t data;
-} VkSetStateFlagsIndirectCommandNV;
-typedef struct VkIndirectCommandsStreamNV {
- VkBuffer buffer;
- VkDeviceSize offset;
-} VkIndirectCommandsStreamNV;
+// VK_NV_cuda_kernel_launch is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_cuda_kernel_launch 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCudaModuleNV)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCudaFunctionNV)
+#define VK_NV_CUDA_KERNEL_LAUNCH_SPEC_VERSION 2
+#define VK_NV_CUDA_KERNEL_LAUNCH_EXTENSION_NAME "VK_NV_cuda_kernel_launch"
+typedef struct VkCudaModuleCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ size_t dataSize;
+ const void* pData;
+} VkCudaModuleCreateInfoNV;
-typedef struct VkIndirectCommandsLayoutTokenNV {
- VkStructureType sType;
- const void* pNext;
- VkIndirectCommandsTokenTypeNV tokenType;
- uint32_t stream;
- uint32_t offset;
- uint32_t vertexBindingUnit;
- VkBool32 vertexDynamicStride;
- VkPipelineLayout pushconstantPipelineLayout;
- VkShaderStageFlags pushconstantShaderStageFlags;
- uint32_t pushconstantOffset;
- uint32_t pushconstantSize;
- VkIndirectStateFlagsNV indirectStateFlags;
- uint32_t indexTypeCount;
- const VkIndexType* pIndexTypes;
- const uint32_t* pIndexTypeValues;
-} VkIndirectCommandsLayoutTokenNV;
+typedef struct VkCudaFunctionCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkCudaModuleNV module;
+ const char* pName;
+} VkCudaFunctionCreateInfoNV;
-typedef struct VkIndirectCommandsLayoutCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkIndirectCommandsLayoutUsageFlagsNV flags;
- VkPipelineBindPoint pipelineBindPoint;
- uint32_t tokenCount;
- const VkIndirectCommandsLayoutTokenNV* pTokens;
- uint32_t streamCount;
- const uint32_t* pStreamStrides;
-} VkIndirectCommandsLayoutCreateInfoNV;
+typedef struct VkCudaLaunchInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkCudaFunctionNV function;
+ uint32_t gridDimX;
+ uint32_t gridDimY;
+ uint32_t gridDimZ;
+ uint32_t blockDimX;
+ uint32_t blockDimY;
+ uint32_t blockDimZ;
+ uint32_t sharedMemBytes;
+ size_t paramCount;
+ const void* const * pParams;
+ size_t extraCount;
+ const void* const * pExtras;
+} VkCudaLaunchInfoNV;
-typedef struct VkGeneratedCommandsInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkPipelineBindPoint pipelineBindPoint;
- VkPipeline pipeline;
- VkIndirectCommandsLayoutNV indirectCommandsLayout;
- uint32_t streamCount;
- const VkIndirectCommandsStreamNV* pStreams;
- uint32_t sequencesCount;
- VkBuffer preprocessBuffer;
- VkDeviceSize preprocessOffset;
- VkDeviceSize preprocessSize;
- VkBuffer sequencesCountBuffer;
- VkDeviceSize sequencesCountOffset;
- VkBuffer sequencesIndexBuffer;
- VkDeviceSize sequencesIndexOffset;
-} VkGeneratedCommandsInfoNV;
+typedef struct VkPhysicalDeviceCudaKernelLaunchFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 cudaKernelLaunchFeatures;
+} VkPhysicalDeviceCudaKernelLaunchFeaturesNV;
-typedef struct VkGeneratedCommandsMemoryRequirementsInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkPipelineBindPoint pipelineBindPoint;
- VkPipeline pipeline;
- VkIndirectCommandsLayoutNV indirectCommandsLayout;
- uint32_t maxSequencesCount;
-} VkGeneratedCommandsMemoryRequirementsInfoNV;
+typedef struct VkPhysicalDeviceCudaKernelLaunchPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t computeCapabilityMinor;
+ uint32_t computeCapabilityMajor;
+} VkPhysicalDeviceCudaKernelLaunchPropertiesNV;
-typedef void (VKAPI_PTR *PFN_vkGetGeneratedCommandsMemoryRequirementsNV)(VkDevice device, const VkGeneratedCommandsMemoryRequirementsInfoNV* pInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef void (VKAPI_PTR *PFN_vkCmdPreprocessGeneratedCommandsNV)(VkCommandBuffer commandBuffer, const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdExecuteGeneratedCommandsNV)(VkCommandBuffer commandBuffer, VkBool32 isPreprocessed, const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdBindPipelineShaderGroupNV)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline, uint32_t groupIndex);
-typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectCommandsLayoutNV)(VkDevice device, const VkIndirectCommandsLayoutCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectCommandsLayoutNV* pIndirectCommandsLayout);
-typedef void (VKAPI_PTR *PFN_vkDestroyIndirectCommandsLayoutNV)(VkDevice device, VkIndirectCommandsLayoutNV indirectCommandsLayout, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateCudaModuleNV)(VkDevice device, const VkCudaModuleCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCudaModuleNV* pModule);
+typedef VkResult (VKAPI_PTR *PFN_vkGetCudaModuleCacheNV)(VkDevice device, VkCudaModuleNV module, size_t* pCacheSize, void* pCacheData);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateCudaFunctionNV)(VkDevice device, const VkCudaFunctionCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCudaFunctionNV* pFunction);
+typedef void (VKAPI_PTR *PFN_vkDestroyCudaModuleNV)(VkDevice device, VkCudaModuleNV module, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkDestroyCudaFunctionNV)(VkDevice device, VkCudaFunctionNV function, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkCmdCudaLaunchKernelNV)(VkCommandBuffer commandBuffer, const VkCudaLaunchInfoNV* pLaunchInfo);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetGeneratedCommandsMemoryRequirementsNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateCudaModuleNV(
VkDevice device,
- const VkGeneratedCommandsMemoryRequirementsInfoNV* pInfo,
- VkMemoryRequirements2* pMemoryRequirements);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdPreprocessGeneratedCommandsNV(
- VkCommandBuffer commandBuffer,
- const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdExecuteGeneratedCommandsNV(
- VkCommandBuffer commandBuffer,
- VkBool32 isPreprocessed,
- const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
+ const VkCudaModuleCreateInfoNV* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkCudaModuleNV* pModule);
-VKAPI_ATTR void VKAPI_CALL vkCmdBindPipelineShaderGroupNV(
- VkCommandBuffer commandBuffer,
- VkPipelineBindPoint pipelineBindPoint,
- VkPipeline pipeline,
- uint32_t groupIndex);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetCudaModuleCacheNV(
+ VkDevice device,
+ VkCudaModuleNV module,
+ size_t* pCacheSize,
+ void* pCacheData);
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectCommandsLayoutNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateCudaFunctionNV(
VkDevice device,
- const VkIndirectCommandsLayoutCreateInfoNV* pCreateInfo,
+ const VkCudaFunctionCreateInfoNV* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
- VkIndirectCommandsLayoutNV* pIndirectCommandsLayout);
+ VkCudaFunctionNV* pFunction);
-VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectCommandsLayoutNV(
+VKAPI_ATTR void VKAPI_CALL vkDestroyCudaModuleNV(
VkDevice device,
- VkIndirectCommandsLayoutNV indirectCommandsLayout,
+ VkCudaModuleNV module,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyCudaFunctionNV(
+ VkDevice device,
+ VkCudaFunctionNV function,
const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdCudaLaunchKernelNV(
+ VkCommandBuffer commandBuffer,
+ const VkCudaLaunchInfoNV* pLaunchInfo);
#endif
-// VK_NV_inherited_viewport_scissor is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_inherited_viewport_scissor 1
-#define VK_NV_INHERITED_VIEWPORT_SCISSOR_SPEC_VERSION 1
-#define VK_NV_INHERITED_VIEWPORT_SCISSOR_EXTENSION_NAME "VK_NV_inherited_viewport_scissor"
-typedef struct VkPhysicalDeviceInheritedViewportScissorFeaturesNV {
+// VK_NV_low_latency is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_low_latency 1
+#define VK_NV_LOW_LATENCY_SPEC_VERSION 1
+#define VK_NV_LOW_LATENCY_EXTENSION_NAME "VK_NV_low_latency"
+typedef struct VkQueryLowLatencySupportNV {
+ VkStructureType sType;
+ const void* pNext;
+ void* pQueriedLowLatencyData;
+} VkQueryLowLatencySupportNV;
+
+
+
+// VK_EXT_descriptor_buffer is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_descriptor_buffer 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkAccelerationStructureKHR)
+#define VK_EXT_DESCRIPTOR_BUFFER_SPEC_VERSION 1
+#define VK_EXT_DESCRIPTOR_BUFFER_EXTENSION_NAME "VK_EXT_descriptor_buffer"
+typedef struct VkPhysicalDeviceDescriptorBufferPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 combinedImageSamplerDescriptorSingleArray;
+ VkBool32 bufferlessPushDescriptors;
+ VkBool32 allowSamplerImageViewPostSubmitCreation;
+ VkDeviceSize descriptorBufferOffsetAlignment;
+ uint32_t maxDescriptorBufferBindings;
+ uint32_t maxResourceDescriptorBufferBindings;
+ uint32_t maxSamplerDescriptorBufferBindings;
+ uint32_t maxEmbeddedImmutableSamplerBindings;
+ uint32_t maxEmbeddedImmutableSamplers;
+ size_t bufferCaptureReplayDescriptorDataSize;
+ size_t imageCaptureReplayDescriptorDataSize;
+ size_t imageViewCaptureReplayDescriptorDataSize;
+ size_t samplerCaptureReplayDescriptorDataSize;
+ size_t accelerationStructureCaptureReplayDescriptorDataSize;
+ size_t samplerDescriptorSize;
+ size_t combinedImageSamplerDescriptorSize;
+ size_t sampledImageDescriptorSize;
+ size_t storageImageDescriptorSize;
+ size_t uniformTexelBufferDescriptorSize;
+ size_t robustUniformTexelBufferDescriptorSize;
+ size_t storageTexelBufferDescriptorSize;
+ size_t robustStorageTexelBufferDescriptorSize;
+ size_t uniformBufferDescriptorSize;
+ size_t robustUniformBufferDescriptorSize;
+ size_t storageBufferDescriptorSize;
+ size_t robustStorageBufferDescriptorSize;
+ size_t inputAttachmentDescriptorSize;
+ size_t accelerationStructureDescriptorSize;
+ VkDeviceSize maxSamplerDescriptorBufferRange;
+ VkDeviceSize maxResourceDescriptorBufferRange;
+ VkDeviceSize samplerDescriptorBufferAddressSpaceSize;
+ VkDeviceSize resourceDescriptorBufferAddressSpaceSize;
+ VkDeviceSize descriptorBufferAddressSpaceSize;
+} VkPhysicalDeviceDescriptorBufferPropertiesEXT;
+
+typedef struct VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 inheritedViewportScissor2D;
-} VkPhysicalDeviceInheritedViewportScissorFeaturesNV;
-
-typedef struct VkCommandBufferInheritanceViewportScissorInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkBool32 viewportScissor2D;
- uint32_t viewportDepthCount;
- const VkViewport* pViewportDepths;
-} VkCommandBufferInheritanceViewportScissorInfoNV;
-
-
+ size_t combinedImageSamplerDensityMapDescriptorSize;
+} VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT;
-// VK_EXT_texel_buffer_alignment is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_texel_buffer_alignment 1
-#define VK_EXT_TEXEL_BUFFER_ALIGNMENT_SPEC_VERSION 1
-#define VK_EXT_TEXEL_BUFFER_ALIGNMENT_EXTENSION_NAME "VK_EXT_texel_buffer_alignment"
-typedef struct VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT {
+typedef struct VkPhysicalDeviceDescriptorBufferFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 texelBufferAlignment;
-} VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT;
+ VkBool32 descriptorBuffer;
+ VkBool32 descriptorBufferCaptureReplay;
+ VkBool32 descriptorBufferImageLayoutIgnored;
+ VkBool32 descriptorBufferPushDescriptors;
+} VkPhysicalDeviceDescriptorBufferFeaturesEXT;
-typedef VkPhysicalDeviceTexelBufferAlignmentProperties VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT;
+typedef struct VkDescriptorAddressInfoEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkDeviceAddress address;
+ VkDeviceSize range;
+ VkFormat format;
+} VkDescriptorAddressInfoEXT;
+typedef struct VkDescriptorBufferBindingInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceAddress address;
+ VkBufferUsageFlags usage;
+} VkDescriptorBufferBindingInfoEXT;
+typedef struct VkDescriptorBufferBindingPushDescriptorBufferHandleEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBuffer buffer;
+} VkDescriptorBufferBindingPushDescriptorBufferHandleEXT;
-// VK_QCOM_render_pass_transform is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_render_pass_transform 1
-#define VK_QCOM_RENDER_PASS_TRANSFORM_SPEC_VERSION 4
-#define VK_QCOM_RENDER_PASS_TRANSFORM_EXTENSION_NAME "VK_QCOM_render_pass_transform"
-typedef struct VkRenderPassTransformBeginInfoQCOM {
- VkStructureType sType;
- void* pNext;
- VkSurfaceTransformFlagBitsKHR transform;
-} VkRenderPassTransformBeginInfoQCOM;
+typedef union VkDescriptorDataEXT {
+ const VkSampler* pSampler;
+ const VkDescriptorImageInfo* pCombinedImageSampler;
+ const VkDescriptorImageInfo* pInputAttachmentImage;
+ const VkDescriptorImageInfo* pSampledImage;
+ const VkDescriptorImageInfo* pStorageImage;
+ const VkDescriptorAddressInfoEXT* pUniformTexelBuffer;
+ const VkDescriptorAddressInfoEXT* pStorageTexelBuffer;
+ const VkDescriptorAddressInfoEXT* pUniformBuffer;
+ const VkDescriptorAddressInfoEXT* pStorageBuffer;
+ VkDeviceAddress accelerationStructure;
+} VkDescriptorDataEXT;
-typedef struct VkCommandBufferInheritanceRenderPassTransformInfoQCOM {
- VkStructureType sType;
- void* pNext;
- VkSurfaceTransformFlagBitsKHR transform;
- VkRect2D renderArea;
-} VkCommandBufferInheritanceRenderPassTransformInfoQCOM;
+typedef struct VkDescriptorGetInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorType type;
+ VkDescriptorDataEXT data;
+} VkDescriptorGetInfoEXT;
+typedef struct VkBufferCaptureDescriptorDataInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBuffer buffer;
+} VkBufferCaptureDescriptorDataInfoEXT;
+typedef struct VkImageCaptureDescriptorDataInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+} VkImageCaptureDescriptorDataInfoEXT;
-// VK_EXT_depth_bias_control is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_depth_bias_control 1
-#define VK_EXT_DEPTH_BIAS_CONTROL_SPEC_VERSION 1
-#define VK_EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME "VK_EXT_depth_bias_control"
+typedef struct VkImageViewCaptureDescriptorDataInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageView imageView;
+} VkImageViewCaptureDescriptorDataInfoEXT;
-typedef enum VkDepthBiasRepresentationEXT {
- VK_DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORMAT_EXT = 0,
- VK_DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORCE_UNORM_EXT = 1,
- VK_DEPTH_BIAS_REPRESENTATION_FLOAT_EXT = 2,
- VK_DEPTH_BIAS_REPRESENTATION_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkDepthBiasRepresentationEXT;
-typedef struct VkPhysicalDeviceDepthBiasControlFeaturesEXT {
+typedef struct VkSamplerCaptureDescriptorDataInfoEXT {
VkStructureType sType;
- void* pNext;
- VkBool32 depthBiasControl;
- VkBool32 leastRepresentableValueForceUnormRepresentation;
- VkBool32 floatRepresentation;
- VkBool32 depthBiasExact;
-} VkPhysicalDeviceDepthBiasControlFeaturesEXT;
+ const void* pNext;
+ VkSampler sampler;
+} VkSamplerCaptureDescriptorDataInfoEXT;
-typedef struct VkDepthBiasInfoEXT {
+typedef struct VkOpaqueCaptureDescriptorDataCreateInfoEXT {
VkStructureType sType;
const void* pNext;
- float depthBiasConstantFactor;
- float depthBiasClamp;
- float depthBiasSlopeFactor;
-} VkDepthBiasInfoEXT;
+ const void* opaqueCaptureDescriptorData;
+} VkOpaqueCaptureDescriptorDataCreateInfoEXT;
-typedef struct VkDepthBiasRepresentationInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkDepthBiasRepresentationEXT depthBiasRepresentation;
- VkBool32 depthBiasExact;
-} VkDepthBiasRepresentationInfoEXT;
+typedef struct VkAccelerationStructureCaptureDescriptorDataInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkAccelerationStructureKHR accelerationStructure;
+ VkAccelerationStructureNV accelerationStructureNV;
+} VkAccelerationStructureCaptureDescriptorDataInfoEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias2EXT)(VkCommandBuffer commandBuffer, const VkDepthBiasInfoEXT* pDepthBiasInfo);
+typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetLayoutSizeEXT)(VkDevice device, VkDescriptorSetLayout layout, VkDeviceSize* pLayoutSizeInBytes);
+typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetLayoutBindingOffsetEXT)(VkDevice device, VkDescriptorSetLayout layout, uint32_t binding, VkDeviceSize* pOffset);
+typedef void (VKAPI_PTR *PFN_vkGetDescriptorEXT)(VkDevice device, const VkDescriptorGetInfoEXT* pDescriptorInfo, size_t dataSize, void* pDescriptor);
+typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorBuffersEXT)(VkCommandBuffer commandBuffer, uint32_t bufferCount, const VkDescriptorBufferBindingInfoEXT* pBindingInfos);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDescriptorBufferOffsetsEXT)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const uint32_t* pBufferIndices, const VkDeviceSize* pOffsets);
+typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorBufferEmbeddedSamplersEXT)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set);
+typedef VkResult (VKAPI_PTR *PFN_vkGetBufferOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkBufferCaptureDescriptorDataInfoEXT* pInfo, void* pData);
+typedef VkResult (VKAPI_PTR *PFN_vkGetImageOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkImageCaptureDescriptorDataInfoEXT* pInfo, void* pData);
+typedef VkResult (VKAPI_PTR *PFN_vkGetImageViewOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkImageViewCaptureDescriptorDataInfoEXT* pInfo, void* pData);
+typedef VkResult (VKAPI_PTR *PFN_vkGetSamplerOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkSamplerCaptureDescriptorDataInfoEXT* pInfo, void* pData);
+typedef VkResult (VKAPI_PTR *PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkAccelerationStructureCaptureDescriptorDataInfoEXT* pInfo, void* pData);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias2EXT(
- VkCommandBuffer commandBuffer,
- const VkDepthBiasInfoEXT* pDepthBiasInfo);
-#endif
-
-
-// VK_EXT_device_memory_report is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_device_memory_report 1
-#define VK_EXT_DEVICE_MEMORY_REPORT_SPEC_VERSION 2
-#define VK_EXT_DEVICE_MEMORY_REPORT_EXTENSION_NAME "VK_EXT_device_memory_report"
-
-typedef enum VkDeviceMemoryReportEventTypeEXT {
- VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATE_EXT = 0,
- VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_FREE_EXT = 1,
- VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_IMPORT_EXT = 2,
- VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_UNIMPORT_EXT = 3,
- VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT = 4,
- VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkDeviceMemoryReportEventTypeEXT;
-typedef VkFlags VkDeviceMemoryReportFlagsEXT;
-typedef struct VkPhysicalDeviceDeviceMemoryReportFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 deviceMemoryReport;
-} VkPhysicalDeviceDeviceMemoryReportFeaturesEXT;
-
-typedef struct VkDeviceMemoryReportCallbackDataEXT {
- VkStructureType sType;
- void* pNext;
- VkDeviceMemoryReportFlagsEXT flags;
- VkDeviceMemoryReportEventTypeEXT type;
- uint64_t memoryObjectId;
- VkDeviceSize size;
- VkObjectType objectType;
- uint64_t objectHandle;
- uint32_t heapIndex;
-} VkDeviceMemoryReportCallbackDataEXT;
-
-typedef void (VKAPI_PTR *PFN_vkDeviceMemoryReportCallbackEXT)(
- const VkDeviceMemoryReportCallbackDataEXT* pCallbackData,
- void* pUserData);
+VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutSizeEXT(
+ VkDevice device,
+ VkDescriptorSetLayout layout,
+ VkDeviceSize* pLayoutSizeInBytes);
-typedef struct VkDeviceDeviceMemoryReportCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkDeviceMemoryReportFlagsEXT flags;
- PFN_vkDeviceMemoryReportCallbackEXT pfnUserCallback;
- void* pUserData;
-} VkDeviceDeviceMemoryReportCreateInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutBindingOffsetEXT(
+ VkDevice device,
+ VkDescriptorSetLayout layout,
+ uint32_t binding,
+ VkDeviceSize* pOffset);
+VKAPI_ATTR void VKAPI_CALL vkGetDescriptorEXT(
+ VkDevice device,
+ const VkDescriptorGetInfoEXT* pDescriptorInfo,
+ size_t dataSize,
+ void* pDescriptor);
+VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBuffersEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t bufferCount,
+ const VkDescriptorBufferBindingInfoEXT* pBindingInfos);
-// VK_EXT_acquire_drm_display is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_acquire_drm_display 1
-#define VK_EXT_ACQUIRE_DRM_DISPLAY_SPEC_VERSION 1
-#define VK_EXT_ACQUIRE_DRM_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_drm_display"
-typedef VkResult (VKAPI_PTR *PFN_vkAcquireDrmDisplayEXT)(VkPhysicalDevice physicalDevice, int32_t drmFd, VkDisplayKHR display);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDrmDisplayEXT)(VkPhysicalDevice physicalDevice, int32_t drmFd, uint32_t connectorId, VkDisplayKHR* display);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDescriptorBufferOffsetsEXT(
+ VkCommandBuffer commandBuffer,
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipelineLayout layout,
+ uint32_t firstSet,
+ uint32_t setCount,
+ const uint32_t* pBufferIndices,
+ const VkDeviceSize* pOffsets);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkAcquireDrmDisplayEXT(
- VkPhysicalDevice physicalDevice,
- int32_t drmFd,
- VkDisplayKHR display);
+VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBufferEmbeddedSamplersEXT(
+ VkCommandBuffer commandBuffer,
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipelineLayout layout,
+ uint32_t set);
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDrmDisplayEXT(
- VkPhysicalDevice physicalDevice,
- int32_t drmFd,
- uint32_t connectorId,
- VkDisplayKHR* display);
-#endif
+VKAPI_ATTR VkResult VKAPI_CALL vkGetBufferOpaqueCaptureDescriptorDataEXT(
+ VkDevice device,
+ const VkBufferCaptureDescriptorDataInfoEXT* pInfo,
+ void* pData);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetImageOpaqueCaptureDescriptorDataEXT(
+ VkDevice device,
+ const VkImageCaptureDescriptorDataInfoEXT* pInfo,
+ void* pData);
-// VK_EXT_robustness2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_robustness2 1
-#define VK_EXT_ROBUSTNESS_2_SPEC_VERSION 1
-#define VK_EXT_ROBUSTNESS_2_EXTENSION_NAME "VK_EXT_robustness2"
-typedef struct VkPhysicalDeviceRobustness2FeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 robustBufferAccess2;
- VkBool32 robustImageAccess2;
- VkBool32 nullDescriptor;
-} VkPhysicalDeviceRobustness2FeaturesEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkGetImageViewOpaqueCaptureDescriptorDataEXT(
+ VkDevice device,
+ const VkImageViewCaptureDescriptorDataInfoEXT* pInfo,
+ void* pData);
-typedef struct VkPhysicalDeviceRobustness2PropertiesEXT {
- VkStructureType sType;
- void* pNext;
- VkDeviceSize robustStorageBufferAccessSizeAlignment;
- VkDeviceSize robustUniformBufferAccessSizeAlignment;
-} VkPhysicalDeviceRobustness2PropertiesEXT;
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSamplerOpaqueCaptureDescriptorDataEXT(
+ VkDevice device,
+ const VkSamplerCaptureDescriptorDataInfoEXT* pInfo,
+ void* pData);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
+ VkDevice device,
+ const VkAccelerationStructureCaptureDescriptorDataInfoEXT* pInfo,
+ void* pData);
+#endif
-// VK_EXT_custom_border_color is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_custom_border_color 1
-#define VK_EXT_CUSTOM_BORDER_COLOR_SPEC_VERSION 12
-#define VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME "VK_EXT_custom_border_color"
-typedef struct VkSamplerCustomBorderColorCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkClearColorValue customBorderColor;
- VkFormat format;
-} VkSamplerCustomBorderColorCreateInfoEXT;
+// VK_EXT_graphics_pipeline_library is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_graphics_pipeline_library 1
+#define VK_EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION 1
+#define VK_EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME "VK_EXT_graphics_pipeline_library"
-typedef struct VkPhysicalDeviceCustomBorderColorPropertiesEXT {
+typedef enum VkGraphicsPipelineLibraryFlagBitsEXT {
+ VK_GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT = 0x00000001,
+ VK_GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT = 0x00000002,
+ VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT = 0x00000004,
+ VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT = 0x00000008,
+ VK_GRAPHICS_PIPELINE_LIBRARY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkGraphicsPipelineLibraryFlagBitsEXT;
+typedef VkFlags VkGraphicsPipelineLibraryFlagsEXT;
+typedef struct VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT {
VkStructureType sType;
void* pNext;
- uint32_t maxCustomBorderColorSamplers;
-} VkPhysicalDeviceCustomBorderColorPropertiesEXT;
+ VkBool32 graphicsPipelineLibrary;
+} VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT;
-typedef struct VkPhysicalDeviceCustomBorderColorFeaturesEXT {
+typedef struct VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 customBorderColors;
- VkBool32 customBorderColorWithoutFormat;
-} VkPhysicalDeviceCustomBorderColorFeaturesEXT;
-
+ VkBool32 graphicsPipelineLibraryFastLinking;
+ VkBool32 graphicsPipelineLibraryIndependentInterpolationDecoration;
+} VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT;
+typedef struct VkGraphicsPipelineLibraryCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkGraphicsPipelineLibraryFlagsEXT flags;
+} VkGraphicsPipelineLibraryCreateInfoEXT;
-// VK_GOOGLE_user_type is a preprocessor guard. Do not pass it to API calls.
-#define VK_GOOGLE_user_type 1
-#define VK_GOOGLE_USER_TYPE_SPEC_VERSION 1
-#define VK_GOOGLE_USER_TYPE_EXTENSION_NAME "VK_GOOGLE_user_type"
-// VK_NV_present_barrier is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_present_barrier 1
-#define VK_NV_PRESENT_BARRIER_SPEC_VERSION 1
-#define VK_NV_PRESENT_BARRIER_EXTENSION_NAME "VK_NV_present_barrier"
-typedef struct VkPhysicalDevicePresentBarrierFeaturesNV {
+// VK_AMD_shader_early_and_late_fragment_tests is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_shader_early_and_late_fragment_tests 1
+#define VK_AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_SPEC_VERSION 1
+#define VK_AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_EXTENSION_NAME "VK_AMD_shader_early_and_late_fragment_tests"
+typedef struct VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD {
VkStructureType sType;
void* pNext;
- VkBool32 presentBarrier;
-} VkPhysicalDevicePresentBarrierFeaturesNV;
+ VkBool32 shaderEarlyAndLateFragmentTests;
+} VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD;
-typedef struct VkSurfaceCapabilitiesPresentBarrierNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 presentBarrierSupported;
-} VkSurfaceCapabilitiesPresentBarrierNV;
-typedef struct VkSwapchainPresentBarrierCreateInfoNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 presentBarrierEnable;
-} VkSwapchainPresentBarrierCreateInfoNV;
+// VK_NV_fragment_shading_rate_enums is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_fragment_shading_rate_enums 1
+#define VK_NV_FRAGMENT_SHADING_RATE_ENUMS_SPEC_VERSION 1
+#define VK_NV_FRAGMENT_SHADING_RATE_ENUMS_EXTENSION_NAME "VK_NV_fragment_shading_rate_enums"
+typedef enum VkFragmentShadingRateTypeNV {
+ VK_FRAGMENT_SHADING_RATE_TYPE_FRAGMENT_SIZE_NV = 0,
+ VK_FRAGMENT_SHADING_RATE_TYPE_ENUMS_NV = 1,
+ VK_FRAGMENT_SHADING_RATE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkFragmentShadingRateTypeNV;
-// VK_EXT_private_data is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_private_data 1
-typedef VkPrivateDataSlot VkPrivateDataSlotEXT;
+typedef enum VkFragmentShadingRateNV {
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV = 0,
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV = 1,
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV = 4,
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV = 5,
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV = 6,
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV = 9,
+ VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV = 10,
+ VK_FRAGMENT_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV = 11,
+ VK_FRAGMENT_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV = 12,
+ VK_FRAGMENT_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV = 13,
+ VK_FRAGMENT_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV = 14,
+ VK_FRAGMENT_SHADING_RATE_NO_INVOCATIONS_NV = 15,
+ VK_FRAGMENT_SHADING_RATE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkFragmentShadingRateNV;
+typedef struct VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 fragmentShadingRateEnums;
+ VkBool32 supersampleFragmentShadingRates;
+ VkBool32 noInvocationFragmentShadingRates;
+} VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV;
-#define VK_EXT_PRIVATE_DATA_SPEC_VERSION 1
-#define VK_EXT_PRIVATE_DATA_EXTENSION_NAME "VK_EXT_private_data"
-typedef VkPrivateDataSlotCreateFlags VkPrivateDataSlotCreateFlagsEXT;
+typedef struct VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkSampleCountFlagBits maxFragmentShadingRateInvocationCount;
+} VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV;
-typedef VkPhysicalDevicePrivateDataFeatures VkPhysicalDevicePrivateDataFeaturesEXT;
+typedef struct VkPipelineFragmentShadingRateEnumStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkFragmentShadingRateTypeNV shadingRateType;
+ VkFragmentShadingRateNV shadingRate;
+ VkFragmentShadingRateCombinerOpKHR combinerOps[2];
+} VkPipelineFragmentShadingRateEnumStateCreateInfoNV;
-typedef VkDevicePrivateDataCreateInfo VkDevicePrivateDataCreateInfoEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdSetFragmentShadingRateEnumNV)(VkCommandBuffer commandBuffer, VkFragmentShadingRateNV shadingRate, const VkFragmentShadingRateCombinerOpKHR combinerOps[2]);
-typedef VkPrivateDataSlotCreateInfo VkPrivateDataSlotCreateInfoEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetFragmentShadingRateEnumNV(
+ VkCommandBuffer commandBuffer,
+ VkFragmentShadingRateNV shadingRate,
+ const VkFragmentShadingRateCombinerOpKHR combinerOps[2]);
+#endif
-typedef VkResult (VKAPI_PTR *PFN_vkCreatePrivateDataSlotEXT)(VkDevice device, const VkPrivateDataSlotCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPrivateDataSlot* pPrivateDataSlot);
-typedef void (VKAPI_PTR *PFN_vkDestroyPrivateDataSlotEXT)(VkDevice device, VkPrivateDataSlot privateDataSlot, const VkAllocationCallbacks* pAllocator);
-typedef VkResult (VKAPI_PTR *PFN_vkSetPrivateDataEXT)(VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t data);
-typedef void (VKAPI_PTR *PFN_vkGetPrivateDataEXT)(VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t* pData);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreatePrivateDataSlotEXT(
- VkDevice device,
- const VkPrivateDataSlotCreateInfo* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkPrivateDataSlot* pPrivateDataSlot);
+// VK_NV_ray_tracing_motion_blur is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_ray_tracing_motion_blur 1
+#define VK_NV_RAY_TRACING_MOTION_BLUR_SPEC_VERSION 1
+#define VK_NV_RAY_TRACING_MOTION_BLUR_EXTENSION_NAME "VK_NV_ray_tracing_motion_blur"
-VKAPI_ATTR void VKAPI_CALL vkDestroyPrivateDataSlotEXT(
- VkDevice device,
- VkPrivateDataSlot privateDataSlot,
- const VkAllocationCallbacks* pAllocator);
+typedef enum VkAccelerationStructureMotionInstanceTypeNV {
+ VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_STATIC_NV = 0,
+ VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MATRIX_MOTION_NV = 1,
+ VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_SRT_MOTION_NV = 2,
+ VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkAccelerationStructureMotionInstanceTypeNV;
+typedef VkFlags VkAccelerationStructureMotionInfoFlagsNV;
+typedef VkFlags VkAccelerationStructureMotionInstanceFlagsNV;
+typedef union VkDeviceOrHostAddressConstKHR {
+ VkDeviceAddress deviceAddress;
+ const void* hostAddress;
+} VkDeviceOrHostAddressConstKHR;
-VKAPI_ATTR VkResult VKAPI_CALL vkSetPrivateDataEXT(
- VkDevice device,
- VkObjectType objectType,
- uint64_t objectHandle,
- VkPrivateDataSlot privateDataSlot,
- uint64_t data);
+typedef struct VkAccelerationStructureGeometryMotionTrianglesDataNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceOrHostAddressConstKHR vertexData;
+} VkAccelerationStructureGeometryMotionTrianglesDataNV;
-VKAPI_ATTR void VKAPI_CALL vkGetPrivateDataEXT(
- VkDevice device,
- VkObjectType objectType,
- uint64_t objectHandle,
- VkPrivateDataSlot privateDataSlot,
- uint64_t* pData);
-#endif
+typedef struct VkAccelerationStructureMotionInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t maxInstances;
+ VkAccelerationStructureMotionInfoFlagsNV flags;
+} VkAccelerationStructureMotionInfoNV;
+typedef struct VkAccelerationStructureMatrixMotionInstanceNV {
+ VkTransformMatrixKHR transformT0;
+ VkTransformMatrixKHR transformT1;
+ uint32_t instanceCustomIndex:24;
+ uint32_t mask:8;
+ uint32_t instanceShaderBindingTableRecordOffset:24;
+ VkGeometryInstanceFlagsKHR flags:8;
+ uint64_t accelerationStructureReference;
+} VkAccelerationStructureMatrixMotionInstanceNV;
-// VK_EXT_pipeline_creation_cache_control is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pipeline_creation_cache_control 1
-#define VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_SPEC_VERSION 3
-#define VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_EXTENSION_NAME "VK_EXT_pipeline_creation_cache_control"
-typedef VkPhysicalDevicePipelineCreationCacheControlFeatures VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT;
+typedef struct VkSRTDataNV {
+ float sx;
+ float a;
+ float b;
+ float pvx;
+ float sy;
+ float c;
+ float pvy;
+ float sz;
+ float pvz;
+ float qx;
+ float qy;
+ float qz;
+ float qw;
+ float tx;
+ float ty;
+ float tz;
+} VkSRTDataNV;
+typedef struct VkAccelerationStructureSRTMotionInstanceNV {
+ VkSRTDataNV transformT0;
+ VkSRTDataNV transformT1;
+ uint32_t instanceCustomIndex:24;
+ uint32_t mask:8;
+ uint32_t instanceShaderBindingTableRecordOffset:24;
+ VkGeometryInstanceFlagsKHR flags:8;
+ uint64_t accelerationStructureReference;
+} VkAccelerationStructureSRTMotionInstanceNV;
+typedef union VkAccelerationStructureMotionInstanceDataNV {
+ VkAccelerationStructureInstanceKHR staticInstance;
+ VkAccelerationStructureMatrixMotionInstanceNV matrixMotionInstance;
+ VkAccelerationStructureSRTMotionInstanceNV srtMotionInstance;
+} VkAccelerationStructureMotionInstanceDataNV;
-// VK_NV_device_diagnostics_config is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_device_diagnostics_config 1
-#define VK_NV_DEVICE_DIAGNOSTICS_CONFIG_SPEC_VERSION 2
-#define VK_NV_DEVICE_DIAGNOSTICS_CONFIG_EXTENSION_NAME "VK_NV_device_diagnostics_config"
+typedef struct VkAccelerationStructureMotionInstanceNV {
+ VkAccelerationStructureMotionInstanceTypeNV type;
+ VkAccelerationStructureMotionInstanceFlagsNV flags;
+ VkAccelerationStructureMotionInstanceDataNV data;
+} VkAccelerationStructureMotionInstanceNV;
-typedef enum VkDeviceDiagnosticsConfigFlagBitsNV {
- VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_SHADER_DEBUG_INFO_BIT_NV = 0x00000001,
- VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_RESOURCE_TRACKING_BIT_NV = 0x00000002,
- VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_AUTOMATIC_CHECKPOINTS_BIT_NV = 0x00000004,
- VK_DEVICE_DIAGNOSTICS_CONFIG_ENABLE_SHADER_ERROR_REPORTING_BIT_NV = 0x00000008,
- VK_DEVICE_DIAGNOSTICS_CONFIG_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkDeviceDiagnosticsConfigFlagBitsNV;
-typedef VkFlags VkDeviceDiagnosticsConfigFlagsNV;
-typedef struct VkPhysicalDeviceDiagnosticsConfigFeaturesNV {
+typedef struct VkPhysicalDeviceRayTracingMotionBlurFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 diagnosticsConfig;
-} VkPhysicalDeviceDiagnosticsConfigFeaturesNV;
-
-typedef struct VkDeviceDiagnosticsConfigCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkDeviceDiagnosticsConfigFlagsNV flags;
-} VkDeviceDiagnosticsConfigCreateInfoNV;
-
-
+ VkBool32 rayTracingMotionBlur;
+ VkBool32 rayTracingMotionBlurPipelineTraceRaysIndirect;
+} VkPhysicalDeviceRayTracingMotionBlurFeaturesNV;
-// VK_QCOM_render_pass_store_ops is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_render_pass_store_ops 1
-#define VK_QCOM_RENDER_PASS_STORE_OPS_SPEC_VERSION 2
-#define VK_QCOM_RENDER_PASS_STORE_OPS_EXTENSION_NAME "VK_QCOM_render_pass_store_ops"
-// VK_NV_cuda_kernel_launch is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_cuda_kernel_launch 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCudaModuleNV)
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCudaFunctionNV)
-#define VK_NV_CUDA_KERNEL_LAUNCH_SPEC_VERSION 2
-#define VK_NV_CUDA_KERNEL_LAUNCH_EXTENSION_NAME "VK_NV_cuda_kernel_launch"
-typedef struct VkCudaModuleCreateInfoNV {
+// VK_EXT_ycbcr_2plane_444_formats is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_ycbcr_2plane_444_formats 1
+#define VK_EXT_YCBCR_2PLANE_444_FORMATS_SPEC_VERSION 1
+#define VK_EXT_YCBCR_2PLANE_444_FORMATS_EXTENSION_NAME "VK_EXT_ycbcr_2plane_444_formats"
+typedef struct VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT {
VkStructureType sType;
- const void* pNext;
- size_t dataSize;
- const void* pData;
-} VkCudaModuleCreateInfoNV;
+ void* pNext;
+ VkBool32 ycbcr2plane444Formats;
+} VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT;
-typedef struct VkCudaFunctionCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkCudaModuleNV module;
- const char* pName;
-} VkCudaFunctionCreateInfoNV;
-typedef struct VkCudaLaunchInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkCudaFunctionNV function;
- uint32_t gridDimX;
- uint32_t gridDimY;
- uint32_t gridDimZ;
- uint32_t blockDimX;
- uint32_t blockDimY;
- uint32_t blockDimZ;
- uint32_t sharedMemBytes;
- size_t paramCount;
- const void* const * pParams;
- size_t extraCount;
- const void* const * pExtras;
-} VkCudaLaunchInfoNV;
-typedef struct VkPhysicalDeviceCudaKernelLaunchFeaturesNV {
+// VK_EXT_fragment_density_map2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_fragment_density_map2 1
+#define VK_EXT_FRAGMENT_DENSITY_MAP_2_SPEC_VERSION 1
+#define VK_EXT_FRAGMENT_DENSITY_MAP_2_EXTENSION_NAME "VK_EXT_fragment_density_map2"
+typedef struct VkPhysicalDeviceFragmentDensityMap2FeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 cudaKernelLaunchFeatures;
-} VkPhysicalDeviceCudaKernelLaunchFeaturesNV;
+ VkBool32 fragmentDensityMapDeferred;
+} VkPhysicalDeviceFragmentDensityMap2FeaturesEXT;
-typedef struct VkPhysicalDeviceCudaKernelLaunchPropertiesNV {
+typedef struct VkPhysicalDeviceFragmentDensityMap2PropertiesEXT {
VkStructureType sType;
void* pNext;
- uint32_t computeCapabilityMinor;
- uint32_t computeCapabilityMajor;
-} VkPhysicalDeviceCudaKernelLaunchPropertiesNV;
-
-typedef VkResult (VKAPI_PTR *PFN_vkCreateCudaModuleNV)(VkDevice device, const VkCudaModuleCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCudaModuleNV* pModule);
-typedef VkResult (VKAPI_PTR *PFN_vkGetCudaModuleCacheNV)(VkDevice device, VkCudaModuleNV module, size_t* pCacheSize, void* pCacheData);
-typedef VkResult (VKAPI_PTR *PFN_vkCreateCudaFunctionNV)(VkDevice device, const VkCudaFunctionCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCudaFunctionNV* pFunction);
-typedef void (VKAPI_PTR *PFN_vkDestroyCudaModuleNV)(VkDevice device, VkCudaModuleNV module, const VkAllocationCallbacks* pAllocator);
-typedef void (VKAPI_PTR *PFN_vkDestroyCudaFunctionNV)(VkDevice device, VkCudaFunctionNV function, const VkAllocationCallbacks* pAllocator);
-typedef void (VKAPI_PTR *PFN_vkCmdCudaLaunchKernelNV)(VkCommandBuffer commandBuffer, const VkCudaLaunchInfoNV* pLaunchInfo);
-
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateCudaModuleNV(
- VkDevice device,
- const VkCudaModuleCreateInfoNV* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkCudaModuleNV* pModule);
-
-VKAPI_ATTR VkResult VKAPI_CALL vkGetCudaModuleCacheNV(
- VkDevice device,
- VkCudaModuleNV module,
- size_t* pCacheSize,
- void* pCacheData);
+ VkBool32 subsampledLoads;
+ VkBool32 subsampledCoarseReconstructionEarlyAccess;
+ uint32_t maxSubsampledArrayLayers;
+ uint32_t maxDescriptorSetSubsampledSamplers;
+} VkPhysicalDeviceFragmentDensityMap2PropertiesEXT;
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateCudaFunctionNV(
- VkDevice device,
- const VkCudaFunctionCreateInfoNV* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkCudaFunctionNV* pFunction);
-VKAPI_ATTR void VKAPI_CALL vkDestroyCudaModuleNV(
- VkDevice device,
- VkCudaModuleNV module,
- const VkAllocationCallbacks* pAllocator);
-VKAPI_ATTR void VKAPI_CALL vkDestroyCudaFunctionNV(
- VkDevice device,
- VkCudaFunctionNV function,
- const VkAllocationCallbacks* pAllocator);
+// VK_QCOM_rotated_copy_commands is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_rotated_copy_commands 1
+#define VK_QCOM_ROTATED_COPY_COMMANDS_SPEC_VERSION 2
+#define VK_QCOM_ROTATED_COPY_COMMANDS_EXTENSION_NAME "VK_QCOM_rotated_copy_commands"
+typedef struct VkCopyCommandTransformInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ VkSurfaceTransformFlagBitsKHR transform;
+} VkCopyCommandTransformInfoQCOM;
-VKAPI_ATTR void VKAPI_CALL vkCmdCudaLaunchKernelNV(
- VkCommandBuffer commandBuffer,
- const VkCudaLaunchInfoNV* pLaunchInfo);
-#endif
-// VK_NV_low_latency is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_low_latency 1
-#define VK_NV_LOW_LATENCY_SPEC_VERSION 1
-#define VK_NV_LOW_LATENCY_EXTENSION_NAME "VK_NV_low_latency"
-typedef struct VkQueryLowLatencySupportNV {
- VkStructureType sType;
- const void* pNext;
- void* pQueriedLowLatencyData;
-} VkQueryLowLatencySupportNV;
+// VK_EXT_image_robustness is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_image_robustness 1
+#define VK_EXT_IMAGE_ROBUSTNESS_SPEC_VERSION 1
+#define VK_EXT_IMAGE_ROBUSTNESS_EXTENSION_NAME "VK_EXT_image_robustness"
+typedef VkPhysicalDeviceImageRobustnessFeatures VkPhysicalDeviceImageRobustnessFeaturesEXT;
-// VK_EXT_descriptor_buffer is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_descriptor_buffer 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkAccelerationStructureKHR)
-#define VK_EXT_DESCRIPTOR_BUFFER_SPEC_VERSION 1
-#define VK_EXT_DESCRIPTOR_BUFFER_EXTENSION_NAME "VK_EXT_descriptor_buffer"
-typedef struct VkPhysicalDeviceDescriptorBufferPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 combinedImageSamplerDescriptorSingleArray;
- VkBool32 bufferlessPushDescriptors;
- VkBool32 allowSamplerImageViewPostSubmitCreation;
- VkDeviceSize descriptorBufferOffsetAlignment;
- uint32_t maxDescriptorBufferBindings;
- uint32_t maxResourceDescriptorBufferBindings;
- uint32_t maxSamplerDescriptorBufferBindings;
- uint32_t maxEmbeddedImmutableSamplerBindings;
- uint32_t maxEmbeddedImmutableSamplers;
- size_t bufferCaptureReplayDescriptorDataSize;
- size_t imageCaptureReplayDescriptorDataSize;
- size_t imageViewCaptureReplayDescriptorDataSize;
- size_t samplerCaptureReplayDescriptorDataSize;
- size_t accelerationStructureCaptureReplayDescriptorDataSize;
- size_t samplerDescriptorSize;
- size_t combinedImageSamplerDescriptorSize;
- size_t sampledImageDescriptorSize;
- size_t storageImageDescriptorSize;
- size_t uniformTexelBufferDescriptorSize;
- size_t robustUniformTexelBufferDescriptorSize;
- size_t storageTexelBufferDescriptorSize;
- size_t robustStorageTexelBufferDescriptorSize;
- size_t uniformBufferDescriptorSize;
- size_t robustUniformBufferDescriptorSize;
- size_t storageBufferDescriptorSize;
- size_t robustStorageBufferDescriptorSize;
- size_t inputAttachmentDescriptorSize;
- size_t accelerationStructureDescriptorSize;
- VkDeviceSize maxSamplerDescriptorBufferRange;
- VkDeviceSize maxResourceDescriptorBufferRange;
- VkDeviceSize samplerDescriptorBufferAddressSpaceSize;
- VkDeviceSize resourceDescriptorBufferAddressSpaceSize;
- VkDeviceSize descriptorBufferAddressSpaceSize;
-} VkPhysicalDeviceDescriptorBufferPropertiesEXT;
+// VK_EXT_image_compression_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_image_compression_control 1
+#define VK_EXT_IMAGE_COMPRESSION_CONTROL_SPEC_VERSION 1
+#define VK_EXT_IMAGE_COMPRESSION_CONTROL_EXTENSION_NAME "VK_EXT_image_compression_control"
-typedef struct VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- size_t combinedImageSamplerDensityMapDescriptorSize;
-} VkPhysicalDeviceDescriptorBufferDensityMapPropertiesEXT;
+typedef enum VkImageCompressionFlagBitsEXT {
+ VK_IMAGE_COMPRESSION_DEFAULT_EXT = 0,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT = 0x00000001,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT = 0x00000002,
+ VK_IMAGE_COMPRESSION_DISABLED_EXT = 0x00000004,
+ VK_IMAGE_COMPRESSION_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkImageCompressionFlagBitsEXT;
+typedef VkFlags VkImageCompressionFlagsEXT;
-typedef struct VkPhysicalDeviceDescriptorBufferFeaturesEXT {
+typedef enum VkImageCompressionFixedRateFlagBitsEXT {
+ VK_IMAGE_COMPRESSION_FIXED_RATE_NONE_EXT = 0,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXT = 0x00000001,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT = 0x00000002,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXT = 0x00000004,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT = 0x00000008,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXT = 0x00000010,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXT = 0x00000020,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXT = 0x00000040,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXT = 0x00000080,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXT = 0x00000100,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXT = 0x00000200,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXT = 0x00000400,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXT = 0x00000800,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXT = 0x00001000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXT = 0x00002000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXT = 0x00004000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXT = 0x00008000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXT = 0x00010000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXT = 0x00020000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXT = 0x00040000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXT = 0x00080000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXT = 0x00100000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXT = 0x00200000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXT = 0x00400000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT = 0x00800000,
+ VK_IMAGE_COMPRESSION_FIXED_RATE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkImageCompressionFixedRateFlagBitsEXT;
+typedef VkFlags VkImageCompressionFixedRateFlagsEXT;
+typedef struct VkPhysicalDeviceImageCompressionControlFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 descriptorBuffer;
- VkBool32 descriptorBufferCaptureReplay;
- VkBool32 descriptorBufferImageLayoutIgnored;
- VkBool32 descriptorBufferPushDescriptors;
-} VkPhysicalDeviceDescriptorBufferFeaturesEXT;
+ VkBool32 imageCompressionControl;
+} VkPhysicalDeviceImageCompressionControlFeaturesEXT;
-typedef struct VkDescriptorAddressInfoEXT {
+typedef struct VkImageCompressionControlEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageCompressionFlagsEXT flags;
+ uint32_t compressionControlPlaneCount;
+ VkImageCompressionFixedRateFlagsEXT* pFixedRateFlags;
+} VkImageCompressionControlEXT;
+
+typedef struct VkImageCompressionPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkImageCompressionFlagsEXT imageCompressionFlags;
+ VkImageCompressionFixedRateFlagsEXT imageCompressionFixedRateFlags;
+} VkImageCompressionPropertiesEXT;
+
+
+
+// VK_EXT_attachment_feedback_loop_layout is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_attachment_feedback_loop_layout 1
+#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_SPEC_VERSION 2
+#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_EXTENSION_NAME "VK_EXT_attachment_feedback_loop_layout"
+typedef struct VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkDeviceAddress address;
- VkDeviceSize range;
- VkFormat format;
-} VkDescriptorAddressInfoEXT;
+ VkBool32 attachmentFeedbackLoopLayout;
+} VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT;
-typedef struct VkDescriptorBufferBindingInfoEXT {
- VkStructureType sType;
- void* pNext;
- VkDeviceAddress address;
- VkBufferUsageFlags usage;
-} VkDescriptorBufferBindingInfoEXT;
-typedef struct VkDescriptorBufferBindingPushDescriptorBufferHandleEXT {
+
+// VK_EXT_4444_formats is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_4444_formats 1
+#define VK_EXT_4444_FORMATS_SPEC_VERSION 1
+#define VK_EXT_4444_FORMATS_EXTENSION_NAME "VK_EXT_4444_formats"
+typedef struct VkPhysicalDevice4444FormatsFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBuffer buffer;
-} VkDescriptorBufferBindingPushDescriptorBufferHandleEXT;
+ VkBool32 formatA4R4G4B4;
+ VkBool32 formatA4B4G4R4;
+} VkPhysicalDevice4444FormatsFeaturesEXT;
-typedef union VkDescriptorDataEXT {
- const VkSampler* pSampler;
- const VkDescriptorImageInfo* pCombinedImageSampler;
- const VkDescriptorImageInfo* pInputAttachmentImage;
- const VkDescriptorImageInfo* pSampledImage;
- const VkDescriptorImageInfo* pStorageImage;
- const VkDescriptorAddressInfoEXT* pUniformTexelBuffer;
- const VkDescriptorAddressInfoEXT* pStorageTexelBuffer;
- const VkDescriptorAddressInfoEXT* pUniformBuffer;
- const VkDescriptorAddressInfoEXT* pStorageBuffer;
- VkDeviceAddress accelerationStructure;
-} VkDescriptorDataEXT;
-typedef struct VkDescriptorGetInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkDescriptorType type;
- VkDescriptorDataEXT data;
-} VkDescriptorGetInfoEXT;
-typedef struct VkBufferCaptureDescriptorDataInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkBuffer buffer;
-} VkBufferCaptureDescriptorDataInfoEXT;
+// VK_EXT_device_fault is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_device_fault 1
+#define VK_EXT_DEVICE_FAULT_SPEC_VERSION 2
+#define VK_EXT_DEVICE_FAULT_EXTENSION_NAME "VK_EXT_device_fault"
-typedef struct VkImageCaptureDescriptorDataInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkImage image;
-} VkImageCaptureDescriptorDataInfoEXT;
+typedef enum VkDeviceFaultAddressTypeEXT {
+ VK_DEVICE_FAULT_ADDRESS_TYPE_NONE_EXT = 0,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_READ_INVALID_EXT = 1,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_WRITE_INVALID_EXT = 2,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_EXECUTE_INVALID_EXT = 3,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_INSTRUCTION_POINTER_UNKNOWN_EXT = 4,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_INSTRUCTION_POINTER_INVALID_EXT = 5,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_INSTRUCTION_POINTER_FAULT_EXT = 6,
+ VK_DEVICE_FAULT_ADDRESS_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDeviceFaultAddressTypeEXT;
-typedef struct VkImageViewCaptureDescriptorDataInfoEXT {
+typedef enum VkDeviceFaultVendorBinaryHeaderVersionEXT {
+ VK_DEVICE_FAULT_VENDOR_BINARY_HEADER_VERSION_ONE_EXT = 1,
+ VK_DEVICE_FAULT_VENDOR_BINARY_HEADER_VERSION_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDeviceFaultVendorBinaryHeaderVersionEXT;
+typedef struct VkPhysicalDeviceFaultFeaturesEXT {
VkStructureType sType;
- const void* pNext;
- VkImageView imageView;
-} VkImageViewCaptureDescriptorDataInfoEXT;
+ void* pNext;
+ VkBool32 deviceFault;
+ VkBool32 deviceFaultVendorBinary;
+} VkPhysicalDeviceFaultFeaturesEXT;
-typedef struct VkSamplerCaptureDescriptorDataInfoEXT {
+typedef struct VkDeviceFaultCountsEXT {
VkStructureType sType;
- const void* pNext;
- VkSampler sampler;
-} VkSamplerCaptureDescriptorDataInfoEXT;
+ void* pNext;
+ uint32_t addressInfoCount;
+ uint32_t vendorInfoCount;
+ VkDeviceSize vendorBinarySize;
+} VkDeviceFaultCountsEXT;
-typedef struct VkOpaqueCaptureDescriptorDataCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- const void* opaqueCaptureDescriptorData;
-} VkOpaqueCaptureDescriptorDataCreateInfoEXT;
+typedef struct VkDeviceFaultAddressInfoEXT {
+ VkDeviceFaultAddressTypeEXT addressType;
+ VkDeviceAddress reportedAddress;
+ VkDeviceSize addressPrecision;
+} VkDeviceFaultAddressInfoEXT;
-typedef struct VkAccelerationStructureCaptureDescriptorDataInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkAccelerationStructureKHR accelerationStructure;
- VkAccelerationStructureNV accelerationStructureNV;
-} VkAccelerationStructureCaptureDescriptorDataInfoEXT;
+typedef struct VkDeviceFaultVendorInfoEXT {
+ char description[VK_MAX_DESCRIPTION_SIZE];
+ uint64_t vendorFaultCode;
+ uint64_t vendorFaultData;
+} VkDeviceFaultVendorInfoEXT;
-typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetLayoutSizeEXT)(VkDevice device, VkDescriptorSetLayout layout, VkDeviceSize* pLayoutSizeInBytes);
-typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetLayoutBindingOffsetEXT)(VkDevice device, VkDescriptorSetLayout layout, uint32_t binding, VkDeviceSize* pOffset);
-typedef void (VKAPI_PTR *PFN_vkGetDescriptorEXT)(VkDevice device, const VkDescriptorGetInfoEXT* pDescriptorInfo, size_t dataSize, void* pDescriptor);
-typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorBuffersEXT)(VkCommandBuffer commandBuffer, uint32_t bufferCount, const VkDescriptorBufferBindingInfoEXT* pBindingInfos);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDescriptorBufferOffsetsEXT)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const uint32_t* pBufferIndices, const VkDeviceSize* pOffsets);
-typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorBufferEmbeddedSamplersEXT)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set);
-typedef VkResult (VKAPI_PTR *PFN_vkGetBufferOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkBufferCaptureDescriptorDataInfoEXT* pInfo, void* pData);
-typedef VkResult (VKAPI_PTR *PFN_vkGetImageOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkImageCaptureDescriptorDataInfoEXT* pInfo, void* pData);
-typedef VkResult (VKAPI_PTR *PFN_vkGetImageViewOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkImageViewCaptureDescriptorDataInfoEXT* pInfo, void* pData);
-typedef VkResult (VKAPI_PTR *PFN_vkGetSamplerOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkSamplerCaptureDescriptorDataInfoEXT* pInfo, void* pData);
-typedef VkResult (VKAPI_PTR *PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT)(VkDevice device, const VkAccelerationStructureCaptureDescriptorDataInfoEXT* pInfo, void* pData);
+typedef struct VkDeviceFaultInfoEXT {
+ VkStructureType sType;
+ void* pNext;
+ char description[VK_MAX_DESCRIPTION_SIZE];
+ VkDeviceFaultAddressInfoEXT* pAddressInfos;
+ VkDeviceFaultVendorInfoEXT* pVendorInfos;
+ void* pVendorBinaryData;
+} VkDeviceFaultInfoEXT;
+
+typedef struct VkDeviceFaultVendorBinaryHeaderVersionOneEXT {
+ uint32_t headerSize;
+ VkDeviceFaultVendorBinaryHeaderVersionEXT headerVersion;
+ uint32_t vendorID;
+ uint32_t deviceID;
+ uint32_t driverVersion;
+ uint8_t pipelineCacheUUID[VK_UUID_SIZE];
+ uint32_t applicationNameOffset;
+ uint32_t applicationVersion;
+ uint32_t engineNameOffset;
+ uint32_t engineVersion;
+ uint32_t apiVersion;
+} VkDeviceFaultVendorBinaryHeaderVersionOneEXT;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceFaultInfoEXT)(VkDevice device, VkDeviceFaultCountsEXT* pFaultCounts, VkDeviceFaultInfoEXT* pFaultInfo);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutSizeEXT(
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceFaultInfoEXT(
VkDevice device,
- VkDescriptorSetLayout layout,
- VkDeviceSize* pLayoutSizeInBytes);
+ VkDeviceFaultCountsEXT* pFaultCounts,
+ VkDeviceFaultInfoEXT* pFaultInfo);
+#endif
-VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutBindingOffsetEXT(
- VkDevice device,
- VkDescriptorSetLayout layout,
- uint32_t binding,
- VkDeviceSize* pOffset);
-VKAPI_ATTR void VKAPI_CALL vkGetDescriptorEXT(
- VkDevice device,
- const VkDescriptorGetInfoEXT* pDescriptorInfo,
- size_t dataSize,
- void* pDescriptor);
+// VK_ARM_rasterization_order_attachment_access is a preprocessor guard. Do not pass it to API calls.
+#define VK_ARM_rasterization_order_attachment_access 1
+#define VK_ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION 1
+#define VK_ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_EXTENSION_NAME "VK_ARM_rasterization_order_attachment_access"
+typedef struct VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 rasterizationOrderColorAttachmentAccess;
+ VkBool32 rasterizationOrderDepthAttachmentAccess;
+ VkBool32 rasterizationOrderStencilAttachmentAccess;
+} VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT;
-VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBuffersEXT(
- VkCommandBuffer commandBuffer,
- uint32_t bufferCount,
- const VkDescriptorBufferBindingInfoEXT* pBindingInfos);
+typedef VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARM;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDescriptorBufferOffsetsEXT(
- VkCommandBuffer commandBuffer,
- VkPipelineBindPoint pipelineBindPoint,
- VkPipelineLayout layout,
- uint32_t firstSet,
- uint32_t setCount,
- const uint32_t* pBufferIndices,
- const VkDeviceSize* pOffsets);
-VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBufferEmbeddedSamplersEXT(
- VkCommandBuffer commandBuffer,
- VkPipelineBindPoint pipelineBindPoint,
- VkPipelineLayout layout,
- uint32_t set);
-VKAPI_ATTR VkResult VKAPI_CALL vkGetBufferOpaqueCaptureDescriptorDataEXT(
- VkDevice device,
- const VkBufferCaptureDescriptorDataInfoEXT* pInfo,
- void* pData);
+// VK_EXT_rgba10x6_formats is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_rgba10x6_formats 1
+#define VK_EXT_RGBA10X6_FORMATS_SPEC_VERSION 1
+#define VK_EXT_RGBA10X6_FORMATS_EXTENSION_NAME "VK_EXT_rgba10x6_formats"
+typedef struct VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 formatRgba10x6WithoutYCbCrSampler;
+} VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetImageOpaqueCaptureDescriptorDataEXT(
- VkDevice device,
- const VkImageCaptureDescriptorDataInfoEXT* pInfo,
- void* pData);
-VKAPI_ATTR VkResult VKAPI_CALL vkGetImageViewOpaqueCaptureDescriptorDataEXT(
- VkDevice device,
- const VkImageViewCaptureDescriptorDataInfoEXT* pInfo,
- void* pData);
-VKAPI_ATTR VkResult VKAPI_CALL vkGetSamplerOpaqueCaptureDescriptorDataEXT(
- VkDevice device,
- const VkSamplerCaptureDescriptorDataInfoEXT* pInfo,
- void* pData);
+// VK_VALVE_mutable_descriptor_type is a preprocessor guard. Do not pass it to API calls.
+#define VK_VALVE_mutable_descriptor_type 1
+#define VK_VALVE_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION 1
+#define VK_VALVE_MUTABLE_DESCRIPTOR_TYPE_EXTENSION_NAME "VK_VALVE_mutable_descriptor_type"
+typedef struct VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 mutableDescriptorType;
+} VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT;
+
+typedef VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE;
+
+typedef struct VkMutableDescriptorTypeListEXT {
+ uint32_t descriptorTypeCount;
+ const VkDescriptorType* pDescriptorTypes;
+} VkMutableDescriptorTypeListEXT;
+
+typedef VkMutableDescriptorTypeListEXT VkMutableDescriptorTypeListVALVE;
+
+typedef struct VkMutableDescriptorTypeCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t mutableDescriptorTypeListCount;
+ const VkMutableDescriptorTypeListEXT* pMutableDescriptorTypeLists;
+} VkMutableDescriptorTypeCreateInfoEXT;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
- VkDevice device,
- const VkAccelerationStructureCaptureDescriptorDataInfoEXT* pInfo,
- void* pData);
-#endif
+typedef VkMutableDescriptorTypeCreateInfoEXT VkMutableDescriptorTypeCreateInfoVALVE;
-// VK_EXT_graphics_pipeline_library is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_graphics_pipeline_library 1
-#define VK_EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION 1
-#define VK_EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME "VK_EXT_graphics_pipeline_library"
-typedef enum VkGraphicsPipelineLibraryFlagBitsEXT {
- VK_GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT = 0x00000001,
- VK_GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT = 0x00000002,
- VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT = 0x00000004,
- VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT = 0x00000008,
- VK_GRAPHICS_PIPELINE_LIBRARY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkGraphicsPipelineLibraryFlagBitsEXT;
-typedef VkFlags VkGraphicsPipelineLibraryFlagsEXT;
-typedef struct VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT {
+// VK_EXT_vertex_input_dynamic_state is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_vertex_input_dynamic_state 1
+#define VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_SPEC_VERSION 2
+#define VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME "VK_EXT_vertex_input_dynamic_state"
+typedef struct VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 graphicsPipelineLibrary;
-} VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT;
+ VkBool32 vertexInputDynamicState;
+} VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT;
-typedef struct VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT {
+typedef struct VkVertexInputBindingDescription2EXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t binding;
+ uint32_t stride;
+ VkVertexInputRate inputRate;
+ uint32_t divisor;
+} VkVertexInputBindingDescription2EXT;
+
+typedef struct VkVertexInputAttributeDescription2EXT {
VkStructureType sType;
void* pNext;
- VkBool32 graphicsPipelineLibraryFastLinking;
- VkBool32 graphicsPipelineLibraryIndependentInterpolationDecoration;
-} VkPhysicalDeviceGraphicsPipelineLibraryPropertiesEXT;
+ uint32_t location;
+ uint32_t binding;
+ VkFormat format;
+ uint32_t offset;
+} VkVertexInputAttributeDescription2EXT;
-typedef struct VkGraphicsPipelineLibraryCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkGraphicsPipelineLibraryFlagsEXT flags;
-} VkGraphicsPipelineLibraryCreateInfoEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdSetVertexInputEXT)(VkCommandBuffer commandBuffer, uint32_t vertexBindingDescriptionCount, const VkVertexInputBindingDescription2EXT* pVertexBindingDescriptions, uint32_t vertexAttributeDescriptionCount, const VkVertexInputAttributeDescription2EXT* pVertexAttributeDescriptions);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetVertexInputEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t vertexBindingDescriptionCount,
+ const VkVertexInputBindingDescription2EXT* pVertexBindingDescriptions,
+ uint32_t vertexAttributeDescriptionCount,
+ const VkVertexInputAttributeDescription2EXT* pVertexAttributeDescriptions);
+#endif
-// VK_AMD_shader_early_and_late_fragment_tests is a preprocessor guard. Do not pass it to API calls.
-#define VK_AMD_shader_early_and_late_fragment_tests 1
-#define VK_AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_SPEC_VERSION 1
-#define VK_AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_EXTENSION_NAME "VK_AMD_shader_early_and_late_fragment_tests"
-typedef struct VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD {
+// VK_EXT_physical_device_drm is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_physical_device_drm 1
+#define VK_EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION 1
+#define VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME "VK_EXT_physical_device_drm"
+typedef struct VkPhysicalDeviceDrmPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 shaderEarlyAndLateFragmentTests;
-} VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD;
+ VkBool32 hasPrimary;
+ VkBool32 hasRender;
+ int64_t primaryMajor;
+ int64_t primaryMinor;
+ int64_t renderMajor;
+ int64_t renderMinor;
+} VkPhysicalDeviceDrmPropertiesEXT;
-// VK_NV_fragment_shading_rate_enums is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_fragment_shading_rate_enums 1
-#define VK_NV_FRAGMENT_SHADING_RATE_ENUMS_SPEC_VERSION 1
-#define VK_NV_FRAGMENT_SHADING_RATE_ENUMS_EXTENSION_NAME "VK_NV_fragment_shading_rate_enums"
+// VK_EXT_device_address_binding_report is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_device_address_binding_report 1
+#define VK_EXT_DEVICE_ADDRESS_BINDING_REPORT_SPEC_VERSION 1
+#define VK_EXT_DEVICE_ADDRESS_BINDING_REPORT_EXTENSION_NAME "VK_EXT_device_address_binding_report"
-typedef enum VkFragmentShadingRateTypeNV {
- VK_FRAGMENT_SHADING_RATE_TYPE_FRAGMENT_SIZE_NV = 0,
- VK_FRAGMENT_SHADING_RATE_TYPE_ENUMS_NV = 1,
- VK_FRAGMENT_SHADING_RATE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkFragmentShadingRateTypeNV;
+typedef enum VkDeviceAddressBindingTypeEXT {
+ VK_DEVICE_ADDRESS_BINDING_TYPE_BIND_EXT = 0,
+ VK_DEVICE_ADDRESS_BINDING_TYPE_UNBIND_EXT = 1,
+ VK_DEVICE_ADDRESS_BINDING_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDeviceAddressBindingTypeEXT;
-typedef enum VkFragmentShadingRateNV {
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV = 0,
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV = 1,
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV = 4,
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV = 5,
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV = 6,
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV = 9,
- VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV = 10,
- VK_FRAGMENT_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV = 11,
- VK_FRAGMENT_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV = 12,
- VK_FRAGMENT_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV = 13,
- VK_FRAGMENT_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV = 14,
- VK_FRAGMENT_SHADING_RATE_NO_INVOCATIONS_NV = 15,
- VK_FRAGMENT_SHADING_RATE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkFragmentShadingRateNV;
-typedef struct VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV {
+typedef enum VkDeviceAddressBindingFlagBitsEXT {
+ VK_DEVICE_ADDRESS_BINDING_INTERNAL_OBJECT_BIT_EXT = 0x00000001,
+ VK_DEVICE_ADDRESS_BINDING_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDeviceAddressBindingFlagBitsEXT;
+typedef VkFlags VkDeviceAddressBindingFlagsEXT;
+typedef struct VkPhysicalDeviceAddressBindingReportFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 fragmentShadingRateEnums;
- VkBool32 supersampleFragmentShadingRates;
- VkBool32 noInvocationFragmentShadingRates;
-} VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV;
+ VkBool32 reportAddressBinding;
+} VkPhysicalDeviceAddressBindingReportFeaturesEXT;
-typedef struct VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkSampleCountFlagBits maxFragmentShadingRateInvocationCount;
-} VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV;
+typedef struct VkDeviceAddressBindingCallbackDataEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkDeviceAddressBindingFlagsEXT flags;
+ VkDeviceAddress baseAddress;
+ VkDeviceSize size;
+ VkDeviceAddressBindingTypeEXT bindingType;
+} VkDeviceAddressBindingCallbackDataEXT;
-typedef struct VkPipelineFragmentShadingRateEnumStateCreateInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkFragmentShadingRateTypeNV shadingRateType;
- VkFragmentShadingRateNV shadingRate;
- VkFragmentShadingRateCombinerOpKHR combinerOps[2];
-} VkPipelineFragmentShadingRateEnumStateCreateInfoNV;
-typedef void (VKAPI_PTR *PFN_vkCmdSetFragmentShadingRateEnumNV)(VkCommandBuffer commandBuffer, VkFragmentShadingRateNV shadingRate, const VkFragmentShadingRateCombinerOpKHR combinerOps[2]);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetFragmentShadingRateEnumNV(
- VkCommandBuffer commandBuffer,
- VkFragmentShadingRateNV shadingRate,
- const VkFragmentShadingRateCombinerOpKHR combinerOps[2]);
-#endif
+// VK_EXT_depth_clip_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_depth_clip_control 1
+#define VK_EXT_DEPTH_CLIP_CONTROL_SPEC_VERSION 1
+#define VK_EXT_DEPTH_CLIP_CONTROL_EXTENSION_NAME "VK_EXT_depth_clip_control"
+typedef struct VkPhysicalDeviceDepthClipControlFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 depthClipControl;
+} VkPhysicalDeviceDepthClipControlFeaturesEXT;
+typedef struct VkPipelineViewportDepthClipControlCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 negativeOneToOne;
+} VkPipelineViewportDepthClipControlCreateInfoEXT;
-// VK_NV_ray_tracing_motion_blur is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_ray_tracing_motion_blur 1
-#define VK_NV_RAY_TRACING_MOTION_BLUR_SPEC_VERSION 1
-#define VK_NV_RAY_TRACING_MOTION_BLUR_EXTENSION_NAME "VK_NV_ray_tracing_motion_blur"
-typedef enum VkAccelerationStructureMotionInstanceTypeNV {
- VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_STATIC_NV = 0,
- VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MATRIX_MOTION_NV = 1,
- VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_SRT_MOTION_NV = 2,
- VK_ACCELERATION_STRUCTURE_MOTION_INSTANCE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkAccelerationStructureMotionInstanceTypeNV;
-typedef VkFlags VkAccelerationStructureMotionInfoFlagsNV;
-typedef VkFlags VkAccelerationStructureMotionInstanceFlagsNV;
-typedef union VkDeviceOrHostAddressConstKHR {
- VkDeviceAddress deviceAddress;
- const void* hostAddress;
-} VkDeviceOrHostAddressConstKHR;
-typedef struct VkAccelerationStructureGeometryMotionTrianglesDataNV {
- VkStructureType sType;
- const void* pNext;
- VkDeviceOrHostAddressConstKHR vertexData;
-} VkAccelerationStructureGeometryMotionTrianglesDataNV;
+// VK_EXT_primitive_topology_list_restart is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_primitive_topology_list_restart 1
+#define VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_SPEC_VERSION 1
+#define VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_EXTENSION_NAME "VK_EXT_primitive_topology_list_restart"
+typedef struct VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 primitiveTopologyListRestart;
+ VkBool32 primitiveTopologyPatchListRestart;
+} VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT;
-typedef struct VkAccelerationStructureMotionInfoNV {
- VkStructureType sType;
- const void* pNext;
- uint32_t maxInstances;
- VkAccelerationStructureMotionInfoFlagsNV flags;
-} VkAccelerationStructureMotionInfoNV;
-typedef struct VkAccelerationStructureMatrixMotionInstanceNV {
- VkTransformMatrixKHR transformT0;
- VkTransformMatrixKHR transformT1;
- uint32_t instanceCustomIndex:24;
- uint32_t mask:8;
- uint32_t instanceShaderBindingTableRecordOffset:24;
- VkGeometryInstanceFlagsKHR flags:8;
- uint64_t accelerationStructureReference;
-} VkAccelerationStructureMatrixMotionInstanceNV;
-typedef struct VkSRTDataNV {
- float sx;
- float a;
- float b;
- float pvx;
- float sy;
- float c;
- float pvy;
- float sz;
- float pvz;
- float qx;
- float qy;
- float qz;
- float qw;
- float tx;
- float ty;
- float tz;
-} VkSRTDataNV;
+// VK_EXT_present_mode_fifo_latest_ready is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_present_mode_fifo_latest_ready 1
+#define VK_EXT_PRESENT_MODE_FIFO_LATEST_READY_SPEC_VERSION 1
+#define VK_EXT_PRESENT_MODE_FIFO_LATEST_READY_EXTENSION_NAME "VK_EXT_present_mode_fifo_latest_ready"
+typedef struct VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 presentModeFifoLatestReady;
+} VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT;
+
+
+
+// VK_HUAWEI_subpass_shading is a preprocessor guard. Do not pass it to API calls.
+#define VK_HUAWEI_subpass_shading 1
+#define VK_HUAWEI_SUBPASS_SHADING_SPEC_VERSION 3
+#define VK_HUAWEI_SUBPASS_SHADING_EXTENSION_NAME "VK_HUAWEI_subpass_shading"
+typedef struct VkSubpassShadingPipelineCreateInfoHUAWEI {
+ VkStructureType sType;
+ void* pNext;
+ VkRenderPass renderPass;
+ uint32_t subpass;
+} VkSubpassShadingPipelineCreateInfoHUAWEI;
+
+typedef struct VkPhysicalDeviceSubpassShadingFeaturesHUAWEI {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 subpassShading;
+} VkPhysicalDeviceSubpassShadingFeaturesHUAWEI;
+
+typedef struct VkPhysicalDeviceSubpassShadingPropertiesHUAWEI {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxSubpassShadingWorkgroupSizeAspectRatio;
+} VkPhysicalDeviceSubpassShadingPropertiesHUAWEI;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI)(VkDevice device, VkRenderPass renderpass, VkExtent2D* pMaxWorkgroupSize);
+typedef void (VKAPI_PTR *PFN_vkCmdSubpassShadingHUAWEI)(VkCommandBuffer commandBuffer);
-typedef struct VkAccelerationStructureSRTMotionInstanceNV {
- VkSRTDataNV transformT0;
- VkSRTDataNV transformT1;
- uint32_t instanceCustomIndex:24;
- uint32_t mask:8;
- uint32_t instanceShaderBindingTableRecordOffset:24;
- VkGeometryInstanceFlagsKHR flags:8;
- uint64_t accelerationStructureReference;
-} VkAccelerationStructureSRTMotionInstanceNV;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
+ VkDevice device,
+ VkRenderPass renderpass,
+ VkExtent2D* pMaxWorkgroupSize);
-typedef union VkAccelerationStructureMotionInstanceDataNV {
- VkAccelerationStructureInstanceKHR staticInstance;
- VkAccelerationStructureMatrixMotionInstanceNV matrixMotionInstance;
- VkAccelerationStructureSRTMotionInstanceNV srtMotionInstance;
-} VkAccelerationStructureMotionInstanceDataNV;
+VKAPI_ATTR void VKAPI_CALL vkCmdSubpassShadingHUAWEI(
+ VkCommandBuffer commandBuffer);
+#endif
-typedef struct VkAccelerationStructureMotionInstanceNV {
- VkAccelerationStructureMotionInstanceTypeNV type;
- VkAccelerationStructureMotionInstanceFlagsNV flags;
- VkAccelerationStructureMotionInstanceDataNV data;
-} VkAccelerationStructureMotionInstanceNV;
-typedef struct VkPhysicalDeviceRayTracingMotionBlurFeaturesNV {
+// VK_HUAWEI_invocation_mask is a preprocessor guard. Do not pass it to API calls.
+#define VK_HUAWEI_invocation_mask 1
+#define VK_HUAWEI_INVOCATION_MASK_SPEC_VERSION 1
+#define VK_HUAWEI_INVOCATION_MASK_EXTENSION_NAME "VK_HUAWEI_invocation_mask"
+typedef struct VkPhysicalDeviceInvocationMaskFeaturesHUAWEI {
VkStructureType sType;
void* pNext;
- VkBool32 rayTracingMotionBlur;
- VkBool32 rayTracingMotionBlurPipelineTraceRaysIndirect;
-} VkPhysicalDeviceRayTracingMotionBlurFeaturesNV;
+ VkBool32 invocationMask;
+} VkPhysicalDeviceInvocationMaskFeaturesHUAWEI;
+
+typedef void (VKAPI_PTR *PFN_vkCmdBindInvocationMaskHUAWEI)(VkCommandBuffer commandBuffer, VkImageView imageView, VkImageLayout imageLayout);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdBindInvocationMaskHUAWEI(
+ VkCommandBuffer commandBuffer,
+ VkImageView imageView,
+ VkImageLayout imageLayout);
+#endif
+// VK_NV_external_memory_rdma is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_external_memory_rdma 1
+typedef void* VkRemoteAddressNV;
+#define VK_NV_EXTERNAL_MEMORY_RDMA_SPEC_VERSION 1
+#define VK_NV_EXTERNAL_MEMORY_RDMA_EXTENSION_NAME "VK_NV_external_memory_rdma"
+typedef struct VkMemoryGetRemoteAddressInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceMemory memory;
+ VkExternalMemoryHandleTypeFlagBits handleType;
+} VkMemoryGetRemoteAddressInfoNV;
-// VK_EXT_ycbcr_2plane_444_formats is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_ycbcr_2plane_444_formats 1
-#define VK_EXT_YCBCR_2PLANE_444_FORMATS_SPEC_VERSION 1
-#define VK_EXT_YCBCR_2PLANE_444_FORMATS_EXTENSION_NAME "VK_EXT_ycbcr_2plane_444_formats"
-typedef struct VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT {
+typedef struct VkPhysicalDeviceExternalMemoryRDMAFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 ycbcr2plane444Formats;
-} VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT;
+ VkBool32 externalMemoryRDMA;
+} VkPhysicalDeviceExternalMemoryRDMAFeaturesNV;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryRemoteAddressNV)(VkDevice device, const VkMemoryGetRemoteAddressInfoNV* pMemoryGetRemoteAddressInfo, VkRemoteAddressNV* pAddress);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryRemoteAddressNV(
+ VkDevice device,
+ const VkMemoryGetRemoteAddressInfoNV* pMemoryGetRemoteAddressInfo,
+ VkRemoteAddressNV* pAddress);
+#endif
+// VK_EXT_pipeline_properties is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pipeline_properties 1
+#define VK_EXT_PIPELINE_PROPERTIES_SPEC_VERSION 1
+#define VK_EXT_PIPELINE_PROPERTIES_EXTENSION_NAME "VK_EXT_pipeline_properties"
+typedef VkPipelineInfoKHR VkPipelineInfoEXT;
-// VK_EXT_fragment_density_map2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_fragment_density_map2 1
-#define VK_EXT_FRAGMENT_DENSITY_MAP_2_SPEC_VERSION 1
-#define VK_EXT_FRAGMENT_DENSITY_MAP_2_EXTENSION_NAME "VK_EXT_fragment_density_map2"
-typedef struct VkPhysicalDeviceFragmentDensityMap2FeaturesEXT {
+typedef struct VkPipelinePropertiesIdentifierEXT {
VkStructureType sType;
void* pNext;
- VkBool32 fragmentDensityMapDeferred;
-} VkPhysicalDeviceFragmentDensityMap2FeaturesEXT;
+ uint8_t pipelineIdentifier[VK_UUID_SIZE];
+} VkPipelinePropertiesIdentifierEXT;
-typedef struct VkPhysicalDeviceFragmentDensityMap2PropertiesEXT {
+typedef struct VkPhysicalDevicePipelinePropertiesFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 subsampledLoads;
- VkBool32 subsampledCoarseReconstructionEarlyAccess;
- uint32_t maxSubsampledArrayLayers;
- uint32_t maxDescriptorSetSubsampledSamplers;
-} VkPhysicalDeviceFragmentDensityMap2PropertiesEXT;
+ VkBool32 pipelinePropertiesIdentifier;
+} VkPhysicalDevicePipelinePropertiesFeaturesEXT;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPipelinePropertiesEXT)(VkDevice device, const VkPipelineInfoEXT* pPipelineInfo, VkBaseOutStructure* pPipelineProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelinePropertiesEXT(
+ VkDevice device,
+ const VkPipelineInfoEXT* pPipelineInfo,
+ VkBaseOutStructure* pPipelineProperties);
+#endif
+// VK_EXT_frame_boundary is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_frame_boundary 1
+#define VK_EXT_FRAME_BOUNDARY_SPEC_VERSION 1
+#define VK_EXT_FRAME_BOUNDARY_EXTENSION_NAME "VK_EXT_frame_boundary"
-// VK_QCOM_rotated_copy_commands is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_rotated_copy_commands 1
-#define VK_QCOM_ROTATED_COPY_COMMANDS_SPEC_VERSION 2
-#define VK_QCOM_ROTATED_COPY_COMMANDS_EXTENSION_NAME "VK_QCOM_rotated_copy_commands"
-typedef struct VkCopyCommandTransformInfoQCOM {
- VkStructureType sType;
- const void* pNext;
- VkSurfaceTransformFlagBitsKHR transform;
-} VkCopyCommandTransformInfoQCOM;
+typedef enum VkFrameBoundaryFlagBitsEXT {
+ VK_FRAME_BOUNDARY_FRAME_END_BIT_EXT = 0x00000001,
+ VK_FRAME_BOUNDARY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkFrameBoundaryFlagBitsEXT;
+typedef VkFlags VkFrameBoundaryFlagsEXT;
+typedef struct VkPhysicalDeviceFrameBoundaryFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 frameBoundary;
+} VkPhysicalDeviceFrameBoundaryFeaturesEXT;
+typedef struct VkFrameBoundaryEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkFrameBoundaryFlagsEXT flags;
+ uint64_t frameID;
+ uint32_t imageCount;
+ const VkImage* pImages;
+ uint32_t bufferCount;
+ const VkBuffer* pBuffers;
+ uint64_t tagName;
+ size_t tagSize;
+ const void* pTag;
+} VkFrameBoundaryEXT;
-// VK_EXT_image_robustness is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_image_robustness 1
-#define VK_EXT_IMAGE_ROBUSTNESS_SPEC_VERSION 1
-#define VK_EXT_IMAGE_ROBUSTNESS_EXTENSION_NAME "VK_EXT_image_robustness"
-typedef VkPhysicalDeviceImageRobustnessFeatures VkPhysicalDeviceImageRobustnessFeaturesEXT;
+// VK_EXT_multisampled_render_to_single_sampled is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_multisampled_render_to_single_sampled 1
+#define VK_EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_SPEC_VERSION 1
+#define VK_EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_EXTENSION_NAME "VK_EXT_multisampled_render_to_single_sampled"
+typedef struct VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 multisampledRenderToSingleSampled;
+} VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT;
+typedef struct VkSubpassResolvePerformanceQueryEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 optimal;
+} VkSubpassResolvePerformanceQueryEXT;
-// VK_EXT_image_compression_control is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_image_compression_control 1
-#define VK_EXT_IMAGE_COMPRESSION_CONTROL_SPEC_VERSION 1
-#define VK_EXT_IMAGE_COMPRESSION_CONTROL_EXTENSION_NAME "VK_EXT_image_compression_control"
+typedef struct VkMultisampledRenderToSingleSampledInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 multisampledRenderToSingleSampledEnable;
+ VkSampleCountFlagBits rasterizationSamples;
+} VkMultisampledRenderToSingleSampledInfoEXT;
-typedef enum VkImageCompressionFlagBitsEXT {
- VK_IMAGE_COMPRESSION_DEFAULT_EXT = 0,
- VK_IMAGE_COMPRESSION_FIXED_RATE_DEFAULT_EXT = 0x00000001,
- VK_IMAGE_COMPRESSION_FIXED_RATE_EXPLICIT_EXT = 0x00000002,
- VK_IMAGE_COMPRESSION_DISABLED_EXT = 0x00000004,
- VK_IMAGE_COMPRESSION_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkImageCompressionFlagBitsEXT;
-typedef VkFlags VkImageCompressionFlagsEXT;
-typedef enum VkImageCompressionFixedRateFlagBitsEXT {
- VK_IMAGE_COMPRESSION_FIXED_RATE_NONE_EXT = 0,
- VK_IMAGE_COMPRESSION_FIXED_RATE_1BPC_BIT_EXT = 0x00000001,
- VK_IMAGE_COMPRESSION_FIXED_RATE_2BPC_BIT_EXT = 0x00000002,
- VK_IMAGE_COMPRESSION_FIXED_RATE_3BPC_BIT_EXT = 0x00000004,
- VK_IMAGE_COMPRESSION_FIXED_RATE_4BPC_BIT_EXT = 0x00000008,
- VK_IMAGE_COMPRESSION_FIXED_RATE_5BPC_BIT_EXT = 0x00000010,
- VK_IMAGE_COMPRESSION_FIXED_RATE_6BPC_BIT_EXT = 0x00000020,
- VK_IMAGE_COMPRESSION_FIXED_RATE_7BPC_BIT_EXT = 0x00000040,
- VK_IMAGE_COMPRESSION_FIXED_RATE_8BPC_BIT_EXT = 0x00000080,
- VK_IMAGE_COMPRESSION_FIXED_RATE_9BPC_BIT_EXT = 0x00000100,
- VK_IMAGE_COMPRESSION_FIXED_RATE_10BPC_BIT_EXT = 0x00000200,
- VK_IMAGE_COMPRESSION_FIXED_RATE_11BPC_BIT_EXT = 0x00000400,
- VK_IMAGE_COMPRESSION_FIXED_RATE_12BPC_BIT_EXT = 0x00000800,
- VK_IMAGE_COMPRESSION_FIXED_RATE_13BPC_BIT_EXT = 0x00001000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_14BPC_BIT_EXT = 0x00002000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_15BPC_BIT_EXT = 0x00004000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_16BPC_BIT_EXT = 0x00008000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_17BPC_BIT_EXT = 0x00010000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_18BPC_BIT_EXT = 0x00020000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_19BPC_BIT_EXT = 0x00040000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_20BPC_BIT_EXT = 0x00080000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_21BPC_BIT_EXT = 0x00100000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_22BPC_BIT_EXT = 0x00200000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_23BPC_BIT_EXT = 0x00400000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_24BPC_BIT_EXT = 0x00800000,
- VK_IMAGE_COMPRESSION_FIXED_RATE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkImageCompressionFixedRateFlagBitsEXT;
-typedef VkFlags VkImageCompressionFixedRateFlagsEXT;
-typedef struct VkPhysicalDeviceImageCompressionControlFeaturesEXT {
+
+// VK_EXT_extended_dynamic_state2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_extended_dynamic_state2 1
+#define VK_EXT_EXTENDED_DYNAMIC_STATE_2_SPEC_VERSION 1
+#define VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME "VK_EXT_extended_dynamic_state2"
+typedef struct VkPhysicalDeviceExtendedDynamicState2FeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 imageCompressionControl;
-} VkPhysicalDeviceImageCompressionControlFeaturesEXT;
+ VkBool32 extendedDynamicState2;
+ VkBool32 extendedDynamicState2LogicOp;
+ VkBool32 extendedDynamicState2PatchControlPoints;
+} VkPhysicalDeviceExtendedDynamicState2FeaturesEXT;
-typedef struct VkImageCompressionControlEXT {
- VkStructureType sType;
- const void* pNext;
- VkImageCompressionFlagsEXT flags;
- uint32_t compressionControlPlaneCount;
- VkImageCompressionFixedRateFlagsEXT* pFixedRateFlags;
-} VkImageCompressionControlEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdSetPatchControlPointsEXT)(VkCommandBuffer commandBuffer, uint32_t patchControlPoints);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRasterizerDiscardEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 rasterizerDiscardEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBiasEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthBiasEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetLogicOpEXT)(VkCommandBuffer commandBuffer, VkLogicOp logicOp);
+typedef void (VKAPI_PTR *PFN_vkCmdSetPrimitiveRestartEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 primitiveRestartEnable);
-typedef struct VkImageCompressionPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- VkImageCompressionFlagsEXT imageCompressionFlags;
- VkImageCompressionFixedRateFlagsEXT imageCompressionFixedRateFlags;
-} VkImageCompressionPropertiesEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetPatchControlPointsEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t patchControlPoints);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRasterizerDiscardEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 rasterizerDiscardEnable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBiasEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 depthBiasEnable);
-// VK_EXT_attachment_feedback_loop_layout is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_attachment_feedback_loop_layout 1
-#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_SPEC_VERSION 2
-#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_EXTENSION_NAME "VK_EXT_attachment_feedback_loop_layout"
-typedef struct VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 attachmentFeedbackLoopLayout;
-} VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLogicOpEXT(
+ VkCommandBuffer commandBuffer,
+ VkLogicOp logicOp);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetPrimitiveRestartEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 primitiveRestartEnable);
+#endif
-// VK_EXT_4444_formats is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_4444_formats 1
-#define VK_EXT_4444_FORMATS_SPEC_VERSION 1
-#define VK_EXT_4444_FORMATS_EXTENSION_NAME "VK_EXT_4444_formats"
-typedef struct VkPhysicalDevice4444FormatsFeaturesEXT {
+// VK_EXT_color_write_enable is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_color_write_enable 1
+#define VK_EXT_COLOR_WRITE_ENABLE_SPEC_VERSION 1
+#define VK_EXT_COLOR_WRITE_ENABLE_EXTENSION_NAME "VK_EXT_color_write_enable"
+typedef struct VkPhysicalDeviceColorWriteEnableFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 formatA4R4G4B4;
- VkBool32 formatA4B4G4R4;
-} VkPhysicalDevice4444FormatsFeaturesEXT;
-
+ VkBool32 colorWriteEnable;
+} VkPhysicalDeviceColorWriteEnableFeaturesEXT;
+typedef struct VkPipelineColorWriteCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t attachmentCount;
+ const VkBool32* pColorWriteEnables;
+} VkPipelineColorWriteCreateInfoEXT;
-// VK_EXT_device_fault is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_device_fault 1
-#define VK_EXT_DEVICE_FAULT_SPEC_VERSION 2
-#define VK_EXT_DEVICE_FAULT_EXTENSION_NAME "VK_EXT_device_fault"
+typedef void (VKAPI_PTR *PFN_vkCmdSetColorWriteEnableEXT)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkBool32* pColorWriteEnables);
-typedef enum VkDeviceFaultAddressTypeEXT {
- VK_DEVICE_FAULT_ADDRESS_TYPE_NONE_EXT = 0,
- VK_DEVICE_FAULT_ADDRESS_TYPE_READ_INVALID_EXT = 1,
- VK_DEVICE_FAULT_ADDRESS_TYPE_WRITE_INVALID_EXT = 2,
- VK_DEVICE_FAULT_ADDRESS_TYPE_EXECUTE_INVALID_EXT = 3,
- VK_DEVICE_FAULT_ADDRESS_TYPE_INSTRUCTION_POINTER_UNKNOWN_EXT = 4,
- VK_DEVICE_FAULT_ADDRESS_TYPE_INSTRUCTION_POINTER_INVALID_EXT = 5,
- VK_DEVICE_FAULT_ADDRESS_TYPE_INSTRUCTION_POINTER_FAULT_EXT = 6,
- VK_DEVICE_FAULT_ADDRESS_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkDeviceFaultAddressTypeEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetColorWriteEnableEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t attachmentCount,
+ const VkBool32* pColorWriteEnables);
+#endif
-typedef enum VkDeviceFaultVendorBinaryHeaderVersionEXT {
- VK_DEVICE_FAULT_VENDOR_BINARY_HEADER_VERSION_ONE_EXT = 1,
- VK_DEVICE_FAULT_VENDOR_BINARY_HEADER_VERSION_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkDeviceFaultVendorBinaryHeaderVersionEXT;
-typedef struct VkPhysicalDeviceFaultFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 deviceFault;
- VkBool32 deviceFaultVendorBinary;
-} VkPhysicalDeviceFaultFeaturesEXT;
-typedef struct VkDeviceFaultCountsEXT {
+// VK_EXT_primitives_generated_query is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_primitives_generated_query 1
+#define VK_EXT_PRIMITIVES_GENERATED_QUERY_SPEC_VERSION 1
+#define VK_EXT_PRIMITIVES_GENERATED_QUERY_EXTENSION_NAME "VK_EXT_primitives_generated_query"
+typedef struct VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT {
VkStructureType sType;
void* pNext;
- uint32_t addressInfoCount;
- uint32_t vendorInfoCount;
- VkDeviceSize vendorBinarySize;
-} VkDeviceFaultCountsEXT;
-
-typedef struct VkDeviceFaultAddressInfoEXT {
- VkDeviceFaultAddressTypeEXT addressType;
- VkDeviceAddress reportedAddress;
- VkDeviceSize addressPrecision;
-} VkDeviceFaultAddressInfoEXT;
+ VkBool32 primitivesGeneratedQuery;
+ VkBool32 primitivesGeneratedQueryWithRasterizerDiscard;
+ VkBool32 primitivesGeneratedQueryWithNonZeroStreams;
+} VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT;
-typedef struct VkDeviceFaultVendorInfoEXT {
- char description[VK_MAX_DESCRIPTION_SIZE];
- uint64_t vendorFaultCode;
- uint64_t vendorFaultData;
-} VkDeviceFaultVendorInfoEXT;
-typedef struct VkDeviceFaultInfoEXT {
- VkStructureType sType;
- void* pNext;
- char description[VK_MAX_DESCRIPTION_SIZE];
- VkDeviceFaultAddressInfoEXT* pAddressInfos;
- VkDeviceFaultVendorInfoEXT* pVendorInfos;
- void* pVendorBinaryData;
-} VkDeviceFaultInfoEXT;
-typedef struct VkDeviceFaultVendorBinaryHeaderVersionOneEXT {
- uint32_t headerSize;
- VkDeviceFaultVendorBinaryHeaderVersionEXT headerVersion;
- uint32_t vendorID;
- uint32_t deviceID;
- uint32_t driverVersion;
- uint8_t pipelineCacheUUID[VK_UUID_SIZE];
- uint32_t applicationNameOffset;
- uint32_t applicationVersion;
- uint32_t engineNameOffset;
- uint32_t engineVersion;
- uint32_t apiVersion;
-} VkDeviceFaultVendorBinaryHeaderVersionOneEXT;
+// VK_EXT_global_priority_query is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_global_priority_query 1
+#define VK_EXT_GLOBAL_PRIORITY_QUERY_SPEC_VERSION 1
+#define VK_EXT_GLOBAL_PRIORITY_QUERY_EXTENSION_NAME "VK_EXT_global_priority_query"
+#define VK_MAX_GLOBAL_PRIORITY_SIZE_EXT VK_MAX_GLOBAL_PRIORITY_SIZE
+typedef VkPhysicalDeviceGlobalPriorityQueryFeatures VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT;
-typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceFaultInfoEXT)(VkDevice device, VkDeviceFaultCountsEXT* pFaultCounts, VkDeviceFaultInfoEXT* pFaultInfo);
+typedef VkQueueFamilyGlobalPriorityProperties VkQueueFamilyGlobalPriorityPropertiesEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceFaultInfoEXT(
- VkDevice device,
- VkDeviceFaultCountsEXT* pFaultCounts,
- VkDeviceFaultInfoEXT* pFaultInfo);
-#endif
-// VK_ARM_rasterization_order_attachment_access is a preprocessor guard. Do not pass it to API calls.
-#define VK_ARM_rasterization_order_attachment_access 1
-#define VK_ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION 1
-#define VK_ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_EXTENSION_NAME "VK_ARM_rasterization_order_attachment_access"
-typedef struct VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT {
+// VK_EXT_image_view_min_lod is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_image_view_min_lod 1
+#define VK_EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION 1
+#define VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME "VK_EXT_image_view_min_lod"
+typedef struct VkPhysicalDeviceImageViewMinLodFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 rasterizationOrderColorAttachmentAccess;
- VkBool32 rasterizationOrderDepthAttachmentAccess;
- VkBool32 rasterizationOrderStencilAttachmentAccess;
-} VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT;
+ VkBool32 minLod;
+} VkPhysicalDeviceImageViewMinLodFeaturesEXT;
-typedef VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesEXT VkPhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARM;
+typedef struct VkImageViewMinLodCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ float minLod;
+} VkImageViewMinLodCreateInfoEXT;
-// VK_EXT_rgba10x6_formats is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_rgba10x6_formats 1
-#define VK_EXT_RGBA10X6_FORMATS_SPEC_VERSION 1
-#define VK_EXT_RGBA10X6_FORMATS_EXTENSION_NAME "VK_EXT_rgba10x6_formats"
-typedef struct VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT {
+// VK_EXT_multi_draw is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_multi_draw 1
+#define VK_EXT_MULTI_DRAW_SPEC_VERSION 1
+#define VK_EXT_MULTI_DRAW_EXTENSION_NAME "VK_EXT_multi_draw"
+typedef struct VkPhysicalDeviceMultiDrawFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 formatRgba10x6WithoutYCbCrSampler;
-} VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT;
-
-
+ VkBool32 multiDraw;
+} VkPhysicalDeviceMultiDrawFeaturesEXT;
-// VK_VALVE_mutable_descriptor_type is a preprocessor guard. Do not pass it to API calls.
-#define VK_VALVE_mutable_descriptor_type 1
-#define VK_VALVE_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION 1
-#define VK_VALVE_MUTABLE_DESCRIPTOR_TYPE_EXTENSION_NAME "VK_VALVE_mutable_descriptor_type"
-typedef struct VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT {
+typedef struct VkPhysicalDeviceMultiDrawPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 mutableDescriptorType;
-} VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT;
+ uint32_t maxMultiDrawCount;
+} VkPhysicalDeviceMultiDrawPropertiesEXT;
-typedef VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE;
+typedef struct VkMultiDrawInfoEXT {
+ uint32_t firstVertex;
+ uint32_t vertexCount;
+} VkMultiDrawInfoEXT;
-typedef struct VkMutableDescriptorTypeListEXT {
- uint32_t descriptorTypeCount;
- const VkDescriptorType* pDescriptorTypes;
-} VkMutableDescriptorTypeListEXT;
+typedef struct VkMultiDrawIndexedInfoEXT {
+ uint32_t firstIndex;
+ uint32_t indexCount;
+ int32_t vertexOffset;
+} VkMultiDrawIndexedInfoEXT;
-typedef VkMutableDescriptorTypeListEXT VkMutableDescriptorTypeListVALVE;
+typedef void (VKAPI_PTR *PFN_vkCmdDrawMultiEXT)(VkCommandBuffer commandBuffer, uint32_t drawCount, const VkMultiDrawInfoEXT* pVertexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawMultiIndexedEXT)(VkCommandBuffer commandBuffer, uint32_t drawCount, const VkMultiDrawIndexedInfoEXT* pIndexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride, const int32_t* pVertexOffset);
-typedef struct VkMutableDescriptorTypeCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t mutableDescriptorTypeListCount;
- const VkMutableDescriptorTypeListEXT* pMutableDescriptorTypeLists;
-} VkMutableDescriptorTypeCreateInfoEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawMultiEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t drawCount,
+ const VkMultiDrawInfoEXT* pVertexInfo,
+ uint32_t instanceCount,
+ uint32_t firstInstance,
+ uint32_t stride);
-typedef VkMutableDescriptorTypeCreateInfoEXT VkMutableDescriptorTypeCreateInfoVALVE;
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawMultiIndexedEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t drawCount,
+ const VkMultiDrawIndexedInfoEXT* pIndexInfo,
+ uint32_t instanceCount,
+ uint32_t firstInstance,
+ uint32_t stride,
+ const int32_t* pVertexOffset);
+#endif
+
+
+// VK_EXT_image_2d_view_of_3d is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_image_2d_view_of_3d 1
+#define VK_EXT_IMAGE_2D_VIEW_OF_3D_SPEC_VERSION 1
+#define VK_EXT_IMAGE_2D_VIEW_OF_3D_EXTENSION_NAME "VK_EXT_image_2d_view_of_3d"
+typedef struct VkPhysicalDeviceImage2DViewOf3DFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 image2DViewOf3D;
+ VkBool32 sampler2DViewOf3D;
+} VkPhysicalDeviceImage2DViewOf3DFeaturesEXT;
-// VK_EXT_vertex_input_dynamic_state is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_vertex_input_dynamic_state 1
-#define VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_SPEC_VERSION 2
-#define VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME "VK_EXT_vertex_input_dynamic_state"
-typedef struct VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT {
+// VK_EXT_shader_tile_image is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_tile_image 1
+#define VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION 1
+#define VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME "VK_EXT_shader_tile_image"
+typedef struct VkPhysicalDeviceShaderTileImageFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 vertexInputDynamicState;
-} VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT;
-
-typedef struct VkVertexInputBindingDescription2EXT {
- VkStructureType sType;
- void* pNext;
- uint32_t binding;
- uint32_t stride;
- VkVertexInputRate inputRate;
- uint32_t divisor;
-} VkVertexInputBindingDescription2EXT;
+ VkBool32 shaderTileImageColorReadAccess;
+ VkBool32 shaderTileImageDepthReadAccess;
+ VkBool32 shaderTileImageStencilReadAccess;
+} VkPhysicalDeviceShaderTileImageFeaturesEXT;
-typedef struct VkVertexInputAttributeDescription2EXT {
+typedef struct VkPhysicalDeviceShaderTileImagePropertiesEXT {
VkStructureType sType;
void* pNext;
- uint32_t location;
- uint32_t binding;
- VkFormat format;
- uint32_t offset;
-} VkVertexInputAttributeDescription2EXT;
+ VkBool32 shaderTileImageCoherentReadAccelerated;
+ VkBool32 shaderTileImageReadSampleFromPixelRateInvocation;
+ VkBool32 shaderTileImageReadFromHelperInvocation;
+} VkPhysicalDeviceShaderTileImagePropertiesEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdSetVertexInputEXT)(VkCommandBuffer commandBuffer, uint32_t vertexBindingDescriptionCount, const VkVertexInputBindingDescription2EXT* pVertexBindingDescriptions, uint32_t vertexAttributeDescriptionCount, const VkVertexInputAttributeDescription2EXT* pVertexAttributeDescriptions);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetVertexInputEXT(
- VkCommandBuffer commandBuffer,
- uint32_t vertexBindingDescriptionCount,
- const VkVertexInputBindingDescription2EXT* pVertexBindingDescriptions,
- uint32_t vertexAttributeDescriptionCount,
- const VkVertexInputAttributeDescription2EXT* pVertexAttributeDescriptions);
+
+// VK_EXT_opacity_micromap is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_opacity_micromap 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkMicromapEXT)
+#define VK_EXT_OPACITY_MICROMAP_SPEC_VERSION 2
+#define VK_EXT_OPACITY_MICROMAP_EXTENSION_NAME "VK_EXT_opacity_micromap"
+
+typedef enum VkMicromapTypeEXT {
+ VK_MICROMAP_TYPE_OPACITY_MICROMAP_EXT = 0,
+#ifdef VK_ENABLE_BETA_EXTENSIONS
+ VK_MICROMAP_TYPE_DISPLACEMENT_MICROMAP_NV = 1000397000,
#endif
+ VK_MICROMAP_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkMicromapTypeEXT;
+typedef enum VkBuildMicromapModeEXT {
+ VK_BUILD_MICROMAP_MODE_BUILD_EXT = 0,
+ VK_BUILD_MICROMAP_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkBuildMicromapModeEXT;
-// VK_EXT_physical_device_drm is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_physical_device_drm 1
-#define VK_EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION 1
-#define VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME "VK_EXT_physical_device_drm"
-typedef struct VkPhysicalDeviceDrmPropertiesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 hasPrimary;
- VkBool32 hasRender;
- int64_t primaryMajor;
- int64_t primaryMinor;
- int64_t renderMajor;
- int64_t renderMinor;
-} VkPhysicalDeviceDrmPropertiesEXT;
+typedef enum VkCopyMicromapModeEXT {
+ VK_COPY_MICROMAP_MODE_CLONE_EXT = 0,
+ VK_COPY_MICROMAP_MODE_SERIALIZE_EXT = 1,
+ VK_COPY_MICROMAP_MODE_DESERIALIZE_EXT = 2,
+ VK_COPY_MICROMAP_MODE_COMPACT_EXT = 3,
+ VK_COPY_MICROMAP_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkCopyMicromapModeEXT;
+typedef enum VkOpacityMicromapFormatEXT {
+ VK_OPACITY_MICROMAP_FORMAT_2_STATE_EXT = 1,
+ VK_OPACITY_MICROMAP_FORMAT_4_STATE_EXT = 2,
+ VK_OPACITY_MICROMAP_FORMAT_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkOpacityMicromapFormatEXT;
+typedef enum VkOpacityMicromapSpecialIndexEXT {
+ VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT_EXT = -1,
+ VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE_EXT = -2,
+ VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT_EXT = -3,
+ VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE_EXT = -4,
+ VK_OPACITY_MICROMAP_SPECIAL_INDEX_CLUSTER_GEOMETRY_DISABLE_OPACITY_MICROMAP_NV = -5,
+ VK_OPACITY_MICROMAP_SPECIAL_INDEX_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkOpacityMicromapSpecialIndexEXT;
-// VK_EXT_device_address_binding_report is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_device_address_binding_report 1
-#define VK_EXT_DEVICE_ADDRESS_BINDING_REPORT_SPEC_VERSION 1
-#define VK_EXT_DEVICE_ADDRESS_BINDING_REPORT_EXTENSION_NAME "VK_EXT_device_address_binding_report"
+typedef enum VkAccelerationStructureCompatibilityKHR {
+ VK_ACCELERATION_STRUCTURE_COMPATIBILITY_COMPATIBLE_KHR = 0,
+ VK_ACCELERATION_STRUCTURE_COMPATIBILITY_INCOMPATIBLE_KHR = 1,
+ VK_ACCELERATION_STRUCTURE_COMPATIBILITY_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkAccelerationStructureCompatibilityKHR;
-typedef enum VkDeviceAddressBindingTypeEXT {
- VK_DEVICE_ADDRESS_BINDING_TYPE_BIND_EXT = 0,
- VK_DEVICE_ADDRESS_BINDING_TYPE_UNBIND_EXT = 1,
- VK_DEVICE_ADDRESS_BINDING_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkDeviceAddressBindingTypeEXT;
+typedef enum VkAccelerationStructureBuildTypeKHR {
+ VK_ACCELERATION_STRUCTURE_BUILD_TYPE_HOST_KHR = 0,
+ VK_ACCELERATION_STRUCTURE_BUILD_TYPE_DEVICE_KHR = 1,
+ VK_ACCELERATION_STRUCTURE_BUILD_TYPE_HOST_OR_DEVICE_KHR = 2,
+ VK_ACCELERATION_STRUCTURE_BUILD_TYPE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkAccelerationStructureBuildTypeKHR;
-typedef enum VkDeviceAddressBindingFlagBitsEXT {
- VK_DEVICE_ADDRESS_BINDING_INTERNAL_OBJECT_BIT_EXT = 0x00000001,
- VK_DEVICE_ADDRESS_BINDING_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkDeviceAddressBindingFlagBitsEXT;
-typedef VkFlags VkDeviceAddressBindingFlagsEXT;
-typedef struct VkPhysicalDeviceAddressBindingReportFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 reportAddressBinding;
-} VkPhysicalDeviceAddressBindingReportFeaturesEXT;
+typedef enum VkBuildMicromapFlagBitsEXT {
+ VK_BUILD_MICROMAP_PREFER_FAST_TRACE_BIT_EXT = 0x00000001,
+ VK_BUILD_MICROMAP_PREFER_FAST_BUILD_BIT_EXT = 0x00000002,
+ VK_BUILD_MICROMAP_ALLOW_COMPACTION_BIT_EXT = 0x00000004,
+ VK_BUILD_MICROMAP_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkBuildMicromapFlagBitsEXT;
+typedef VkFlags VkBuildMicromapFlagsEXT;
-typedef struct VkDeviceAddressBindingCallbackDataEXT {
- VkStructureType sType;
- void* pNext;
- VkDeviceAddressBindingFlagsEXT flags;
- VkDeviceAddress baseAddress;
- VkDeviceSize size;
- VkDeviceAddressBindingTypeEXT bindingType;
-} VkDeviceAddressBindingCallbackDataEXT;
+typedef enum VkMicromapCreateFlagBitsEXT {
+ VK_MICROMAP_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_EXT = 0x00000001,
+ VK_MICROMAP_CREATE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkMicromapCreateFlagBitsEXT;
+typedef VkFlags VkMicromapCreateFlagsEXT;
+typedef struct VkMicromapUsageEXT {
+ uint32_t count;
+ uint32_t subdivisionLevel;
+ uint32_t format;
+} VkMicromapUsageEXT;
+typedef union VkDeviceOrHostAddressKHR {
+ VkDeviceAddress deviceAddress;
+ void* hostAddress;
+} VkDeviceOrHostAddressKHR;
+typedef struct VkMicromapBuildInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkMicromapTypeEXT type;
+ VkBuildMicromapFlagsEXT flags;
+ VkBuildMicromapModeEXT mode;
+ VkMicromapEXT dstMicromap;
+ uint32_t usageCountsCount;
+ const VkMicromapUsageEXT* pUsageCounts;
+ const VkMicromapUsageEXT* const* ppUsageCounts;
+ VkDeviceOrHostAddressConstKHR data;
+ VkDeviceOrHostAddressKHR scratchData;
+ VkDeviceOrHostAddressConstKHR triangleArray;
+ VkDeviceSize triangleArrayStride;
+} VkMicromapBuildInfoEXT;
-// VK_EXT_depth_clip_control is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_depth_clip_control 1
-#define VK_EXT_DEPTH_CLIP_CONTROL_SPEC_VERSION 1
-#define VK_EXT_DEPTH_CLIP_CONTROL_EXTENSION_NAME "VK_EXT_depth_clip_control"
-typedef struct VkPhysicalDeviceDepthClipControlFeaturesEXT {
+typedef struct VkMicromapCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkMicromapCreateFlagsEXT createFlags;
+ VkBuffer buffer;
+ VkDeviceSize offset;
+ VkDeviceSize size;
+ VkMicromapTypeEXT type;
+ VkDeviceAddress deviceAddress;
+} VkMicromapCreateInfoEXT;
+
+typedef struct VkPhysicalDeviceOpacityMicromapFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 depthClipControl;
-} VkPhysicalDeviceDepthClipControlFeaturesEXT;
+ VkBool32 micromap;
+ VkBool32 micromapCaptureReplay;
+ VkBool32 micromapHostCommands;
+} VkPhysicalDeviceOpacityMicromapFeaturesEXT;
-typedef struct VkPipelineViewportDepthClipControlCreateInfoEXT {
+typedef struct VkPhysicalDeviceOpacityMicromapPropertiesEXT {
VkStructureType sType;
- const void* pNext;
- VkBool32 negativeOneToOne;
-} VkPipelineViewportDepthClipControlCreateInfoEXT;
-
-
+ void* pNext;
+ uint32_t maxOpacity2StateSubdivisionLevel;
+ uint32_t maxOpacity4StateSubdivisionLevel;
+} VkPhysicalDeviceOpacityMicromapPropertiesEXT;
-// VK_EXT_primitive_topology_list_restart is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_primitive_topology_list_restart 1
-#define VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_SPEC_VERSION 1
-#define VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_EXTENSION_NAME "VK_EXT_primitive_topology_list_restart"
-typedef struct VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT {
+typedef struct VkMicromapVersionInfoEXT {
VkStructureType sType;
- void* pNext;
- VkBool32 primitiveTopologyListRestart;
- VkBool32 primitiveTopologyPatchListRestart;
-} VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT;
+ const void* pNext;
+ const uint8_t* pVersionData;
+} VkMicromapVersionInfoEXT;
+typedef struct VkCopyMicromapToMemoryInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkMicromapEXT src;
+ VkDeviceOrHostAddressKHR dst;
+ VkCopyMicromapModeEXT mode;
+} VkCopyMicromapToMemoryInfoEXT;
+typedef struct VkCopyMemoryToMicromapInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceOrHostAddressConstKHR src;
+ VkMicromapEXT dst;
+ VkCopyMicromapModeEXT mode;
+} VkCopyMemoryToMicromapInfoEXT;
-// VK_HUAWEI_subpass_shading is a preprocessor guard. Do not pass it to API calls.
-#define VK_HUAWEI_subpass_shading 1
-#define VK_HUAWEI_SUBPASS_SHADING_SPEC_VERSION 3
-#define VK_HUAWEI_SUBPASS_SHADING_EXTENSION_NAME "VK_HUAWEI_subpass_shading"
-typedef struct VkSubpassShadingPipelineCreateInfoHUAWEI {
- VkStructureType sType;
- void* pNext;
- VkRenderPass renderPass;
- uint32_t subpass;
-} VkSubpassShadingPipelineCreateInfoHUAWEI;
+typedef struct VkCopyMicromapInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkMicromapEXT src;
+ VkMicromapEXT dst;
+ VkCopyMicromapModeEXT mode;
+} VkCopyMicromapInfoEXT;
-typedef struct VkPhysicalDeviceSubpassShadingFeaturesHUAWEI {
+typedef struct VkMicromapBuildSizesInfoEXT {
VkStructureType sType;
- void* pNext;
- VkBool32 subpassShading;
-} VkPhysicalDeviceSubpassShadingFeaturesHUAWEI;
+ const void* pNext;
+ VkDeviceSize micromapSize;
+ VkDeviceSize buildScratchSize;
+ VkBool32 discardable;
+} VkMicromapBuildSizesInfoEXT;
+
+typedef struct VkAccelerationStructureTrianglesOpacityMicromapEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkIndexType indexType;
+ VkDeviceOrHostAddressConstKHR indexBuffer;
+ VkDeviceSize indexStride;
+ uint32_t baseTriangle;
+ uint32_t usageCountsCount;
+ const VkMicromapUsageEXT* pUsageCounts;
+ const VkMicromapUsageEXT* const* ppUsageCounts;
+ VkMicromapEXT micromap;
+} VkAccelerationStructureTrianglesOpacityMicromapEXT;
-typedef struct VkPhysicalDeviceSubpassShadingPropertiesHUAWEI {
- VkStructureType sType;
- void* pNext;
- uint32_t maxSubpassShadingWorkgroupSizeAspectRatio;
-} VkPhysicalDeviceSubpassShadingPropertiesHUAWEI;
+typedef struct VkMicromapTriangleEXT {
+ uint32_t dataOffset;
+ uint16_t subdivisionLevel;
+ uint16_t format;
+} VkMicromapTriangleEXT;
-typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI)(VkDevice device, VkRenderPass renderpass, VkExtent2D* pMaxWorkgroupSize);
-typedef void (VKAPI_PTR *PFN_vkCmdSubpassShadingHUAWEI)(VkCommandBuffer commandBuffer);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateMicromapEXT)(VkDevice device, const VkMicromapCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkMicromapEXT* pMicromap);
+typedef void (VKAPI_PTR *PFN_vkDestroyMicromapEXT)(VkDevice device, VkMicromapEXT micromap, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkCmdBuildMicromapsEXT)(VkCommandBuffer commandBuffer, uint32_t infoCount, const VkMicromapBuildInfoEXT* pInfos);
+typedef VkResult (VKAPI_PTR *PFN_vkBuildMicromapsEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, uint32_t infoCount, const VkMicromapBuildInfoEXT* pInfos);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyMicromapEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMicromapInfoEXT* pInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyMicromapToMemoryEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMicromapToMemoryInfoEXT* pInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCopyMemoryToMicromapEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMemoryToMicromapInfoEXT* pInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkWriteMicromapsPropertiesEXT)(VkDevice device, uint32_t micromapCount, const VkMicromapEXT* pMicromaps, VkQueryType queryType, size_t dataSize, void* pData, size_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyMicromapEXT)(VkCommandBuffer commandBuffer, const VkCopyMicromapInfoEXT* pInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyMicromapToMemoryEXT)(VkCommandBuffer commandBuffer, const VkCopyMicromapToMemoryInfoEXT* pInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyMemoryToMicromapEXT)(VkCommandBuffer commandBuffer, const VkCopyMemoryToMicromapInfoEXT* pInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdWriteMicromapsPropertiesEXT)(VkCommandBuffer commandBuffer, uint32_t micromapCount, const VkMicromapEXT* pMicromaps, VkQueryType queryType, VkQueryPool queryPool, uint32_t firstQuery);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceMicromapCompatibilityEXT)(VkDevice device, const VkMicromapVersionInfoEXT* pVersionInfo, VkAccelerationStructureCompatibilityKHR* pCompatibility);
+typedef void (VKAPI_PTR *PFN_vkGetMicromapBuildSizesEXT)(VkDevice device, VkAccelerationStructureBuildTypeKHR buildType, const VkMicromapBuildInfoEXT* pBuildInfo, VkMicromapBuildSizesInfoEXT* pSizeInfo);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateMicromapEXT(
VkDevice device,
- VkRenderPass renderpass,
- VkExtent2D* pMaxWorkgroupSize);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdSubpassShadingHUAWEI(
- VkCommandBuffer commandBuffer);
-#endif
-
-
-// VK_HUAWEI_invocation_mask is a preprocessor guard. Do not pass it to API calls.
-#define VK_HUAWEI_invocation_mask 1
-#define VK_HUAWEI_INVOCATION_MASK_SPEC_VERSION 1
-#define VK_HUAWEI_INVOCATION_MASK_EXTENSION_NAME "VK_HUAWEI_invocation_mask"
-typedef struct VkPhysicalDeviceInvocationMaskFeaturesHUAWEI {
- VkStructureType sType;
- void* pNext;
- VkBool32 invocationMask;
-} VkPhysicalDeviceInvocationMaskFeaturesHUAWEI;
+ const VkMicromapCreateInfoEXT* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkMicromapEXT* pMicromap);
-typedef void (VKAPI_PTR *PFN_vkCmdBindInvocationMaskHUAWEI)(VkCommandBuffer commandBuffer, VkImageView imageView, VkImageLayout imageLayout);
+VKAPI_ATTR void VKAPI_CALL vkDestroyMicromapEXT(
+ VkDevice device,
+ VkMicromapEXT micromap,
+ const VkAllocationCallbacks* pAllocator);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdBindInvocationMaskHUAWEI(
+VKAPI_ATTR void VKAPI_CALL vkCmdBuildMicromapsEXT(
VkCommandBuffer commandBuffer,
- VkImageView imageView,
- VkImageLayout imageLayout);
-#endif
+ uint32_t infoCount,
+ const VkMicromapBuildInfoEXT* pInfos);
+VKAPI_ATTR VkResult VKAPI_CALL vkBuildMicromapsEXT(
+ VkDevice device,
+ VkDeferredOperationKHR deferredOperation,
+ uint32_t infoCount,
+ const VkMicromapBuildInfoEXT* pInfos);
-// VK_NV_external_memory_rdma is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_external_memory_rdma 1
-typedef void* VkRemoteAddressNV;
-#define VK_NV_EXTERNAL_MEMORY_RDMA_SPEC_VERSION 1
-#define VK_NV_EXTERNAL_MEMORY_RDMA_EXTENSION_NAME "VK_NV_external_memory_rdma"
-typedef struct VkMemoryGetRemoteAddressInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkDeviceMemory memory;
- VkExternalMemoryHandleTypeFlagBits handleType;
-} VkMemoryGetRemoteAddressInfoNV;
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyMicromapEXT(
+ VkDevice device,
+ VkDeferredOperationKHR deferredOperation,
+ const VkCopyMicromapInfoEXT* pInfo);
-typedef struct VkPhysicalDeviceExternalMemoryRDMAFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 externalMemoryRDMA;
-} VkPhysicalDeviceExternalMemoryRDMAFeaturesNV;
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyMicromapToMemoryEXT(
+ VkDevice device,
+ VkDeferredOperationKHR deferredOperation,
+ const VkCopyMicromapToMemoryInfoEXT* pInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryRemoteAddressNV)(VkDevice device, const VkMemoryGetRemoteAddressInfoNV* pMemoryGetRemoteAddressInfo, VkRemoteAddressNV* pAddress);
+VKAPI_ATTR VkResult VKAPI_CALL vkCopyMemoryToMicromapEXT(
+ VkDevice device,
+ VkDeferredOperationKHR deferredOperation,
+ const VkCopyMemoryToMicromapInfoEXT* pInfo);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryRemoteAddressNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkWriteMicromapsPropertiesEXT(
VkDevice device,
- const VkMemoryGetRemoteAddressInfoNV* pMemoryGetRemoteAddressInfo,
- VkRemoteAddressNV* pAddress);
-#endif
+ uint32_t micromapCount,
+ const VkMicromapEXT* pMicromaps,
+ VkQueryType queryType,
+ size_t dataSize,
+ void* pData,
+ size_t stride);
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyMicromapEXT(
+ VkCommandBuffer commandBuffer,
+ const VkCopyMicromapInfoEXT* pInfo);
-// VK_EXT_pipeline_properties is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pipeline_properties 1
-#define VK_EXT_PIPELINE_PROPERTIES_SPEC_VERSION 1
-#define VK_EXT_PIPELINE_PROPERTIES_EXTENSION_NAME "VK_EXT_pipeline_properties"
-typedef VkPipelineInfoKHR VkPipelineInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyMicromapToMemoryEXT(
+ VkCommandBuffer commandBuffer,
+ const VkCopyMicromapToMemoryInfoEXT* pInfo);
-typedef struct VkPipelinePropertiesIdentifierEXT {
- VkStructureType sType;
- void* pNext;
- uint8_t pipelineIdentifier[VK_UUID_SIZE];
-} VkPipelinePropertiesIdentifierEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyMemoryToMicromapEXT(
+ VkCommandBuffer commandBuffer,
+ const VkCopyMemoryToMicromapInfoEXT* pInfo);
-typedef struct VkPhysicalDevicePipelinePropertiesFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 pipelinePropertiesIdentifier;
-} VkPhysicalDevicePipelinePropertiesFeaturesEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdWriteMicromapsPropertiesEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t micromapCount,
+ const VkMicromapEXT* pMicromaps,
+ VkQueryType queryType,
+ VkQueryPool queryPool,
+ uint32_t firstQuery);
-typedef VkResult (VKAPI_PTR *PFN_vkGetPipelinePropertiesEXT)(VkDevice device, const VkPipelineInfoEXT* pPipelineInfo, VkBaseOutStructure* pPipelineProperties);
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceMicromapCompatibilityEXT(
+ VkDevice device,
+ const VkMicromapVersionInfoEXT* pVersionInfo,
+ VkAccelerationStructureCompatibilityKHR* pCompatibility);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelinePropertiesEXT(
+VKAPI_ATTR void VKAPI_CALL vkGetMicromapBuildSizesEXT(
VkDevice device,
- const VkPipelineInfoEXT* pPipelineInfo,
- VkBaseOutStructure* pPipelineProperties);
+ VkAccelerationStructureBuildTypeKHR buildType,
+ const VkMicromapBuildInfoEXT* pBuildInfo,
+ VkMicromapBuildSizesInfoEXT* pSizeInfo);
#endif
-// VK_EXT_frame_boundary is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_frame_boundary 1
-#define VK_EXT_FRAME_BOUNDARY_SPEC_VERSION 1
-#define VK_EXT_FRAME_BOUNDARY_EXTENSION_NAME "VK_EXT_frame_boundary"
-
-typedef enum VkFrameBoundaryFlagBitsEXT {
- VK_FRAME_BOUNDARY_FRAME_END_BIT_EXT = 0x00000001,
- VK_FRAME_BOUNDARY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkFrameBoundaryFlagBitsEXT;
-typedef VkFlags VkFrameBoundaryFlagsEXT;
-typedef struct VkPhysicalDeviceFrameBoundaryFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 frameBoundary;
-} VkPhysicalDeviceFrameBoundaryFeaturesEXT;
-
-typedef struct VkFrameBoundaryEXT {
- VkStructureType sType;
- const void* pNext;
- VkFrameBoundaryFlagsEXT flags;
- uint64_t frameID;
- uint32_t imageCount;
- const VkImage* pImages;
- uint32_t bufferCount;
- const VkBuffer* pBuffers;
- uint64_t tagName;
- size_t tagSize;
- const void* pTag;
-} VkFrameBoundaryEXT;
-
+// VK_EXT_load_store_op_none is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_load_store_op_none 1
+#define VK_EXT_LOAD_STORE_OP_NONE_SPEC_VERSION 1
+#define VK_EXT_LOAD_STORE_OP_NONE_EXTENSION_NAME "VK_EXT_load_store_op_none"
-// VK_EXT_multisampled_render_to_single_sampled is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_multisampled_render_to_single_sampled 1
-#define VK_EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_SPEC_VERSION 1
-#define VK_EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_EXTENSION_NAME "VK_EXT_multisampled_render_to_single_sampled"
-typedef struct VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT {
+// VK_HUAWEI_cluster_culling_shader is a preprocessor guard. Do not pass it to API calls.
+#define VK_HUAWEI_cluster_culling_shader 1
+#define VK_HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION 3
+#define VK_HUAWEI_CLUSTER_CULLING_SHADER_EXTENSION_NAME "VK_HUAWEI_cluster_culling_shader"
+typedef struct VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI {
VkStructureType sType;
void* pNext;
- VkBool32 multisampledRenderToSingleSampled;
-} VkPhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT;
+ VkBool32 clustercullingShader;
+ VkBool32 multiviewClusterCullingShader;
+} VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI;
-typedef struct VkSubpassResolvePerformanceQueryEXT {
+typedef struct VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI {
VkStructureType sType;
void* pNext;
- VkBool32 optimal;
-} VkSubpassResolvePerformanceQueryEXT;
-
-typedef struct VkMultisampledRenderToSingleSampledInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkBool32 multisampledRenderToSingleSampledEnable;
- VkSampleCountFlagBits rasterizationSamples;
-} VkMultisampledRenderToSingleSampledInfoEXT;
-
-
+ uint32_t maxWorkGroupCount[3];
+ uint32_t maxWorkGroupSize[3];
+ uint32_t maxOutputClusterCount;
+ VkDeviceSize indirectBufferOffsetAlignment;
+} VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI;
-// VK_EXT_extended_dynamic_state2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_extended_dynamic_state2 1
-#define VK_EXT_EXTENDED_DYNAMIC_STATE_2_SPEC_VERSION 1
-#define VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME "VK_EXT_extended_dynamic_state2"
-typedef struct VkPhysicalDeviceExtendedDynamicState2FeaturesEXT {
+typedef struct VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI {
VkStructureType sType;
void* pNext;
- VkBool32 extendedDynamicState2;
- VkBool32 extendedDynamicState2LogicOp;
- VkBool32 extendedDynamicState2PatchControlPoints;
-} VkPhysicalDeviceExtendedDynamicState2FeaturesEXT;
+ VkBool32 clusterShadingRate;
+} VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI;
-typedef void (VKAPI_PTR *PFN_vkCmdSetPatchControlPointsEXT)(VkCommandBuffer commandBuffer, uint32_t patchControlPoints);
-typedef void (VKAPI_PTR *PFN_vkCmdSetRasterizerDiscardEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 rasterizerDiscardEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBiasEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthBiasEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetLogicOpEXT)(VkCommandBuffer commandBuffer, VkLogicOp logicOp);
-typedef void (VKAPI_PTR *PFN_vkCmdSetPrimitiveRestartEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 primitiveRestartEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawClusterHUAWEI)(VkCommandBuffer commandBuffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawClusterIndirectHUAWEI)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetPatchControlPointsEXT(
- VkCommandBuffer commandBuffer,
- uint32_t patchControlPoints);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdSetRasterizerDiscardEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 rasterizerDiscardEnable);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBiasEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 depthBiasEnable);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdSetLogicOpEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawClusterHUAWEI(
VkCommandBuffer commandBuffer,
- VkLogicOp logicOp);
+ uint32_t groupCountX,
+ uint32_t groupCountY,
+ uint32_t groupCountZ);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetPrimitiveRestartEnableEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawClusterIndirectHUAWEI(
VkCommandBuffer commandBuffer,
- VkBool32 primitiveRestartEnable);
+ VkBuffer buffer,
+ VkDeviceSize offset);
#endif
-// VK_EXT_color_write_enable is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_color_write_enable 1
-#define VK_EXT_COLOR_WRITE_ENABLE_SPEC_VERSION 1
-#define VK_EXT_COLOR_WRITE_ENABLE_EXTENSION_NAME "VK_EXT_color_write_enable"
-typedef struct VkPhysicalDeviceColorWriteEnableFeaturesEXT {
+// VK_EXT_border_color_swizzle is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_border_color_swizzle 1
+#define VK_EXT_BORDER_COLOR_SWIZZLE_SPEC_VERSION 1
+#define VK_EXT_BORDER_COLOR_SWIZZLE_EXTENSION_NAME "VK_EXT_border_color_swizzle"
+typedef struct VkPhysicalDeviceBorderColorSwizzleFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 colorWriteEnable;
-} VkPhysicalDeviceColorWriteEnableFeaturesEXT;
+ VkBool32 borderColorSwizzle;
+ VkBool32 borderColorSwizzleFromImage;
+} VkPhysicalDeviceBorderColorSwizzleFeaturesEXT;
-typedef struct VkPipelineColorWriteCreateInfoEXT {
+typedef struct VkSamplerBorderColorComponentMappingCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkComponentMapping components;
+ VkBool32 srgb;
+} VkSamplerBorderColorComponentMappingCreateInfoEXT;
+
+
+
+// VK_EXT_pageable_device_local_memory is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pageable_device_local_memory 1
+#define VK_EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_SPEC_VERSION 1
+#define VK_EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_EXTENSION_NAME "VK_EXT_pageable_device_local_memory"
+typedef struct VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT {
VkStructureType sType;
- const void* pNext;
- uint32_t attachmentCount;
- const VkBool32* pColorWriteEnables;
-} VkPipelineColorWriteCreateInfoEXT;
+ void* pNext;
+ VkBool32 pageableDeviceLocalMemory;
+} VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdSetColorWriteEnableEXT)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkBool32* pColorWriteEnables);
+typedef void (VKAPI_PTR *PFN_vkSetDeviceMemoryPriorityEXT)(VkDevice device, VkDeviceMemory memory, float priority);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetColorWriteEnableEXT(
- VkCommandBuffer commandBuffer,
- uint32_t attachmentCount,
- const VkBool32* pColorWriteEnables);
+VKAPI_ATTR void VKAPI_CALL vkSetDeviceMemoryPriorityEXT(
+ VkDevice device,
+ VkDeviceMemory memory,
+ float priority);
#endif
-// VK_EXT_primitives_generated_query is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_primitives_generated_query 1
-#define VK_EXT_PRIMITIVES_GENERATED_QUERY_SPEC_VERSION 1
-#define VK_EXT_PRIMITIVES_GENERATED_QUERY_EXTENSION_NAME "VK_EXT_primitives_generated_query"
-typedef struct VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT {
+// VK_ARM_shader_core_properties is a preprocessor guard. Do not pass it to API calls.
+#define VK_ARM_shader_core_properties 1
+#define VK_ARM_SHADER_CORE_PROPERTIES_SPEC_VERSION 1
+#define VK_ARM_SHADER_CORE_PROPERTIES_EXTENSION_NAME "VK_ARM_shader_core_properties"
+typedef struct VkPhysicalDeviceShaderCorePropertiesARM {
VkStructureType sType;
void* pNext;
- VkBool32 primitivesGeneratedQuery;
- VkBool32 primitivesGeneratedQueryWithRasterizerDiscard;
- VkBool32 primitivesGeneratedQueryWithNonZeroStreams;
-} VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT;
+ uint32_t pixelRate;
+ uint32_t texelRate;
+ uint32_t fmaRate;
+} VkPhysicalDeviceShaderCorePropertiesARM;
-// VK_EXT_global_priority_query is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_global_priority_query 1
-#define VK_EXT_GLOBAL_PRIORITY_QUERY_SPEC_VERSION 1
-#define VK_EXT_GLOBAL_PRIORITY_QUERY_EXTENSION_NAME "VK_EXT_global_priority_query"
-#define VK_MAX_GLOBAL_PRIORITY_SIZE_EXT VK_MAX_GLOBAL_PRIORITY_SIZE_KHR
-typedef VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT;
+// VK_ARM_scheduling_controls is a preprocessor guard. Do not pass it to API calls.
+#define VK_ARM_scheduling_controls 1
+#define VK_ARM_SCHEDULING_CONTROLS_SPEC_VERSION 1
+#define VK_ARM_SCHEDULING_CONTROLS_EXTENSION_NAME "VK_ARM_scheduling_controls"
+typedef VkFlags64 VkPhysicalDeviceSchedulingControlsFlagsARM;
-typedef VkQueueFamilyGlobalPriorityPropertiesKHR VkQueueFamilyGlobalPriorityPropertiesEXT;
+// Flag bits for VkPhysicalDeviceSchedulingControlsFlagBitsARM
+typedef VkFlags64 VkPhysicalDeviceSchedulingControlsFlagBitsARM;
+static const VkPhysicalDeviceSchedulingControlsFlagBitsARM VK_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_SHADER_CORE_COUNT_ARM = 0x00000001ULL;
+typedef struct VkDeviceQueueShaderCoreControlCreateInfoARM {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t shaderCoreCount;
+} VkDeviceQueueShaderCoreControlCreateInfoARM;
+typedef struct VkPhysicalDeviceSchedulingControlsFeaturesARM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 schedulingControls;
+} VkPhysicalDeviceSchedulingControlsFeaturesARM;
-// VK_EXT_image_view_min_lod is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_image_view_min_lod 1
-#define VK_EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION 1
-#define VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME "VK_EXT_image_view_min_lod"
-typedef struct VkPhysicalDeviceImageViewMinLodFeaturesEXT {
+typedef struct VkPhysicalDeviceSchedulingControlsPropertiesARM {
+ VkStructureType sType;
+ void* pNext;
+ VkPhysicalDeviceSchedulingControlsFlagsARM schedulingControlsFlags;
+} VkPhysicalDeviceSchedulingControlsPropertiesARM;
+
+
+
+// VK_EXT_image_sliced_view_of_3d is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_image_sliced_view_of_3d 1
+#define VK_EXT_IMAGE_SLICED_VIEW_OF_3D_SPEC_VERSION 1
+#define VK_EXT_IMAGE_SLICED_VIEW_OF_3D_EXTENSION_NAME "VK_EXT_image_sliced_view_of_3d"
+#define VK_REMAINING_3D_SLICES_EXT (~0U)
+typedef struct VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 minLod;
-} VkPhysicalDeviceImageViewMinLodFeaturesEXT;
+ VkBool32 imageSlicedViewOf3D;
+} VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT;
-typedef struct VkImageViewMinLodCreateInfoEXT {
+typedef struct VkImageViewSlicedCreateInfoEXT {
VkStructureType sType;
const void* pNext;
- float minLod;
-} VkImageViewMinLodCreateInfoEXT;
+ uint32_t sliceOffset;
+ uint32_t sliceCount;
+} VkImageViewSlicedCreateInfoEXT;
-// VK_EXT_multi_draw is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_multi_draw 1
-#define VK_EXT_MULTI_DRAW_SPEC_VERSION 1
-#define VK_EXT_MULTI_DRAW_EXTENSION_NAME "VK_EXT_multi_draw"
-typedef struct VkPhysicalDeviceMultiDrawFeaturesEXT {
+// VK_VALVE_descriptor_set_host_mapping is a preprocessor guard. Do not pass it to API calls.
+#define VK_VALVE_descriptor_set_host_mapping 1
+#define VK_VALVE_DESCRIPTOR_SET_HOST_MAPPING_SPEC_VERSION 1
+#define VK_VALVE_DESCRIPTOR_SET_HOST_MAPPING_EXTENSION_NAME "VK_VALVE_descriptor_set_host_mapping"
+typedef struct VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE {
VkStructureType sType;
void* pNext;
- VkBool32 multiDraw;
-} VkPhysicalDeviceMultiDrawFeaturesEXT;
+ VkBool32 descriptorSetHostMapping;
+} VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE;
-typedef struct VkPhysicalDeviceMultiDrawPropertiesEXT {
+typedef struct VkDescriptorSetBindingReferenceVALVE {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorSetLayout descriptorSetLayout;
+ uint32_t binding;
+} VkDescriptorSetBindingReferenceVALVE;
+
+typedef struct VkDescriptorSetLayoutHostMappingInfoVALVE {
VkStructureType sType;
void* pNext;
- uint32_t maxMultiDrawCount;
-} VkPhysicalDeviceMultiDrawPropertiesEXT;
-
-typedef struct VkMultiDrawInfoEXT {
- uint32_t firstVertex;
- uint32_t vertexCount;
-} VkMultiDrawInfoEXT;
-
-typedef struct VkMultiDrawIndexedInfoEXT {
- uint32_t firstIndex;
- uint32_t indexCount;
- int32_t vertexOffset;
-} VkMultiDrawIndexedInfoEXT;
+ size_t descriptorOffset;
+ uint32_t descriptorSize;
+} VkDescriptorSetLayoutHostMappingInfoVALVE;
-typedef void (VKAPI_PTR *PFN_vkCmdDrawMultiEXT)(VkCommandBuffer commandBuffer, uint32_t drawCount, const VkMultiDrawInfoEXT* pVertexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride);
-typedef void (VKAPI_PTR *PFN_vkCmdDrawMultiIndexedEXT)(VkCommandBuffer commandBuffer, uint32_t drawCount, const VkMultiDrawIndexedInfoEXT* pIndexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride, const int32_t* pVertexOffset);
+typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE)(VkDevice device, const VkDescriptorSetBindingReferenceVALVE* pBindingReference, VkDescriptorSetLayoutHostMappingInfoVALVE* pHostMapping);
+typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetHostMappingVALVE)(VkDevice device, VkDescriptorSet descriptorSet, void** ppData);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawMultiEXT(
- VkCommandBuffer commandBuffer,
- uint32_t drawCount,
- const VkMultiDrawInfoEXT* pVertexInfo,
- uint32_t instanceCount,
- uint32_t firstInstance,
- uint32_t stride);
+VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutHostMappingInfoVALVE(
+ VkDevice device,
+ const VkDescriptorSetBindingReferenceVALVE* pBindingReference,
+ VkDescriptorSetLayoutHostMappingInfoVALVE* pHostMapping);
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawMultiIndexedEXT(
- VkCommandBuffer commandBuffer,
- uint32_t drawCount,
- const VkMultiDrawIndexedInfoEXT* pIndexInfo,
- uint32_t instanceCount,
- uint32_t firstInstance,
- uint32_t stride,
- const int32_t* pVertexOffset);
+VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetHostMappingVALVE(
+ VkDevice device,
+ VkDescriptorSet descriptorSet,
+ void** ppData);
#endif
-// VK_EXT_image_2d_view_of_3d is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_image_2d_view_of_3d 1
-#define VK_EXT_IMAGE_2D_VIEW_OF_3D_SPEC_VERSION 1
-#define VK_EXT_IMAGE_2D_VIEW_OF_3D_EXTENSION_NAME "VK_EXT_image_2d_view_of_3d"
-typedef struct VkPhysicalDeviceImage2DViewOf3DFeaturesEXT {
+// VK_EXT_depth_clamp_zero_one is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_depth_clamp_zero_one 1
+#define VK_EXT_DEPTH_CLAMP_ZERO_ONE_SPEC_VERSION 1
+#define VK_EXT_DEPTH_CLAMP_ZERO_ONE_EXTENSION_NAME "VK_EXT_depth_clamp_zero_one"
+typedef VkPhysicalDeviceDepthClampZeroOneFeaturesKHR VkPhysicalDeviceDepthClampZeroOneFeaturesEXT;
+
+
+
+// VK_EXT_non_seamless_cube_map is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_non_seamless_cube_map 1
+#define VK_EXT_NON_SEAMLESS_CUBE_MAP_SPEC_VERSION 1
+#define VK_EXT_NON_SEAMLESS_CUBE_MAP_EXTENSION_NAME "VK_EXT_non_seamless_cube_map"
+typedef struct VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 image2DViewOf3D;
- VkBool32 sampler2DViewOf3D;
-} VkPhysicalDeviceImage2DViewOf3DFeaturesEXT;
+ VkBool32 nonSeamlessCubeMap;
+} VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT;
-// VK_EXT_shader_tile_image is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_tile_image 1
-#define VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION 1
-#define VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME "VK_EXT_shader_tile_image"
-typedef struct VkPhysicalDeviceShaderTileImageFeaturesEXT {
+// VK_ARM_render_pass_striped is a preprocessor guard. Do not pass it to API calls.
+#define VK_ARM_render_pass_striped 1
+#define VK_ARM_RENDER_PASS_STRIPED_SPEC_VERSION 1
+#define VK_ARM_RENDER_PASS_STRIPED_EXTENSION_NAME "VK_ARM_render_pass_striped"
+typedef struct VkPhysicalDeviceRenderPassStripedFeaturesARM {
VkStructureType sType;
void* pNext;
- VkBool32 shaderTileImageColorReadAccess;
- VkBool32 shaderTileImageDepthReadAccess;
- VkBool32 shaderTileImageStencilReadAccess;
-} VkPhysicalDeviceShaderTileImageFeaturesEXT;
+ VkBool32 renderPassStriped;
+} VkPhysicalDeviceRenderPassStripedFeaturesARM;
-typedef struct VkPhysicalDeviceShaderTileImagePropertiesEXT {
+typedef struct VkPhysicalDeviceRenderPassStripedPropertiesARM {
VkStructureType sType;
void* pNext;
- VkBool32 shaderTileImageCoherentReadAccelerated;
- VkBool32 shaderTileImageReadSampleFromPixelRateInvocation;
- VkBool32 shaderTileImageReadFromHelperInvocation;
-} VkPhysicalDeviceShaderTileImagePropertiesEXT;
-
-
-
-// VK_EXT_opacity_micromap is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_opacity_micromap 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkMicromapEXT)
-#define VK_EXT_OPACITY_MICROMAP_SPEC_VERSION 2
-#define VK_EXT_OPACITY_MICROMAP_EXTENSION_NAME "VK_EXT_opacity_micromap"
+ VkExtent2D renderPassStripeGranularity;
+ uint32_t maxRenderPassStripes;
+} VkPhysicalDeviceRenderPassStripedPropertiesARM;
-typedef enum VkMicromapTypeEXT {
- VK_MICROMAP_TYPE_OPACITY_MICROMAP_EXT = 0,
-#ifdef VK_ENABLE_BETA_EXTENSIONS
- VK_MICROMAP_TYPE_DISPLACEMENT_MICROMAP_NV = 1000397000,
-#endif
- VK_MICROMAP_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkMicromapTypeEXT;
+typedef struct VkRenderPassStripeInfoARM {
+ VkStructureType sType;
+ const void* pNext;
+ VkRect2D stripeArea;
+} VkRenderPassStripeInfoARM;
-typedef enum VkBuildMicromapModeEXT {
- VK_BUILD_MICROMAP_MODE_BUILD_EXT = 0,
- VK_BUILD_MICROMAP_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkBuildMicromapModeEXT;
+typedef struct VkRenderPassStripeBeginInfoARM {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t stripeInfoCount;
+ const VkRenderPassStripeInfoARM* pStripeInfos;
+} VkRenderPassStripeBeginInfoARM;
-typedef enum VkCopyMicromapModeEXT {
- VK_COPY_MICROMAP_MODE_CLONE_EXT = 0,
- VK_COPY_MICROMAP_MODE_SERIALIZE_EXT = 1,
- VK_COPY_MICROMAP_MODE_DESERIALIZE_EXT = 2,
- VK_COPY_MICROMAP_MODE_COMPACT_EXT = 3,
- VK_COPY_MICROMAP_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkCopyMicromapModeEXT;
+typedef struct VkRenderPassStripeSubmitInfoARM {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t stripeSemaphoreInfoCount;
+ const VkSemaphoreSubmitInfo* pStripeSemaphoreInfos;
+} VkRenderPassStripeSubmitInfoARM;
-typedef enum VkOpacityMicromapFormatEXT {
- VK_OPACITY_MICROMAP_FORMAT_2_STATE_EXT = 1,
- VK_OPACITY_MICROMAP_FORMAT_4_STATE_EXT = 2,
- VK_OPACITY_MICROMAP_FORMAT_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkOpacityMicromapFormatEXT;
-typedef enum VkOpacityMicromapSpecialIndexEXT {
- VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT_EXT = -1,
- VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE_EXT = -2,
- VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT_EXT = -3,
- VK_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE_EXT = -4,
- VK_OPACITY_MICROMAP_SPECIAL_INDEX_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkOpacityMicromapSpecialIndexEXT;
-typedef enum VkAccelerationStructureCompatibilityKHR {
- VK_ACCELERATION_STRUCTURE_COMPATIBILITY_COMPATIBLE_KHR = 0,
- VK_ACCELERATION_STRUCTURE_COMPATIBILITY_INCOMPATIBLE_KHR = 1,
- VK_ACCELERATION_STRUCTURE_COMPATIBILITY_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkAccelerationStructureCompatibilityKHR;
+// VK_QCOM_fragment_density_map_offset is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_fragment_density_map_offset 1
+#define VK_QCOM_FRAGMENT_DENSITY_MAP_OFFSET_SPEC_VERSION 2
+#define VK_QCOM_FRAGMENT_DENSITY_MAP_OFFSET_EXTENSION_NAME "VK_QCOM_fragment_density_map_offset"
+typedef struct VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 fragmentDensityMapOffset;
+} VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM;
-typedef enum VkAccelerationStructureBuildTypeKHR {
- VK_ACCELERATION_STRUCTURE_BUILD_TYPE_HOST_KHR = 0,
- VK_ACCELERATION_STRUCTURE_BUILD_TYPE_DEVICE_KHR = 1,
- VK_ACCELERATION_STRUCTURE_BUILD_TYPE_HOST_OR_DEVICE_KHR = 2,
- VK_ACCELERATION_STRUCTURE_BUILD_TYPE_MAX_ENUM_KHR = 0x7FFFFFFF
-} VkAccelerationStructureBuildTypeKHR;
+typedef struct VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkExtent2D fragmentDensityOffsetGranularity;
+} VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM;
-typedef enum VkBuildMicromapFlagBitsEXT {
- VK_BUILD_MICROMAP_PREFER_FAST_TRACE_BIT_EXT = 0x00000001,
- VK_BUILD_MICROMAP_PREFER_FAST_BUILD_BIT_EXT = 0x00000002,
- VK_BUILD_MICROMAP_ALLOW_COMPACTION_BIT_EXT = 0x00000004,
- VK_BUILD_MICROMAP_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkBuildMicromapFlagBitsEXT;
-typedef VkFlags VkBuildMicromapFlagsEXT;
+typedef struct VkSubpassFragmentDensityMapOffsetEndInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t fragmentDensityOffsetCount;
+ const VkOffset2D* pFragmentDensityOffsets;
+} VkSubpassFragmentDensityMapOffsetEndInfoQCOM;
-typedef enum VkMicromapCreateFlagBitsEXT {
- VK_MICROMAP_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_EXT = 0x00000001,
- VK_MICROMAP_CREATE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkMicromapCreateFlagBitsEXT;
-typedef VkFlags VkMicromapCreateFlagsEXT;
-typedef struct VkMicromapUsageEXT {
- uint32_t count;
- uint32_t subdivisionLevel;
- uint32_t format;
-} VkMicromapUsageEXT;
-typedef union VkDeviceOrHostAddressKHR {
- VkDeviceAddress deviceAddress;
- void* hostAddress;
-} VkDeviceOrHostAddressKHR;
-typedef struct VkMicromapBuildInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkMicromapTypeEXT type;
- VkBuildMicromapFlagsEXT flags;
- VkBuildMicromapModeEXT mode;
- VkMicromapEXT dstMicromap;
- uint32_t usageCountsCount;
- const VkMicromapUsageEXT* pUsageCounts;
- const VkMicromapUsageEXT* const* ppUsageCounts;
- VkDeviceOrHostAddressConstKHR data;
- VkDeviceOrHostAddressKHR scratchData;
- VkDeviceOrHostAddressConstKHR triangleArray;
- VkDeviceSize triangleArrayStride;
-} VkMicromapBuildInfoEXT;
+// VK_NV_copy_memory_indirect is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_copy_memory_indirect 1
+#define VK_NV_COPY_MEMORY_INDIRECT_SPEC_VERSION 1
+#define VK_NV_COPY_MEMORY_INDIRECT_EXTENSION_NAME "VK_NV_copy_memory_indirect"
+typedef struct VkCopyMemoryIndirectCommandNV {
+ VkDeviceAddress srcAddress;
+ VkDeviceAddress dstAddress;
+ VkDeviceSize size;
+} VkCopyMemoryIndirectCommandNV;
-typedef struct VkMicromapCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkMicromapCreateFlagsEXT createFlags;
- VkBuffer buffer;
- VkDeviceSize offset;
- VkDeviceSize size;
- VkMicromapTypeEXT type;
- VkDeviceAddress deviceAddress;
-} VkMicromapCreateInfoEXT;
+typedef struct VkCopyMemoryToImageIndirectCommandNV {
+ VkDeviceAddress srcAddress;
+ uint32_t bufferRowLength;
+ uint32_t bufferImageHeight;
+ VkImageSubresourceLayers imageSubresource;
+ VkOffset3D imageOffset;
+ VkExtent3D imageExtent;
+} VkCopyMemoryToImageIndirectCommandNV;
-typedef struct VkPhysicalDeviceOpacityMicromapFeaturesEXT {
+typedef struct VkPhysicalDeviceCopyMemoryIndirectFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 micromap;
- VkBool32 micromapCaptureReplay;
- VkBool32 micromapHostCommands;
-} VkPhysicalDeviceOpacityMicromapFeaturesEXT;
+ VkBool32 indirectCopy;
+} VkPhysicalDeviceCopyMemoryIndirectFeaturesNV;
-typedef struct VkPhysicalDeviceOpacityMicromapPropertiesEXT {
+typedef struct VkPhysicalDeviceCopyMemoryIndirectPropertiesNV {
VkStructureType sType;
void* pNext;
- uint32_t maxOpacity2StateSubdivisionLevel;
- uint32_t maxOpacity4StateSubdivisionLevel;
-} VkPhysicalDeviceOpacityMicromapPropertiesEXT;
+ VkQueueFlags supportedQueues;
+} VkPhysicalDeviceCopyMemoryIndirectPropertiesNV;
-typedef struct VkMicromapVersionInfoEXT {
- VkStructureType sType;
- const void* pNext;
- const uint8_t* pVersionData;
-} VkMicromapVersionInfoEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdCopyMemoryIndirectNV)(VkCommandBuffer commandBuffer, VkDeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyMemoryToImageIndirectNV)(VkCommandBuffer commandBuffer, VkDeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride, VkImage dstImage, VkImageLayout dstImageLayout, const VkImageSubresourceLayers* pImageSubresources);
-typedef struct VkCopyMicromapToMemoryInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkMicromapEXT src;
- VkDeviceOrHostAddressKHR dst;
- VkCopyMicromapModeEXT mode;
-} VkCopyMicromapToMemoryInfoEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyMemoryIndirectNV(
+ VkCommandBuffer commandBuffer,
+ VkDeviceAddress copyBufferAddress,
+ uint32_t copyCount,
+ uint32_t stride);
-typedef struct VkCopyMemoryToMicromapInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkDeviceOrHostAddressConstKHR src;
- VkMicromapEXT dst;
- VkCopyMicromapModeEXT mode;
-} VkCopyMemoryToMicromapInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyMemoryToImageIndirectNV(
+ VkCommandBuffer commandBuffer,
+ VkDeviceAddress copyBufferAddress,
+ uint32_t copyCount,
+ uint32_t stride,
+ VkImage dstImage,
+ VkImageLayout dstImageLayout,
+ const VkImageSubresourceLayers* pImageSubresources);
+#endif
-typedef struct VkCopyMicromapInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkMicromapEXT src;
- VkMicromapEXT dst;
- VkCopyMicromapModeEXT mode;
-} VkCopyMicromapInfoEXT;
-typedef struct VkMicromapBuildSizesInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkDeviceSize micromapSize;
- VkDeviceSize buildScratchSize;
- VkBool32 discardable;
-} VkMicromapBuildSizesInfoEXT;
+// VK_NV_memory_decompression is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_memory_decompression 1
+#define VK_NV_MEMORY_DECOMPRESSION_SPEC_VERSION 1
+#define VK_NV_MEMORY_DECOMPRESSION_EXTENSION_NAME "VK_NV_memory_decompression"
-typedef struct VkAccelerationStructureTrianglesOpacityMicromapEXT {
- VkStructureType sType;
- void* pNext;
- VkIndexType indexType;
- VkDeviceOrHostAddressConstKHR indexBuffer;
- VkDeviceSize indexStride;
- uint32_t baseTriangle;
- uint32_t usageCountsCount;
- const VkMicromapUsageEXT* pUsageCounts;
- const VkMicromapUsageEXT* const* ppUsageCounts;
- VkMicromapEXT micromap;
-} VkAccelerationStructureTrianglesOpacityMicromapEXT;
+// Flag bits for VkMemoryDecompressionMethodFlagBitsNV
+typedef VkFlags64 VkMemoryDecompressionMethodFlagBitsNV;
+static const VkMemoryDecompressionMethodFlagBitsNV VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_NV = 0x00000001ULL;
-typedef struct VkMicromapTriangleEXT {
- uint32_t dataOffset;
- uint16_t subdivisionLevel;
- uint16_t format;
-} VkMicromapTriangleEXT;
+typedef VkFlags64 VkMemoryDecompressionMethodFlagsNV;
+typedef struct VkDecompressMemoryRegionNV {
+ VkDeviceAddress srcAddress;
+ VkDeviceAddress dstAddress;
+ VkDeviceSize compressedSize;
+ VkDeviceSize decompressedSize;
+ VkMemoryDecompressionMethodFlagsNV decompressionMethod;
+} VkDecompressMemoryRegionNV;
-typedef VkResult (VKAPI_PTR *PFN_vkCreateMicromapEXT)(VkDevice device, const VkMicromapCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkMicromapEXT* pMicromap);
-typedef void (VKAPI_PTR *PFN_vkDestroyMicromapEXT)(VkDevice device, VkMicromapEXT micromap, const VkAllocationCallbacks* pAllocator);
-typedef void (VKAPI_PTR *PFN_vkCmdBuildMicromapsEXT)(VkCommandBuffer commandBuffer, uint32_t infoCount, const VkMicromapBuildInfoEXT* pInfos);
-typedef VkResult (VKAPI_PTR *PFN_vkBuildMicromapsEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, uint32_t infoCount, const VkMicromapBuildInfoEXT* pInfos);
-typedef VkResult (VKAPI_PTR *PFN_vkCopyMicromapEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMicromapInfoEXT* pInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkCopyMicromapToMemoryEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMicromapToMemoryInfoEXT* pInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkCopyMemoryToMicromapEXT)(VkDevice device, VkDeferredOperationKHR deferredOperation, const VkCopyMemoryToMicromapInfoEXT* pInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkWriteMicromapsPropertiesEXT)(VkDevice device, uint32_t micromapCount, const VkMicromapEXT* pMicromaps, VkQueryType queryType, size_t dataSize, void* pData, size_t stride);
-typedef void (VKAPI_PTR *PFN_vkCmdCopyMicromapEXT)(VkCommandBuffer commandBuffer, const VkCopyMicromapInfoEXT* pInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdCopyMicromapToMemoryEXT)(VkCommandBuffer commandBuffer, const VkCopyMicromapToMemoryInfoEXT* pInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdCopyMemoryToMicromapEXT)(VkCommandBuffer commandBuffer, const VkCopyMemoryToMicromapInfoEXT* pInfo);
-typedef void (VKAPI_PTR *PFN_vkCmdWriteMicromapsPropertiesEXT)(VkCommandBuffer commandBuffer, uint32_t micromapCount, const VkMicromapEXT* pMicromaps, VkQueryType queryType, VkQueryPool queryPool, uint32_t firstQuery);
-typedef void (VKAPI_PTR *PFN_vkGetDeviceMicromapCompatibilityEXT)(VkDevice device, const VkMicromapVersionInfoEXT* pVersionInfo, VkAccelerationStructureCompatibilityKHR* pCompatibility);
-typedef void (VKAPI_PTR *PFN_vkGetMicromapBuildSizesEXT)(VkDevice device, VkAccelerationStructureBuildTypeKHR buildType, const VkMicromapBuildInfoEXT* pBuildInfo, VkMicromapBuildSizesInfoEXT* pSizeInfo);
+typedef struct VkPhysicalDeviceMemoryDecompressionFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 memoryDecompression;
+} VkPhysicalDeviceMemoryDecompressionFeaturesNV;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateMicromapEXT(
- VkDevice device,
- const VkMicromapCreateInfoEXT* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkMicromapEXT* pMicromap);
+typedef struct VkPhysicalDeviceMemoryDecompressionPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkMemoryDecompressionMethodFlagsNV decompressionMethods;
+ uint64_t maxDecompressionIndirectCount;
+} VkPhysicalDeviceMemoryDecompressionPropertiesNV;
-VKAPI_ATTR void VKAPI_CALL vkDestroyMicromapEXT(
- VkDevice device,
- VkMicromapEXT micromap,
- const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkCmdDecompressMemoryNV)(VkCommandBuffer commandBuffer, uint32_t decompressRegionCount, const VkDecompressMemoryRegionNV* pDecompressMemoryRegions);
+typedef void (VKAPI_PTR *PFN_vkCmdDecompressMemoryIndirectCountNV)(VkCommandBuffer commandBuffer, VkDeviceAddress indirectCommandsAddress, VkDeviceAddress indirectCommandsCountAddress, uint32_t stride);
-VKAPI_ATTR void VKAPI_CALL vkCmdBuildMicromapsEXT(
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdDecompressMemoryNV(
VkCommandBuffer commandBuffer,
- uint32_t infoCount,
- const VkMicromapBuildInfoEXT* pInfos);
+ uint32_t decompressRegionCount,
+ const VkDecompressMemoryRegionNV* pDecompressMemoryRegions);
-VKAPI_ATTR VkResult VKAPI_CALL vkBuildMicromapsEXT(
- VkDevice device,
- VkDeferredOperationKHR deferredOperation,
- uint32_t infoCount,
- const VkMicromapBuildInfoEXT* pInfos);
+VKAPI_ATTR void VKAPI_CALL vkCmdDecompressMemoryIndirectCountNV(
+ VkCommandBuffer commandBuffer,
+ VkDeviceAddress indirectCommandsAddress,
+ VkDeviceAddress indirectCommandsCountAddress,
+ uint32_t stride);
+#endif
-VKAPI_ATTR VkResult VKAPI_CALL vkCopyMicromapEXT(
- VkDevice device,
- VkDeferredOperationKHR deferredOperation,
- const VkCopyMicromapInfoEXT* pInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkCopyMicromapToMemoryEXT(
- VkDevice device,
- VkDeferredOperationKHR deferredOperation,
- const VkCopyMicromapToMemoryInfoEXT* pInfo);
+// VK_NV_device_generated_commands_compute is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_device_generated_commands_compute 1
+#define VK_NV_DEVICE_GENERATED_COMMANDS_COMPUTE_SPEC_VERSION 2
+#define VK_NV_DEVICE_GENERATED_COMMANDS_COMPUTE_EXTENSION_NAME "VK_NV_device_generated_commands_compute"
+typedef struct VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 deviceGeneratedCompute;
+ VkBool32 deviceGeneratedComputePipelines;
+ VkBool32 deviceGeneratedComputeCaptureReplay;
+} VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV;
-VKAPI_ATTR VkResult VKAPI_CALL vkCopyMemoryToMicromapEXT(
- VkDevice device,
- VkDeferredOperationKHR deferredOperation,
- const VkCopyMemoryToMicromapInfoEXT* pInfo);
+typedef struct VkComputePipelineIndirectBufferInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceAddress deviceAddress;
+ VkDeviceSize size;
+ VkDeviceAddress pipelineDeviceAddressCaptureReplay;
+} VkComputePipelineIndirectBufferInfoNV;
-VKAPI_ATTR VkResult VKAPI_CALL vkWriteMicromapsPropertiesEXT(
- VkDevice device,
- uint32_t micromapCount,
- const VkMicromapEXT* pMicromaps,
- VkQueryType queryType,
- size_t dataSize,
- void* pData,
- size_t stride);
+typedef struct VkPipelineIndirectDeviceAddressInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineBindPoint pipelineBindPoint;
+ VkPipeline pipeline;
+} VkPipelineIndirectDeviceAddressInfoNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdCopyMicromapEXT(
- VkCommandBuffer commandBuffer,
- const VkCopyMicromapInfoEXT* pInfo);
+typedef struct VkBindPipelineIndirectCommandNV {
+ VkDeviceAddress pipelineAddress;
+} VkBindPipelineIndirectCommandNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdCopyMicromapToMemoryEXT(
- VkCommandBuffer commandBuffer,
- const VkCopyMicromapToMemoryInfoEXT* pInfo);
+typedef void (VKAPI_PTR *PFN_vkGetPipelineIndirectMemoryRequirementsNV)(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkCmdUpdatePipelineIndirectBufferNV)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline);
+typedef VkDeviceAddress (VKAPI_PTR *PFN_vkGetPipelineIndirectDeviceAddressNV)(VkDevice device, const VkPipelineIndirectDeviceAddressInfoNV* pInfo);
-VKAPI_ATTR void VKAPI_CALL vkCmdCopyMemoryToMicromapEXT(
- VkCommandBuffer commandBuffer,
- const VkCopyMemoryToMicromapInfoEXT* pInfo);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetPipelineIndirectMemoryRequirementsNV(
+ VkDevice device,
+ const VkComputePipelineCreateInfo* pCreateInfo,
+ VkMemoryRequirements2* pMemoryRequirements);
-VKAPI_ATTR void VKAPI_CALL vkCmdWriteMicromapsPropertiesEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdUpdatePipelineIndirectBufferNV(
VkCommandBuffer commandBuffer,
- uint32_t micromapCount,
- const VkMicromapEXT* pMicromaps,
- VkQueryType queryType,
- VkQueryPool queryPool,
- uint32_t firstQuery);
-
-VKAPI_ATTR void VKAPI_CALL vkGetDeviceMicromapCompatibilityEXT(
- VkDevice device,
- const VkMicromapVersionInfoEXT* pVersionInfo,
- VkAccelerationStructureCompatibilityKHR* pCompatibility);
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipeline pipeline);
-VKAPI_ATTR void VKAPI_CALL vkGetMicromapBuildSizesEXT(
+VKAPI_ATTR VkDeviceAddress VKAPI_CALL vkGetPipelineIndirectDeviceAddressNV(
VkDevice device,
- VkAccelerationStructureBuildTypeKHR buildType,
- const VkMicromapBuildInfoEXT* pBuildInfo,
- VkMicromapBuildSizesInfoEXT* pSizeInfo);
+ const VkPipelineIndirectDeviceAddressInfoNV* pInfo);
#endif
-// VK_EXT_load_store_op_none is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_load_store_op_none 1
-#define VK_EXT_LOAD_STORE_OP_NONE_SPEC_VERSION 1
-#define VK_EXT_LOAD_STORE_OP_NONE_EXTENSION_NAME "VK_EXT_load_store_op_none"
+// VK_NV_ray_tracing_linear_swept_spheres is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_ray_tracing_linear_swept_spheres 1
+#define VK_NV_RAY_TRACING_LINEAR_SWEPT_SPHERES_SPEC_VERSION 1
+#define VK_NV_RAY_TRACING_LINEAR_SWEPT_SPHERES_EXTENSION_NAME "VK_NV_ray_tracing_linear_swept_spheres"
+typedef enum VkRayTracingLssIndexingModeNV {
+ VK_RAY_TRACING_LSS_INDEXING_MODE_LIST_NV = 0,
+ VK_RAY_TRACING_LSS_INDEXING_MODE_SUCCESSIVE_NV = 1,
+ VK_RAY_TRACING_LSS_INDEXING_MODE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkRayTracingLssIndexingModeNV;
-// VK_HUAWEI_cluster_culling_shader is a preprocessor guard. Do not pass it to API calls.
-#define VK_HUAWEI_cluster_culling_shader 1
-#define VK_HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION 3
-#define VK_HUAWEI_CLUSTER_CULLING_SHADER_EXTENSION_NAME "VK_HUAWEI_cluster_culling_shader"
-typedef struct VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI {
+typedef enum VkRayTracingLssPrimitiveEndCapsModeNV {
+ VK_RAY_TRACING_LSS_PRIMITIVE_END_CAPS_MODE_NONE_NV = 0,
+ VK_RAY_TRACING_LSS_PRIMITIVE_END_CAPS_MODE_CHAINED_NV = 1,
+ VK_RAY_TRACING_LSS_PRIMITIVE_END_CAPS_MODE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkRayTracingLssPrimitiveEndCapsModeNV;
+typedef struct VkPhysicalDeviceRayTracingLinearSweptSpheresFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 clustercullingShader;
- VkBool32 multiviewClusterCullingShader;
-} VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI;
+ VkBool32 spheres;
+ VkBool32 linearSweptSpheres;
+} VkPhysicalDeviceRayTracingLinearSweptSpheresFeaturesNV;
-typedef struct VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI {
- VkStructureType sType;
- void* pNext;
- uint32_t maxWorkGroupCount[3];
- uint32_t maxWorkGroupSize[3];
- uint32_t maxOutputClusterCount;
- VkDeviceSize indirectBufferOffsetAlignment;
-} VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI;
+typedef struct VkAccelerationStructureGeometryLinearSweptSpheresDataNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkFormat vertexFormat;
+ VkDeviceOrHostAddressConstKHR vertexData;
+ VkDeviceSize vertexStride;
+ VkFormat radiusFormat;
+ VkDeviceOrHostAddressConstKHR radiusData;
+ VkDeviceSize radiusStride;
+ VkIndexType indexType;
+ VkDeviceOrHostAddressConstKHR indexData;
+ VkDeviceSize indexStride;
+ VkRayTracingLssIndexingModeNV indexingMode;
+ VkRayTracingLssPrimitiveEndCapsModeNV endCapsMode;
+} VkAccelerationStructureGeometryLinearSweptSpheresDataNV;
+
+typedef struct VkAccelerationStructureGeometrySpheresDataNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkFormat vertexFormat;
+ VkDeviceOrHostAddressConstKHR vertexData;
+ VkDeviceSize vertexStride;
+ VkFormat radiusFormat;
+ VkDeviceOrHostAddressConstKHR radiusData;
+ VkDeviceSize radiusStride;
+ VkIndexType indexType;
+ VkDeviceOrHostAddressConstKHR indexData;
+ VkDeviceSize indexStride;
+} VkAccelerationStructureGeometrySpheresDataNV;
-typedef struct VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI {
+
+
+// VK_NV_linear_color_attachment is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_linear_color_attachment 1
+#define VK_NV_LINEAR_COLOR_ATTACHMENT_SPEC_VERSION 1
+#define VK_NV_LINEAR_COLOR_ATTACHMENT_EXTENSION_NAME "VK_NV_linear_color_attachment"
+typedef struct VkPhysicalDeviceLinearColorAttachmentFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 clusterShadingRate;
-} VkPhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI;
+ VkBool32 linearColorAttachment;
+} VkPhysicalDeviceLinearColorAttachmentFeaturesNV;
-typedef void (VKAPI_PTR *PFN_vkCmdDrawClusterHUAWEI)(VkCommandBuffer commandBuffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ);
-typedef void (VKAPI_PTR *PFN_vkCmdDrawClusterIndirectHUAWEI)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawClusterHUAWEI(
- VkCommandBuffer commandBuffer,
- uint32_t groupCountX,
- uint32_t groupCountY,
- uint32_t groupCountZ);
-VKAPI_ATTR void VKAPI_CALL vkCmdDrawClusterIndirectHUAWEI(
- VkCommandBuffer commandBuffer,
- VkBuffer buffer,
- VkDeviceSize offset);
-#endif
+// VK_GOOGLE_surfaceless_query is a preprocessor guard. Do not pass it to API calls.
+#define VK_GOOGLE_surfaceless_query 1
+#define VK_GOOGLE_SURFACELESS_QUERY_SPEC_VERSION 2
+#define VK_GOOGLE_SURFACELESS_QUERY_EXTENSION_NAME "VK_GOOGLE_surfaceless_query"
-// VK_EXT_border_color_swizzle is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_border_color_swizzle 1
-#define VK_EXT_BORDER_COLOR_SWIZZLE_SPEC_VERSION 1
-#define VK_EXT_BORDER_COLOR_SWIZZLE_EXTENSION_NAME "VK_EXT_border_color_swizzle"
-typedef struct VkPhysicalDeviceBorderColorSwizzleFeaturesEXT {
+// VK_EXT_image_compression_control_swapchain is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_image_compression_control_swapchain 1
+#define VK_EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_SPEC_VERSION 1
+#define VK_EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_EXTENSION_NAME "VK_EXT_image_compression_control_swapchain"
+typedef struct VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 borderColorSwizzle;
- VkBool32 borderColorSwizzleFromImage;
-} VkPhysicalDeviceBorderColorSwizzleFeaturesEXT;
+ VkBool32 imageCompressionControlSwapchain;
+} VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT;
-typedef struct VkSamplerBorderColorComponentMappingCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkComponentMapping components;
- VkBool32 srgb;
-} VkSamplerBorderColorComponentMappingCreateInfoEXT;
+// VK_QCOM_image_processing is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_image_processing 1
+#define VK_QCOM_IMAGE_PROCESSING_SPEC_VERSION 1
+#define VK_QCOM_IMAGE_PROCESSING_EXTENSION_NAME "VK_QCOM_image_processing"
+typedef struct VkImageViewSampleWeightCreateInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ VkOffset2D filterCenter;
+ VkExtent2D filterSize;
+ uint32_t numPhases;
+} VkImageViewSampleWeightCreateInfoQCOM;
+
+typedef struct VkPhysicalDeviceImageProcessingFeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 textureSampleWeighted;
+ VkBool32 textureBoxFilter;
+ VkBool32 textureBlockMatch;
+} VkPhysicalDeviceImageProcessingFeaturesQCOM;
-// VK_EXT_pageable_device_local_memory is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pageable_device_local_memory 1
-#define VK_EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_SPEC_VERSION 1
-#define VK_EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_EXTENSION_NAME "VK_EXT_pageable_device_local_memory"
-typedef struct VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT {
+typedef struct VkPhysicalDeviceImageProcessingPropertiesQCOM {
VkStructureType sType;
void* pNext;
- VkBool32 pageableDeviceLocalMemory;
-} VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT;
+ uint32_t maxWeightFilterPhases;
+ VkExtent2D maxWeightFilterDimension;
+ VkExtent2D maxBlockMatchRegion;
+ VkExtent2D maxBoxFilterBlockSize;
+} VkPhysicalDeviceImageProcessingPropertiesQCOM;
-typedef void (VKAPI_PTR *PFN_vkSetDeviceMemoryPriorityEXT)(VkDevice device, VkDeviceMemory memory, float priority);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkSetDeviceMemoryPriorityEXT(
- VkDevice device,
- VkDeviceMemory memory,
- float priority);
-#endif
+// VK_EXT_nested_command_buffer is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_nested_command_buffer 1
+#define VK_EXT_NESTED_COMMAND_BUFFER_SPEC_VERSION 1
+#define VK_EXT_NESTED_COMMAND_BUFFER_EXTENSION_NAME "VK_EXT_nested_command_buffer"
+typedef struct VkPhysicalDeviceNestedCommandBufferFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 nestedCommandBuffer;
+ VkBool32 nestedCommandBufferRendering;
+ VkBool32 nestedCommandBufferSimultaneousUse;
+} VkPhysicalDeviceNestedCommandBufferFeaturesEXT;
-// VK_ARM_shader_core_properties is a preprocessor guard. Do not pass it to API calls.
-#define VK_ARM_shader_core_properties 1
-#define VK_ARM_SHADER_CORE_PROPERTIES_SPEC_VERSION 1
-#define VK_ARM_SHADER_CORE_PROPERTIES_EXTENSION_NAME "VK_ARM_shader_core_properties"
-typedef struct VkPhysicalDeviceShaderCorePropertiesARM {
+typedef struct VkPhysicalDeviceNestedCommandBufferPropertiesEXT {
VkStructureType sType;
void* pNext;
- uint32_t pixelRate;
- uint32_t texelRate;
- uint32_t fmaRate;
-} VkPhysicalDeviceShaderCorePropertiesARM;
+ uint32_t maxCommandBufferNestingLevel;
+} VkPhysicalDeviceNestedCommandBufferPropertiesEXT;
-// VK_ARM_scheduling_controls is a preprocessor guard. Do not pass it to API calls.
-#define VK_ARM_scheduling_controls 1
-#define VK_ARM_SCHEDULING_CONTROLS_SPEC_VERSION 1
-#define VK_ARM_SCHEDULING_CONTROLS_EXTENSION_NAME "VK_ARM_scheduling_controls"
-typedef VkFlags64 VkPhysicalDeviceSchedulingControlsFlagsARM;
+// VK_EXT_external_memory_acquire_unmodified is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_external_memory_acquire_unmodified 1
+#define VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_SPEC_VERSION 1
+#define VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXTENSION_NAME "VK_EXT_external_memory_acquire_unmodified"
+typedef struct VkExternalMemoryAcquireUnmodifiedEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 acquireUnmodifiedMemory;
+} VkExternalMemoryAcquireUnmodifiedEXT;
+
-// Flag bits for VkPhysicalDeviceSchedulingControlsFlagBitsARM
-typedef VkFlags64 VkPhysicalDeviceSchedulingControlsFlagBitsARM;
-static const VkPhysicalDeviceSchedulingControlsFlagBitsARM VK_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_SHADER_CORE_COUNT_ARM = 0x00000001ULL;
-typedef struct VkDeviceQueueShaderCoreControlCreateInfoARM {
+// VK_EXT_extended_dynamic_state3 is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_extended_dynamic_state3 1
+#define VK_EXT_EXTENDED_DYNAMIC_STATE_3_SPEC_VERSION 2
+#define VK_EXT_EXTENDED_DYNAMIC_STATE_3_EXTENSION_NAME "VK_EXT_extended_dynamic_state3"
+typedef struct VkPhysicalDeviceExtendedDynamicState3FeaturesEXT {
VkStructureType sType;
void* pNext;
- uint32_t shaderCoreCount;
-} VkDeviceQueueShaderCoreControlCreateInfoARM;
+ VkBool32 extendedDynamicState3TessellationDomainOrigin;
+ VkBool32 extendedDynamicState3DepthClampEnable;
+ VkBool32 extendedDynamicState3PolygonMode;
+ VkBool32 extendedDynamicState3RasterizationSamples;
+ VkBool32 extendedDynamicState3SampleMask;
+ VkBool32 extendedDynamicState3AlphaToCoverageEnable;
+ VkBool32 extendedDynamicState3AlphaToOneEnable;
+ VkBool32 extendedDynamicState3LogicOpEnable;
+ VkBool32 extendedDynamicState3ColorBlendEnable;
+ VkBool32 extendedDynamicState3ColorBlendEquation;
+ VkBool32 extendedDynamicState3ColorWriteMask;
+ VkBool32 extendedDynamicState3RasterizationStream;
+ VkBool32 extendedDynamicState3ConservativeRasterizationMode;
+ VkBool32 extendedDynamicState3ExtraPrimitiveOverestimationSize;
+ VkBool32 extendedDynamicState3DepthClipEnable;
+ VkBool32 extendedDynamicState3SampleLocationsEnable;
+ VkBool32 extendedDynamicState3ColorBlendAdvanced;
+ VkBool32 extendedDynamicState3ProvokingVertexMode;
+ VkBool32 extendedDynamicState3LineRasterizationMode;
+ VkBool32 extendedDynamicState3LineStippleEnable;
+ VkBool32 extendedDynamicState3DepthClipNegativeOneToOne;
+ VkBool32 extendedDynamicState3ViewportWScalingEnable;
+ VkBool32 extendedDynamicState3ViewportSwizzle;
+ VkBool32 extendedDynamicState3CoverageToColorEnable;
+ VkBool32 extendedDynamicState3CoverageToColorLocation;
+ VkBool32 extendedDynamicState3CoverageModulationMode;
+ VkBool32 extendedDynamicState3CoverageModulationTableEnable;
+ VkBool32 extendedDynamicState3CoverageModulationTable;
+ VkBool32 extendedDynamicState3CoverageReductionMode;
+ VkBool32 extendedDynamicState3RepresentativeFragmentTestEnable;
+ VkBool32 extendedDynamicState3ShadingRateImageEnable;
+} VkPhysicalDeviceExtendedDynamicState3FeaturesEXT;
-typedef struct VkPhysicalDeviceSchedulingControlsFeaturesARM {
+typedef struct VkPhysicalDeviceExtendedDynamicState3PropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 schedulingControls;
-} VkPhysicalDeviceSchedulingControlsFeaturesARM;
+ VkBool32 dynamicPrimitiveTopologyUnrestricted;
+} VkPhysicalDeviceExtendedDynamicState3PropertiesEXT;
-typedef struct VkPhysicalDeviceSchedulingControlsPropertiesARM {
- VkStructureType sType;
- void* pNext;
- VkPhysicalDeviceSchedulingControlsFlagsARM schedulingControlsFlags;
-} VkPhysicalDeviceSchedulingControlsPropertiesARM;
+typedef struct VkColorBlendEquationEXT {
+ VkBlendFactor srcColorBlendFactor;
+ VkBlendFactor dstColorBlendFactor;
+ VkBlendOp colorBlendOp;
+ VkBlendFactor srcAlphaBlendFactor;
+ VkBlendFactor dstAlphaBlendFactor;
+ VkBlendOp alphaBlendOp;
+} VkColorBlendEquationEXT;
+typedef struct VkColorBlendAdvancedEXT {
+ VkBlendOp advancedBlendOp;
+ VkBool32 srcPremultiplied;
+ VkBool32 dstPremultiplied;
+ VkBlendOverlapEXT blendOverlap;
+ VkBool32 clampResults;
+} VkColorBlendAdvancedEXT;
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClampEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthClampEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetPolygonModeEXT)(VkCommandBuffer commandBuffer, VkPolygonMode polygonMode);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRasterizationSamplesEXT)(VkCommandBuffer commandBuffer, VkSampleCountFlagBits rasterizationSamples);
+typedef void (VKAPI_PTR *PFN_vkCmdSetSampleMaskEXT)(VkCommandBuffer commandBuffer, VkSampleCountFlagBits samples, const VkSampleMask* pSampleMask);
+typedef void (VKAPI_PTR *PFN_vkCmdSetAlphaToCoverageEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 alphaToCoverageEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetAlphaToOneEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 alphaToOneEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetLogicOpEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 logicOpEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetColorBlendEnableEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkBool32* pColorBlendEnables);
+typedef void (VKAPI_PTR *PFN_vkCmdSetColorBlendEquationEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorBlendEquationEXT* pColorBlendEquations);
+typedef void (VKAPI_PTR *PFN_vkCmdSetColorWriteMaskEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorComponentFlags* pColorWriteMasks);
+typedef void (VKAPI_PTR *PFN_vkCmdSetTessellationDomainOriginEXT)(VkCommandBuffer commandBuffer, VkTessellationDomainOrigin domainOrigin);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRasterizationStreamEXT)(VkCommandBuffer commandBuffer, uint32_t rasterizationStream);
+typedef void (VKAPI_PTR *PFN_vkCmdSetConservativeRasterizationModeEXT)(VkCommandBuffer commandBuffer, VkConservativeRasterizationModeEXT conservativeRasterizationMode);
+typedef void (VKAPI_PTR *PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT)(VkCommandBuffer commandBuffer, float extraPrimitiveOverestimationSize);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClipEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthClipEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetSampleLocationsEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 sampleLocationsEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetColorBlendAdvancedEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorBlendAdvancedEXT* pColorBlendAdvanced);
+typedef void (VKAPI_PTR *PFN_vkCmdSetProvokingVertexModeEXT)(VkCommandBuffer commandBuffer, VkProvokingVertexModeEXT provokingVertexMode);
+typedef void (VKAPI_PTR *PFN_vkCmdSetLineRasterizationModeEXT)(VkCommandBuffer commandBuffer, VkLineRasterizationModeEXT lineRasterizationMode);
+typedef void (VKAPI_PTR *PFN_vkCmdSetLineStippleEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 stippledLineEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClipNegativeOneToOneEXT)(VkCommandBuffer commandBuffer, VkBool32 negativeOneToOne);
+typedef void (VKAPI_PTR *PFN_vkCmdSetViewportWScalingEnableNV)(VkCommandBuffer commandBuffer, VkBool32 viewportWScalingEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetViewportSwizzleNV)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewportSwizzleNV* pViewportSwizzles);
+typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageToColorEnableNV)(VkCommandBuffer commandBuffer, VkBool32 coverageToColorEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageToColorLocationNV)(VkCommandBuffer commandBuffer, uint32_t coverageToColorLocation);
+typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageModulationModeNV)(VkCommandBuffer commandBuffer, VkCoverageModulationModeNV coverageModulationMode);
+typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageModulationTableEnableNV)(VkCommandBuffer commandBuffer, VkBool32 coverageModulationTableEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageModulationTableNV)(VkCommandBuffer commandBuffer, uint32_t coverageModulationTableCount, const float* pCoverageModulationTable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetShadingRateImageEnableNV)(VkCommandBuffer commandBuffer, VkBool32 shadingRateImageEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetRepresentativeFragmentTestEnableNV)(VkCommandBuffer commandBuffer, VkBool32 representativeFragmentTestEnable);
+typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageReductionModeNV)(VkCommandBuffer commandBuffer, VkCoverageReductionModeNV coverageReductionMode);
-// VK_EXT_image_sliced_view_of_3d is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_image_sliced_view_of_3d 1
-#define VK_EXT_IMAGE_SLICED_VIEW_OF_3D_SPEC_VERSION 1
-#define VK_EXT_IMAGE_SLICED_VIEW_OF_3D_EXTENSION_NAME "VK_EXT_image_sliced_view_of_3d"
-#define VK_REMAINING_3D_SLICES_EXT (~0U)
-typedef struct VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 imageSlicedViewOf3D;
-} VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClampEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 depthClampEnable);
-typedef struct VkImageViewSlicedCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t sliceOffset;
- uint32_t sliceCount;
-} VkImageViewSlicedCreateInfoEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetPolygonModeEXT(
+ VkCommandBuffer commandBuffer,
+ VkPolygonMode polygonMode);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRasterizationSamplesEXT(
+ VkCommandBuffer commandBuffer,
+ VkSampleCountFlagBits rasterizationSamples);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetSampleMaskEXT(
+ VkCommandBuffer commandBuffer,
+ VkSampleCountFlagBits samples,
+ const VkSampleMask* pSampleMask);
-// VK_VALVE_descriptor_set_host_mapping is a preprocessor guard. Do not pass it to API calls.
-#define VK_VALVE_descriptor_set_host_mapping 1
-#define VK_VALVE_DESCRIPTOR_SET_HOST_MAPPING_SPEC_VERSION 1
-#define VK_VALVE_DESCRIPTOR_SET_HOST_MAPPING_EXTENSION_NAME "VK_VALVE_descriptor_set_host_mapping"
-typedef struct VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE {
- VkStructureType sType;
- void* pNext;
- VkBool32 descriptorSetHostMapping;
-} VkPhysicalDeviceDescriptorSetHostMappingFeaturesVALVE;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetAlphaToCoverageEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 alphaToCoverageEnable);
-typedef struct VkDescriptorSetBindingReferenceVALVE {
- VkStructureType sType;
- const void* pNext;
- VkDescriptorSetLayout descriptorSetLayout;
- uint32_t binding;
-} VkDescriptorSetBindingReferenceVALVE;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetAlphaToOneEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 alphaToOneEnable);
-typedef struct VkDescriptorSetLayoutHostMappingInfoVALVE {
- VkStructureType sType;
- void* pNext;
- size_t descriptorOffset;
- uint32_t descriptorSize;
-} VkDescriptorSetLayoutHostMappingInfoVALVE;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLogicOpEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 logicOpEnable);
-typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE)(VkDevice device, const VkDescriptorSetBindingReferenceVALVE* pBindingReference, VkDescriptorSetLayoutHostMappingInfoVALVE* pHostMapping);
-typedef void (VKAPI_PTR *PFN_vkGetDescriptorSetHostMappingVALVE)(VkDevice device, VkDescriptorSet descriptorSet, void** ppData);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendEnableEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstAttachment,
+ uint32_t attachmentCount,
+ const VkBool32* pColorBlendEnables);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutHostMappingInfoVALVE(
- VkDevice device,
- const VkDescriptorSetBindingReferenceVALVE* pBindingReference,
- VkDescriptorSetLayoutHostMappingInfoVALVE* pHostMapping);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendEquationEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstAttachment,
+ uint32_t attachmentCount,
+ const VkColorBlendEquationEXT* pColorBlendEquations);
-VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetHostMappingVALVE(
- VkDevice device,
- VkDescriptorSet descriptorSet,
- void** ppData);
-#endif
+VKAPI_ATTR void VKAPI_CALL vkCmdSetColorWriteMaskEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstAttachment,
+ uint32_t attachmentCount,
+ const VkColorComponentFlags* pColorWriteMasks);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetTessellationDomainOriginEXT(
+ VkCommandBuffer commandBuffer,
+ VkTessellationDomainOrigin domainOrigin);
-// VK_EXT_depth_clamp_zero_one is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_depth_clamp_zero_one 1
-#define VK_EXT_DEPTH_CLAMP_ZERO_ONE_SPEC_VERSION 1
-#define VK_EXT_DEPTH_CLAMP_ZERO_ONE_EXTENSION_NAME "VK_EXT_depth_clamp_zero_one"
-typedef struct VkPhysicalDeviceDepthClampZeroOneFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 depthClampZeroOne;
-} VkPhysicalDeviceDepthClampZeroOneFeaturesEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRasterizationStreamEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t rasterizationStream);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetConservativeRasterizationModeEXT(
+ VkCommandBuffer commandBuffer,
+ VkConservativeRasterizationModeEXT conservativeRasterizationMode);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetExtraPrimitiveOverestimationSizeEXT(
+ VkCommandBuffer commandBuffer,
+ float extraPrimitiveOverestimationSize);
-// VK_EXT_non_seamless_cube_map is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_non_seamless_cube_map 1
-#define VK_EXT_NON_SEAMLESS_CUBE_MAP_SPEC_VERSION 1
-#define VK_EXT_NON_SEAMLESS_CUBE_MAP_EXTENSION_NAME "VK_EXT_non_seamless_cube_map"
-typedef struct VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT {
- VkStructureType sType;
- void* pNext;
- VkBool32 nonSeamlessCubeMap;
-} VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClipEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 depthClipEnable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetSampleLocationsEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 sampleLocationsEnable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendAdvancedEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstAttachment,
+ uint32_t attachmentCount,
+ const VkColorBlendAdvancedEXT* pColorBlendAdvanced);
-// VK_ARM_render_pass_striped is a preprocessor guard. Do not pass it to API calls.
-#define VK_ARM_render_pass_striped 1
-#define VK_ARM_RENDER_PASS_STRIPED_SPEC_VERSION 1
-#define VK_ARM_RENDER_PASS_STRIPED_EXTENSION_NAME "VK_ARM_render_pass_striped"
-typedef struct VkPhysicalDeviceRenderPassStripedFeaturesARM {
- VkStructureType sType;
- void* pNext;
- VkBool32 renderPassStriped;
-} VkPhysicalDeviceRenderPassStripedFeaturesARM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetProvokingVertexModeEXT(
+ VkCommandBuffer commandBuffer,
+ VkProvokingVertexModeEXT provokingVertexMode);
-typedef struct VkPhysicalDeviceRenderPassStripedPropertiesARM {
- VkStructureType sType;
- void* pNext;
- VkExtent2D renderPassStripeGranularity;
- uint32_t maxRenderPassStripes;
-} VkPhysicalDeviceRenderPassStripedPropertiesARM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLineRasterizationModeEXT(
+ VkCommandBuffer commandBuffer,
+ VkLineRasterizationModeEXT lineRasterizationMode);
-typedef struct VkRenderPassStripeInfoARM {
- VkStructureType sType;
- const void* pNext;
- VkRect2D stripeArea;
-} VkRenderPassStripeInfoARM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLineStippleEnableEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 stippledLineEnable);
-typedef struct VkRenderPassStripeBeginInfoARM {
- VkStructureType sType;
- const void* pNext;
- uint32_t stripeInfoCount;
- const VkRenderPassStripeInfoARM* pStripeInfos;
-} VkRenderPassStripeBeginInfoARM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClipNegativeOneToOneEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 negativeOneToOne);
-typedef struct VkRenderPassStripeSubmitInfoARM {
- VkStructureType sType;
- const void* pNext;
- uint32_t stripeSemaphoreInfoCount;
- const VkSemaphoreSubmitInfo* pStripeSemaphoreInfos;
-} VkRenderPassStripeSubmitInfoARM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportWScalingEnableNV(
+ VkCommandBuffer commandBuffer,
+ VkBool32 viewportWScalingEnable);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportSwizzleNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstViewport,
+ uint32_t viewportCount,
+ const VkViewportSwizzleNV* pViewportSwizzles);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageToColorEnableNV(
+ VkCommandBuffer commandBuffer,
+ VkBool32 coverageToColorEnable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageToColorLocationNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t coverageToColorLocation);
-// VK_QCOM_fragment_density_map_offset is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_fragment_density_map_offset 1
-#define VK_QCOM_FRAGMENT_DENSITY_MAP_OFFSET_SPEC_VERSION 1
-#define VK_QCOM_FRAGMENT_DENSITY_MAP_OFFSET_EXTENSION_NAME "VK_QCOM_fragment_density_map_offset"
-typedef struct VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM {
- VkStructureType sType;
- void* pNext;
- VkBool32 fragmentDensityMapOffset;
-} VkPhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageModulationModeNV(
+ VkCommandBuffer commandBuffer,
+ VkCoverageModulationModeNV coverageModulationMode);
-typedef struct VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM {
- VkStructureType sType;
- void* pNext;
- VkExtent2D fragmentDensityOffsetGranularity;
-} VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageModulationTableEnableNV(
+ VkCommandBuffer commandBuffer,
+ VkBool32 coverageModulationTableEnable);
-typedef struct VkSubpassFragmentDensityMapOffsetEndInfoQCOM {
- VkStructureType sType;
- const void* pNext;
- uint32_t fragmentDensityOffsetCount;
- const VkOffset2D* pFragmentDensityOffsets;
-} VkSubpassFragmentDensityMapOffsetEndInfoQCOM;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageModulationTableNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t coverageModulationTableCount,
+ const float* pCoverageModulationTable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetShadingRateImageEnableNV(
+ VkCommandBuffer commandBuffer,
+ VkBool32 shadingRateImageEnable);
+VKAPI_ATTR void VKAPI_CALL vkCmdSetRepresentativeFragmentTestEnableNV(
+ VkCommandBuffer commandBuffer,
+ VkBool32 representativeFragmentTestEnable);
-// VK_NV_copy_memory_indirect is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_copy_memory_indirect 1
-#define VK_NV_COPY_MEMORY_INDIRECT_SPEC_VERSION 1
-#define VK_NV_COPY_MEMORY_INDIRECT_EXTENSION_NAME "VK_NV_copy_memory_indirect"
-typedef struct VkCopyMemoryIndirectCommandNV {
- VkDeviceAddress srcAddress;
- VkDeviceAddress dstAddress;
- VkDeviceSize size;
-} VkCopyMemoryIndirectCommandNV;
+VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageReductionModeNV(
+ VkCommandBuffer commandBuffer,
+ VkCoverageReductionModeNV coverageReductionMode);
+#endif
-typedef struct VkCopyMemoryToImageIndirectCommandNV {
- VkDeviceAddress srcAddress;
- uint32_t bufferRowLength;
- uint32_t bufferImageHeight;
- VkImageSubresourceLayers imageSubresource;
- VkOffset3D imageOffset;
- VkExtent3D imageExtent;
-} VkCopyMemoryToImageIndirectCommandNV;
-typedef struct VkPhysicalDeviceCopyMemoryIndirectFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 indirectCopy;
-} VkPhysicalDeviceCopyMemoryIndirectFeaturesNV;
+// VK_EXT_subpass_merge_feedback is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_subpass_merge_feedback 1
+#define VK_EXT_SUBPASS_MERGE_FEEDBACK_SPEC_VERSION 2
+#define VK_EXT_SUBPASS_MERGE_FEEDBACK_EXTENSION_NAME "VK_EXT_subpass_merge_feedback"
-typedef struct VkPhysicalDeviceCopyMemoryIndirectPropertiesNV {
+typedef enum VkSubpassMergeStatusEXT {
+ VK_SUBPASS_MERGE_STATUS_MERGED_EXT = 0,
+ VK_SUBPASS_MERGE_STATUS_DISALLOWED_EXT = 1,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SIDE_EFFECTS_EXT = 2,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SAMPLES_MISMATCH_EXT = 3,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_VIEWS_MISMATCH_EXT = 4,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_ALIASING_EXT = 5,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_DEPENDENCIES_EXT = 6,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_INCOMPATIBLE_INPUT_ATTACHMENT_EXT = 7,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_TOO_MANY_ATTACHMENTS_EXT = 8,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_INSUFFICIENT_STORAGE_EXT = 9,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_DEPTH_STENCIL_COUNT_EXT = 10,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_RESOLVE_ATTACHMENT_REUSE_EXT = 11,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SINGLE_SUBPASS_EXT = 12,
+ VK_SUBPASS_MERGE_STATUS_NOT_MERGED_UNSPECIFIED_EXT = 13,
+ VK_SUBPASS_MERGE_STATUS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkSubpassMergeStatusEXT;
+typedef struct VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkQueueFlags supportedQueues;
-} VkPhysicalDeviceCopyMemoryIndirectPropertiesNV;
+ VkBool32 subpassMergeFeedback;
+} VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdCopyMemoryIndirectNV)(VkCommandBuffer commandBuffer, VkDeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride);
-typedef void (VKAPI_PTR *PFN_vkCmdCopyMemoryToImageIndirectNV)(VkCommandBuffer commandBuffer, VkDeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride, VkImage dstImage, VkImageLayout dstImageLayout, const VkImageSubresourceLayers* pImageSubresources);
+typedef struct VkRenderPassCreationControlEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 disallowMerging;
+} VkRenderPassCreationControlEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdCopyMemoryIndirectNV(
- VkCommandBuffer commandBuffer,
- VkDeviceAddress copyBufferAddress,
- uint32_t copyCount,
- uint32_t stride);
+typedef struct VkRenderPassCreationFeedbackInfoEXT {
+ uint32_t postMergeSubpassCount;
+} VkRenderPassCreationFeedbackInfoEXT;
-VKAPI_ATTR void VKAPI_CALL vkCmdCopyMemoryToImageIndirectNV(
- VkCommandBuffer commandBuffer,
- VkDeviceAddress copyBufferAddress,
- uint32_t copyCount,
- uint32_t stride,
- VkImage dstImage,
- VkImageLayout dstImageLayout,
- const VkImageSubresourceLayers* pImageSubresources);
-#endif
+typedef struct VkRenderPassCreationFeedbackCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkRenderPassCreationFeedbackInfoEXT* pRenderPassFeedback;
+} VkRenderPassCreationFeedbackCreateInfoEXT;
+typedef struct VkRenderPassSubpassFeedbackInfoEXT {
+ VkSubpassMergeStatusEXT subpassMergeStatus;
+ char description[VK_MAX_DESCRIPTION_SIZE];
+ uint32_t postMergeIndex;
+} VkRenderPassSubpassFeedbackInfoEXT;
-// VK_NV_memory_decompression is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_memory_decompression 1
-#define VK_NV_MEMORY_DECOMPRESSION_SPEC_VERSION 1
-#define VK_NV_MEMORY_DECOMPRESSION_EXTENSION_NAME "VK_NV_memory_decompression"
+typedef struct VkRenderPassSubpassFeedbackCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkRenderPassSubpassFeedbackInfoEXT* pSubpassFeedback;
+} VkRenderPassSubpassFeedbackCreateInfoEXT;
-// Flag bits for VkMemoryDecompressionMethodFlagBitsNV
-typedef VkFlags64 VkMemoryDecompressionMethodFlagBitsNV;
-static const VkMemoryDecompressionMethodFlagBitsNV VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_NV = 0x00000001ULL;
-typedef VkFlags64 VkMemoryDecompressionMethodFlagsNV;
-typedef struct VkDecompressMemoryRegionNV {
- VkDeviceAddress srcAddress;
- VkDeviceAddress dstAddress;
- VkDeviceSize compressedSize;
- VkDeviceSize decompressedSize;
- VkMemoryDecompressionMethodFlagsNV decompressionMethod;
-} VkDecompressMemoryRegionNV;
-typedef struct VkPhysicalDeviceMemoryDecompressionFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 memoryDecompression;
-} VkPhysicalDeviceMemoryDecompressionFeaturesNV;
+// VK_LUNARG_direct_driver_loading is a preprocessor guard. Do not pass it to API calls.
+#define VK_LUNARG_direct_driver_loading 1
+#define VK_LUNARG_DIRECT_DRIVER_LOADING_SPEC_VERSION 1
+#define VK_LUNARG_DIRECT_DRIVER_LOADING_EXTENSION_NAME "VK_LUNARG_direct_driver_loading"
-typedef struct VkPhysicalDeviceMemoryDecompressionPropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkMemoryDecompressionMethodFlagsNV decompressionMethods;
- uint64_t maxDecompressionIndirectCount;
-} VkPhysicalDeviceMemoryDecompressionPropertiesNV;
+typedef enum VkDirectDriverLoadingModeLUNARG {
+ VK_DIRECT_DRIVER_LOADING_MODE_EXCLUSIVE_LUNARG = 0,
+ VK_DIRECT_DRIVER_LOADING_MODE_INCLUSIVE_LUNARG = 1,
+ VK_DIRECT_DRIVER_LOADING_MODE_MAX_ENUM_LUNARG = 0x7FFFFFFF
+} VkDirectDriverLoadingModeLUNARG;
+typedef VkFlags VkDirectDriverLoadingFlagsLUNARG;
+typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddrLUNARG)(
+ VkInstance instance, const char* pName);
-typedef void (VKAPI_PTR *PFN_vkCmdDecompressMemoryNV)(VkCommandBuffer commandBuffer, uint32_t decompressRegionCount, const VkDecompressMemoryRegionNV* pDecompressMemoryRegions);
-typedef void (VKAPI_PTR *PFN_vkCmdDecompressMemoryIndirectCountNV)(VkCommandBuffer commandBuffer, VkDeviceAddress indirectCommandsAddress, VkDeviceAddress indirectCommandsCountAddress, uint32_t stride);
+typedef struct VkDirectDriverLoadingInfoLUNARG {
+ VkStructureType sType;
+ void* pNext;
+ VkDirectDriverLoadingFlagsLUNARG flags;
+ PFN_vkGetInstanceProcAddrLUNARG pfnGetInstanceProcAddr;
+} VkDirectDriverLoadingInfoLUNARG;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdDecompressMemoryNV(
- VkCommandBuffer commandBuffer,
- uint32_t decompressRegionCount,
- const VkDecompressMemoryRegionNV* pDecompressMemoryRegions);
+typedef struct VkDirectDriverLoadingListLUNARG {
+ VkStructureType sType;
+ const void* pNext;
+ VkDirectDriverLoadingModeLUNARG mode;
+ uint32_t driverCount;
+ const VkDirectDriverLoadingInfoLUNARG* pDrivers;
+} VkDirectDriverLoadingListLUNARG;
-VKAPI_ATTR void VKAPI_CALL vkCmdDecompressMemoryIndirectCountNV(
- VkCommandBuffer commandBuffer,
- VkDeviceAddress indirectCommandsAddress,
- VkDeviceAddress indirectCommandsCountAddress,
- uint32_t stride);
-#endif
-// VK_NV_device_generated_commands_compute is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_device_generated_commands_compute 1
-#define VK_NV_DEVICE_GENERATED_COMMANDS_COMPUTE_SPEC_VERSION 2
-#define VK_NV_DEVICE_GENERATED_COMMANDS_COMPUTE_EXTENSION_NAME "VK_NV_device_generated_commands_compute"
-typedef struct VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV {
+// VK_EXT_shader_module_identifier is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_module_identifier 1
+#define VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT 32U
+#define VK_EXT_SHADER_MODULE_IDENTIFIER_SPEC_VERSION 1
+#define VK_EXT_SHADER_MODULE_IDENTIFIER_EXTENSION_NAME "VK_EXT_shader_module_identifier"
+typedef struct VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 deviceGeneratedCompute;
- VkBool32 deviceGeneratedComputePipelines;
- VkBool32 deviceGeneratedComputeCaptureReplay;
-} VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV;
+ VkBool32 shaderModuleIdentifier;
+} VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT;
-typedef struct VkComputePipelineIndirectBufferInfoNV {
+typedef struct VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT {
VkStructureType sType;
- const void* pNext;
- VkDeviceAddress deviceAddress;
- VkDeviceSize size;
- VkDeviceAddress pipelineDeviceAddressCaptureReplay;
-} VkComputePipelineIndirectBufferInfoNV;
+ void* pNext;
+ uint8_t shaderModuleIdentifierAlgorithmUUID[VK_UUID_SIZE];
+} VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT;
-typedef struct VkPipelineIndirectDeviceAddressInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkPipelineBindPoint pipelineBindPoint;
- VkPipeline pipeline;
-} VkPipelineIndirectDeviceAddressInfoNV;
+typedef struct VkPipelineShaderStageModuleIdentifierCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t identifierSize;
+ const uint8_t* pIdentifier;
+} VkPipelineShaderStageModuleIdentifierCreateInfoEXT;
-typedef struct VkBindPipelineIndirectCommandNV {
- VkDeviceAddress pipelineAddress;
-} VkBindPipelineIndirectCommandNV;
+typedef struct VkShaderModuleIdentifierEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t identifierSize;
+ uint8_t identifier[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT];
+} VkShaderModuleIdentifierEXT;
-typedef void (VKAPI_PTR *PFN_vkGetPipelineIndirectMemoryRequirementsNV)(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef void (VKAPI_PTR *PFN_vkCmdUpdatePipelineIndirectBufferNV)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline);
-typedef VkDeviceAddress (VKAPI_PTR *PFN_vkGetPipelineIndirectDeviceAddressNV)(VkDevice device, const VkPipelineIndirectDeviceAddressInfoNV* pInfo);
+typedef void (VKAPI_PTR *PFN_vkGetShaderModuleIdentifierEXT)(VkDevice device, VkShaderModule shaderModule, VkShaderModuleIdentifierEXT* pIdentifier);
+typedef void (VKAPI_PTR *PFN_vkGetShaderModuleCreateInfoIdentifierEXT)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModuleIdentifierEXT* pIdentifier);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetPipelineIndirectMemoryRequirementsNV(
+VKAPI_ATTR void VKAPI_CALL vkGetShaderModuleIdentifierEXT(
VkDevice device,
- const VkComputePipelineCreateInfo* pCreateInfo,
- VkMemoryRequirements2* pMemoryRequirements);
-
-VKAPI_ATTR void VKAPI_CALL vkCmdUpdatePipelineIndirectBufferNV(
- VkCommandBuffer commandBuffer,
- VkPipelineBindPoint pipelineBindPoint,
- VkPipeline pipeline);
+ VkShaderModule shaderModule,
+ VkShaderModuleIdentifierEXT* pIdentifier);
-VKAPI_ATTR VkDeviceAddress VKAPI_CALL vkGetPipelineIndirectDeviceAddressNV(
+VKAPI_ATTR void VKAPI_CALL vkGetShaderModuleCreateInfoIdentifierEXT(
VkDevice device,
- const VkPipelineIndirectDeviceAddressInfoNV* pInfo);
+ const VkShaderModuleCreateInfo* pCreateInfo,
+ VkShaderModuleIdentifierEXT* pIdentifier);
#endif
-// VK_NV_linear_color_attachment is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_linear_color_attachment 1
-#define VK_NV_LINEAR_COLOR_ATTACHMENT_SPEC_VERSION 1
-#define VK_NV_LINEAR_COLOR_ATTACHMENT_EXTENSION_NAME "VK_NV_linear_color_attachment"
-typedef struct VkPhysicalDeviceLinearColorAttachmentFeaturesNV {
- VkStructureType sType;
- void* pNext;
- VkBool32 linearColorAttachment;
-} VkPhysicalDeviceLinearColorAttachmentFeaturesNV;
+// VK_EXT_rasterization_order_attachment_access is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_rasterization_order_attachment_access 1
+#define VK_EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION 1
+#define VK_EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_EXTENSION_NAME "VK_EXT_rasterization_order_attachment_access"
+// VK_NV_optical_flow is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_optical_flow 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkOpticalFlowSessionNV)
+#define VK_NV_OPTICAL_FLOW_SPEC_VERSION 1
+#define VK_NV_OPTICAL_FLOW_EXTENSION_NAME "VK_NV_optical_flow"
-// VK_GOOGLE_surfaceless_query is a preprocessor guard. Do not pass it to API calls.
-#define VK_GOOGLE_surfaceless_query 1
-#define VK_GOOGLE_SURFACELESS_QUERY_SPEC_VERSION 2
-#define VK_GOOGLE_SURFACELESS_QUERY_EXTENSION_NAME "VK_GOOGLE_surfaceless_query"
+typedef enum VkOpticalFlowPerformanceLevelNV {
+ VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_UNKNOWN_NV = 0,
+ VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_SLOW_NV = 1,
+ VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_MEDIUM_NV = 2,
+ VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_FAST_NV = 3,
+ VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOpticalFlowPerformanceLevelNV;
+typedef enum VkOpticalFlowSessionBindingPointNV {
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_UNKNOWN_NV = 0,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_INPUT_NV = 1,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_REFERENCE_NV = 2,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_HINT_NV = 3,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_FLOW_VECTOR_NV = 4,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_FLOW_VECTOR_NV = 5,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_COST_NV = 6,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_COST_NV = 7,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_GLOBAL_FLOW_NV = 8,
+ VK_OPTICAL_FLOW_SESSION_BINDING_POINT_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOpticalFlowSessionBindingPointNV;
-// VK_EXT_image_compression_control_swapchain is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_image_compression_control_swapchain 1
-#define VK_EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_SPEC_VERSION 1
-#define VK_EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_EXTENSION_NAME "VK_EXT_image_compression_control_swapchain"
-typedef struct VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT {
+typedef enum VkOpticalFlowGridSizeFlagBitsNV {
+ VK_OPTICAL_FLOW_GRID_SIZE_UNKNOWN_NV = 0,
+ VK_OPTICAL_FLOW_GRID_SIZE_1X1_BIT_NV = 0x00000001,
+ VK_OPTICAL_FLOW_GRID_SIZE_2X2_BIT_NV = 0x00000002,
+ VK_OPTICAL_FLOW_GRID_SIZE_4X4_BIT_NV = 0x00000004,
+ VK_OPTICAL_FLOW_GRID_SIZE_8X8_BIT_NV = 0x00000008,
+ VK_OPTICAL_FLOW_GRID_SIZE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOpticalFlowGridSizeFlagBitsNV;
+typedef VkFlags VkOpticalFlowGridSizeFlagsNV;
+
+typedef enum VkOpticalFlowUsageFlagBitsNV {
+ VK_OPTICAL_FLOW_USAGE_UNKNOWN_NV = 0,
+ VK_OPTICAL_FLOW_USAGE_INPUT_BIT_NV = 0x00000001,
+ VK_OPTICAL_FLOW_USAGE_OUTPUT_BIT_NV = 0x00000002,
+ VK_OPTICAL_FLOW_USAGE_HINT_BIT_NV = 0x00000004,
+ VK_OPTICAL_FLOW_USAGE_COST_BIT_NV = 0x00000008,
+ VK_OPTICAL_FLOW_USAGE_GLOBAL_FLOW_BIT_NV = 0x00000010,
+ VK_OPTICAL_FLOW_USAGE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOpticalFlowUsageFlagBitsNV;
+typedef VkFlags VkOpticalFlowUsageFlagsNV;
+
+typedef enum VkOpticalFlowSessionCreateFlagBitsNV {
+ VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_HINT_BIT_NV = 0x00000001,
+ VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_COST_BIT_NV = 0x00000002,
+ VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_GLOBAL_FLOW_BIT_NV = 0x00000004,
+ VK_OPTICAL_FLOW_SESSION_CREATE_ALLOW_REGIONS_BIT_NV = 0x00000008,
+ VK_OPTICAL_FLOW_SESSION_CREATE_BOTH_DIRECTIONS_BIT_NV = 0x00000010,
+ VK_OPTICAL_FLOW_SESSION_CREATE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOpticalFlowSessionCreateFlagBitsNV;
+typedef VkFlags VkOpticalFlowSessionCreateFlagsNV;
+
+typedef enum VkOpticalFlowExecuteFlagBitsNV {
+ VK_OPTICAL_FLOW_EXECUTE_DISABLE_TEMPORAL_HINTS_BIT_NV = 0x00000001,
+ VK_OPTICAL_FLOW_EXECUTE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOpticalFlowExecuteFlagBitsNV;
+typedef VkFlags VkOpticalFlowExecuteFlagsNV;
+typedef struct VkPhysicalDeviceOpticalFlowFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 imageCompressionControlSwapchain;
-} VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT;
+ VkBool32 opticalFlow;
+} VkPhysicalDeviceOpticalFlowFeaturesNV;
+typedef struct VkPhysicalDeviceOpticalFlowPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkOpticalFlowGridSizeFlagsNV supportedOutputGridSizes;
+ VkOpticalFlowGridSizeFlagsNV supportedHintGridSizes;
+ VkBool32 hintSupported;
+ VkBool32 costSupported;
+ VkBool32 bidirectionalFlowSupported;
+ VkBool32 globalFlowSupported;
+ uint32_t minWidth;
+ uint32_t minHeight;
+ uint32_t maxWidth;
+ uint32_t maxHeight;
+ uint32_t maxNumRegionsOfInterest;
+} VkPhysicalDeviceOpticalFlowPropertiesNV;
+typedef struct VkOpticalFlowImageFormatInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkOpticalFlowUsageFlagsNV usage;
+} VkOpticalFlowImageFormatInfoNV;
-// VK_QCOM_image_processing is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_image_processing 1
-#define VK_QCOM_IMAGE_PROCESSING_SPEC_VERSION 1
-#define VK_QCOM_IMAGE_PROCESSING_EXTENSION_NAME "VK_QCOM_image_processing"
-typedef struct VkImageViewSampleWeightCreateInfoQCOM {
+typedef struct VkOpticalFlowImageFormatPropertiesNV {
VkStructureType sType;
const void* pNext;
- VkOffset2D filterCenter;
- VkExtent2D filterSize;
- uint32_t numPhases;
-} VkImageViewSampleWeightCreateInfoQCOM;
+ VkFormat format;
+} VkOpticalFlowImageFormatPropertiesNV;
-typedef struct VkPhysicalDeviceImageProcessingFeaturesQCOM {
- VkStructureType sType;
- void* pNext;
- VkBool32 textureSampleWeighted;
- VkBool32 textureBoxFilter;
- VkBool32 textureBlockMatch;
-} VkPhysicalDeviceImageProcessingFeaturesQCOM;
+typedef struct VkOpticalFlowSessionCreateInfoNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t width;
+ uint32_t height;
+ VkFormat imageFormat;
+ VkFormat flowVectorFormat;
+ VkFormat costFormat;
+ VkOpticalFlowGridSizeFlagsNV outputGridSize;
+ VkOpticalFlowGridSizeFlagsNV hintGridSize;
+ VkOpticalFlowPerformanceLevelNV performanceLevel;
+ VkOpticalFlowSessionCreateFlagsNV flags;
+} VkOpticalFlowSessionCreateInfoNV;
-typedef struct VkPhysicalDeviceImageProcessingPropertiesQCOM {
+typedef struct VkOpticalFlowSessionCreatePrivateDataInfoNV {
VkStructureType sType;
void* pNext;
- uint32_t maxWeightFilterPhases;
- VkExtent2D maxWeightFilterDimension;
- VkExtent2D maxBlockMatchRegion;
- VkExtent2D maxBoxFilterBlockSize;
-} VkPhysicalDeviceImageProcessingPropertiesQCOM;
+ uint32_t id;
+ uint32_t size;
+ const void* pPrivateData;
+} VkOpticalFlowSessionCreatePrivateDataInfoNV;
+typedef struct VkOpticalFlowExecuteInfoNV {
+ VkStructureType sType;
+ void* pNext;
+ VkOpticalFlowExecuteFlagsNV flags;
+ uint32_t regionCount;
+ const VkRect2D* pRegions;
+} VkOpticalFlowExecuteInfoNV;
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV)(VkPhysicalDevice physicalDevice, const VkOpticalFlowImageFormatInfoNV* pOpticalFlowImageFormatInfo, uint32_t* pFormatCount, VkOpticalFlowImageFormatPropertiesNV* pImageFormatProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateOpticalFlowSessionNV)(VkDevice device, const VkOpticalFlowSessionCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkOpticalFlowSessionNV* pSession);
+typedef void (VKAPI_PTR *PFN_vkDestroyOpticalFlowSessionNV)(VkDevice device, VkOpticalFlowSessionNV session, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkBindOpticalFlowSessionImageNV)(VkDevice device, VkOpticalFlowSessionNV session, VkOpticalFlowSessionBindingPointNV bindingPoint, VkImageView view, VkImageLayout layout);
+typedef void (VKAPI_PTR *PFN_vkCmdOpticalFlowExecuteNV)(VkCommandBuffer commandBuffer, VkOpticalFlowSessionNV session, const VkOpticalFlowExecuteInfoNV* pExecuteInfo);
-// VK_EXT_nested_command_buffer is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_nested_command_buffer 1
-#define VK_EXT_NESTED_COMMAND_BUFFER_SPEC_VERSION 1
-#define VK_EXT_NESTED_COMMAND_BUFFER_EXTENSION_NAME "VK_EXT_nested_command_buffer"
-typedef struct VkPhysicalDeviceNestedCommandBufferFeaturesEXT {
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
+ VkPhysicalDevice physicalDevice,
+ const VkOpticalFlowImageFormatInfoNV* pOpticalFlowImageFormatInfo,
+ uint32_t* pFormatCount,
+ VkOpticalFlowImageFormatPropertiesNV* pImageFormatProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateOpticalFlowSessionNV(
+ VkDevice device,
+ const VkOpticalFlowSessionCreateInfoNV* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkOpticalFlowSessionNV* pSession);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyOpticalFlowSessionNV(
+ VkDevice device,
+ VkOpticalFlowSessionNV session,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkBindOpticalFlowSessionImageNV(
+ VkDevice device,
+ VkOpticalFlowSessionNV session,
+ VkOpticalFlowSessionBindingPointNV bindingPoint,
+ VkImageView view,
+ VkImageLayout layout);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdOpticalFlowExecuteNV(
+ VkCommandBuffer commandBuffer,
+ VkOpticalFlowSessionNV session,
+ const VkOpticalFlowExecuteInfoNV* pExecuteInfo);
+#endif
+
+
+// VK_EXT_legacy_dithering is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_legacy_dithering 1
+#define VK_EXT_LEGACY_DITHERING_SPEC_VERSION 2
+#define VK_EXT_LEGACY_DITHERING_EXTENSION_NAME "VK_EXT_legacy_dithering"
+typedef struct VkPhysicalDeviceLegacyDitheringFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 nestedCommandBuffer;
- VkBool32 nestedCommandBufferRendering;
- VkBool32 nestedCommandBufferSimultaneousUse;
-} VkPhysicalDeviceNestedCommandBufferFeaturesEXT;
+ VkBool32 legacyDithering;
+} VkPhysicalDeviceLegacyDitheringFeaturesEXT;
+
+
+
+// VK_EXT_pipeline_protected_access is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pipeline_protected_access 1
+#define VK_EXT_PIPELINE_PROTECTED_ACCESS_SPEC_VERSION 1
+#define VK_EXT_PIPELINE_PROTECTED_ACCESS_EXTENSION_NAME "VK_EXT_pipeline_protected_access"
+typedef VkPhysicalDevicePipelineProtectedAccessFeatures VkPhysicalDevicePipelineProtectedAccessFeaturesEXT;
-typedef struct VkPhysicalDeviceNestedCommandBufferPropertiesEXT {
+
+
+// VK_AMD_anti_lag is a preprocessor guard. Do not pass it to API calls.
+#define VK_AMD_anti_lag 1
+#define VK_AMD_ANTI_LAG_SPEC_VERSION 1
+#define VK_AMD_ANTI_LAG_EXTENSION_NAME "VK_AMD_anti_lag"
+
+typedef enum VkAntiLagModeAMD {
+ VK_ANTI_LAG_MODE_DRIVER_CONTROL_AMD = 0,
+ VK_ANTI_LAG_MODE_ON_AMD = 1,
+ VK_ANTI_LAG_MODE_OFF_AMD = 2,
+ VK_ANTI_LAG_MODE_MAX_ENUM_AMD = 0x7FFFFFFF
+} VkAntiLagModeAMD;
+
+typedef enum VkAntiLagStageAMD {
+ VK_ANTI_LAG_STAGE_INPUT_AMD = 0,
+ VK_ANTI_LAG_STAGE_PRESENT_AMD = 1,
+ VK_ANTI_LAG_STAGE_MAX_ENUM_AMD = 0x7FFFFFFF
+} VkAntiLagStageAMD;
+typedef struct VkPhysicalDeviceAntiLagFeaturesAMD {
VkStructureType sType;
void* pNext;
- uint32_t maxCommandBufferNestingLevel;
-} VkPhysicalDeviceNestedCommandBufferPropertiesEXT;
+ VkBool32 antiLag;
+} VkPhysicalDeviceAntiLagFeaturesAMD;
+typedef struct VkAntiLagPresentationInfoAMD {
+ VkStructureType sType;
+ void* pNext;
+ VkAntiLagStageAMD stage;
+ uint64_t frameIndex;
+} VkAntiLagPresentationInfoAMD;
+typedef struct VkAntiLagDataAMD {
+ VkStructureType sType;
+ const void* pNext;
+ VkAntiLagModeAMD mode;
+ uint32_t maxFPS;
+ const VkAntiLagPresentationInfoAMD* pPresentationInfo;
+} VkAntiLagDataAMD;
-// VK_EXT_external_memory_acquire_unmodified is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_external_memory_acquire_unmodified 1
-#define VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_SPEC_VERSION 1
-#define VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXTENSION_NAME "VK_EXT_external_memory_acquire_unmodified"
-typedef struct VkExternalMemoryAcquireUnmodifiedEXT {
- VkStructureType sType;
- const void* pNext;
- VkBool32 acquireUnmodifiedMemory;
-} VkExternalMemoryAcquireUnmodifiedEXT;
+typedef void (VKAPI_PTR *PFN_vkAntiLagUpdateAMD)(VkDevice device, const VkAntiLagDataAMD* pData);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkAntiLagUpdateAMD(
+ VkDevice device,
+ const VkAntiLagDataAMD* pData);
+#endif
-// VK_EXT_extended_dynamic_state3 is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_extended_dynamic_state3 1
-#define VK_EXT_EXTENDED_DYNAMIC_STATE_3_SPEC_VERSION 2
-#define VK_EXT_EXTENDED_DYNAMIC_STATE_3_EXTENSION_NAME "VK_EXT_extended_dynamic_state3"
-typedef struct VkPhysicalDeviceExtendedDynamicState3FeaturesEXT {
+// VK_EXT_shader_object is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_object 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderEXT)
+#define VK_EXT_SHADER_OBJECT_SPEC_VERSION 1
+#define VK_EXT_SHADER_OBJECT_EXTENSION_NAME "VK_EXT_shader_object"
+
+typedef enum VkShaderCodeTypeEXT {
+ VK_SHADER_CODE_TYPE_BINARY_EXT = 0,
+ VK_SHADER_CODE_TYPE_SPIRV_EXT = 1,
+ VK_SHADER_CODE_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkShaderCodeTypeEXT;
+
+typedef enum VkDepthClampModeEXT {
+ VK_DEPTH_CLAMP_MODE_VIEWPORT_RANGE_EXT = 0,
+ VK_DEPTH_CLAMP_MODE_USER_DEFINED_RANGE_EXT = 1,
+ VK_DEPTH_CLAMP_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDepthClampModeEXT;
+
+typedef enum VkShaderCreateFlagBitsEXT {
+ VK_SHADER_CREATE_LINK_STAGE_BIT_EXT = 0x00000001,
+ VK_SHADER_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT = 0x00000002,
+ VK_SHADER_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT = 0x00000004,
+ VK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT = 0x00000008,
+ VK_SHADER_CREATE_DISPATCH_BASE_BIT_EXT = 0x00000010,
+ VK_SHADER_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_EXT = 0x00000020,
+ VK_SHADER_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = 0x00000040,
+ VK_SHADER_CREATE_INDIRECT_BINDABLE_BIT_EXT = 0x00000080,
+ VK_SHADER_CREATE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkShaderCreateFlagBitsEXT;
+typedef VkFlags VkShaderCreateFlagsEXT;
+typedef struct VkPhysicalDeviceShaderObjectFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 extendedDynamicState3TessellationDomainOrigin;
- VkBool32 extendedDynamicState3DepthClampEnable;
- VkBool32 extendedDynamicState3PolygonMode;
- VkBool32 extendedDynamicState3RasterizationSamples;
- VkBool32 extendedDynamicState3SampleMask;
- VkBool32 extendedDynamicState3AlphaToCoverageEnable;
- VkBool32 extendedDynamicState3AlphaToOneEnable;
- VkBool32 extendedDynamicState3LogicOpEnable;
- VkBool32 extendedDynamicState3ColorBlendEnable;
- VkBool32 extendedDynamicState3ColorBlendEquation;
- VkBool32 extendedDynamicState3ColorWriteMask;
- VkBool32 extendedDynamicState3RasterizationStream;
- VkBool32 extendedDynamicState3ConservativeRasterizationMode;
- VkBool32 extendedDynamicState3ExtraPrimitiveOverestimationSize;
- VkBool32 extendedDynamicState3DepthClipEnable;
- VkBool32 extendedDynamicState3SampleLocationsEnable;
- VkBool32 extendedDynamicState3ColorBlendAdvanced;
- VkBool32 extendedDynamicState3ProvokingVertexMode;
- VkBool32 extendedDynamicState3LineRasterizationMode;
- VkBool32 extendedDynamicState3LineStippleEnable;
- VkBool32 extendedDynamicState3DepthClipNegativeOneToOne;
- VkBool32 extendedDynamicState3ViewportWScalingEnable;
- VkBool32 extendedDynamicState3ViewportSwizzle;
- VkBool32 extendedDynamicState3CoverageToColorEnable;
- VkBool32 extendedDynamicState3CoverageToColorLocation;
- VkBool32 extendedDynamicState3CoverageModulationMode;
- VkBool32 extendedDynamicState3CoverageModulationTableEnable;
- VkBool32 extendedDynamicState3CoverageModulationTable;
- VkBool32 extendedDynamicState3CoverageReductionMode;
- VkBool32 extendedDynamicState3RepresentativeFragmentTestEnable;
- VkBool32 extendedDynamicState3ShadingRateImageEnable;
-} VkPhysicalDeviceExtendedDynamicState3FeaturesEXT;
+ VkBool32 shaderObject;
+} VkPhysicalDeviceShaderObjectFeaturesEXT;
-typedef struct VkPhysicalDeviceExtendedDynamicState3PropertiesEXT {
+typedef struct VkPhysicalDeviceShaderObjectPropertiesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 dynamicPrimitiveTopologyUnrestricted;
-} VkPhysicalDeviceExtendedDynamicState3PropertiesEXT;
+ uint8_t shaderBinaryUUID[VK_UUID_SIZE];
+ uint32_t shaderBinaryVersion;
+} VkPhysicalDeviceShaderObjectPropertiesEXT;
-typedef struct VkColorBlendEquationEXT {
- VkBlendFactor srcColorBlendFactor;
- VkBlendFactor dstColorBlendFactor;
- VkBlendOp colorBlendOp;
- VkBlendFactor srcAlphaBlendFactor;
- VkBlendFactor dstAlphaBlendFactor;
- VkBlendOp alphaBlendOp;
-} VkColorBlendEquationEXT;
+typedef struct VkShaderCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkShaderCreateFlagsEXT flags;
+ VkShaderStageFlagBits stage;
+ VkShaderStageFlags nextStage;
+ VkShaderCodeTypeEXT codeType;
+ size_t codeSize;
+ const void* pCode;
+ const char* pName;
+ uint32_t setLayoutCount;
+ const VkDescriptorSetLayout* pSetLayouts;
+ uint32_t pushConstantRangeCount;
+ const VkPushConstantRange* pPushConstantRanges;
+ const VkSpecializationInfo* pSpecializationInfo;
+} VkShaderCreateInfoEXT;
-typedef struct VkColorBlendAdvancedEXT {
- VkBlendOp advancedBlendOp;
- VkBool32 srcPremultiplied;
- VkBool32 dstPremultiplied;
- VkBlendOverlapEXT blendOverlap;
- VkBool32 clampResults;
-} VkColorBlendAdvancedEXT;
+typedef VkPipelineShaderStageRequiredSubgroupSizeCreateInfo VkShaderRequiredSubgroupSizeCreateInfoEXT;
-typedef void (VKAPI_PTR *PFN_vkCmdSetTessellationDomainOriginEXT)(VkCommandBuffer commandBuffer, VkTessellationDomainOrigin domainOrigin);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClampEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthClampEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetPolygonModeEXT)(VkCommandBuffer commandBuffer, VkPolygonMode polygonMode);
-typedef void (VKAPI_PTR *PFN_vkCmdSetRasterizationSamplesEXT)(VkCommandBuffer commandBuffer, VkSampleCountFlagBits rasterizationSamples);
-typedef void (VKAPI_PTR *PFN_vkCmdSetSampleMaskEXT)(VkCommandBuffer commandBuffer, VkSampleCountFlagBits samples, const VkSampleMask* pSampleMask);
-typedef void (VKAPI_PTR *PFN_vkCmdSetAlphaToCoverageEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 alphaToCoverageEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetAlphaToOneEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 alphaToOneEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetLogicOpEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 logicOpEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetColorBlendEnableEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkBool32* pColorBlendEnables);
-typedef void (VKAPI_PTR *PFN_vkCmdSetColorBlendEquationEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorBlendEquationEXT* pColorBlendEquations);
-typedef void (VKAPI_PTR *PFN_vkCmdSetColorWriteMaskEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorComponentFlags* pColorWriteMasks);
-typedef void (VKAPI_PTR *PFN_vkCmdSetRasterizationStreamEXT)(VkCommandBuffer commandBuffer, uint32_t rasterizationStream);
-typedef void (VKAPI_PTR *PFN_vkCmdSetConservativeRasterizationModeEXT)(VkCommandBuffer commandBuffer, VkConservativeRasterizationModeEXT conservativeRasterizationMode);
-typedef void (VKAPI_PTR *PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT)(VkCommandBuffer commandBuffer, float extraPrimitiveOverestimationSize);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClipEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 depthClipEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetSampleLocationsEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 sampleLocationsEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetColorBlendAdvancedEXT)(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorBlendAdvancedEXT* pColorBlendAdvanced);
-typedef void (VKAPI_PTR *PFN_vkCmdSetProvokingVertexModeEXT)(VkCommandBuffer commandBuffer, VkProvokingVertexModeEXT provokingVertexMode);
-typedef void (VKAPI_PTR *PFN_vkCmdSetLineRasterizationModeEXT)(VkCommandBuffer commandBuffer, VkLineRasterizationModeEXT lineRasterizationMode);
-typedef void (VKAPI_PTR *PFN_vkCmdSetLineStippleEnableEXT)(VkCommandBuffer commandBuffer, VkBool32 stippledLineEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClipNegativeOneToOneEXT)(VkCommandBuffer commandBuffer, VkBool32 negativeOneToOne);
-typedef void (VKAPI_PTR *PFN_vkCmdSetViewportWScalingEnableNV)(VkCommandBuffer commandBuffer, VkBool32 viewportWScalingEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetViewportSwizzleNV)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewportSwizzleNV* pViewportSwizzles);
-typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageToColorEnableNV)(VkCommandBuffer commandBuffer, VkBool32 coverageToColorEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageToColorLocationNV)(VkCommandBuffer commandBuffer, uint32_t coverageToColorLocation);
-typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageModulationModeNV)(VkCommandBuffer commandBuffer, VkCoverageModulationModeNV coverageModulationMode);
-typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageModulationTableEnableNV)(VkCommandBuffer commandBuffer, VkBool32 coverageModulationTableEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageModulationTableNV)(VkCommandBuffer commandBuffer, uint32_t coverageModulationTableCount, const float* pCoverageModulationTable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetShadingRateImageEnableNV)(VkCommandBuffer commandBuffer, VkBool32 shadingRateImageEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetRepresentativeFragmentTestEnableNV)(VkCommandBuffer commandBuffer, VkBool32 representativeFragmentTestEnable);
-typedef void (VKAPI_PTR *PFN_vkCmdSetCoverageReductionModeNV)(VkCommandBuffer commandBuffer, VkCoverageReductionModeNV coverageReductionMode);
+typedef struct VkDepthClampRangeEXT {
+ float minDepthClamp;
+ float maxDepthClamp;
+} VkDepthClampRangeEXT;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetTessellationDomainOriginEXT(
- VkCommandBuffer commandBuffer,
- VkTessellationDomainOrigin domainOrigin);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateShadersEXT)(VkDevice device, uint32_t createInfoCount, const VkShaderCreateInfoEXT* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkShaderEXT* pShaders);
+typedef void (VKAPI_PTR *PFN_vkDestroyShaderEXT)(VkDevice device, VkShaderEXT shader, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetShaderBinaryDataEXT)(VkDevice device, VkShaderEXT shader, size_t* pDataSize, void* pData);
+typedef void (VKAPI_PTR *PFN_vkCmdBindShadersEXT)(VkCommandBuffer commandBuffer, uint32_t stageCount, const VkShaderStageFlagBits* pStages, const VkShaderEXT* pShaders);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthClampRangeEXT)(VkCommandBuffer commandBuffer, VkDepthClampModeEXT depthClampMode, const VkDepthClampRangeEXT* pDepthClampRange);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClampEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 depthClampEnable);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateShadersEXT(
+ VkDevice device,
+ uint32_t createInfoCount,
+ const VkShaderCreateInfoEXT* pCreateInfos,
+ const VkAllocationCallbacks* pAllocator,
+ VkShaderEXT* pShaders);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetPolygonModeEXT(
- VkCommandBuffer commandBuffer,
- VkPolygonMode polygonMode);
+VKAPI_ATTR void VKAPI_CALL vkDestroyShaderEXT(
+ VkDevice device,
+ VkShaderEXT shader,
+ const VkAllocationCallbacks* pAllocator);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetRasterizationSamplesEXT(
- VkCommandBuffer commandBuffer,
- VkSampleCountFlagBits rasterizationSamples);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetShaderBinaryDataEXT(
+ VkDevice device,
+ VkShaderEXT shader,
+ size_t* pDataSize,
+ void* pData);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetSampleMaskEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdBindShadersEXT(
VkCommandBuffer commandBuffer,
- VkSampleCountFlagBits samples,
- const VkSampleMask* pSampleMask);
+ uint32_t stageCount,
+ const VkShaderStageFlagBits* pStages,
+ const VkShaderEXT* pShaders);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetAlphaToCoverageEnableEXT(
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClampRangeEXT(
VkCommandBuffer commandBuffer,
- VkBool32 alphaToCoverageEnable);
+ VkDepthClampModeEXT depthClampMode,
+ const VkDepthClampRangeEXT* pDepthClampRange);
+#endif
-VKAPI_ATTR void VKAPI_CALL vkCmdSetAlphaToOneEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 alphaToOneEnable);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetLogicOpEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 logicOpEnable);
+// VK_QCOM_tile_properties is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_tile_properties 1
+#define VK_QCOM_TILE_PROPERTIES_SPEC_VERSION 1
+#define VK_QCOM_TILE_PROPERTIES_EXTENSION_NAME "VK_QCOM_tile_properties"
+typedef struct VkPhysicalDeviceTilePropertiesFeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 tileProperties;
+} VkPhysicalDeviceTilePropertiesFeaturesQCOM;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendEnableEXT(
- VkCommandBuffer commandBuffer,
- uint32_t firstAttachment,
- uint32_t attachmentCount,
- const VkBool32* pColorBlendEnables);
+typedef struct VkTilePropertiesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkExtent3D tileSize;
+ VkExtent2D apronSize;
+ VkOffset2D origin;
+} VkTilePropertiesQCOM;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendEquationEXT(
- VkCommandBuffer commandBuffer,
- uint32_t firstAttachment,
- uint32_t attachmentCount,
- const VkColorBlendEquationEXT* pColorBlendEquations);
+typedef VkResult (VKAPI_PTR *PFN_vkGetFramebufferTilePropertiesQCOM)(VkDevice device, VkFramebuffer framebuffer, uint32_t* pPropertiesCount, VkTilePropertiesQCOM* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDynamicRenderingTilePropertiesQCOM)(VkDevice device, const VkRenderingInfo* pRenderingInfo, VkTilePropertiesQCOM* pProperties);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetColorWriteMaskEXT(
- VkCommandBuffer commandBuffer,
- uint32_t firstAttachment,
- uint32_t attachmentCount,
- const VkColorComponentFlags* pColorWriteMasks);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetFramebufferTilePropertiesQCOM(
+ VkDevice device,
+ VkFramebuffer framebuffer,
+ uint32_t* pPropertiesCount,
+ VkTilePropertiesQCOM* pProperties);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetRasterizationStreamEXT(
- VkCommandBuffer commandBuffer,
- uint32_t rasterizationStream);
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDynamicRenderingTilePropertiesQCOM(
+ VkDevice device,
+ const VkRenderingInfo* pRenderingInfo,
+ VkTilePropertiesQCOM* pProperties);
+#endif
-VKAPI_ATTR void VKAPI_CALL vkCmdSetConservativeRasterizationModeEXT(
- VkCommandBuffer commandBuffer,
- VkConservativeRasterizationModeEXT conservativeRasterizationMode);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetExtraPrimitiveOverestimationSizeEXT(
- VkCommandBuffer commandBuffer,
- float extraPrimitiveOverestimationSize);
+// VK_SEC_amigo_profiling is a preprocessor guard. Do not pass it to API calls.
+#define VK_SEC_amigo_profiling 1
+#define VK_SEC_AMIGO_PROFILING_SPEC_VERSION 1
+#define VK_SEC_AMIGO_PROFILING_EXTENSION_NAME "VK_SEC_amigo_profiling"
+typedef struct VkPhysicalDeviceAmigoProfilingFeaturesSEC {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 amigoProfiling;
+} VkPhysicalDeviceAmigoProfilingFeaturesSEC;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClipEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 depthClipEnable);
+typedef struct VkAmigoProfilingSubmitInfoSEC {
+ VkStructureType sType;
+ const void* pNext;
+ uint64_t firstDrawTimestamp;
+ uint64_t swapBufferTimestamp;
+} VkAmigoProfilingSubmitInfoSEC;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetSampleLocationsEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 sampleLocationsEnable);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendAdvancedEXT(
- VkCommandBuffer commandBuffer,
- uint32_t firstAttachment,
- uint32_t attachmentCount,
- const VkColorBlendAdvancedEXT* pColorBlendAdvanced);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetProvokingVertexModeEXT(
- VkCommandBuffer commandBuffer,
- VkProvokingVertexModeEXT provokingVertexMode);
+// VK_QCOM_multiview_per_view_viewports is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_multiview_per_view_viewports 1
+#define VK_QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_SPEC_VERSION 1
+#define VK_QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_EXTENSION_NAME "VK_QCOM_multiview_per_view_viewports"
+typedef struct VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 multiviewPerViewViewports;
+} VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetLineRasterizationModeEXT(
- VkCommandBuffer commandBuffer,
- VkLineRasterizationModeEXT lineRasterizationMode);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetLineStippleEnableEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 stippledLineEnable);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthClipNegativeOneToOneEXT(
- VkCommandBuffer commandBuffer,
- VkBool32 negativeOneToOne);
+// VK_NV_ray_tracing_invocation_reorder is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_ray_tracing_invocation_reorder 1
+#define VK_NV_RAY_TRACING_INVOCATION_REORDER_SPEC_VERSION 1
+#define VK_NV_RAY_TRACING_INVOCATION_REORDER_EXTENSION_NAME "VK_NV_ray_tracing_invocation_reorder"
-VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportWScalingEnableNV(
- VkCommandBuffer commandBuffer,
- VkBool32 viewportWScalingEnable);
+typedef enum VkRayTracingInvocationReorderModeNV {
+ VK_RAY_TRACING_INVOCATION_REORDER_MODE_NONE_NV = 0,
+ VK_RAY_TRACING_INVOCATION_REORDER_MODE_REORDER_NV = 1,
+ VK_RAY_TRACING_INVOCATION_REORDER_MODE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkRayTracingInvocationReorderModeNV;
+typedef struct VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkRayTracingInvocationReorderModeNV rayTracingInvocationReorderReorderingHint;
+} VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportSwizzleNV(
- VkCommandBuffer commandBuffer,
- uint32_t firstViewport,
- uint32_t viewportCount,
- const VkViewportSwizzleNV* pViewportSwizzles);
+typedef struct VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 rayTracingInvocationReorder;
+} VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageToColorEnableNV(
- VkCommandBuffer commandBuffer,
- VkBool32 coverageToColorEnable);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageToColorLocationNV(
- VkCommandBuffer commandBuffer,
- uint32_t coverageToColorLocation);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageModulationModeNV(
- VkCommandBuffer commandBuffer,
- VkCoverageModulationModeNV coverageModulationMode);
+// VK_NV_cooperative_vector is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_cooperative_vector 1
+#define VK_NV_COOPERATIVE_VECTOR_SPEC_VERSION 4
+#define VK_NV_COOPERATIVE_VECTOR_EXTENSION_NAME "VK_NV_cooperative_vector"
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageModulationTableEnableNV(
- VkCommandBuffer commandBuffer,
- VkBool32 coverageModulationTableEnable);
+typedef enum VkCooperativeVectorMatrixLayoutNV {
+ VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_ROW_MAJOR_NV = 0,
+ VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_COLUMN_MAJOR_NV = 1,
+ VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_INFERENCING_OPTIMAL_NV = 2,
+ VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_TRAINING_OPTIMAL_NV = 3,
+ VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_MAX_ENUM_NV = 0x7FFFFFFF
+} VkCooperativeVectorMatrixLayoutNV;
+typedef struct VkPhysicalDeviceCooperativeVectorPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkShaderStageFlags cooperativeVectorSupportedStages;
+ VkBool32 cooperativeVectorTrainingFloat16Accumulation;
+ VkBool32 cooperativeVectorTrainingFloat32Accumulation;
+ uint32_t maxCooperativeVectorComponents;
+} VkPhysicalDeviceCooperativeVectorPropertiesNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageModulationTableNV(
- VkCommandBuffer commandBuffer,
- uint32_t coverageModulationTableCount,
- const float* pCoverageModulationTable);
+typedef struct VkPhysicalDeviceCooperativeVectorFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 cooperativeVector;
+ VkBool32 cooperativeVectorTraining;
+} VkPhysicalDeviceCooperativeVectorFeaturesNV;
-VKAPI_ATTR void VKAPI_CALL vkCmdSetShadingRateImageEnableNV(
- VkCommandBuffer commandBuffer,
- VkBool32 shadingRateImageEnable);
+typedef struct VkCooperativeVectorPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkComponentTypeKHR inputType;
+ VkComponentTypeKHR inputInterpretation;
+ VkComponentTypeKHR matrixInterpretation;
+ VkComponentTypeKHR biasInterpretation;
+ VkComponentTypeKHR resultType;
+ VkBool32 transpose;
+} VkCooperativeVectorPropertiesNV;
+
+typedef struct VkConvertCooperativeVectorMatrixInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ size_t srcSize;
+ VkDeviceOrHostAddressConstKHR srcData;
+ size_t* pDstSize;
+ VkDeviceOrHostAddressKHR dstData;
+ VkComponentTypeKHR srcComponentType;
+ VkComponentTypeKHR dstComponentType;
+ uint32_t numRows;
+ uint32_t numColumns;
+ VkCooperativeVectorMatrixLayoutNV srcLayout;
+ size_t srcStride;
+ VkCooperativeVectorMatrixLayoutNV dstLayout;
+ size_t dstStride;
+} VkConvertCooperativeVectorMatrixInfoNV;
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkCooperativeVectorPropertiesNV* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkConvertCooperativeVectorMatrixNV)(VkDevice device, const VkConvertCooperativeVectorMatrixInfoNV* pInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdConvertCooperativeVectorMatrixNV)(VkCommandBuffer commandBuffer, uint32_t infoCount, const VkConvertCooperativeVectorMatrixInfoNV* pInfos);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetRepresentativeFragmentTestEnableNV(
- VkCommandBuffer commandBuffer,
- VkBool32 representativeFragmentTestEnable);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkCooperativeVectorPropertiesNV* pProperties);
-VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageReductionModeNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkConvertCooperativeVectorMatrixNV(
+ VkDevice device,
+ const VkConvertCooperativeVectorMatrixInfoNV* pInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdConvertCooperativeVectorMatrixNV(
VkCommandBuffer commandBuffer,
- VkCoverageReductionModeNV coverageReductionMode);
+ uint32_t infoCount,
+ const VkConvertCooperativeVectorMatrixInfoNV* pInfos);
#endif
-// VK_EXT_subpass_merge_feedback is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_subpass_merge_feedback 1
-#define VK_EXT_SUBPASS_MERGE_FEEDBACK_SPEC_VERSION 2
-#define VK_EXT_SUBPASS_MERGE_FEEDBACK_EXTENSION_NAME "VK_EXT_subpass_merge_feedback"
-
-typedef enum VkSubpassMergeStatusEXT {
- VK_SUBPASS_MERGE_STATUS_MERGED_EXT = 0,
- VK_SUBPASS_MERGE_STATUS_DISALLOWED_EXT = 1,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SIDE_EFFECTS_EXT = 2,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SAMPLES_MISMATCH_EXT = 3,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_VIEWS_MISMATCH_EXT = 4,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_ALIASING_EXT = 5,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_DEPENDENCIES_EXT = 6,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_INCOMPATIBLE_INPUT_ATTACHMENT_EXT = 7,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_TOO_MANY_ATTACHMENTS_EXT = 8,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_INSUFFICIENT_STORAGE_EXT = 9,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_DEPTH_STENCIL_COUNT_EXT = 10,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_RESOLVE_ATTACHMENT_REUSE_EXT = 11,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_SINGLE_SUBPASS_EXT = 12,
- VK_SUBPASS_MERGE_STATUS_NOT_MERGED_UNSPECIFIED_EXT = 13,
- VK_SUBPASS_MERGE_STATUS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkSubpassMergeStatusEXT;
-typedef struct VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT {
+// VK_NV_extended_sparse_address_space is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_extended_sparse_address_space 1
+#define VK_NV_EXTENDED_SPARSE_ADDRESS_SPACE_SPEC_VERSION 1
+#define VK_NV_EXTENDED_SPARSE_ADDRESS_SPACE_EXTENSION_NAME "VK_NV_extended_sparse_address_space"
+typedef struct VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 subpassMergeFeedback;
-} VkPhysicalDeviceSubpassMergeFeedbackFeaturesEXT;
+ VkBool32 extendedSparseAddressSpace;
+} VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV;
-typedef struct VkRenderPassCreationControlEXT {
- VkStructureType sType;
- const void* pNext;
- VkBool32 disallowMerging;
-} VkRenderPassCreationControlEXT;
+typedef struct VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkDeviceSize extendedSparseAddressSpaceSize;
+ VkImageUsageFlags extendedSparseImageUsageFlags;
+ VkBufferUsageFlags extendedSparseBufferUsageFlags;
+} VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV;
-typedef struct VkRenderPassCreationFeedbackInfoEXT {
- uint32_t postMergeSubpassCount;
-} VkRenderPassCreationFeedbackInfoEXT;
-typedef struct VkRenderPassCreationFeedbackCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkRenderPassCreationFeedbackInfoEXT* pRenderPassFeedback;
-} VkRenderPassCreationFeedbackCreateInfoEXT;
-typedef struct VkRenderPassSubpassFeedbackInfoEXT {
- VkSubpassMergeStatusEXT subpassMergeStatus;
- char description[VK_MAX_DESCRIPTION_SIZE];
- uint32_t postMergeIndex;
-} VkRenderPassSubpassFeedbackInfoEXT;
+// VK_EXT_mutable_descriptor_type is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_mutable_descriptor_type 1
+#define VK_EXT_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION 1
+#define VK_EXT_MUTABLE_DESCRIPTOR_TYPE_EXTENSION_NAME "VK_EXT_mutable_descriptor_type"
-typedef struct VkRenderPassSubpassFeedbackCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkRenderPassSubpassFeedbackInfoEXT* pSubpassFeedback;
-} VkRenderPassSubpassFeedbackCreateInfoEXT;
+// VK_EXT_legacy_vertex_attributes is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_legacy_vertex_attributes 1
+#define VK_EXT_LEGACY_VERTEX_ATTRIBUTES_SPEC_VERSION 1
+#define VK_EXT_LEGACY_VERTEX_ATTRIBUTES_EXTENSION_NAME "VK_EXT_legacy_vertex_attributes"
+typedef struct VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 legacyVertexAttributes;
+} VkPhysicalDeviceLegacyVertexAttributesFeaturesEXT;
+typedef struct VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 nativeUnalignedPerformance;
+} VkPhysicalDeviceLegacyVertexAttributesPropertiesEXT;
-// VK_LUNARG_direct_driver_loading is a preprocessor guard. Do not pass it to API calls.
-#define VK_LUNARG_direct_driver_loading 1
-#define VK_LUNARG_DIRECT_DRIVER_LOADING_SPEC_VERSION 1
-#define VK_LUNARG_DIRECT_DRIVER_LOADING_EXTENSION_NAME "VK_LUNARG_direct_driver_loading"
-typedef enum VkDirectDriverLoadingModeLUNARG {
- VK_DIRECT_DRIVER_LOADING_MODE_EXCLUSIVE_LUNARG = 0,
- VK_DIRECT_DRIVER_LOADING_MODE_INCLUSIVE_LUNARG = 1,
- VK_DIRECT_DRIVER_LOADING_MODE_MAX_ENUM_LUNARG = 0x7FFFFFFF
-} VkDirectDriverLoadingModeLUNARG;
-typedef VkFlags VkDirectDriverLoadingFlagsLUNARG;
-typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddrLUNARG)(
- VkInstance instance, const char* pName);
-typedef struct VkDirectDriverLoadingInfoLUNARG {
- VkStructureType sType;
- void* pNext;
- VkDirectDriverLoadingFlagsLUNARG flags;
- PFN_vkGetInstanceProcAddrLUNARG pfnGetInstanceProcAddr;
-} VkDirectDriverLoadingInfoLUNARG;
+// VK_EXT_layer_settings is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_layer_settings 1
+#define VK_EXT_LAYER_SETTINGS_SPEC_VERSION 2
+#define VK_EXT_LAYER_SETTINGS_EXTENSION_NAME "VK_EXT_layer_settings"
-typedef struct VkDirectDriverLoadingListLUNARG {
- VkStructureType sType;
- const void* pNext;
- VkDirectDriverLoadingModeLUNARG mode;
- uint32_t driverCount;
- const VkDirectDriverLoadingInfoLUNARG* pDrivers;
-} VkDirectDriverLoadingListLUNARG;
+typedef enum VkLayerSettingTypeEXT {
+ VK_LAYER_SETTING_TYPE_BOOL32_EXT = 0,
+ VK_LAYER_SETTING_TYPE_INT32_EXT = 1,
+ VK_LAYER_SETTING_TYPE_INT64_EXT = 2,
+ VK_LAYER_SETTING_TYPE_UINT32_EXT = 3,
+ VK_LAYER_SETTING_TYPE_UINT64_EXT = 4,
+ VK_LAYER_SETTING_TYPE_FLOAT32_EXT = 5,
+ VK_LAYER_SETTING_TYPE_FLOAT64_EXT = 6,
+ VK_LAYER_SETTING_TYPE_STRING_EXT = 7,
+ VK_LAYER_SETTING_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkLayerSettingTypeEXT;
+typedef struct VkLayerSettingEXT {
+ const char* pLayerName;
+ const char* pSettingName;
+ VkLayerSettingTypeEXT type;
+ uint32_t valueCount;
+ const void* pValues;
+} VkLayerSettingEXT;
+
+typedef struct VkLayerSettingsCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t settingCount;
+ const VkLayerSettingEXT* pSettings;
+} VkLayerSettingsCreateInfoEXT;
-// VK_EXT_shader_module_identifier is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_module_identifier 1
-#define VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT 32U
-#define VK_EXT_SHADER_MODULE_IDENTIFIER_SPEC_VERSION 1
-#define VK_EXT_SHADER_MODULE_IDENTIFIER_EXTENSION_NAME "VK_EXT_shader_module_identifier"
-typedef struct VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT {
+// VK_ARM_shader_core_builtins is a preprocessor guard. Do not pass it to API calls.
+#define VK_ARM_shader_core_builtins 1
+#define VK_ARM_SHADER_CORE_BUILTINS_SPEC_VERSION 2
+#define VK_ARM_SHADER_CORE_BUILTINS_EXTENSION_NAME "VK_ARM_shader_core_builtins"
+typedef struct VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM {
VkStructureType sType;
void* pNext;
- VkBool32 shaderModuleIdentifier;
-} VkPhysicalDeviceShaderModuleIdentifierFeaturesEXT;
+ VkBool32 shaderCoreBuiltins;
+} VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM;
-typedef struct VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT {
+typedef struct VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM {
VkStructureType sType;
void* pNext;
- uint8_t shaderModuleIdentifierAlgorithmUUID[VK_UUID_SIZE];
-} VkPhysicalDeviceShaderModuleIdentifierPropertiesEXT;
+ uint64_t shaderCoreMask;
+ uint32_t shaderCoreCount;
+ uint32_t shaderWarpsPerCore;
+} VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM;
-typedef struct VkPipelineShaderStageModuleIdentifierCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t identifierSize;
- const uint8_t* pIdentifier;
-} VkPipelineShaderStageModuleIdentifierCreateInfoEXT;
-typedef struct VkShaderModuleIdentifierEXT {
+
+// VK_EXT_pipeline_library_group_handles is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_pipeline_library_group_handles 1
+#define VK_EXT_PIPELINE_LIBRARY_GROUP_HANDLES_SPEC_VERSION 1
+#define VK_EXT_PIPELINE_LIBRARY_GROUP_HANDLES_EXTENSION_NAME "VK_EXT_pipeline_library_group_handles"
+typedef struct VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT {
VkStructureType sType;
void* pNext;
- uint32_t identifierSize;
- uint8_t identifier[VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT];
-} VkShaderModuleIdentifierEXT;
-
-typedef void (VKAPI_PTR *PFN_vkGetShaderModuleIdentifierEXT)(VkDevice device, VkShaderModule shaderModule, VkShaderModuleIdentifierEXT* pIdentifier);
-typedef void (VKAPI_PTR *PFN_vkGetShaderModuleCreateInfoIdentifierEXT)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModuleIdentifierEXT* pIdentifier);
-
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetShaderModuleIdentifierEXT(
- VkDevice device,
- VkShaderModule shaderModule,
- VkShaderModuleIdentifierEXT* pIdentifier);
+ VkBool32 pipelineLibraryGroupHandles;
+} VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT;
-VKAPI_ATTR void VKAPI_CALL vkGetShaderModuleCreateInfoIdentifierEXT(
- VkDevice device,
- const VkShaderModuleCreateInfo* pCreateInfo,
- VkShaderModuleIdentifierEXT* pIdentifier);
-#endif
-// VK_EXT_rasterization_order_attachment_access is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_rasterization_order_attachment_access 1
-#define VK_EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION 1
-#define VK_EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_EXTENSION_NAME "VK_EXT_rasterization_order_attachment_access"
+// VK_EXT_dynamic_rendering_unused_attachments is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_dynamic_rendering_unused_attachments 1
+#define VK_EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_SPEC_VERSION 1
+#define VK_EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_EXTENSION_NAME "VK_EXT_dynamic_rendering_unused_attachments"
+typedef struct VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 dynamicRenderingUnusedAttachments;
+} VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT;
-// VK_NV_optical_flow is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_optical_flow 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkOpticalFlowSessionNV)
-#define VK_NV_OPTICAL_FLOW_SPEC_VERSION 1
-#define VK_NV_OPTICAL_FLOW_EXTENSION_NAME "VK_NV_optical_flow"
-typedef enum VkOpticalFlowPerformanceLevelNV {
- VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_UNKNOWN_NV = 0,
- VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_SLOW_NV = 1,
- VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_MEDIUM_NV = 2,
- VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_FAST_NV = 3,
- VK_OPTICAL_FLOW_PERFORMANCE_LEVEL_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOpticalFlowPerformanceLevelNV;
+// VK_NV_low_latency2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_low_latency2 1
+#define VK_NV_LOW_LATENCY_2_SPEC_VERSION 2
+#define VK_NV_LOW_LATENCY_2_EXTENSION_NAME "VK_NV_low_latency2"
-typedef enum VkOpticalFlowSessionBindingPointNV {
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_UNKNOWN_NV = 0,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_INPUT_NV = 1,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_REFERENCE_NV = 2,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_HINT_NV = 3,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_FLOW_VECTOR_NV = 4,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_FLOW_VECTOR_NV = 5,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_COST_NV = 6,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_BACKWARD_COST_NV = 7,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_GLOBAL_FLOW_NV = 8,
- VK_OPTICAL_FLOW_SESSION_BINDING_POINT_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOpticalFlowSessionBindingPointNV;
+typedef enum VkLatencyMarkerNV {
+ VK_LATENCY_MARKER_SIMULATION_START_NV = 0,
+ VK_LATENCY_MARKER_SIMULATION_END_NV = 1,
+ VK_LATENCY_MARKER_RENDERSUBMIT_START_NV = 2,
+ VK_LATENCY_MARKER_RENDERSUBMIT_END_NV = 3,
+ VK_LATENCY_MARKER_PRESENT_START_NV = 4,
+ VK_LATENCY_MARKER_PRESENT_END_NV = 5,
+ VK_LATENCY_MARKER_INPUT_SAMPLE_NV = 6,
+ VK_LATENCY_MARKER_TRIGGER_FLASH_NV = 7,
+ VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_START_NV = 8,
+ VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_END_NV = 9,
+ VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_START_NV = 10,
+ VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_END_NV = 11,
+ VK_LATENCY_MARKER_MAX_ENUM_NV = 0x7FFFFFFF
+} VkLatencyMarkerNV;
-typedef enum VkOpticalFlowGridSizeFlagBitsNV {
- VK_OPTICAL_FLOW_GRID_SIZE_UNKNOWN_NV = 0,
- VK_OPTICAL_FLOW_GRID_SIZE_1X1_BIT_NV = 0x00000001,
- VK_OPTICAL_FLOW_GRID_SIZE_2X2_BIT_NV = 0x00000002,
- VK_OPTICAL_FLOW_GRID_SIZE_4X4_BIT_NV = 0x00000004,
- VK_OPTICAL_FLOW_GRID_SIZE_8X8_BIT_NV = 0x00000008,
- VK_OPTICAL_FLOW_GRID_SIZE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOpticalFlowGridSizeFlagBitsNV;
-typedef VkFlags VkOpticalFlowGridSizeFlagsNV;
+typedef enum VkOutOfBandQueueTypeNV {
+ VK_OUT_OF_BAND_QUEUE_TYPE_RENDER_NV = 0,
+ VK_OUT_OF_BAND_QUEUE_TYPE_PRESENT_NV = 1,
+ VK_OUT_OF_BAND_QUEUE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkOutOfBandQueueTypeNV;
+typedef struct VkLatencySleepModeInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 lowLatencyMode;
+ VkBool32 lowLatencyBoost;
+ uint32_t minimumIntervalUs;
+} VkLatencySleepModeInfoNV;
-typedef enum VkOpticalFlowUsageFlagBitsNV {
- VK_OPTICAL_FLOW_USAGE_UNKNOWN_NV = 0,
- VK_OPTICAL_FLOW_USAGE_INPUT_BIT_NV = 0x00000001,
- VK_OPTICAL_FLOW_USAGE_OUTPUT_BIT_NV = 0x00000002,
- VK_OPTICAL_FLOW_USAGE_HINT_BIT_NV = 0x00000004,
- VK_OPTICAL_FLOW_USAGE_COST_BIT_NV = 0x00000008,
- VK_OPTICAL_FLOW_USAGE_GLOBAL_FLOW_BIT_NV = 0x00000010,
- VK_OPTICAL_FLOW_USAGE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOpticalFlowUsageFlagBitsNV;
-typedef VkFlags VkOpticalFlowUsageFlagsNV;
+typedef struct VkLatencySleepInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkSemaphore signalSemaphore;
+ uint64_t value;
+} VkLatencySleepInfoNV;
-typedef enum VkOpticalFlowSessionCreateFlagBitsNV {
- VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_HINT_BIT_NV = 0x00000001,
- VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_COST_BIT_NV = 0x00000002,
- VK_OPTICAL_FLOW_SESSION_CREATE_ENABLE_GLOBAL_FLOW_BIT_NV = 0x00000004,
- VK_OPTICAL_FLOW_SESSION_CREATE_ALLOW_REGIONS_BIT_NV = 0x00000008,
- VK_OPTICAL_FLOW_SESSION_CREATE_BOTH_DIRECTIONS_BIT_NV = 0x00000010,
- VK_OPTICAL_FLOW_SESSION_CREATE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOpticalFlowSessionCreateFlagBitsNV;
-typedef VkFlags VkOpticalFlowSessionCreateFlagsNV;
+typedef struct VkSetLatencyMarkerInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint64_t presentID;
+ VkLatencyMarkerNV marker;
+} VkSetLatencyMarkerInfoNV;
-typedef enum VkOpticalFlowExecuteFlagBitsNV {
- VK_OPTICAL_FLOW_EXECUTE_DISABLE_TEMPORAL_HINTS_BIT_NV = 0x00000001,
- VK_OPTICAL_FLOW_EXECUTE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOpticalFlowExecuteFlagBitsNV;
-typedef VkFlags VkOpticalFlowExecuteFlagsNV;
-typedef struct VkPhysicalDeviceOpticalFlowFeaturesNV {
+typedef struct VkLatencyTimingsFrameReportNV {
VkStructureType sType;
- void* pNext;
- VkBool32 opticalFlow;
-} VkPhysicalDeviceOpticalFlowFeaturesNV;
-
-typedef struct VkPhysicalDeviceOpticalFlowPropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkOpticalFlowGridSizeFlagsNV supportedOutputGridSizes;
- VkOpticalFlowGridSizeFlagsNV supportedHintGridSizes;
- VkBool32 hintSupported;
- VkBool32 costSupported;
- VkBool32 bidirectionalFlowSupported;
- VkBool32 globalFlowSupported;
- uint32_t minWidth;
- uint32_t minHeight;
- uint32_t maxWidth;
- uint32_t maxHeight;
- uint32_t maxNumRegionsOfInterest;
-} VkPhysicalDeviceOpticalFlowPropertiesNV;
+ const void* pNext;
+ uint64_t presentID;
+ uint64_t inputSampleTimeUs;
+ uint64_t simStartTimeUs;
+ uint64_t simEndTimeUs;
+ uint64_t renderSubmitStartTimeUs;
+ uint64_t renderSubmitEndTimeUs;
+ uint64_t presentStartTimeUs;
+ uint64_t presentEndTimeUs;
+ uint64_t driverStartTimeUs;
+ uint64_t driverEndTimeUs;
+ uint64_t osRenderQueueStartTimeUs;
+ uint64_t osRenderQueueEndTimeUs;
+ uint64_t gpuRenderStartTimeUs;
+ uint64_t gpuRenderEndTimeUs;
+} VkLatencyTimingsFrameReportNV;
-typedef struct VkOpticalFlowImageFormatInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkOpticalFlowUsageFlagsNV usage;
-} VkOpticalFlowImageFormatInfoNV;
+typedef struct VkGetLatencyMarkerInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t timingCount;
+ VkLatencyTimingsFrameReportNV* pTimings;
+} VkGetLatencyMarkerInfoNV;
-typedef struct VkOpticalFlowImageFormatPropertiesNV {
+typedef struct VkLatencySubmissionPresentIdNV {
VkStructureType sType;
const void* pNext;
- VkFormat format;
-} VkOpticalFlowImageFormatPropertiesNV;
-
-typedef struct VkOpticalFlowSessionCreateInfoNV {
- VkStructureType sType;
- void* pNext;
- uint32_t width;
- uint32_t height;
- VkFormat imageFormat;
- VkFormat flowVectorFormat;
- VkFormat costFormat;
- VkOpticalFlowGridSizeFlagsNV outputGridSize;
- VkOpticalFlowGridSizeFlagsNV hintGridSize;
- VkOpticalFlowPerformanceLevelNV performanceLevel;
- VkOpticalFlowSessionCreateFlagsNV flags;
-} VkOpticalFlowSessionCreateInfoNV;
+ uint64_t presentID;
+} VkLatencySubmissionPresentIdNV;
-typedef struct VkOpticalFlowSessionCreatePrivateDataInfoNV {
+typedef struct VkSwapchainLatencyCreateInfoNV {
VkStructureType sType;
- void* pNext;
- uint32_t id;
- uint32_t size;
- const void* pPrivateData;
-} VkOpticalFlowSessionCreatePrivateDataInfoNV;
+ const void* pNext;
+ VkBool32 latencyModeEnable;
+} VkSwapchainLatencyCreateInfoNV;
-typedef struct VkOpticalFlowExecuteInfoNV {
- VkStructureType sType;
- void* pNext;
- VkOpticalFlowExecuteFlagsNV flags;
- uint32_t regionCount;
- const VkRect2D* pRegions;
-} VkOpticalFlowExecuteInfoNV;
+typedef struct VkOutOfBandQueueTypeInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkOutOfBandQueueTypeNV queueType;
+} VkOutOfBandQueueTypeInfoNV;
-typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV)(VkPhysicalDevice physicalDevice, const VkOpticalFlowImageFormatInfoNV* pOpticalFlowImageFormatInfo, uint32_t* pFormatCount, VkOpticalFlowImageFormatPropertiesNV* pImageFormatProperties);
-typedef VkResult (VKAPI_PTR *PFN_vkCreateOpticalFlowSessionNV)(VkDevice device, const VkOpticalFlowSessionCreateInfoNV* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkOpticalFlowSessionNV* pSession);
-typedef void (VKAPI_PTR *PFN_vkDestroyOpticalFlowSessionNV)(VkDevice device, VkOpticalFlowSessionNV session, const VkAllocationCallbacks* pAllocator);
-typedef VkResult (VKAPI_PTR *PFN_vkBindOpticalFlowSessionImageNV)(VkDevice device, VkOpticalFlowSessionNV session, VkOpticalFlowSessionBindingPointNV bindingPoint, VkImageView view, VkImageLayout layout);
-typedef void (VKAPI_PTR *PFN_vkCmdOpticalFlowExecuteNV)(VkCommandBuffer commandBuffer, VkOpticalFlowSessionNV session, const VkOpticalFlowExecuteInfoNV* pExecuteInfo);
+typedef struct VkLatencySurfaceCapabilitiesNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t presentModeCount;
+ VkPresentModeKHR* pPresentModes;
+} VkLatencySurfaceCapabilitiesNV;
+
+typedef VkResult (VKAPI_PTR *PFN_vkSetLatencySleepModeNV)(VkDevice device, VkSwapchainKHR swapchain, const VkLatencySleepModeInfoNV* pSleepModeInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkLatencySleepNV)(VkDevice device, VkSwapchainKHR swapchain, const VkLatencySleepInfoNV* pSleepInfo);
+typedef void (VKAPI_PTR *PFN_vkSetLatencyMarkerNV)(VkDevice device, VkSwapchainKHR swapchain, const VkSetLatencyMarkerInfoNV* pLatencyMarkerInfo);
+typedef void (VKAPI_PTR *PFN_vkGetLatencyTimingsNV)(VkDevice device, VkSwapchainKHR swapchain, VkGetLatencyMarkerInfoNV* pLatencyMarkerInfo);
+typedef void (VKAPI_PTR *PFN_vkQueueNotifyOutOfBandNV)(VkQueue queue, const VkOutOfBandQueueTypeInfoNV* pQueueTypeInfo);
#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
- VkPhysicalDevice physicalDevice,
- const VkOpticalFlowImageFormatInfoNV* pOpticalFlowImageFormatInfo,
- uint32_t* pFormatCount,
- VkOpticalFlowImageFormatPropertiesNV* pImageFormatProperties);
+VKAPI_ATTR VkResult VKAPI_CALL vkSetLatencySleepModeNV(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ const VkLatencySleepModeInfoNV* pSleepModeInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateOpticalFlowSessionNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkLatencySleepNV(
VkDevice device,
- const VkOpticalFlowSessionCreateInfoNV* pCreateInfo,
- const VkAllocationCallbacks* pAllocator,
- VkOpticalFlowSessionNV* pSession);
+ VkSwapchainKHR swapchain,
+ const VkLatencySleepInfoNV* pSleepInfo);
-VKAPI_ATTR void VKAPI_CALL vkDestroyOpticalFlowSessionNV(
+VKAPI_ATTR void VKAPI_CALL vkSetLatencyMarkerNV(
VkDevice device,
- VkOpticalFlowSessionNV session,
- const VkAllocationCallbacks* pAllocator);
+ VkSwapchainKHR swapchain,
+ const VkSetLatencyMarkerInfoNV* pLatencyMarkerInfo);
-VKAPI_ATTR VkResult VKAPI_CALL vkBindOpticalFlowSessionImageNV(
+VKAPI_ATTR void VKAPI_CALL vkGetLatencyTimingsNV(
VkDevice device,
- VkOpticalFlowSessionNV session,
- VkOpticalFlowSessionBindingPointNV bindingPoint,
- VkImageView view,
- VkImageLayout layout);
+ VkSwapchainKHR swapchain,
+ VkGetLatencyMarkerInfoNV* pLatencyMarkerInfo);
-VKAPI_ATTR void VKAPI_CALL vkCmdOpticalFlowExecuteNV(
- VkCommandBuffer commandBuffer,
- VkOpticalFlowSessionNV session,
- const VkOpticalFlowExecuteInfoNV* pExecuteInfo);
+VKAPI_ATTR void VKAPI_CALL vkQueueNotifyOutOfBandNV(
+ VkQueue queue,
+ const VkOutOfBandQueueTypeInfoNV* pQueueTypeInfo);
#endif
-// VK_EXT_legacy_dithering is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_legacy_dithering 1
-#define VK_EXT_LEGACY_DITHERING_SPEC_VERSION 1
-#define VK_EXT_LEGACY_DITHERING_EXTENSION_NAME "VK_EXT_legacy_dithering"
-typedef struct VkPhysicalDeviceLegacyDitheringFeaturesEXT {
+// VK_QCOM_multiview_per_view_render_areas is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_multiview_per_view_render_areas 1
+#define VK_QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_SPEC_VERSION 1
+#define VK_QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_EXTENSION_NAME "VK_QCOM_multiview_per_view_render_areas"
+typedef struct VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM {
VkStructureType sType;
void* pNext;
- VkBool32 legacyDithering;
-} VkPhysicalDeviceLegacyDitheringFeaturesEXT;
+ VkBool32 multiviewPerViewRenderAreas;
+} VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM;
+typedef struct VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t perViewRenderAreaCount;
+ const VkRect2D* pPerViewRenderAreas;
+} VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM;
-// VK_EXT_pipeline_protected_access is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pipeline_protected_access 1
-#define VK_EXT_PIPELINE_PROTECTED_ACCESS_SPEC_VERSION 1
-#define VK_EXT_PIPELINE_PROTECTED_ACCESS_EXTENSION_NAME "VK_EXT_pipeline_protected_access"
-typedef struct VkPhysicalDevicePipelineProtectedAccessFeaturesEXT {
+
+// VK_NV_per_stage_descriptor_set is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_per_stage_descriptor_set 1
+#define VK_NV_PER_STAGE_DESCRIPTOR_SET_SPEC_VERSION 1
+#define VK_NV_PER_STAGE_DESCRIPTOR_SET_EXTENSION_NAME "VK_NV_per_stage_descriptor_set"
+typedef struct VkPhysicalDevicePerStageDescriptorSetFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 pipelineProtectedAccess;
-} VkPhysicalDevicePipelineProtectedAccessFeaturesEXT;
+ VkBool32 perStageDescriptorSet;
+ VkBool32 dynamicPipelineLayout;
+} VkPhysicalDevicePerStageDescriptorSetFeaturesNV;
-// VK_EXT_shader_object is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_shader_object 1
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderEXT)
-#define VK_EXT_SHADER_OBJECT_SPEC_VERSION 1
-#define VK_EXT_SHADER_OBJECT_EXTENSION_NAME "VK_EXT_shader_object"
+// VK_QCOM_image_processing2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_image_processing2 1
+#define VK_QCOM_IMAGE_PROCESSING_2_SPEC_VERSION 1
+#define VK_QCOM_IMAGE_PROCESSING_2_EXTENSION_NAME "VK_QCOM_image_processing2"
-typedef enum VkShaderCodeTypeEXT {
- VK_SHADER_CODE_TYPE_BINARY_EXT = 0,
- VK_SHADER_CODE_TYPE_SPIRV_EXT = 1,
- VK_SHADER_CODE_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkShaderCodeTypeEXT;
+typedef enum VkBlockMatchWindowCompareModeQCOM {
+ VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MIN_QCOM = 0,
+ VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MAX_QCOM = 1,
+ VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MAX_ENUM_QCOM = 0x7FFFFFFF
+} VkBlockMatchWindowCompareModeQCOM;
+typedef struct VkPhysicalDeviceImageProcessing2FeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 textureBlockMatch2;
+} VkPhysicalDeviceImageProcessing2FeaturesQCOM;
-typedef enum VkShaderCreateFlagBitsEXT {
- VK_SHADER_CREATE_LINK_STAGE_BIT_EXT = 0x00000001,
- VK_SHADER_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT = 0x00000002,
- VK_SHADER_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT = 0x00000004,
- VK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT = 0x00000008,
- VK_SHADER_CREATE_DISPATCH_BASE_BIT_EXT = 0x00000010,
- VK_SHADER_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_EXT = 0x00000020,
- VK_SHADER_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT = 0x00000040,
- VK_SHADER_CREATE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkShaderCreateFlagBitsEXT;
-typedef VkFlags VkShaderCreateFlagsEXT;
-typedef struct VkPhysicalDeviceShaderObjectFeaturesEXT {
+typedef struct VkPhysicalDeviceImageProcessing2PropertiesQCOM {
VkStructureType sType;
void* pNext;
- VkBool32 shaderObject;
-} VkPhysicalDeviceShaderObjectFeaturesEXT;
+ VkExtent2D maxBlockMatchWindow;
+} VkPhysicalDeviceImageProcessing2PropertiesQCOM;
-typedef struct VkPhysicalDeviceShaderObjectPropertiesEXT {
+typedef struct VkSamplerBlockMatchWindowCreateInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ VkExtent2D windowExtent;
+ VkBlockMatchWindowCompareModeQCOM windowCompareMode;
+} VkSamplerBlockMatchWindowCreateInfoQCOM;
+
+
+
+// VK_QCOM_filter_cubic_weights is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_filter_cubic_weights 1
+#define VK_QCOM_FILTER_CUBIC_WEIGHTS_SPEC_VERSION 1
+#define VK_QCOM_FILTER_CUBIC_WEIGHTS_EXTENSION_NAME "VK_QCOM_filter_cubic_weights"
+
+typedef enum VkCubicFilterWeightsQCOM {
+ VK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM = 0,
+ VK_CUBIC_FILTER_WEIGHTS_ZERO_TANGENT_CARDINAL_QCOM = 1,
+ VK_CUBIC_FILTER_WEIGHTS_B_SPLINE_QCOM = 2,
+ VK_CUBIC_FILTER_WEIGHTS_MITCHELL_NETRAVALI_QCOM = 3,
+ VK_CUBIC_FILTER_WEIGHTS_MAX_ENUM_QCOM = 0x7FFFFFFF
+} VkCubicFilterWeightsQCOM;
+typedef struct VkPhysicalDeviceCubicWeightsFeaturesQCOM {
VkStructureType sType;
void* pNext;
- uint8_t shaderBinaryUUID[VK_UUID_SIZE];
- uint32_t shaderBinaryVersion;
-} VkPhysicalDeviceShaderObjectPropertiesEXT;
+ VkBool32 selectableCubicWeights;
+} VkPhysicalDeviceCubicWeightsFeaturesQCOM;
-typedef struct VkShaderCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- VkShaderCreateFlagsEXT flags;
- VkShaderStageFlagBits stage;
- VkShaderStageFlags nextStage;
- VkShaderCodeTypeEXT codeType;
- size_t codeSize;
- const void* pCode;
- const char* pName;
- uint32_t setLayoutCount;
- const VkDescriptorSetLayout* pSetLayouts;
- uint32_t pushConstantRangeCount;
- const VkPushConstantRange* pPushConstantRanges;
- const VkSpecializationInfo* pSpecializationInfo;
-} VkShaderCreateInfoEXT;
+typedef struct VkSamplerCubicWeightsCreateInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ VkCubicFilterWeightsQCOM cubicWeights;
+} VkSamplerCubicWeightsCreateInfoQCOM;
-typedef VkPipelineShaderStageRequiredSubgroupSizeCreateInfo VkShaderRequiredSubgroupSizeCreateInfoEXT;
+typedef struct VkBlitImageCubicWeightsInfoQCOM {
+ VkStructureType sType;
+ const void* pNext;
+ VkCubicFilterWeightsQCOM cubicWeights;
+} VkBlitImageCubicWeightsInfoQCOM;
-typedef VkResult (VKAPI_PTR *PFN_vkCreateShadersEXT)(VkDevice device, uint32_t createInfoCount, const VkShaderCreateInfoEXT* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkShaderEXT* pShaders);
-typedef void (VKAPI_PTR *PFN_vkDestroyShaderEXT)(VkDevice device, VkShaderEXT shader, const VkAllocationCallbacks* pAllocator);
-typedef VkResult (VKAPI_PTR *PFN_vkGetShaderBinaryDataEXT)(VkDevice device, VkShaderEXT shader, size_t* pDataSize, void* pData);
-typedef void (VKAPI_PTR *PFN_vkCmdBindShadersEXT)(VkCommandBuffer commandBuffer, uint32_t stageCount, const VkShaderStageFlagBits* pStages, const VkShaderEXT* pShaders);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkCreateShadersEXT(
- VkDevice device,
- uint32_t createInfoCount,
- const VkShaderCreateInfoEXT* pCreateInfos,
- const VkAllocationCallbacks* pAllocator,
- VkShaderEXT* pShaders);
-VKAPI_ATTR void VKAPI_CALL vkDestroyShaderEXT(
- VkDevice device,
- VkShaderEXT shader,
- const VkAllocationCallbacks* pAllocator);
+// VK_QCOM_ycbcr_degamma is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_ycbcr_degamma 1
+#define VK_QCOM_YCBCR_DEGAMMA_SPEC_VERSION 1
+#define VK_QCOM_YCBCR_DEGAMMA_EXTENSION_NAME "VK_QCOM_ycbcr_degamma"
+typedef struct VkPhysicalDeviceYcbcrDegammaFeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 ycbcrDegamma;
+} VkPhysicalDeviceYcbcrDegammaFeaturesQCOM;
-VKAPI_ATTR VkResult VKAPI_CALL vkGetShaderBinaryDataEXT(
- VkDevice device,
- VkShaderEXT shader,
- size_t* pDataSize,
- void* pData);
+typedef struct VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 enableYDegamma;
+ VkBool32 enableCbCrDegamma;
+} VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM;
-VKAPI_ATTR void VKAPI_CALL vkCmdBindShadersEXT(
+
+
+// VK_QCOM_filter_cubic_clamp is a preprocessor guard. Do not pass it to API calls.
+#define VK_QCOM_filter_cubic_clamp 1
+#define VK_QCOM_FILTER_CUBIC_CLAMP_SPEC_VERSION 1
+#define VK_QCOM_FILTER_CUBIC_CLAMP_EXTENSION_NAME "VK_QCOM_filter_cubic_clamp"
+typedef struct VkPhysicalDeviceCubicClampFeaturesQCOM {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 cubicRangeClamp;
+} VkPhysicalDeviceCubicClampFeaturesQCOM;
+
+
+
+// VK_EXT_attachment_feedback_loop_dynamic_state is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_attachment_feedback_loop_dynamic_state 1
+#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_SPEC_VERSION 1
+#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_EXTENSION_NAME "VK_EXT_attachment_feedback_loop_dynamic_state"
+typedef struct VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 attachmentFeedbackLoopDynamicState;
+} VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT;
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT)(VkCommandBuffer commandBuffer, VkImageAspectFlags aspectMask);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetAttachmentFeedbackLoopEnableEXT(
VkCommandBuffer commandBuffer,
- uint32_t stageCount,
- const VkShaderStageFlagBits* pStages,
- const VkShaderEXT* pShaders);
+ VkImageAspectFlags aspectMask);
#endif
-// VK_QCOM_tile_properties is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_tile_properties 1
-#define VK_QCOM_TILE_PROPERTIES_SPEC_VERSION 1
-#define VK_QCOM_TILE_PROPERTIES_EXTENSION_NAME "VK_QCOM_tile_properties"
-typedef struct VkPhysicalDeviceTilePropertiesFeaturesQCOM {
- VkStructureType sType;
- void* pNext;
- VkBool32 tileProperties;
-} VkPhysicalDeviceTilePropertiesFeaturesQCOM;
+// VK_MSFT_layered_driver is a preprocessor guard. Do not pass it to API calls.
+#define VK_MSFT_layered_driver 1
+#define VK_MSFT_LAYERED_DRIVER_SPEC_VERSION 1
+#define VK_MSFT_LAYERED_DRIVER_EXTENSION_NAME "VK_MSFT_layered_driver"
+
+typedef enum VkLayeredDriverUnderlyingApiMSFT {
+ VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT = 0,
+ VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT = 1,
+ VK_LAYERED_DRIVER_UNDERLYING_API_MAX_ENUM_MSFT = 0x7FFFFFFF
+} VkLayeredDriverUnderlyingApiMSFT;
+typedef struct VkPhysicalDeviceLayeredDriverPropertiesMSFT {
+ VkStructureType sType;
+ void* pNext;
+ VkLayeredDriverUnderlyingApiMSFT underlyingAPI;
+} VkPhysicalDeviceLayeredDriverPropertiesMSFT;
+
+
-typedef struct VkTilePropertiesQCOM {
+// VK_NV_descriptor_pool_overallocation is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_descriptor_pool_overallocation 1
+#define VK_NV_DESCRIPTOR_POOL_OVERALLOCATION_SPEC_VERSION 1
+#define VK_NV_DESCRIPTOR_POOL_OVERALLOCATION_EXTENSION_NAME "VK_NV_descriptor_pool_overallocation"
+typedef struct VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV {
VkStructureType sType;
void* pNext;
- VkExtent3D tileSize;
- VkExtent2D apronSize;
- VkOffset2D origin;
-} VkTilePropertiesQCOM;
-
-typedef VkResult (VKAPI_PTR *PFN_vkGetFramebufferTilePropertiesQCOM)(VkDevice device, VkFramebuffer framebuffer, uint32_t* pPropertiesCount, VkTilePropertiesQCOM* pProperties);
-typedef VkResult (VKAPI_PTR *PFN_vkGetDynamicRenderingTilePropertiesQCOM)(VkDevice device, const VkRenderingInfo* pRenderingInfo, VkTilePropertiesQCOM* pProperties);
+ VkBool32 descriptorPoolOverallocation;
+} VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV;
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkGetFramebufferTilePropertiesQCOM(
- VkDevice device,
- VkFramebuffer framebuffer,
- uint32_t* pPropertiesCount,
- VkTilePropertiesQCOM* pProperties);
-VKAPI_ATTR VkResult VKAPI_CALL vkGetDynamicRenderingTilePropertiesQCOM(
- VkDevice device,
- const VkRenderingInfo* pRenderingInfo,
- VkTilePropertiesQCOM* pProperties);
-#endif
+// VK_NV_display_stereo is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_display_stereo 1
+#define VK_NV_DISPLAY_STEREO_SPEC_VERSION 1
+#define VK_NV_DISPLAY_STEREO_EXTENSION_NAME "VK_NV_display_stereo"
-// VK_SEC_amigo_profiling is a preprocessor guard. Do not pass it to API calls.
-#define VK_SEC_amigo_profiling 1
-#define VK_SEC_AMIGO_PROFILING_SPEC_VERSION 1
-#define VK_SEC_AMIGO_PROFILING_EXTENSION_NAME "VK_SEC_amigo_profiling"
-typedef struct VkPhysicalDeviceAmigoProfilingFeaturesSEC {
- VkStructureType sType;
- void* pNext;
- VkBool32 amigoProfiling;
-} VkPhysicalDeviceAmigoProfilingFeaturesSEC;
+typedef enum VkDisplaySurfaceStereoTypeNV {
+ VK_DISPLAY_SURFACE_STEREO_TYPE_NONE_NV = 0,
+ VK_DISPLAY_SURFACE_STEREO_TYPE_ONBOARD_DIN_NV = 1,
+ VK_DISPLAY_SURFACE_STEREO_TYPE_HDMI_3D_NV = 2,
+ VK_DISPLAY_SURFACE_STEREO_TYPE_INBAND_DISPLAYPORT_NV = 3,
+ VK_DISPLAY_SURFACE_STEREO_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkDisplaySurfaceStereoTypeNV;
+typedef struct VkDisplaySurfaceStereoCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplaySurfaceStereoTypeNV stereoType;
+} VkDisplaySurfaceStereoCreateInfoNV;
-typedef struct VkAmigoProfilingSubmitInfoSEC {
+typedef struct VkDisplayModeStereoPropertiesNV {
VkStructureType sType;
const void* pNext;
- uint64_t firstDrawTimestamp;
- uint64_t swapBufferTimestamp;
-} VkAmigoProfilingSubmitInfoSEC;
+ VkBool32 hdmi3DSupported;
+} VkDisplayModeStereoPropertiesNV;
-// VK_QCOM_multiview_per_view_viewports is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_multiview_per_view_viewports 1
-#define VK_QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_SPEC_VERSION 1
-#define VK_QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_EXTENSION_NAME "VK_QCOM_multiview_per_view_viewports"
-typedef struct VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM {
+// VK_NV_raw_access_chains is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_raw_access_chains 1
+#define VK_NV_RAW_ACCESS_CHAINS_SPEC_VERSION 1
+#define VK_NV_RAW_ACCESS_CHAINS_EXTENSION_NAME "VK_NV_raw_access_chains"
+typedef struct VkPhysicalDeviceRawAccessChainsFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 multiviewPerViewViewports;
-} VkPhysicalDeviceMultiviewPerViewViewportsFeaturesQCOM;
+ VkBool32 shaderRawAccessChains;
+} VkPhysicalDeviceRawAccessChainsFeaturesNV;
-// VK_NV_ray_tracing_invocation_reorder is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_ray_tracing_invocation_reorder 1
-#define VK_NV_RAY_TRACING_INVOCATION_REORDER_SPEC_VERSION 1
-#define VK_NV_RAY_TRACING_INVOCATION_REORDER_EXTENSION_NAME "VK_NV_ray_tracing_invocation_reorder"
+// VK_NV_command_buffer_inheritance is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_command_buffer_inheritance 1
+#define VK_NV_COMMAND_BUFFER_INHERITANCE_SPEC_VERSION 1
+#define VK_NV_COMMAND_BUFFER_INHERITANCE_EXTENSION_NAME "VK_NV_command_buffer_inheritance"
+typedef struct VkPhysicalDeviceCommandBufferInheritanceFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 commandBufferInheritance;
+} VkPhysicalDeviceCommandBufferInheritanceFeaturesNV;
-typedef enum VkRayTracingInvocationReorderModeNV {
- VK_RAY_TRACING_INVOCATION_REORDER_MODE_NONE_NV = 0,
- VK_RAY_TRACING_INVOCATION_REORDER_MODE_REORDER_NV = 1,
- VK_RAY_TRACING_INVOCATION_REORDER_MODE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkRayTracingInvocationReorderModeNV;
-typedef struct VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkRayTracingInvocationReorderModeNV rayTracingInvocationReorderReorderingHint;
-} VkPhysicalDeviceRayTracingInvocationReorderPropertiesNV;
-typedef struct VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV {
+
+// VK_NV_shader_atomic_float16_vector is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_shader_atomic_float16_vector 1
+#define VK_NV_SHADER_ATOMIC_FLOAT16_VECTOR_SPEC_VERSION 1
+#define VK_NV_SHADER_ATOMIC_FLOAT16_VECTOR_EXTENSION_NAME "VK_NV_shader_atomic_float16_vector"
+typedef struct VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 rayTracingInvocationReorder;
-} VkPhysicalDeviceRayTracingInvocationReorderFeaturesNV;
+ VkBool32 shaderFloat16VectorAtomics;
+} VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV;
-// VK_NV_extended_sparse_address_space is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_extended_sparse_address_space 1
-#define VK_NV_EXTENDED_SPARSE_ADDRESS_SPACE_SPEC_VERSION 1
-#define VK_NV_EXTENDED_SPARSE_ADDRESS_SPACE_EXTENSION_NAME "VK_NV_extended_sparse_address_space"
-typedef struct VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV {
+// VK_EXT_shader_replicated_composites is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_shader_replicated_composites 1
+#define VK_EXT_SHADER_REPLICATED_COMPOSITES_SPEC_VERSION 1
+#define VK_EXT_SHADER_REPLICATED_COMPOSITES_EXTENSION_NAME "VK_EXT_shader_replicated_composites"
+typedef struct VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 extendedSparseAddressSpace;
-} VkPhysicalDeviceExtendedSparseAddressSpaceFeaturesNV;
+ VkBool32 shaderReplicatedComposites;
+} VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT;
-typedef struct VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV {
- VkStructureType sType;
- void* pNext;
- VkDeviceSize extendedSparseAddressSpaceSize;
- VkImageUsageFlags extendedSparseImageUsageFlags;
- VkBufferUsageFlags extendedSparseBufferUsageFlags;
-} VkPhysicalDeviceExtendedSparseAddressSpacePropertiesNV;
+// VK_NV_ray_tracing_validation is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_ray_tracing_validation 1
+#define VK_NV_RAY_TRACING_VALIDATION_SPEC_VERSION 1
+#define VK_NV_RAY_TRACING_VALIDATION_EXTENSION_NAME "VK_NV_ray_tracing_validation"
+typedef struct VkPhysicalDeviceRayTracingValidationFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 rayTracingValidation;
+} VkPhysicalDeviceRayTracingValidationFeaturesNV;
-// VK_EXT_mutable_descriptor_type is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_mutable_descriptor_type 1
-#define VK_EXT_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION 1
-#define VK_EXT_MUTABLE_DESCRIPTOR_TYPE_EXTENSION_NAME "VK_EXT_mutable_descriptor_type"
-// VK_EXT_layer_settings is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_layer_settings 1
-#define VK_EXT_LAYER_SETTINGS_SPEC_VERSION 2
-#define VK_EXT_LAYER_SETTINGS_EXTENSION_NAME "VK_EXT_layer_settings"
+// VK_NV_cluster_acceleration_structure is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_cluster_acceleration_structure 1
+#define VK_NV_CLUSTER_ACCELERATION_STRUCTURE_SPEC_VERSION 2
+#define VK_NV_CLUSTER_ACCELERATION_STRUCTURE_EXTENSION_NAME "VK_NV_cluster_acceleration_structure"
-typedef enum VkLayerSettingTypeEXT {
- VK_LAYER_SETTING_TYPE_BOOL32_EXT = 0,
- VK_LAYER_SETTING_TYPE_INT32_EXT = 1,
- VK_LAYER_SETTING_TYPE_INT64_EXT = 2,
- VK_LAYER_SETTING_TYPE_UINT32_EXT = 3,
- VK_LAYER_SETTING_TYPE_UINT64_EXT = 4,
- VK_LAYER_SETTING_TYPE_FLOAT32_EXT = 5,
- VK_LAYER_SETTING_TYPE_FLOAT64_EXT = 6,
- VK_LAYER_SETTING_TYPE_STRING_EXT = 7,
- VK_LAYER_SETTING_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
-} VkLayerSettingTypeEXT;
-typedef struct VkLayerSettingEXT {
- const char* pLayerName;
- const char* pSettingName;
- VkLayerSettingTypeEXT type;
- uint32_t valueCount;
- const void* pValues;
-} VkLayerSettingEXT;
+typedef enum VkClusterAccelerationStructureTypeNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_CLUSTERS_BOTTOM_LEVEL_NV = 0,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_TRIANGLE_CLUSTER_NV = 1,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_TRIANGLE_CLUSTER_TEMPLATE_NV = 2,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureTypeNV;
-typedef struct VkLayerSettingsCreateInfoEXT {
- VkStructureType sType;
- const void* pNext;
- uint32_t settingCount;
- const VkLayerSettingEXT* pSettings;
-} VkLayerSettingsCreateInfoEXT;
+typedef enum VkClusterAccelerationStructureOpTypeNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_MOVE_OBJECTS_NV = 0,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_CLUSTERS_BOTTOM_LEVEL_NV = 1,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_TRIANGLE_CLUSTER_NV = 2,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_BUILD_TRIANGLE_CLUSTER_TEMPLATE_NV = 3,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_INSTANTIATE_TRIANGLE_CLUSTER_NV = 4,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureOpTypeNV;
+typedef enum VkClusterAccelerationStructureOpModeNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_IMPLICIT_DESTINATIONS_NV = 0,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_EXPLICIT_DESTINATIONS_NV = 1,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_COMPUTE_SIZES_NV = 2,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_OP_MODE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureOpModeNV;
+typedef enum VkClusterAccelerationStructureAddressResolutionFlagBitsNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_DST_IMPLICIT_DATA_BIT_NV = 0x00000001,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_SCRATCH_DATA_BIT_NV = 0x00000002,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_DST_ADDRESS_ARRAY_BIT_NV = 0x00000004,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_DST_SIZES_ARRAY_BIT_NV = 0x00000008,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_SRC_INFOS_ARRAY_BIT_NV = 0x00000010,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_INDIRECTED_SRC_INFOS_COUNT_BIT_NV = 0x00000020,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_ADDRESS_RESOLUTION_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureAddressResolutionFlagBitsNV;
+typedef VkFlags VkClusterAccelerationStructureAddressResolutionFlagsNV;
-// VK_ARM_shader_core_builtins is a preprocessor guard. Do not pass it to API calls.
-#define VK_ARM_shader_core_builtins 1
-#define VK_ARM_SHADER_CORE_BUILTINS_SPEC_VERSION 2
-#define VK_ARM_SHADER_CORE_BUILTINS_EXTENSION_NAME "VK_ARM_shader_core_builtins"
-typedef struct VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM {
+typedef enum VkClusterAccelerationStructureClusterFlagBitsNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_CLUSTER_ALLOW_DISABLE_OPACITY_MICROMAPS_NV = 0x00000001,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_CLUSTER_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureClusterFlagBitsNV;
+typedef VkFlags VkClusterAccelerationStructureClusterFlagsNV;
+
+typedef enum VkClusterAccelerationStructureGeometryFlagBitsNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_CULL_DISABLE_BIT_NV = 0x00000001,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_NO_DUPLICATE_ANYHIT_INVOCATION_BIT_NV = 0x00000002,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_OPAQUE_BIT_NV = 0x00000004,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_GEOMETRY_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureGeometryFlagBitsNV;
+typedef VkFlags VkClusterAccelerationStructureGeometryFlagsNV;
+
+typedef enum VkClusterAccelerationStructureIndexFormatFlagBitsNV {
+ VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_8BIT_NV = 0x00000001,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_16BIT_NV = 0x00000002,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_32BIT_NV = 0x00000004,
+ VK_CLUSTER_ACCELERATION_STRUCTURE_INDEX_FORMAT_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkClusterAccelerationStructureIndexFormatFlagBitsNV;
+typedef VkFlags VkClusterAccelerationStructureIndexFormatFlagsNV;
+typedef struct VkPhysicalDeviceClusterAccelerationStructureFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 shaderCoreBuiltins;
-} VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM;
+ VkBool32 clusterAccelerationStructure;
+} VkPhysicalDeviceClusterAccelerationStructureFeaturesNV;
-typedef struct VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM {
+typedef struct VkPhysicalDeviceClusterAccelerationStructurePropertiesNV {
VkStructureType sType;
void* pNext;
- uint64_t shaderCoreMask;
- uint32_t shaderCoreCount;
- uint32_t shaderWarpsPerCore;
-} VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM;
-
+ uint32_t maxVerticesPerCluster;
+ uint32_t maxTrianglesPerCluster;
+ uint32_t clusterScratchByteAlignment;
+ uint32_t clusterByteAlignment;
+ uint32_t clusterTemplateByteAlignment;
+ uint32_t clusterBottomLevelByteAlignment;
+ uint32_t clusterTemplateBoundsByteAlignment;
+ uint32_t maxClusterGeometryIndex;
+} VkPhysicalDeviceClusterAccelerationStructurePropertiesNV;
+typedef struct VkClusterAccelerationStructureClustersBottomLevelInputNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxTotalClusterCount;
+ uint32_t maxClusterCountPerAccelerationStructure;
+} VkClusterAccelerationStructureClustersBottomLevelInputNV;
-// VK_EXT_pipeline_library_group_handles is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_pipeline_library_group_handles 1
-#define VK_EXT_PIPELINE_LIBRARY_GROUP_HANDLES_SPEC_VERSION 1
-#define VK_EXT_PIPELINE_LIBRARY_GROUP_HANDLES_EXTENSION_NAME "VK_EXT_pipeline_library_group_handles"
-typedef struct VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT {
+typedef struct VkClusterAccelerationStructureTriangleClusterInputNV {
VkStructureType sType;
void* pNext;
- VkBool32 pipelineLibraryGroupHandles;
-} VkPhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT;
+ VkFormat vertexFormat;
+ uint32_t maxGeometryIndexValue;
+ uint32_t maxClusterUniqueGeometryCount;
+ uint32_t maxClusterTriangleCount;
+ uint32_t maxClusterVertexCount;
+ uint32_t maxTotalTriangleCount;
+ uint32_t maxTotalVertexCount;
+ uint32_t minPositionTruncateBitCount;
+} VkClusterAccelerationStructureTriangleClusterInputNV;
+
+typedef struct VkClusterAccelerationStructureMoveObjectsInputNV {
+ VkStructureType sType;
+ void* pNext;
+ VkClusterAccelerationStructureTypeNV type;
+ VkBool32 noMoveOverlap;
+ VkDeviceSize maxMovedBytes;
+} VkClusterAccelerationStructureMoveObjectsInputNV;
+
+typedef union VkClusterAccelerationStructureOpInputNV {
+ VkClusterAccelerationStructureClustersBottomLevelInputNV* pClustersBottomLevel;
+ VkClusterAccelerationStructureTriangleClusterInputNV* pTriangleClusters;
+ VkClusterAccelerationStructureMoveObjectsInputNV* pMoveObjects;
+} VkClusterAccelerationStructureOpInputNV;
+
+typedef struct VkClusterAccelerationStructureInputInfoNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxAccelerationStructureCount;
+ VkBuildAccelerationStructureFlagsKHR flags;
+ VkClusterAccelerationStructureOpTypeNV opType;
+ VkClusterAccelerationStructureOpModeNV opMode;
+ VkClusterAccelerationStructureOpInputNV opInput;
+} VkClusterAccelerationStructureInputInfoNV;
+
+typedef struct VkStridedDeviceAddressRegionKHR {
+ VkDeviceAddress deviceAddress;
+ VkDeviceSize stride;
+ VkDeviceSize size;
+} VkStridedDeviceAddressRegionKHR;
+typedef struct VkClusterAccelerationStructureCommandsInfoNV {
+ VkStructureType sType;
+ void* pNext;
+ VkClusterAccelerationStructureInputInfoNV input;
+ VkDeviceAddress dstImplicitData;
+ VkDeviceAddress scratchData;
+ VkStridedDeviceAddressRegionKHR dstAddressesArray;
+ VkStridedDeviceAddressRegionKHR dstSizesArray;
+ VkStridedDeviceAddressRegionKHR srcInfosArray;
+ VkDeviceAddress srcInfosCount;
+ VkClusterAccelerationStructureAddressResolutionFlagsNV addressResolutionFlags;
+} VkClusterAccelerationStructureCommandsInfoNV;
+
+typedef struct VkStridedDeviceAddressNV {
+ VkDeviceAddress startAddress;
+ VkDeviceSize strideInBytes;
+} VkStridedDeviceAddressNV;
+
+typedef struct VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV {
+ uint32_t geometryIndex:24;
+ uint32_t reserved:5;
+ uint32_t geometryFlags:3;
+} VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV;
+
+typedef struct VkClusterAccelerationStructureMoveObjectsInfoNV {
+ VkDeviceAddress srcAccelerationStructure;
+} VkClusterAccelerationStructureMoveObjectsInfoNV;
+
+typedef struct VkClusterAccelerationStructureBuildClustersBottomLevelInfoNV {
+ uint32_t clusterReferencesCount;
+ uint32_t clusterReferencesStride;
+ VkDeviceAddress clusterReferences;
+} VkClusterAccelerationStructureBuildClustersBottomLevelInfoNV;
+
+typedef struct VkClusterAccelerationStructureBuildTriangleClusterInfoNV {
+ uint32_t clusterID;
+ VkClusterAccelerationStructureClusterFlagsNV clusterFlags;
+ uint32_t triangleCount:9;
+ uint32_t vertexCount:9;
+ uint32_t positionTruncateBitCount:6;
+ uint32_t indexType:4;
+ uint32_t opacityMicromapIndexType:4;
+ VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV baseGeometryIndexAndGeometryFlags;
+ uint16_t indexBufferStride;
+ uint16_t vertexBufferStride;
+ uint16_t geometryIndexAndFlagsBufferStride;
+ uint16_t opacityMicromapIndexBufferStride;
+ VkDeviceAddress indexBuffer;
+ VkDeviceAddress vertexBuffer;
+ VkDeviceAddress geometryIndexAndFlagsBuffer;
+ VkDeviceAddress opacityMicromapArray;
+ VkDeviceAddress opacityMicromapIndexBuffer;
+} VkClusterAccelerationStructureBuildTriangleClusterInfoNV;
+
+typedef struct VkClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV {
+ uint32_t clusterID;
+ VkClusterAccelerationStructureClusterFlagsNV clusterFlags;
+ uint32_t triangleCount:9;
+ uint32_t vertexCount:9;
+ uint32_t positionTruncateBitCount:6;
+ uint32_t indexType:4;
+ uint32_t opacityMicromapIndexType:4;
+ VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV baseGeometryIndexAndGeometryFlags;
+ uint16_t indexBufferStride;
+ uint16_t vertexBufferStride;
+ uint16_t geometryIndexAndFlagsBufferStride;
+ uint16_t opacityMicromapIndexBufferStride;
+ VkDeviceAddress indexBuffer;
+ VkDeviceAddress vertexBuffer;
+ VkDeviceAddress geometryIndexAndFlagsBuffer;
+ VkDeviceAddress opacityMicromapArray;
+ VkDeviceAddress opacityMicromapIndexBuffer;
+ VkDeviceAddress instantiationBoundingBoxLimit;
+} VkClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV;
+
+typedef struct VkClusterAccelerationStructureInstantiateClusterInfoNV {
+ uint32_t clusterIdOffset;
+ uint32_t geometryIndexOffset:24;
+ uint32_t reserved:8;
+ VkDeviceAddress clusterTemplateAddress;
+ VkStridedDeviceAddressNV vertexBuffer;
+} VkClusterAccelerationStructureInstantiateClusterInfoNV;
+typedef struct VkAccelerationStructureBuildSizesInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceSize accelerationStructureSize;
+ VkDeviceSize updateScratchSize;
+ VkDeviceSize buildScratchSize;
+} VkAccelerationStructureBuildSizesInfoKHR;
-// VK_EXT_dynamic_rendering_unused_attachments is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_dynamic_rendering_unused_attachments 1
-#define VK_EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_SPEC_VERSION 1
-#define VK_EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_EXTENSION_NAME "VK_EXT_dynamic_rendering_unused_attachments"
-typedef struct VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT {
+typedef struct VkRayTracingPipelineClusterAccelerationStructureCreateInfoNV {
VkStructureType sType;
void* pNext;
- VkBool32 dynamicRenderingUnusedAttachments;
-} VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT;
+ VkBool32 allowClusterAccelerationStructure;
+} VkRayTracingPipelineClusterAccelerationStructureCreateInfoNV;
+typedef void (VKAPI_PTR *PFN_vkGetClusterAccelerationStructureBuildSizesNV)(VkDevice device, const VkClusterAccelerationStructureInputInfoNV* pInfo, VkAccelerationStructureBuildSizesInfoKHR* pSizeInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdBuildClusterAccelerationStructureIndirectNV)(VkCommandBuffer commandBuffer, const VkClusterAccelerationStructureCommandsInfoNV* pCommandInfos);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetClusterAccelerationStructureBuildSizesNV(
+ VkDevice device,
+ const VkClusterAccelerationStructureInputInfoNV* pInfo,
+ VkAccelerationStructureBuildSizesInfoKHR* pSizeInfo);
-// VK_NV_low_latency2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_low_latency2 1
-#define VK_NV_LOW_LATENCY_2_SPEC_VERSION 2
-#define VK_NV_LOW_LATENCY_2_EXTENSION_NAME "VK_NV_low_latency2"
+VKAPI_ATTR void VKAPI_CALL vkCmdBuildClusterAccelerationStructureIndirectNV(
+ VkCommandBuffer commandBuffer,
+ const VkClusterAccelerationStructureCommandsInfoNV* pCommandInfos);
+#endif
-typedef enum VkLatencyMarkerNV {
- VK_LATENCY_MARKER_SIMULATION_START_NV = 0,
- VK_LATENCY_MARKER_SIMULATION_END_NV = 1,
- VK_LATENCY_MARKER_RENDERSUBMIT_START_NV = 2,
- VK_LATENCY_MARKER_RENDERSUBMIT_END_NV = 3,
- VK_LATENCY_MARKER_PRESENT_START_NV = 4,
- VK_LATENCY_MARKER_PRESENT_END_NV = 5,
- VK_LATENCY_MARKER_INPUT_SAMPLE_NV = 6,
- VK_LATENCY_MARKER_TRIGGER_FLASH_NV = 7,
- VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_START_NV = 8,
- VK_LATENCY_MARKER_OUT_OF_BAND_RENDERSUBMIT_END_NV = 9,
- VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_START_NV = 10,
- VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_END_NV = 11,
- VK_LATENCY_MARKER_MAX_ENUM_NV = 0x7FFFFFFF
-} VkLatencyMarkerNV;
-typedef enum VkOutOfBandQueueTypeNV {
- VK_OUT_OF_BAND_QUEUE_TYPE_RENDER_NV = 0,
- VK_OUT_OF_BAND_QUEUE_TYPE_PRESENT_NV = 1,
- VK_OUT_OF_BAND_QUEUE_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
-} VkOutOfBandQueueTypeNV;
-typedef struct VkLatencySleepModeInfoNV {
+// VK_NV_partitioned_acceleration_structure is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_partitioned_acceleration_structure 1
+#define VK_NV_PARTITIONED_ACCELERATION_STRUCTURE_SPEC_VERSION 1
+#define VK_NV_PARTITIONED_ACCELERATION_STRUCTURE_EXTENSION_NAME "VK_NV_partitioned_acceleration_structure"
+#define VK_PARTITIONED_ACCELERATION_STRUCTURE_PARTITION_INDEX_GLOBAL_NV (~0U)
+
+typedef enum VkPartitionedAccelerationStructureOpTypeNV {
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_WRITE_INSTANCE_NV = 0,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_UPDATE_INSTANCE_NV = 1,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_WRITE_PARTITION_TRANSLATION_NV = 2,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_OP_TYPE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkPartitionedAccelerationStructureOpTypeNV;
+
+typedef enum VkPartitionedAccelerationStructureInstanceFlagBitsNV {
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_TRIANGLE_FACING_CULL_DISABLE_BIT_NV = 0x00000001,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_TRIANGLE_FLIP_FACING_BIT_NV = 0x00000002,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_FORCE_OPAQUE_BIT_NV = 0x00000004,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_FORCE_NO_OPAQUE_BIT_NV = 0x00000008,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_ENABLE_EXPLICIT_BOUNDING_BOX_NV = 0x00000010,
+ VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkPartitionedAccelerationStructureInstanceFlagBitsNV;
+typedef VkFlags VkPartitionedAccelerationStructureInstanceFlagsNV;
+typedef struct VkPhysicalDevicePartitionedAccelerationStructureFeaturesNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 partitionedAccelerationStructure;
+} VkPhysicalDevicePartitionedAccelerationStructureFeaturesNV;
+
+typedef struct VkPhysicalDevicePartitionedAccelerationStructurePropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxPartitionCount;
+} VkPhysicalDevicePartitionedAccelerationStructurePropertiesNV;
+
+typedef struct VkPartitionedAccelerationStructureFlagsNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 enablePartitionTranslation;
+} VkPartitionedAccelerationStructureFlagsNV;
+
+typedef struct VkBuildPartitionedAccelerationStructureIndirectCommandNV {
+ VkPartitionedAccelerationStructureOpTypeNV opType;
+ uint32_t argCount;
+ VkStridedDeviceAddressNV argData;
+} VkBuildPartitionedAccelerationStructureIndirectCommandNV;
+
+typedef struct VkPartitionedAccelerationStructureWriteInstanceDataNV {
+ VkTransformMatrixKHR transform;
+ float explicitAABB[6];
+ uint32_t instanceID;
+ uint32_t instanceMask;
+ uint32_t instanceContributionToHitGroupIndex;
+ VkPartitionedAccelerationStructureInstanceFlagsNV instanceFlags;
+ uint32_t instanceIndex;
+ uint32_t partitionIndex;
+ VkDeviceAddress accelerationStructure;
+} VkPartitionedAccelerationStructureWriteInstanceDataNV;
+
+typedef struct VkPartitionedAccelerationStructureUpdateInstanceDataNV {
+ uint32_t instanceIndex;
+ uint32_t instanceContributionToHitGroupIndex;
+ VkDeviceAddress accelerationStructure;
+} VkPartitionedAccelerationStructureUpdateInstanceDataNV;
+
+typedef struct VkPartitionedAccelerationStructureWritePartitionTranslationDataNV {
+ uint32_t partitionIndex;
+ float partitionTranslation[3];
+} VkPartitionedAccelerationStructureWritePartitionTranslationDataNV;
+
+typedef struct VkWriteDescriptorSetPartitionedAccelerationStructureNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t accelerationStructureCount;
+ const VkDeviceAddress* pAccelerationStructures;
+} VkWriteDescriptorSetPartitionedAccelerationStructureNV;
+
+typedef struct VkPartitionedAccelerationStructureInstancesInputNV {
+ VkStructureType sType;
+ void* pNext;
+ VkBuildAccelerationStructureFlagsKHR flags;
+ uint32_t instanceCount;
+ uint32_t maxInstancePerPartitionCount;
+ uint32_t partitionCount;
+ uint32_t maxInstanceInGlobalPartitionCount;
+} VkPartitionedAccelerationStructureInstancesInputNV;
+
+typedef struct VkBuildPartitionedAccelerationStructureInfoNV {
+ VkStructureType sType;
+ void* pNext;
+ VkPartitionedAccelerationStructureInstancesInputNV input;
+ VkDeviceAddress srcAccelerationStructureData;
+ VkDeviceAddress dstAccelerationStructureData;
+ VkDeviceAddress scratchData;
+ VkDeviceAddress srcInfos;
+ VkDeviceAddress srcInfosCount;
+} VkBuildPartitionedAccelerationStructureInfoNV;
+
+typedef void (VKAPI_PTR *PFN_vkGetPartitionedAccelerationStructuresBuildSizesNV)(VkDevice device, const VkPartitionedAccelerationStructureInstancesInputNV* pInfo, VkAccelerationStructureBuildSizesInfoKHR* pSizeInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdBuildPartitionedAccelerationStructuresNV)(VkCommandBuffer commandBuffer, const VkBuildPartitionedAccelerationStructureInfoNV* pBuildInfo);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetPartitionedAccelerationStructuresBuildSizesNV(
+ VkDevice device,
+ const VkPartitionedAccelerationStructureInstancesInputNV* pInfo,
+ VkAccelerationStructureBuildSizesInfoKHR* pSizeInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBuildPartitionedAccelerationStructuresNV(
+ VkCommandBuffer commandBuffer,
+ const VkBuildPartitionedAccelerationStructureInfoNV* pBuildInfo);
+#endif
+
+
+// VK_EXT_device_generated_commands is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_device_generated_commands 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectExecutionSetEXT)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectCommandsLayoutEXT)
+#define VK_EXT_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 1
+#define VK_EXT_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_EXT_device_generated_commands"
+
+typedef enum VkIndirectExecutionSetInfoTypeEXT {
+ VK_INDIRECT_EXECUTION_SET_INFO_TYPE_PIPELINES_EXT = 0,
+ VK_INDIRECT_EXECUTION_SET_INFO_TYPE_SHADER_OBJECTS_EXT = 1,
+ VK_INDIRECT_EXECUTION_SET_INFO_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkIndirectExecutionSetInfoTypeEXT;
+
+typedef enum VkIndirectCommandsTokenTypeEXT {
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_EXECUTION_SET_EXT = 0,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_CONSTANT_EXT = 1,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_SEQUENCE_INDEX_EXT = 2,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_EXT = 3,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_VERTEX_BUFFER_EXT = 4,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_EXT = 5,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_EXT = 6,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_COUNT_EXT = 7,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_COUNT_EXT = 8,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_EXT = 9,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_MESH_TASKS_NV_EXT = 1000202002,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_MESH_TASKS_COUNT_NV_EXT = 1000202003,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_MESH_TASKS_EXT = 1000328000,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_MESH_TASKS_COUNT_EXT = 1000328001,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_TRACE_RAYS2_EXT = 1000386004,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkIndirectCommandsTokenTypeEXT;
+
+typedef enum VkIndirectCommandsInputModeFlagBitsEXT {
+ VK_INDIRECT_COMMANDS_INPUT_MODE_VULKAN_INDEX_BUFFER_EXT = 0x00000001,
+ VK_INDIRECT_COMMANDS_INPUT_MODE_DXGI_INDEX_BUFFER_EXT = 0x00000002,
+ VK_INDIRECT_COMMANDS_INPUT_MODE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkIndirectCommandsInputModeFlagBitsEXT;
+typedef VkFlags VkIndirectCommandsInputModeFlagsEXT;
+
+typedef enum VkIndirectCommandsLayoutUsageFlagBitsEXT {
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EXPLICIT_PREPROCESS_BIT_EXT = 0x00000001,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_EXT = 0x00000002,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkIndirectCommandsLayoutUsageFlagBitsEXT;
+typedef VkFlags VkIndirectCommandsLayoutUsageFlagsEXT;
+typedef struct VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 deviceGeneratedCommands;
+ VkBool32 dynamicGeneratedPipelineLayout;
+} VkPhysicalDeviceDeviceGeneratedCommandsFeaturesEXT;
+
+typedef struct VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxIndirectPipelineCount;
+ uint32_t maxIndirectShaderObjectCount;
+ uint32_t maxIndirectSequenceCount;
+ uint32_t maxIndirectCommandsTokenCount;
+ uint32_t maxIndirectCommandsTokenOffset;
+ uint32_t maxIndirectCommandsIndirectStride;
+ VkIndirectCommandsInputModeFlagsEXT supportedIndirectCommandsInputModes;
+ VkShaderStageFlags supportedIndirectCommandsShaderStages;
+ VkShaderStageFlags supportedIndirectCommandsShaderStagesPipelineBinding;
+ VkShaderStageFlags supportedIndirectCommandsShaderStagesShaderBinding;
+ VkBool32 deviceGeneratedCommandsTransformFeedback;
+ VkBool32 deviceGeneratedCommandsMultiDrawIndirectCount;
+} VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT;
+
+typedef struct VkGeneratedCommandsMemoryRequirementsInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkIndirectExecutionSetEXT indirectExecutionSet;
+ VkIndirectCommandsLayoutEXT indirectCommandsLayout;
+ uint32_t maxSequenceCount;
+ uint32_t maxDrawCount;
+} VkGeneratedCommandsMemoryRequirementsInfoEXT;
+
+typedef struct VkIndirectExecutionSetPipelineInfoEXT {
VkStructureType sType;
const void* pNext;
- VkBool32 lowLatencyMode;
- VkBool32 lowLatencyBoost;
- uint32_t minimumIntervalUs;
-} VkLatencySleepModeInfoNV;
+ VkPipeline initialPipeline;
+ uint32_t maxPipelineCount;
+} VkIndirectExecutionSetPipelineInfoEXT;
-typedef struct VkLatencySleepInfoNV {
+typedef struct VkIndirectExecutionSetShaderLayoutInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t setLayoutCount;
+ const VkDescriptorSetLayout* pSetLayouts;
+} VkIndirectExecutionSetShaderLayoutInfoEXT;
+
+typedef struct VkIndirectExecutionSetShaderInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t shaderCount;
+ const VkShaderEXT* pInitialShaders;
+ const VkIndirectExecutionSetShaderLayoutInfoEXT* pSetLayoutInfos;
+ uint32_t maxShaderCount;
+ uint32_t pushConstantRangeCount;
+ const VkPushConstantRange* pPushConstantRanges;
+} VkIndirectExecutionSetShaderInfoEXT;
+
+typedef union VkIndirectExecutionSetInfoEXT {
+ const VkIndirectExecutionSetPipelineInfoEXT* pPipelineInfo;
+ const VkIndirectExecutionSetShaderInfoEXT* pShaderInfo;
+} VkIndirectExecutionSetInfoEXT;
+
+typedef struct VkIndirectExecutionSetCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkIndirectExecutionSetInfoTypeEXT type;
+ VkIndirectExecutionSetInfoEXT info;
+} VkIndirectExecutionSetCreateInfoEXT;
+
+typedef struct VkGeneratedCommandsInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkShaderStageFlags shaderStages;
+ VkIndirectExecutionSetEXT indirectExecutionSet;
+ VkIndirectCommandsLayoutEXT indirectCommandsLayout;
+ VkDeviceAddress indirectAddress;
+ VkDeviceSize indirectAddressSize;
+ VkDeviceAddress preprocessAddress;
+ VkDeviceSize preprocessSize;
+ uint32_t maxSequenceCount;
+ VkDeviceAddress sequenceCountAddress;
+ uint32_t maxDrawCount;
+} VkGeneratedCommandsInfoEXT;
+
+typedef struct VkWriteIndirectExecutionSetPipelineEXT {
VkStructureType sType;
const void* pNext;
- VkSemaphore signalSemaphore;
- uint64_t value;
-} VkLatencySleepInfoNV;
+ uint32_t index;
+ VkPipeline pipeline;
+} VkWriteIndirectExecutionSetPipelineEXT;
-typedef struct VkSetLatencyMarkerInfoNV {
- VkStructureType sType;
- const void* pNext;
- uint64_t presentID;
- VkLatencyMarkerNV marker;
-} VkSetLatencyMarkerInfoNV;
+typedef struct VkIndirectCommandsPushConstantTokenEXT {
+ VkPushConstantRange updateRange;
+} VkIndirectCommandsPushConstantTokenEXT;
+
+typedef struct VkIndirectCommandsVertexBufferTokenEXT {
+ uint32_t vertexBindingUnit;
+} VkIndirectCommandsVertexBufferTokenEXT;
-typedef struct VkLatencyTimingsFrameReportNV {
- VkStructureType sType;
- const void* pNext;
- uint64_t presentID;
- uint64_t inputSampleTimeUs;
- uint64_t simStartTimeUs;
- uint64_t simEndTimeUs;
- uint64_t renderSubmitStartTimeUs;
- uint64_t renderSubmitEndTimeUs;
- uint64_t presentStartTimeUs;
- uint64_t presentEndTimeUs;
- uint64_t driverStartTimeUs;
- uint64_t driverEndTimeUs;
- uint64_t osRenderQueueStartTimeUs;
- uint64_t osRenderQueueEndTimeUs;
- uint64_t gpuRenderStartTimeUs;
- uint64_t gpuRenderEndTimeUs;
-} VkLatencyTimingsFrameReportNV;
+typedef struct VkIndirectCommandsIndexBufferTokenEXT {
+ VkIndirectCommandsInputModeFlagBitsEXT mode;
+} VkIndirectCommandsIndexBufferTokenEXT;
-typedef struct VkGetLatencyMarkerInfoNV {
+typedef struct VkIndirectCommandsExecutionSetTokenEXT {
+ VkIndirectExecutionSetInfoTypeEXT type;
+ VkShaderStageFlags shaderStages;
+} VkIndirectCommandsExecutionSetTokenEXT;
+
+typedef union VkIndirectCommandsTokenDataEXT {
+ const VkIndirectCommandsPushConstantTokenEXT* pPushConstant;
+ const VkIndirectCommandsVertexBufferTokenEXT* pVertexBuffer;
+ const VkIndirectCommandsIndexBufferTokenEXT* pIndexBuffer;
+ const VkIndirectCommandsExecutionSetTokenEXT* pExecutionSet;
+} VkIndirectCommandsTokenDataEXT;
+
+typedef struct VkIndirectCommandsLayoutTokenEXT {
VkStructureType sType;
const void* pNext;
- uint32_t timingCount;
- VkLatencyTimingsFrameReportNV* pTimings;
-} VkGetLatencyMarkerInfoNV;
+ VkIndirectCommandsTokenTypeEXT type;
+ VkIndirectCommandsTokenDataEXT data;
+ uint32_t offset;
+} VkIndirectCommandsLayoutTokenEXT;
-typedef struct VkLatencySubmissionPresentIdNV {
+typedef struct VkIndirectCommandsLayoutCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkIndirectCommandsLayoutUsageFlagsEXT flags;
+ VkShaderStageFlags shaderStages;
+ uint32_t indirectStride;
+ VkPipelineLayout pipelineLayout;
+ uint32_t tokenCount;
+ const VkIndirectCommandsLayoutTokenEXT* pTokens;
+} VkIndirectCommandsLayoutCreateInfoEXT;
+
+typedef struct VkDrawIndirectCountIndirectCommandEXT {
+ VkDeviceAddress bufferAddress;
+ uint32_t stride;
+ uint32_t commandCount;
+} VkDrawIndirectCountIndirectCommandEXT;
+
+typedef struct VkBindVertexBufferIndirectCommandEXT {
+ VkDeviceAddress bufferAddress;
+ uint32_t size;
+ uint32_t stride;
+} VkBindVertexBufferIndirectCommandEXT;
+
+typedef struct VkBindIndexBufferIndirectCommandEXT {
+ VkDeviceAddress bufferAddress;
+ uint32_t size;
+ VkIndexType indexType;
+} VkBindIndexBufferIndirectCommandEXT;
+
+typedef struct VkGeneratedCommandsPipelineInfoEXT {
VkStructureType sType;
- const void* pNext;
- uint64_t presentID;
-} VkLatencySubmissionPresentIdNV;
+ void* pNext;
+ VkPipeline pipeline;
+} VkGeneratedCommandsPipelineInfoEXT;
-typedef struct VkSwapchainLatencyCreateInfoNV {
+typedef struct VkGeneratedCommandsShaderInfoEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t shaderCount;
+ const VkShaderEXT* pShaders;
+} VkGeneratedCommandsShaderInfoEXT;
+
+typedef struct VkWriteIndirectExecutionSetShaderEXT {
VkStructureType sType;
const void* pNext;
- VkBool32 latencyModeEnable;
-} VkSwapchainLatencyCreateInfoNV;
+ uint32_t index;
+ VkShaderEXT shader;
+} VkWriteIndirectExecutionSetShaderEXT;
+
+typedef void (VKAPI_PTR *PFN_vkGetGeneratedCommandsMemoryRequirementsEXT)(VkDevice device, const VkGeneratedCommandsMemoryRequirementsInfoEXT* pInfo, VkMemoryRequirements2* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkCmdPreprocessGeneratedCommandsEXT)(VkCommandBuffer commandBuffer, const VkGeneratedCommandsInfoEXT* pGeneratedCommandsInfo, VkCommandBuffer stateCommandBuffer);
+typedef void (VKAPI_PTR *PFN_vkCmdExecuteGeneratedCommandsEXT)(VkCommandBuffer commandBuffer, VkBool32 isPreprocessed, const VkGeneratedCommandsInfoEXT* pGeneratedCommandsInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectCommandsLayoutEXT)(VkDevice device, const VkIndirectCommandsLayoutCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectCommandsLayoutEXT* pIndirectCommandsLayout);
+typedef void (VKAPI_PTR *PFN_vkDestroyIndirectCommandsLayoutEXT)(VkDevice device, VkIndirectCommandsLayoutEXT indirectCommandsLayout, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectExecutionSetEXT)(VkDevice device, const VkIndirectExecutionSetCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectExecutionSetEXT* pIndirectExecutionSet);
+typedef void (VKAPI_PTR *PFN_vkDestroyIndirectExecutionSetEXT)(VkDevice device, VkIndirectExecutionSetEXT indirectExecutionSet, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkUpdateIndirectExecutionSetPipelineEXT)(VkDevice device, VkIndirectExecutionSetEXT indirectExecutionSet, uint32_t executionSetWriteCount, const VkWriteIndirectExecutionSetPipelineEXT* pExecutionSetWrites);
+typedef void (VKAPI_PTR *PFN_vkUpdateIndirectExecutionSetShaderEXT)(VkDevice device, VkIndirectExecutionSetEXT indirectExecutionSet, uint32_t executionSetWriteCount, const VkWriteIndirectExecutionSetShaderEXT* pExecutionSetWrites);
-typedef struct VkOutOfBandQueueTypeInfoNV {
- VkStructureType sType;
- const void* pNext;
- VkOutOfBandQueueTypeNV queueType;
-} VkOutOfBandQueueTypeInfoNV;
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetGeneratedCommandsMemoryRequirementsEXT(
+ VkDevice device,
+ const VkGeneratedCommandsMemoryRequirementsInfoEXT* pInfo,
+ VkMemoryRequirements2* pMemoryRequirements);
-typedef struct VkLatencySurfaceCapabilitiesNV {
- VkStructureType sType;
- const void* pNext;
- uint32_t presentModeCount;
- VkPresentModeKHR* pPresentModes;
-} VkLatencySurfaceCapabilitiesNV;
+VKAPI_ATTR void VKAPI_CALL vkCmdPreprocessGeneratedCommandsEXT(
+ VkCommandBuffer commandBuffer,
+ const VkGeneratedCommandsInfoEXT* pGeneratedCommandsInfo,
+ VkCommandBuffer stateCommandBuffer);
-typedef VkResult (VKAPI_PTR *PFN_vkSetLatencySleepModeNV)(VkDevice device, VkSwapchainKHR swapchain, const VkLatencySleepModeInfoNV* pSleepModeInfo);
-typedef VkResult (VKAPI_PTR *PFN_vkLatencySleepNV)(VkDevice device, VkSwapchainKHR swapchain, const VkLatencySleepInfoNV* pSleepInfo);
-typedef void (VKAPI_PTR *PFN_vkSetLatencyMarkerNV)(VkDevice device, VkSwapchainKHR swapchain, const VkSetLatencyMarkerInfoNV* pLatencyMarkerInfo);
-typedef void (VKAPI_PTR *PFN_vkGetLatencyTimingsNV)(VkDevice device, VkSwapchainKHR swapchain, VkGetLatencyMarkerInfoNV* pLatencyMarkerInfo);
-typedef void (VKAPI_PTR *PFN_vkQueueNotifyOutOfBandNV)(VkQueue queue, const VkOutOfBandQueueTypeInfoNV* pQueueTypeInfo);
+VKAPI_ATTR void VKAPI_CALL vkCmdExecuteGeneratedCommandsEXT(
+ VkCommandBuffer commandBuffer,
+ VkBool32 isPreprocessed,
+ const VkGeneratedCommandsInfoEXT* pGeneratedCommandsInfo);
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR VkResult VKAPI_CALL vkSetLatencySleepModeNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectCommandsLayoutEXT(
VkDevice device,
- VkSwapchainKHR swapchain,
- const VkLatencySleepModeInfoNV* pSleepModeInfo);
+ const VkIndirectCommandsLayoutCreateInfoEXT* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkIndirectCommandsLayoutEXT* pIndirectCommandsLayout);
-VKAPI_ATTR VkResult VKAPI_CALL vkLatencySleepNV(
+VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectCommandsLayoutEXT(
VkDevice device,
- VkSwapchainKHR swapchain,
- const VkLatencySleepInfoNV* pSleepInfo);
+ VkIndirectCommandsLayoutEXT indirectCommandsLayout,
+ const VkAllocationCallbacks* pAllocator);
-VKAPI_ATTR void VKAPI_CALL vkSetLatencyMarkerNV(
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectExecutionSetEXT(
VkDevice device,
- VkSwapchainKHR swapchain,
- const VkSetLatencyMarkerInfoNV* pLatencyMarkerInfo);
+ const VkIndirectExecutionSetCreateInfoEXT* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkIndirectExecutionSetEXT* pIndirectExecutionSet);
-VKAPI_ATTR void VKAPI_CALL vkGetLatencyTimingsNV(
+VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectExecutionSetEXT(
VkDevice device,
- VkSwapchainKHR swapchain,
- VkGetLatencyMarkerInfoNV* pLatencyMarkerInfo);
+ VkIndirectExecutionSetEXT indirectExecutionSet,
+ const VkAllocationCallbacks* pAllocator);
-VKAPI_ATTR void VKAPI_CALL vkQueueNotifyOutOfBandNV(
- VkQueue queue,
- const VkOutOfBandQueueTypeInfoNV* pQueueTypeInfo);
+VKAPI_ATTR void VKAPI_CALL vkUpdateIndirectExecutionSetPipelineEXT(
+ VkDevice device,
+ VkIndirectExecutionSetEXT indirectExecutionSet,
+ uint32_t executionSetWriteCount,
+ const VkWriteIndirectExecutionSetPipelineEXT* pExecutionSetWrites);
+
+VKAPI_ATTR void VKAPI_CALL vkUpdateIndirectExecutionSetShaderEXT(
+ VkDevice device,
+ VkIndirectExecutionSetEXT indirectExecutionSet,
+ uint32_t executionSetWriteCount,
+ const VkWriteIndirectExecutionSetShaderEXT* pExecutionSetWrites);
#endif
-// VK_QCOM_multiview_per_view_render_areas is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_multiview_per_view_render_areas 1
-#define VK_QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_SPEC_VERSION 1
-#define VK_QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_EXTENSION_NAME "VK_QCOM_multiview_per_view_render_areas"
-typedef struct VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM {
+// VK_MESA_image_alignment_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_MESA_image_alignment_control 1
+#define VK_MESA_IMAGE_ALIGNMENT_CONTROL_SPEC_VERSION 1
+#define VK_MESA_IMAGE_ALIGNMENT_CONTROL_EXTENSION_NAME "VK_MESA_image_alignment_control"
+typedef struct VkPhysicalDeviceImageAlignmentControlFeaturesMESA {
VkStructureType sType;
void* pNext;
- VkBool32 multiviewPerViewRenderAreas;
-} VkPhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM;
+ VkBool32 imageAlignmentControl;
+} VkPhysicalDeviceImageAlignmentControlFeaturesMESA;
-typedef struct VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM {
+typedef struct VkPhysicalDeviceImageAlignmentControlPropertiesMESA {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t supportedImageAlignmentMask;
+} VkPhysicalDeviceImageAlignmentControlPropertiesMESA;
+
+typedef struct VkImageAlignmentControlCreateInfoMESA {
VkStructureType sType;
const void* pNext;
- uint32_t perViewRenderAreaCount;
- const VkRect2D* pPerViewRenderAreas;
-} VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM;
+ uint32_t maximumRequestedAlignment;
+} VkImageAlignmentControlCreateInfoMESA;
-// VK_NV_per_stage_descriptor_set is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_per_stage_descriptor_set 1
-#define VK_NV_PER_STAGE_DESCRIPTOR_SET_SPEC_VERSION 1
-#define VK_NV_PER_STAGE_DESCRIPTOR_SET_EXTENSION_NAME "VK_NV_per_stage_descriptor_set"
-typedef struct VkPhysicalDevicePerStageDescriptorSetFeaturesNV {
+// VK_EXT_depth_clamp_control is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_depth_clamp_control 1
+#define VK_EXT_DEPTH_CLAMP_CONTROL_SPEC_VERSION 1
+#define VK_EXT_DEPTH_CLAMP_CONTROL_EXTENSION_NAME "VK_EXT_depth_clamp_control"
+typedef struct VkPhysicalDeviceDepthClampControlFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 perStageDescriptorSet;
- VkBool32 dynamicPipelineLayout;
-} VkPhysicalDevicePerStageDescriptorSetFeaturesNV;
+ VkBool32 depthClampControl;
+} VkPhysicalDeviceDepthClampControlFeaturesEXT;
+typedef struct VkPipelineViewportDepthClampControlCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDepthClampModeEXT depthClampMode;
+ const VkDepthClampRangeEXT* pDepthClampRange;
+} VkPipelineViewportDepthClampControlCreateInfoEXT;
-// VK_QCOM_image_processing2 is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_image_processing2 1
-#define VK_QCOM_IMAGE_PROCESSING_2_SPEC_VERSION 1
-#define VK_QCOM_IMAGE_PROCESSING_2_EXTENSION_NAME "VK_QCOM_image_processing2"
-typedef enum VkBlockMatchWindowCompareModeQCOM {
- VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MIN_QCOM = 0,
- VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MAX_QCOM = 1,
- VK_BLOCK_MATCH_WINDOW_COMPARE_MODE_MAX_ENUM_QCOM = 0x7FFFFFFF
-} VkBlockMatchWindowCompareModeQCOM;
-typedef struct VkPhysicalDeviceImageProcessing2FeaturesQCOM {
+// VK_HUAWEI_hdr_vivid is a preprocessor guard. Do not pass it to API calls.
+#define VK_HUAWEI_hdr_vivid 1
+#define VK_HUAWEI_HDR_VIVID_SPEC_VERSION 1
+#define VK_HUAWEI_HDR_VIVID_EXTENSION_NAME "VK_HUAWEI_hdr_vivid"
+typedef struct VkPhysicalDeviceHdrVividFeaturesHUAWEI {
VkStructureType sType;
void* pNext;
- VkBool32 textureBlockMatch2;
-} VkPhysicalDeviceImageProcessing2FeaturesQCOM;
+ VkBool32 hdrVivid;
+} VkPhysicalDeviceHdrVividFeaturesHUAWEI;
-typedef struct VkPhysicalDeviceImageProcessing2PropertiesQCOM {
+typedef struct VkHdrVividDynamicMetadataHUAWEI {
VkStructureType sType;
- void* pNext;
- VkExtent2D maxBlockMatchWindow;
-} VkPhysicalDeviceImageProcessing2PropertiesQCOM;
-
-typedef struct VkSamplerBlockMatchWindowCreateInfoQCOM {
- VkStructureType sType;
- const void* pNext;
- VkExtent2D windowExtent;
- VkBlockMatchWindowCompareModeQCOM windowCompareMode;
-} VkSamplerBlockMatchWindowCreateInfoQCOM;
+ const void* pNext;
+ size_t dynamicMetadataSize;
+ const void* pDynamicMetadata;
+} VkHdrVividDynamicMetadataHUAWEI;
-// VK_QCOM_filter_cubic_weights is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_filter_cubic_weights 1
-#define VK_QCOM_FILTER_CUBIC_WEIGHTS_SPEC_VERSION 1
-#define VK_QCOM_FILTER_CUBIC_WEIGHTS_EXTENSION_NAME "VK_QCOM_filter_cubic_weights"
+// VK_NV_cooperative_matrix2 is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_cooperative_matrix2 1
+#define VK_NV_COOPERATIVE_MATRIX_2_SPEC_VERSION 1
+#define VK_NV_COOPERATIVE_MATRIX_2_EXTENSION_NAME "VK_NV_cooperative_matrix2"
+typedef struct VkCooperativeMatrixFlexibleDimensionsPropertiesNV {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t MGranularity;
+ uint32_t NGranularity;
+ uint32_t KGranularity;
+ VkComponentTypeKHR AType;
+ VkComponentTypeKHR BType;
+ VkComponentTypeKHR CType;
+ VkComponentTypeKHR ResultType;
+ VkBool32 saturatingAccumulation;
+ VkScopeKHR scope;
+ uint32_t workgroupInvocations;
+} VkCooperativeMatrixFlexibleDimensionsPropertiesNV;
-typedef enum VkCubicFilterWeightsQCOM {
- VK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM = 0,
- VK_CUBIC_FILTER_WEIGHTS_ZERO_TANGENT_CARDINAL_QCOM = 1,
- VK_CUBIC_FILTER_WEIGHTS_B_SPLINE_QCOM = 2,
- VK_CUBIC_FILTER_WEIGHTS_MITCHELL_NETRAVALI_QCOM = 3,
- VK_CUBIC_FILTER_WEIGHTS_MAX_ENUM_QCOM = 0x7FFFFFFF
-} VkCubicFilterWeightsQCOM;
-typedef struct VkPhysicalDeviceCubicWeightsFeaturesQCOM {
+typedef struct VkPhysicalDeviceCooperativeMatrix2FeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 selectableCubicWeights;
-} VkPhysicalDeviceCubicWeightsFeaturesQCOM;
-
-typedef struct VkSamplerCubicWeightsCreateInfoQCOM {
- VkStructureType sType;
- const void* pNext;
- VkCubicFilterWeightsQCOM cubicWeights;
-} VkSamplerCubicWeightsCreateInfoQCOM;
-
-typedef struct VkBlitImageCubicWeightsInfoQCOM {
- VkStructureType sType;
- const void* pNext;
- VkCubicFilterWeightsQCOM cubicWeights;
-} VkBlitImageCubicWeightsInfoQCOM;
+ VkBool32 cooperativeMatrixWorkgroupScope;
+ VkBool32 cooperativeMatrixFlexibleDimensions;
+ VkBool32 cooperativeMatrixReductions;
+ VkBool32 cooperativeMatrixConversions;
+ VkBool32 cooperativeMatrixPerElementOperations;
+ VkBool32 cooperativeMatrixTensorAddressing;
+ VkBool32 cooperativeMatrixBlockLoads;
+} VkPhysicalDeviceCooperativeMatrix2FeaturesNV;
-
-
-// VK_QCOM_ycbcr_degamma is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_ycbcr_degamma 1
-#define VK_QCOM_YCBCR_DEGAMMA_SPEC_VERSION 1
-#define VK_QCOM_YCBCR_DEGAMMA_EXTENSION_NAME "VK_QCOM_ycbcr_degamma"
-typedef struct VkPhysicalDeviceYcbcrDegammaFeaturesQCOM {
+typedef struct VkPhysicalDeviceCooperativeMatrix2PropertiesNV {
VkStructureType sType;
void* pNext;
- VkBool32 ycbcrDegamma;
-} VkPhysicalDeviceYcbcrDegammaFeaturesQCOM;
+ uint32_t cooperativeMatrixWorkgroupScopeMaxWorkgroupSize;
+ uint32_t cooperativeMatrixFlexibleDimensionsMaxDimension;
+ uint32_t cooperativeMatrixWorkgroupScopeReservedSharedMemory;
+} VkPhysicalDeviceCooperativeMatrix2PropertiesNV;
-typedef struct VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM {
- VkStructureType sType;
- void* pNext;
- VkBool32 enableYDegamma;
- VkBool32 enableCbCrDegamma;
-} VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM;
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkCooperativeMatrixFlexibleDimensionsPropertiesNV* pProperties);
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkCooperativeMatrixFlexibleDimensionsPropertiesNV* pProperties);
+#endif
-// VK_QCOM_filter_cubic_clamp is a preprocessor guard. Do not pass it to API calls.
-#define VK_QCOM_filter_cubic_clamp 1
-#define VK_QCOM_FILTER_CUBIC_CLAMP_SPEC_VERSION 1
-#define VK_QCOM_FILTER_CUBIC_CLAMP_EXTENSION_NAME "VK_QCOM_filter_cubic_clamp"
-typedef struct VkPhysicalDeviceCubicClampFeaturesQCOM {
+// VK_ARM_pipeline_opacity_micromap is a preprocessor guard. Do not pass it to API calls.
+#define VK_ARM_pipeline_opacity_micromap 1
+#define VK_ARM_PIPELINE_OPACITY_MICROMAP_SPEC_VERSION 1
+#define VK_ARM_PIPELINE_OPACITY_MICROMAP_EXTENSION_NAME "VK_ARM_pipeline_opacity_micromap"
+typedef struct VkPhysicalDevicePipelineOpacityMicromapFeaturesARM {
VkStructureType sType;
void* pNext;
- VkBool32 cubicRangeClamp;
-} VkPhysicalDeviceCubicClampFeaturesQCOM;
+ VkBool32 pipelineOpacityMicromap;
+} VkPhysicalDevicePipelineOpacityMicromapFeaturesARM;
-// VK_EXT_attachment_feedback_loop_dynamic_state is a preprocessor guard. Do not pass it to API calls.
-#define VK_EXT_attachment_feedback_loop_dynamic_state 1
-#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_SPEC_VERSION 1
-#define VK_EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_EXTENSION_NAME "VK_EXT_attachment_feedback_loop_dynamic_state"
-typedef struct VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT {
+// VK_EXT_vertex_attribute_robustness is a preprocessor guard. Do not pass it to API calls.
+#define VK_EXT_vertex_attribute_robustness 1
+#define VK_EXT_VERTEX_ATTRIBUTE_ROBUSTNESS_SPEC_VERSION 1
+#define VK_EXT_VERTEX_ATTRIBUTE_ROBUSTNESS_EXTENSION_NAME "VK_EXT_vertex_attribute_robustness"
+typedef struct VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT {
VkStructureType sType;
void* pNext;
- VkBool32 attachmentFeedbackLoopDynamicState;
-} VkPhysicalDeviceAttachmentFeedbackLoopDynamicStateFeaturesEXT;
-
-typedef void (VKAPI_PTR *PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT)(VkCommandBuffer commandBuffer, VkImageAspectFlags aspectMask);
-
-#ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkCmdSetAttachmentFeedbackLoopEnableEXT(
- VkCommandBuffer commandBuffer,
- VkImageAspectFlags aspectMask);
-#endif
-
-
-// VK_MSFT_layered_driver is a preprocessor guard. Do not pass it to API calls.
-#define VK_MSFT_layered_driver 1
-#define VK_MSFT_LAYERED_DRIVER_SPEC_VERSION 1
-#define VK_MSFT_LAYERED_DRIVER_EXTENSION_NAME "VK_MSFT_layered_driver"
+ VkBool32 vertexAttributeRobustness;
+} VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT;
-typedef enum VkLayeredDriverUnderlyingApiMSFT {
- VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT = 0,
- VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT = 1,
- VK_LAYERED_DRIVER_UNDERLYING_API_MAX_ENUM_MSFT = 0x7FFFFFFF
-} VkLayeredDriverUnderlyingApiMSFT;
-typedef struct VkPhysicalDeviceLayeredDriverPropertiesMSFT {
- VkStructureType sType;
- void* pNext;
- VkLayeredDriverUnderlyingApiMSFT underlyingAPI;
-} VkPhysicalDeviceLayeredDriverPropertiesMSFT;
+// VK_NV_present_metering is a preprocessor guard. Do not pass it to API calls.
+#define VK_NV_present_metering 1
+#define VK_NV_PRESENT_METERING_SPEC_VERSION 1
+#define VK_NV_PRESENT_METERING_EXTENSION_NAME "VK_NV_present_metering"
+typedef struct VkSetPresentConfigNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t numFramesPerBatch;
+ uint32_t presentConfigFeedback;
+} VkSetPresentConfigNV;
-// VK_NV_descriptor_pool_overallocation is a preprocessor guard. Do not pass it to API calls.
-#define VK_NV_descriptor_pool_overallocation 1
-#define VK_NV_DESCRIPTOR_POOL_OVERALLOCATION_SPEC_VERSION 1
-#define VK_NV_DESCRIPTOR_POOL_OVERALLOCATION_EXTENSION_NAME "VK_NV_descriptor_pool_overallocation"
-typedef struct VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV {
+typedef struct VkPhysicalDevicePresentMeteringFeaturesNV {
VkStructureType sType;
void* pNext;
- VkBool32 descriptorPoolOverallocation;
-} VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV;
+ VkBool32 presentMetering;
+} VkPhysicalDevicePresentMeteringFeaturesNV;
@@ -19027,14 +21543,6 @@ typedef struct VkCopyAccelerationStructureInfoKHR {
VkCopyAccelerationStructureModeKHR mode;
} VkCopyAccelerationStructureInfoKHR;
-typedef struct VkAccelerationStructureBuildSizesInfoKHR {
- VkStructureType sType;
- const void* pNext;
- VkDeviceSize accelerationStructureSize;
- VkDeviceSize updateScratchSize;
- VkDeviceSize buildScratchSize;
-} VkAccelerationStructureBuildSizesInfoKHR;
-
typedef VkResult (VKAPI_PTR *PFN_vkCreateAccelerationStructureKHR)(VkDevice device, const VkAccelerationStructureCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkAccelerationStructureKHR* pAccelerationStructure);
typedef void (VKAPI_PTR *PFN_vkDestroyAccelerationStructureKHR)(VkDevice device, VkAccelerationStructureKHR accelerationStructure, const VkAllocationCallbacks* pAllocator);
typedef void (VKAPI_PTR *PFN_vkCmdBuildAccelerationStructuresKHR)(VkCommandBuffer commandBuffer, uint32_t infoCount, const VkAccelerationStructureBuildGeometryInfoKHR* pInfos, const VkAccelerationStructureBuildRangeInfoKHR* const* ppBuildRangeInfos);
@@ -19217,12 +21725,6 @@ typedef struct VkPhysicalDeviceRayTracingPipelinePropertiesKHR {
uint32_t maxRayHitAttributeSize;
} VkPhysicalDeviceRayTracingPipelinePropertiesKHR;
-typedef struct VkStridedDeviceAddressRegionKHR {
- VkDeviceAddress deviceAddress;
- VkDeviceSize stride;
- VkDeviceSize size;
-} VkStridedDeviceAddressRegionKHR;
-
typedef struct VkTraceRaysIndirectCommandKHR {
uint32_t width;
uint32_t height;
diff --git a/web/webview/interfaces/native/arkweb_error_code.h b/web/webview/interfaces/native/arkweb_error_code.h
index 4caab8f5df045eb1f12b84c9ab4a79b45c722548..c1c09fbeb48c6331c80a792eeb76f40c31fbf3f1 100644
--- a/web/webview/interfaces/native/arkweb_error_code.h
+++ b/web/webview/interfaces/native/arkweb_error_code.h
@@ -69,7 +69,62 @@ ARKWEB_LIBRARY_OPEN_FAILURE = 17100105,
* @since 15
*/
ARKWEB_LIBRARY_SYMBOL_NOT_FOUND = 17100106,
+
+/**
+ * @brief The CookieManager not initialized.
+ *
+ * @since 20
+ */
+ARKWEB_COOKIE_MANAGER_NOT_INITIALIZED = 17100107,
+
+/**
+ * @brief The CookieManager initialize failed.
+ *
+ * @since 20
+ */
+ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED = 17100108,
+
+/**
+ * @brief Save cookie failed.
+ *
+ * @since 20
+ */
+ARKWEB_COOKIE_SAVE_FAILED = 17100109,
} ArkWeb_ErrorCode;
+/**
+ * @brief Defines an enum for the error codes of the white screen optimization solution.
+ *
+ * @since 20
+ */
+typedef enum ArkWeb_BlanklessErrorCode {
+/** @error The operation is successful. */
+ARKWEB_BLANKLESS_SUCCESS = 0,
+
+/** @error Unidentified error. */
+ARKWEB_BLANKLESS_ERR_UNKNOWN = -1,
+
+/** @error Invalid parameter. */
+ARKWEB_BLANKLESS_ERR_INVALID_ARGS = -2,
+
+/** @error The web controller is not bound to a component. */
+ARKWEB_BLANKLESS_ERR_CONTROLLER_NOT_INITED = -3,
+
+/**
+ * @error The key value is not matched. The OH_NativeArkWeb_SetBlanklessLoadingWithKey
+ * and OH_NativeArkWeb_GetBlanklessInfoWithKey APIs must be used in pair and use the same key value.
+ */
+ARKWEB_BLANKLESS_ERR_KEY_NOT_MATCH = -4,
+
+/**
+ * @error If the similarity is low, the system determines that the change is too large.
+ * As a result, the OH_NativeArkWeb_SetBlanklessLoadingWithKey API fails to enable frame interpolation.
+ */
+ARKWEB_BLANKLESS_ERR_SIGNIFICANT_CHANGE = -5,
+
+/** @error The device does not support this feature. */
+ARKWEB_BLANKLESS_ERR_DEVICE_NOT_SUPPORT = 801,
+} ArkWeb_BlanklessErrorCode;
+
#endif // ARKWEB_ERROR_CODE_H
/** @} */
diff --git a/web/webview/interfaces/native/arkweb_interface.h b/web/webview/interfaces/native/arkweb_interface.h
index f6c1ea37b23e728d29c120ede08f548dc1f50108..e81b0ff848442bee852e346dcfebacc9fc0ac13d 100644
--- a/web/webview/interfaces/native/arkweb_interface.h
+++ b/web/webview/interfaces/native/arkweb_interface.h
@@ -85,7 +85,7 @@ typedef enum {
ArkWeb_AnyNativeAPI* OH_ArkWeb_GetNativeAPI(ArkWeb_NativeAPIVariantKind type);
-/*
+/**
* @brief Register a scrolling event callback.
* @param webTag The name of the web component.
* @param callback The ArkWeb scrolling callback.
diff --git a/web/webview/interfaces/native/arkweb_scheme_handler.h b/web/webview/interfaces/native/arkweb_scheme_handler.h
index d88272e7e8e630d3f02f493c1dc4af4af1e06d58..531b2c60ed74c7eaa58423b838936080c9e4de6d 100644
--- a/web/webview/interfaces/native/arkweb_scheme_handler.h
+++ b/web/webview/interfaces/native/arkweb_scheme_handler.h
@@ -263,6 +263,21 @@ typedef void (*ArkWeb_OnRequestStop)(const ArkWeb_SchemeHandler* schemeHandler,
typedef void (*ArkWeb_HttpBodyStreamReadCallback)(const ArkWeb_HttpBodyStream* httpBodyStream,
uint8_t* buffer,
int bytesRead);
+
+/**
+ * @brief Callback when the read operation done.
+ * @param httpBodyStream The ArkWeb_HttpBodyStream.
+ * @param buffer The buffer to receive data.
+ * @param bytesRead Callback after OH_ArkWebHttpBodyStream_AsyncRead. bytesRead greater than 0 means that
+ * the buffer is filled with data of bytesRead size. Caller can read from the buffer, and if
+ * OH_ArkWebHttpBodyStream_IsEOF is false, caller can continue to read the remaining data.
+ *
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ */
+typedef void (*ArkWeb_HttpBodyStreamAsyncReadCallback)(const ArkWeb_HttpBodyStream *httpBodyStream,
+ uint8_t *buffer,
+ int bytesRead);
/**
* @brief Callback when the init operation done.
@@ -432,6 +447,23 @@ void* OH_ArkWebHttpBodyStream_GetUserData(const ArkWeb_HttpBodyStream* httpBodyS
*/
int32_t OH_ArkWebHttpBodyStream_SetReadCallback(ArkWeb_HttpBodyStream* httpBodyStream,
ArkWeb_HttpBodyStreamReadCallback readCallback);
+
+/**
+ * @brief Set the callback for OH_ArkWebHttpBodyStream_AsyncRead.
+ *
+ * The result of OH_ArkWebHttpBodyStream_AsyncRead will be notified to caller through the\n
+ * readCallback. The callback will runs in the ArkWeb worker thread.\n
+ *
+ * @param httpBodyStream The ArkWeb_HttpBodyStream.
+ * @param readCallback The callback of read function.
+ * @return {@link ARKWEB_NET_OK} 0 - Success.
+ * {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.
+ *
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ */
+int32_t OH_ArkWebHttpBodyStream_SetAsyncReadCallback(ArkWeb_HttpBodyStream *httpBodyStream,
+ ArkWeb_HttpBodyStreamAsyncReadCallback readCallback);
/**
* @brief Init the http body stream.
@@ -464,6 +496,21 @@ int32_t OH_ArkWebHttpBodyStream_Init(ArkWeb_HttpBodyStream* httpBodyStream,
*/
void OH_ArkWebHttpBodyStream_Read(const ArkWeb_HttpBodyStream* httpBodyStream, uint8_t* buffer, int bufLen);
+/**
+ * @brief Read the http body to the buffer.
+ *
+ * The buffer must be larger than the bufLen. We will read data from a worker thread to the buffer,\n
+ * so should not use the buffer in other threads before the callback to avoid concurrency issues.\n
+ *
+ * @param httpBodyStream The ArkWeb_HttpBodyStream.
+ * @param buffer The buffer to receive data.
+ * @param bufLen The size of bytes to read.
+ *
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ */
+void OH_ArkWebHttpBodyStream_AsyncRead(const ArkWeb_HttpBodyStream *httpBodyStream, uint8_t *buffer, int bufLen);
+
/**
* @brief Get the total size of the data stream.
*
@@ -972,6 +1019,22 @@ int32_t OH_ArkWebResourceHandler_DidFinish(const ArkWeb_ResourceHandler* resourc
int32_t OH_ArkWebResourceHandler_DidFailWithError(const ArkWeb_ResourceHandler* resourceHandler,
ArkWeb_NetError errorCode);
+/**
+ * @brief Notify the ArkWeb that this request should be failed.
+ * @param resourceHandler The ArkWeb_ResourceHandler for the request.
+ * @param errorCode The error code for this request. Refer to arkweb_net_error_list.h.
+ * @param completeIfNoResponse If completeIfNoResponse is true, when DidFailWithErrorV2 is called,
+ * if DidReceiveResponse has not been called,
+ * a response is automatically constructed and the current request is terminated.
+ * @return {@link ARKWEB_NET_OK} 0 - Success.
+ * {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param, the errorCode is either ARKWEB_NET_OK
+ * or outside the range of error codes in ArkWeb_NetError.
+ * @since 20
+ */
+int32_t OH_ArkWebResourceHandler_DidFailWithErrorV2(const ArkWeb_ResourceHandler* resourceHandler,
+ ArkWeb_NetError errorCode,
+ bool completeIfNoResponse);
+
/**
* @brief Release the string acquired by native function.
* @param string The string to be released.
diff --git a/web/webview/interfaces/native/libohweb.ndk.json b/web/webview/interfaces/native/libohweb.ndk.json
index 4981b04a45e2d152ae6c0f77f133a157153c29d4..c86a02925aa59078751e1186c6315c1a960ed980 100644
--- a/web/webview/interfaces/native/libohweb.ndk.json
+++ b/web/webview/interfaces/native/libohweb.ndk.json
@@ -322,5 +322,49 @@
{
"first_introduced": "18",
"name": "OH_ArkWeb_RegisterScrollCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeArkWeb_RegisterAsyncThreadJavaScriptProxy"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeArkWeb_GetBlanklessInfoWithKey"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeArkWeb_SetBlanklessLoadingWithKey"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeArkWeb_ClearBlanklessLoadingCache"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_NativeArkWeb_SetBlanklessLoadingCacheCapacity"
+ },
+ {
+ "first_introduced": "20",
+ "name": "ArkWeb_HttpBodyStreamAsyncReadCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkWebHttpBodyStream_AsyncRead"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkWebHttpBodyStream_SetAsyncReadCallback"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkWebCookieManager_SaveCookieSync"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkWebCookieManager_SaveCookieAsync"
+ },
+ {
+ "first_introduced": "20",
+ "name": "OH_ArkWebResourceHandler_DidFailWithErrorV2"
}
]
diff --git a/web/webview/interfaces/native/native_interface_arkweb.h b/web/webview/interfaces/native/native_interface_arkweb.h
index 9f81279887649f751ae01cf250526640b5f368c4..10332371c25cfc6edba29c677bbef88757d8712b 100644
--- a/web/webview/interfaces/native/native_interface_arkweb.h
+++ b/web/webview/interfaces/native/native_interface_arkweb.h
@@ -36,6 +36,7 @@
#include
#include "arkweb_error_code.h"
+#include "arkweb_type.h"
#ifdef __cplusplus
extern "C" {
@@ -69,7 +70,30 @@ typedef void (*NativeArkWeb_OnValidCallback)(const char*);
*/
typedef void (*NativeArkWeb_OnDestroyCallback)(const char*);
-/*
+/**
+ * @brief Defines the callback of save cookie.
+ * @param errorCode {@link ARKWEB_SUCCESS} Save cookie success.
+ * {@link ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED} Cookie manager initialize failed.
+ * {@link ARKWEB_COOKIE_SAVE_FAILED} Save cookie failed.
+ * @since 20
+ */
+typedef void (*OH_ArkWeb_OnCookieSaveCallback)(ArkWeb_ErrorCode errorCode);
+
+/**
+ * @brief Defines the blankless information.
+ *
+ * @since 20
+ */
+typedef struct {
+ /** The errCode of the blankless. */
+ ArkWeb_BlanklessErrorCode errCode;
+ /** The estimated similarity of the history snapshots. */
+ double similarity;
+ /** The loadingTime of the history loading. */
+ int32_t loadingTime;
+} ArkWeb_BlanklessInfo;
+
+/**
* @brief Loads a piece of code and execute JS code in the context of the currently displayed page.
*
* @param webTag The name of the web component.
@@ -81,7 +105,7 @@ typedef void (*NativeArkWeb_OnDestroyCallback)(const char*);
*/
void OH_NativeArkWeb_RunJavaScript(const char* webTag, const char* jsCode, NativeArkWeb_OnJavaScriptCallback callback);
-/*
+/**
* @brief Registers the JavaScript object and method list.
*
* @param webTag The name of the web component.
@@ -97,7 +121,7 @@ void OH_NativeArkWeb_RunJavaScript(const char* webTag, const char* jsCode, Nativ
void OH_NativeArkWeb_RegisterJavaScriptProxy(const char* webTag, const char* objName, const char** methodList,
NativeArkWeb_OnJavaScriptProxyCallback* callback, int32_t size, bool needRefresh);
-/*
+/**
* @brief Deletes the registered object which th given name.
*
* @param webTag The name of the web component.
@@ -108,7 +132,7 @@ void OH_NativeArkWeb_RegisterJavaScriptProxy(const char* webTag, const char* obj
*/
void OH_NativeArkWeb_UnregisterJavaScriptProxy(const char* webTag, const char* objName);
-/*
+/**
* @brief Registers the valid callback.
*
* @param webTag The name of the web component.
@@ -119,7 +143,7 @@ void OH_NativeArkWeb_UnregisterJavaScriptProxy(const char* webTag, const char* o
*/
void OH_NativeArkWeb_SetJavaScriptProxyValidCallback(const char* webTag, NativeArkWeb_OnValidCallback callback);
-/*
+/**
* @brief Get the valid callback.
*
* @param webTag The name of the web component.
@@ -185,6 +209,112 @@ ArkWeb_ErrorCode OH_NativeArkWeb_LoadData(const char* webTag,
const char* baseUrl,
const char* historyUrl);
+/**
+ * @brief Registers a JavaScript object with callback methods, which may return values. This object will be injected
+ * into all frames of the current page, including all iframes, and will be accessible using the specified
+ * name in ArkWeb_ProxyObjectWithResult. The object will only be available in JavaScript after the next
+ * load or reload.
+ * These methods will be executed in the ArkWeb worker thread.
+ *
+ * @param webTag Name of the web component.
+ * @param proxyObject JavaScript object to register, the object has callback functions with return value.
+ * @param permission Optional JSON string(default is null) for JSBridge permission control,
+ * allowing URL whitelist configuration at object-level and method-level.
+ * @syscap SystemCapability.Web.Webview.Core
+ * @since 20
+ */
+void OH_NativeArkWeb_RegisterAsyncThreadJavaScriptProxy(const char* webTag,
+ const ArkWeb_ProxyObjectWithResult* proxyObject, const char* permission);
+
+/**
+ * @brief Sets whether to enable blankless page loading. This API must be used in pair with the
+ * OH_NativeArkWeb_GetBlanklessInfoWithKey API.
+ *
+ * @param webTag webTag used when the webviewController is created.
+ * @param key Key value that uniquely identifies the current page. It must be the same as the key value of the
+ * OH_NativeArkWeb_GetBlanklessInfoWithKey API.
+ * @param isStarted Whether to enable frame interpolation. The value true indicates to enable frame
+ * interpolation, and the value false indicates the opposite.
+ * The default value is false.
+ * The value can be true or false.
+ * Action for setting an invalid value: N/A.
+ * @return Whether the API is successfully called. For details, see ArkWeb_BlanklessErrorCode.
+ * @since 20
+ */
+ArkWeb_BlanklessErrorCode OH_NativeArkWeb_SetBlanklessLoadingWithKey(const char* webTag,
+ const char* key,
+ bool isStarted);
+
+/**
+ * @brief Clears the blankless loading cache of the page with a specified key value.
+ *
+ * @param key The list of key values of pages cached in the blankless loading solution. These key values are
+ * specified in OH_NativeArkWeb_GetBlanklessInfoWithKey.
+ * The default value is the list of key values of all pages cached in the blankless loading solution.
+ * The key length cannot exceed 2048 characters, and the number of keys must be less than or equal to 100. The
+ * URL is the same as that input to the Web component during page loading.
+ * When the key length exceeds 2048 characters, the key does not take effect. When the number of keys exceeds
+ * 100, the first 100 keys are used. If this parameter is set to NULL, the default value is used.
+ * @param size Size of the key list.
+ * @since 20
+ */
+void OH_NativeArkWeb_ClearBlanklessLoadingCache(const char* key[], uint32_t size);
+
+/**
+ * @brief Obtains the prediction information about the blankless loading solution and enables the generation
+ * of the transition frame for the current loading. The application determines whether to enable the blankless
+ * loading solution based on the information.
+ * This API applies to pages in an applet or web application whose URLs are not fixed or cannot be uniquely
+ * identified.
+ *
+ * @param webTag webTag used when the webviewController is created.
+ * Default value: N/A.
+ * The value cannot be empty.
+ * When an invalid value is set, the error code is returned, and the API does not take effect.
+ * @param key Key value that uniquely identifies the current page.
+ * @return Return value of the ArkWeb_BlanklessInfo type.
+ * @since 20
+ */
+ArkWeb_BlanklessInfo OH_NativeArkWeb_GetBlanklessInfoWithKey(const char* webTag, const char* key);
+
+/**
+ * @brief Sets the cache capacity of the blankless loading solution and returns the value that takes effect.
+ *
+ * @param capacity Cache capacity, in MB. The maximum value is 100 MB.
+ * The default value is 30 MB.
+ * The value ranges from 0 to 100. If this parameter is set to 0, no cache capacity is available and the
+ * functionality is disabled globally.
+ * When the value is set to a number smaller than 0, the value 0 takes effect. When the value is set to a
+ * number greater than 100, the value 100 takes effect.
+ * @return The effective value that ranges from 0 MB to 100 MB.
+ * @since 20
+ */
+uint32_t OH_NativeArkWeb_SetBlanklessLoadingCacheCapacity(uint32_t capacity);
+
+/**
+ * @brief Ensure that all cookies currently accessible via the CookieManager API have been persisted to disk.
+ * If you want to use this interface in a non-UI thread, you need to initialize the CookieManager interface
+ * using OH_ArkWeb_GetNativeAPI first.
+ * @return Save cookie result code.
+ * {@link ARKWEB_SUCCESS} Save cookie success.
+ * {@link ARKWEB_COOKIE_SAVE_FAILED} Save cookie failed.
+ * {@link ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED} The CookieManager initialize failed.
+ * {@link ARKWEB_COOKIE_MANAGER_NOT_INITIALIZED} It is not allowed to call on a non-UI thread without
+ * initializing the CookieManager interface. please
+ * initialize the CookieManager interface using
+ * OH_ArkWeb_GetNativeAPI first.
+ * @since 20
+ */
+ArkWeb_ErrorCode OH_ArkWebCookieManager_SaveCookieSync();
+
+/**
+ * @brief Ensure that all cookies currently accessible via the CookieManager API have been persisted to disk.
+ * Without initializing the CookieManager interface, this call will automatically be executed on the UI thread.
+ * @param callback Callback execute when save cookie done.
+ * @since 20
+ */
+void OH_ArkWebCookieManager_SaveCookieAsync(OH_ArkWeb_OnCookieSaveCallback callback);
+
#ifdef __cplusplus
};
#endif