Skip to content

Add DirectSR (D3D12) super resolution implementation#780

Open
MikhailGorobets wants to merge 14 commits intoDiligentGraphics:super_resolution2from
MikhailGorobets:super_resolution2
Open

Add DirectSR (D3D12) super resolution implementation#780
MikhailGorobets wants to merge 14 commits intoDiligentGraphics:super_resolution2from
MikhailGorobets:super_resolution2

Conversation

@MikhailGorobets
Copy link
Contributor

No description provided.

@MikhailGorobets MikhailGorobets force-pushed the super_resolution2 branch 20 times, most recently from fb1e941 to a22addd Compare March 19, 2026 10:59
@MikhailGorobets MikhailGorobets force-pushed the super_resolution2 branch 4 times, most recently from fc100d8 to fdb72d1 Compare March 20, 2026 18:05
@MikhailGorobets MikhailGorobets force-pushed the super_resolution2 branch 2 times, most recently from bf9b09d to 9357d92 Compare March 20, 2026 18:24
Comment on lines +333 to +335
// Global toggles:
// #define FFX_HALF (1)
// #define FFX_HLSL_SM (62)

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Comment on lines +363 to +371
/*
#define FFX_MIN16_SCALAR( TypeName, BaseComponentType ) typedef BaseComponentType TypeName;
#define FFX_MIN16_VECTOR( TypeName, BaseComponentType, COL ) typedef vector<BaseComponentType, COL> TypeName;
#define FFX_MIN16_MATRIX( TypeName, BaseComponentType, ROW, COL ) typedef matrix<BaseComponentType, ROW, COL> TypeName;
#define FFX_16BIT_SCALAR( TypeName, BaseComponentType ) typedef BaseComponentType TypeName;
#define FFX_16BIT_VECTOR( TypeName, BaseComponentType, COL ) typedef vector<BaseComponentType, COL> TypeName;
#define FFX_16BIT_MATRIX( TypeName, BaseComponentType, ROW, COL ) typedef matrix<BaseComponentType, ROW, COL> TypeName;
*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Comment on lines +410 to +441
/*
FFX_MIN16_SCALAR( FFX_MIN16_F , float );
FFX_MIN16_VECTOR( FFX_MIN16_F2, float, 2 );
FFX_MIN16_VECTOR( FFX_MIN16_F3, float, 3 );
FFX_MIN16_VECTOR( FFX_MIN16_F4, float, 4 );
FFX_MIN16_SCALAR( FFX_MIN16_I, int );
FFX_MIN16_VECTOR( FFX_MIN16_I2, int, 2 );
FFX_MIN16_VECTOR( FFX_MIN16_I3, int, 3 );
FFX_MIN16_VECTOR( FFX_MIN16_I4, int, 4 );
FFX_MIN16_SCALAR( FFX_MIN16_U, uint );
FFX_MIN16_VECTOR( FFX_MIN16_U2, uint, 2 );
FFX_MIN16_VECTOR( FFX_MIN16_U3, uint, 3 );
FFX_MIN16_VECTOR( FFX_MIN16_U4, uint, 4 );
FFX_16BIT_SCALAR( FFX_F16_t , float );
FFX_16BIT_VECTOR( FFX_F16_t2, float, 2 );
FFX_16BIT_VECTOR( FFX_F16_t3, float, 3 );
FFX_16BIT_VECTOR( FFX_F16_t4, float, 4 );
FFX_16BIT_SCALAR( FFX_I16_t, int );
FFX_16BIT_VECTOR( FFX_I16_t2, int, 2 );
FFX_16BIT_VECTOR( FFX_I16_t3, int, 3 );
FFX_16BIT_VECTOR( FFX_I16_t4, int, 4 );
FFX_16BIT_SCALAR( FFX_U16_t, uint );
FFX_16BIT_VECTOR( FFX_U16_t2, uint, 2 );
FFX_16BIT_VECTOR( FFX_U16_t3, uint, 3 );
FFX_16BIT_VECTOR( FFX_U16_t4, uint, 4 );
*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
#include "../shaders/fsr1/ffx_fsr1.h"
#undef FFX_CPU

#include "../shaders/FSRStructures.fxh"

Check notice

Code scanning / CodeQL

Include header files only Note

The #include pre-processor directive should only be used to include header files.

const bool SharpeningEnabled = (m_Desc.Flags & SUPER_RESOLUTION_FLAG_ENABLE_SHARPENING) != 0;

if (SharpeningEnabled && m_LastSharpness != Attribs.Sharpness)

Check notice

Code scanning / CodeQL

Equality test on floating-point values Note

Equality checks on floating point values can yield unexpected results.
Settings = {};
if (const ProviderInfo* pEntry = FindProvider(Attribs.VariantId))
Settings = {};
const auto [pEntry, pInfo] = FindProvider(Attribs.VariantId);

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable pInfo is not used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants