-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvofapi: NvOFAPICreateInstanceCuda - stub
This will return NV_OF_ERR_OF_NOT_AVAILABLE for NvOFAPICreateInstanceCuda Signed-off-by: Sveinar Søpler <[email protected]>
- Loading branch information
Showing
7 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "nvofapi_private.h" | ||
#include "util/util_log.h" | ||
#include "util/util_statuscode.h" | ||
|
||
extern "C" { | ||
|
||
using namespace dxvk; | ||
|
||
NV_OF_STATUS __cdecl NvOFAPICreateInstanceCuda(uint32_t apiVer, void* functionList) { | ||
constexpr auto n = __func__; | ||
|
||
if (log::tracing()) | ||
log::trace(n, apiVer, log::fmt::ptr(functionList)); | ||
|
||
return OFNotAvailable(n); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "nvofapi_tests_private.h" | ||
#include "nvofapi/mock_factory.h" | ||
|
||
using namespace trompeloeil; | ||
|
||
TEST_CASE("CreateInstanceVk returns not-available", "[.cuda]") { | ||
struct NV_OF_CUDA_API_FUNCTION_LIST{} functionList; | ||
REQUIRE(NvOFAPICreateInstanceCuda(80, &functionList) == NV_OF_ERR_OF_NOT_AVAILABLE); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters