Skip to content

Commit

Permalink
FidelityFX CLI v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rys committed Jul 28, 2021
1 parent 8f33d30 commit 99a2fe3
Show file tree
Hide file tree
Showing 7 changed files with 633 additions and 349 deletions.
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
path = Shaders/FidelityFX-CAS
url = ../FidelityFX-CAS
branch = master
[submodule "Shaders/FidelityFX-FSR"]
path = Shaders/FidelityFX-FSR
url = ../FidelityFX-FSR
branch = development
[submodule "Shaders/FidelityFX-FSR"]
path = Shaders/FidelityFX-FSR
url = ../FidelityFX-FSR
branch = master
8 changes: 5 additions & 3 deletions FidelityFX_CLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace RCAS_Linear1

static const wchar_t* const APP_NAME = L"FidelityFX-CLI";
static const wchar_t* const EXE_NAME = L"FidelityFX_CLI";
static const wchar_t* const APP_VERSION = L"1.0.0";
static const wchar_t* const APP_VERSION = L"1.0.1";

enum class InterpolationMode
{
Expand Down Expand Up @@ -354,7 +354,9 @@ void LaunchParameters::ParseCommandLine(int argCount, const wchar_t* const* args
}
if(this->sharpness == FLT_MAX)
{
this->sharpness = 0.f;
this->sharpness = this->interpolationMode == InterpolationMode::RCAS
? 0.2f // Default sharpness for RCAS
: 0.0f; // Default sharpness for CAS
}
else
{
Expand Down Expand Up @@ -562,13 +564,13 @@ void Application::PrintColorSpaceInformation() const
switch(m_Params.interpolationMode)
{
case InterpolationMode::CAS:
case InterpolationMode::RCAS:
if(m_Params.linear)
wprintf(L"Treating input/output images as linear space, processing as linear.\n");
else
wprintf(L"Treating input/output images as sRGB space, converting to linear for processing.\n");
break;
case InterpolationMode::EASU:
case InterpolationMode::RCAS:
if(m_Params.linear)
wprintf(L"Treating input/output images as linear space, converting to sRGB for processing.\n");
else
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ THE SOFTWARE.
Simple command line tool that processes image files using the FidelityFX Super Resolution (FSR) or Contrast Adaptive Sharpening (CAS) shader systems.

```
FidelityFX-CLI 1.0.0
FidelityFX-CLI 1.0.1
Command line syntax:
FidelityFX_CLI.exe [Options] <SrcFile1> <DstFile1> <SrcFile2> <DstFile2> ...
Expand Down
Loading

0 comments on commit 99a2fe3

Please sign in to comment.