mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-24 23:26:50 +00:00
Make it build on Windows
This commit is contained in:
@@ -5,7 +5,11 @@
|
||||
#include <dxgi.h>
|
||||
#include <d3d11.h>
|
||||
#include "../include/nvapi_interface.h"
|
||||
#if defined __MINGW64__ || defined __MINGW32__
|
||||
#include "../include/d3d12.h"
|
||||
#else
|
||||
#include <d3d12.h>
|
||||
#endif
|
||||
#include "../include/nvapi.h"
|
||||
#include "nvapi.h"
|
||||
|
||||
@@ -33,7 +37,7 @@ namespace nvd {
|
||||
|
||||
static std::unordered_map<NvU32, void*> registry;
|
||||
|
||||
void* nvapi_QueryInterface(NvU32 id) {
|
||||
__declspec(dllexport) void* __cdecl nvapi_QueryInterface(NvU32 id) {
|
||||
auto entry = registry.find(id);
|
||||
if (entry != registry.end())
|
||||
return entry->second;
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
#include <format>
|
||||
|
||||
#include <dxgi.h>
|
||||
#if defined __MINGW64__ || defined __MINGW32__
|
||||
#include "../include/d3d12.h"
|
||||
#else
|
||||
#include <d3d12.h>
|
||||
#endif
|
||||
#include <vector>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
namespace spoof {
|
||||
constexpr NvU32 driverVersion = 54629;
|
||||
constexpr std::string buildBranch = "buildBranch";
|
||||
constexpr auto buildBranch = "buildBranch";
|
||||
constexpr NvU32 isDCHDriver = 1;
|
||||
constexpr NvU32 isNVIDIAStudioPackage = 1;
|
||||
constexpr NvU32 isNVIDIARTXProductionBranchPackage = 1;
|
||||
constexpr NvU32 isNVIDIARTXNewFeatureBranchPackage = 1;
|
||||
constexpr std::string buildBaseBranch = "buildBaseBranch";
|
||||
constexpr auto buildBaseBranch = "buildBaseBranch";
|
||||
|
||||
const std::string fullGPUName = "NVIDIA GeForce RTX 4090";
|
||||
constexpr auto fullGPUName = "NVIDIA GeForce RTX 4090";
|
||||
constexpr NV_GPU_ARCHITECTURE_ID arch = NV_GPU_ARCHITECTURE_AD100;
|
||||
constexpr NV_GPU_ARCH_IMPLEMENTATION_ID implementation = NV_GPU_ARCH_IMPLEMENTATION_AD102;
|
||||
constexpr NV_GPU_CHIP_REVISION revision = NV_GPU_CHIP_REV_UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user