fsr 2 fixes

This commit is contained in:
Turánszki János
2022-11-27 10:10:34 +01:00
parent 00e4be5a4a
commit c0bcd0742a
5 changed files with 9 additions and 6 deletions
+4 -2
View File
@@ -9,7 +9,9 @@
#define FFX_HLSL
#endif // __cplusplus
#define FFX_HALF 0 // doesn't compile if enabled
#ifndef FFX_HALF
#define FFX_HALF 0 // FP16 doesn't have perf benefit for me
#endif // FFX_HALF
#define FFX_FSR2_OPTION_INVERTED_DEPTH 1
#define FFX_FSR2_OPTION_HDR_COLOR_INPUT 1
@@ -20,6 +22,6 @@
#define FFX_FSR2_OPTION_REPROJECT_USE_LANCZOS_TYPE 1
#define FFX_FSR2_OPTION_GUARANTEE_UPSAMPLE_WEIGHT_ON_NEW_SAMPLES 1
#define FFX_FSR2_OPTION_REPROJECT_SAMPLERS_USE_DATA_HALF 1
#define FFX_FSR2_OPTION_UPSAMPLE_SAMPLERS_USE_DATA_HALF 1
#define FFX_FSR2_OPTION_UPSAMPLE_SAMPLERS_USE_DATA_HALF 0 // missing header errors when enabled. They can be also deleted and it will compile, but didn't seem to make a difference
#endif // WI_SHADERINTEROP_FONT_H
@@ -19,6 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#define FFX_HALF 0 // doesn't compile if enabled
#include "ShaderInterop_FSR2.h"
#define FSR2_BIND_SRV_INPUT_COLOR 0
@@ -32,7 +32,7 @@
#define FSR2_BIND_SRV_MOTION_VECTORS 0
#define FSR2_BIND_SRV_DEPTH 1
#define FSR2_BIND_SRV_REACTIVE_MASK 2
#define FSR2_BIND_SRV_TRANSPARENCY_AND_COMPOSITION_MASK 3
//#define FSR2_BIND_SRV_TRANSPARENCY_AND_COMPOSITION_MASK 3
#define FSR2_BIND_SRV_PREPARED_INPUT_COLOR 4
#define FSR2_BIND_UAV_RECONSTRUCTED_PREV_NEAREST_DEPTH 0
#define FSR2_BIND_UAV_DILATED_MOTION_VECTORS 1
+2 -2
View File
@@ -1937,7 +1937,7 @@ namespace wi
TextureDesc desc;
desc.bind_flags = BindFlag::SHADER_RESOURCE | BindFlag::UNORDERED_ACCESS;
desc.format = rtPostprocess.desc.format;
desc.format = Format::R11G11B10_FLOAT;
desc.width = GetPhysicalWidth();
desc.height = GetPhysicalHeight();
device->CreateTexture(&desc, nullptr, &rtFSR[0]);
@@ -1969,7 +1969,7 @@ namespace wi
TextureDesc desc;
desc.bind_flags = BindFlag::SHADER_RESOURCE | BindFlag::UNORDERED_ACCESS;
desc.format = rtPostprocess.desc.format;
desc.format = Format::R11G11B10_FLOAT;
desc.width = GetPhysicalWidth();
desc.height = GetPhysicalHeight();
device->CreateTexture(&desc, nullptr, &rtFSR[0]);
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 71;
// minor bug fixes, alterations, refactors, updates
const int revision = 103;
const int revision = 104;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);