Skip to content

Commit

Permalink
dx11 almost done
Browse files Browse the repository at this point in the history
gow & strangers paradige black screens :/
  • Loading branch information
cdozdil committed Mar 1, 2024
1 parent 8b92224 commit f48c51c
Show file tree
Hide file tree
Showing 9 changed files with 1,094 additions and 280 deletions.
4 changes: 3 additions & 1 deletion CyberXeSS/CyberXeSS.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<IncludePath>$(SolutionDir)external\simpleini;$(SolutionDir)external\nvngx_dlss_sdk;$(SolutionDir)external\unordered_dense\include;$(SolutionDir)external\xess\inc\xess;$(SolutionDir)external\vulkan\include;$(SolutionDir)external\ffx-sdk\sdk\include;$(SolutionDir)external\fmt\include;$(SolutionDir)external\spdlog\include;C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)</IncludePath>
<LibraryPath>$(SolutionDir)external\xess\lib;C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x64;$(LibraryPath)</LibraryPath>
<TargetName>nvngx</TargetName>
<OutDir>E:\Games\Deep Rock Galactic\FSD\Binaries\Win64</OutDir>
<OutDir>E:\Games\God of War</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IncludePath>$(SolutionDir)external\simpleini;$(SolutionDir)external\nvngx_dlss_sdk;$(SolutionDir)external\unordered_dense\include;$(SolutionDir)external\xess\inc\xess;$(SolutionDir)external\vulkan\include;$(SolutionDir)external\ffx-sdk\sdk\include;$(SolutionDir)external\fmt\include;$(SolutionDir)external\spdlog\include;C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)</IncludePath>
Expand Down Expand Up @@ -178,6 +178,7 @@
<ClInclude Include="NVNGX_Parameter.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="Util.h" />
<ClInclude Include="XeSSFeature_Dx11.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="Config.cpp" />
Expand All @@ -190,6 +191,7 @@
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="XeSSFeature.cpp" />
<ClCompile Include="XeSSFeature.h" />
<ClCompile Include="XeSSFeature_Dx11.cpp" />
<ClCompile Include="XeSSFeature_Dx12.cpp" />
<ClCompile Include="XeSSFeature_Dx12.h" />
<ClCompile Include="Util.cpp" />
Expand Down
6 changes: 6 additions & 0 deletions CyberXeSS/CyberXeSS.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<ClInclude Include="pch.h">
<Filter>Other</Filter>
</ClInclude>
<ClInclude Include="XeSSFeature_Dx11.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Config.cpp">
Expand Down Expand Up @@ -98,5 +101,8 @@
<ClCompile Include="IFeature_Dx12.cpp">
<Filter>IFeature</Filter>
</ClCompile>
<ClCompile Include="XeSSFeature_Dx11.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion CyberXeSS/IFeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class IFeature
bool IsInitParameters() const { return _initParameters; };
static unsigned int GetNextHandleId() { return handleCounter++; }

virtual void ReInit(const NVSDK_NGX_Parameter* InParameters) = 0;
virtual bool IsInited() = 0;

IFeature(unsigned int handleId, const NVSDK_NGX_Parameter* InParameters)
Expand Down
7 changes: 4 additions & 3 deletions CyberXeSS/IFeature_Dx11.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
class IFeature_Dx11 : public IFeature
{
protected:
ID3D11Device* Dx11Device = nullptr;
ID3D11DeviceContext* Dx11DeviceContext = nullptr;
ID3D11Device* Device = nullptr;
ID3D11DeviceContext* DeviceContext = nullptr;

public:
virtual bool Init(ID3D11Device* device, ID3D11DeviceContext* context, const NVSDK_NGX_Parameter* initParams) = 0;
virtual bool Evaluate(ID3D11DeviceContext* deviceContext, const NVSDK_NGX_Parameter* initParams) = 0;
virtual bool Evaluate(ID3D11DeviceContext* DeviceContext, const NVSDK_NGX_Parameter* InParameters) = 0;
virtual void ReInit(const NVSDK_NGX_Parameter* InParameters) = 0;
static void Shutdown();

IFeature_Dx11(unsigned int handleId, const NVSDK_NGX_Parameter* InParameters) : IFeature(handleId, InParameters)
{
Expand Down
Loading

0 comments on commit f48c51c

Please sign in to comment.