/* 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 #include /*! * 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