blob: 97aadcd37299023d9e8dea3e9592f5f1ef6c1bd6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and related documentation without an express
* license agreement from NVIDIA CORPORATION is strictly prohibited.
*/
/*!
* \file
* C GfeSDK OPS API
*/
#ifndef GFESDK_OPS_H
#define GFESDK_OPS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <gfesdk/ops/ops_types.h>
#include <gfesdk/sdk_types.h>
/*!
* Allows games to optimize themselves with GeforceExperience.
*
* \param handle[in] - Valid SDK handle returned by NVGSDK_Create
* \param params[in] - Optimization parameters that help to find correct game.
* \param callback[in] - Callback return function as described by \ref section_async
* \param context[in] - Opaque context pointer as described by \ref section_async
*
* \retval NVGSDK_SUCCESS - Call was successful
* \retval NVGSDK_ERR_INVALID_PARAMETER - Invalid handle or other pointer provided
* \retval NVGSDK_ERR_APPLICATION_LOOKUP_FAILED - Game isn't recognized
* \retval NVGSDK_ERR_APP_NO_OPTIMIZATION - Game is recognized but has no optimizations to apply
* \retval NVGSDK_ERR_APP_SETTINGS_READ - Error during reading game settings.
* \retval NVGSDK_ERR_APP_SETTINGS_WRITE - Error during writing game settings.
*/
NVGSDK_EXPORT void NVGSDKApi
NVGSDK_OPS_OptimizeAsync(NVGSDK_HANDLE* handle, NVGSDK_OPS_OptimizeParams const* params, NVGSDK_EmptyCallback callback, void* context);
#ifdef __cplusplus
}
#endif
#endif // GFESDK_OPS_H
|