16 Commits (25157d11aa9d7f4d8e38e1dded3ef6fc4bdfa8b6)

Author SHA1 Message Date
Nico de Poel 25157d11aa Moved FSR3 classes into their own sub-namespace. This is more future-proof with an eye on porting over more FidelityFX technologies. 2 years ago
Nico de Poel 4ad9853a05 - Moved ResourceView into its own source file. 2 years ago
Nico de Poel c15bd345e6 Fixed another incorrect size 2 years ago
Nico de Poel 3a65d37c41 Implemented debug view pass 2 years ago
Nico de Poel 60336253b7 Fixed a couple of incorrect sizes 2 years ago
Nico de Poel 78f9142738 Fixed a few small resource binding errors 2 years ago
Nico de Poel 9bc90e4853 Updated dispatching function with new passes and modified buffer clears 2 years ago
Nico de Poel aca067bff0 Updated debug checks 2 years ago
Nico de Poel 4a18c3a6c4 Defined the new passes in code and renamed some of the old ones 2 years ago
Nico de Poel 3cd8b41224 Updated upscaler constants definition and implemented modifications to the constants setup function. 2 years ago
Nico de Poel b03217eebd Initial update of dispatch parameters and enums for FSR 3.1 2 years ago
Nico de Poel d21b57083b Fixed potential nullref when Destroy gets called repeatedly 2 years ago
Nico de Poel 84e5e72ab7 Refactored loading of FSR3 compute shaders, using an aggregate object containing pre-loaded compute shaders instead of the old callbacks. 2 years ago
Nico de Poel 13910c8687 Moved ResourceView out of the Fsr3Upscaler class and into the FidelityFX namespace, making usages of ResourceView a lot cleaner. 2 years ago
Nico de Poel ebb9d84171 Rename FSR2 to FSR3 Upscaler, part 3: missing bits. 2 years ago
Nico de Poel 9854cd1279 Rename FSR2 to FSR3 Upscaler, part 2: class and file names. 2 years ago
Nico de Poel 62a924ae83 Rename FSR2 to FSR3 Upscaler, part 1: strings and comments. 2 years ago
Nico de Poel 6e20557253 Ported clearing code for reconstructed depth buffer, which is new in FSR3. This replaces clearing in the Lock pass, allowing the buffer to be reused after upscaling is done. 2 years ago
Nico de Poel c010b6aa28 Renamed Pipelines to Passes 2 years ago
Nico de Poel 22701fdd17 Renamed RenderTargetView to ResourceView, which is a bit shorter to type and covers the essence well. 2 years ago
Nico de Poel d9f9ef10ff Modified RenderTargetView yet again: made a distinction between an invalid (Unassigned) texture reference and a valid-but-empty (None) texture reference. Inverted IsEmpty as well to be a more generic IsValid property now. 2 years ago
Nico de Poel 47cba76dee Made all RenderTargetView fields non-nullable, and introduced a special Empty value for optional fields. 2 years ago
Nico de Poel e8d12c201e - Reworked input/output resource management using a new RenderTargetView struct, which encompasses all relevant data required to bind textures from various sources. 2 years ago
Nico de Poel 7c41364109 Set constant buffer data as part of the command buffers, instead of immediately. 3 years ago
Nico de Poel 9668b132e7 Clear initial exposure value with zero. Seems to work fine for all tested platforms, and eliminates the black screen flashes on Metal without requiring any platform-specific hacks. 3 years ago
Nico de Poel c65cab824e Clear auto-exposure texture using zeroes on Metal. Should fix black screen flashes on accumulation reset, when auto-exposure is enabled. 3 years ago
Nico de Poel e577240354 Reset atomic counter on any kind of reset, not just on first execution. Fixes black screen on Metal when doing a history reset. 3 years ago
Nico de Poel b3bc46fcb7 Moved management of aliasable resources to the Fsr2Resources class and gave the methods more logical names. 3 years ago
Nico de Poel 63d6fd3203 Changed atomic counter from a temporary RT to a permanent one, and set it to 0 only on the first frame. Potential fix for auto-exposure on MacOS. 3 years ago
Nico de Poel 47c2560476 Consolidated accumulate and accumulate+sharpen pipelines into a single pipeline, with the sharpening option being changed into a local keyword that can be enabled or disabled on-the-fly. 3 years ago
Nico de Poel 53e8164f0e Clear the atomic counter used by the luminance pyramid pass. This fixes auto-exposure being broken and causing a black screen on some platforms (Xbox, OpenGL). 3 years ago
Nico de Poel ef20869c48 Added support for experimental auto-TCR generation pass 3 years ago
Nico de Poel 38cc3a83fd Don't validate input/output resources on reset, so the application has a way to prevent error messages when re-enabling a camera. 3 years ago
Nico de Poel e0027ed77a Added MIT license header to every source file, similar to the FFX FSR2 codebase 3 years ago
Nico de Poel 1cc0de7c89 Moved Shader ID constants to a separate class file 3 years ago
Nico de Poel 1ff980bea9 Changing my mind yet again about directory names 3 years ago
Nico de Poel da651c3d6f Moved some files 3 years ago
Nico de Poel 8cd818a3d9 A bit of comment cleanup 3 years ago
Nico de Poel 3ffbc0573e Implemented auto-exposure feature. 3 years ago
Nico de Poel 9b83409c71 Added debug checks for input and output resources, either through direct assignment or through existing global texture bindings. 3 years ago
Nico de Poel 92e360aa24 Implemented the debug checking upon dispatch from the original FSR2 source, with some Unity adaptations. 3 years ago
Nico de Poel 8f1be6d3e6 Re-added transparency & composition parameter, even though we never use it and just fall back to the default reactivity mask, we officially support it as an input now. 3 years ago
Nico de Poel 5ed7a5279b Progressed implementation of reactive mask generation pass. 3 years ago
Nico de Poel 158d5bc176 Perform render scaling by manipulating the Camera viewport rect, which removes the need for a second game object and camera altogether. 3 years ago
Nico de Poel c1326fc261 Added some comments to the main FSR2 classes 3 years ago
Nico de Poel 8ceffcadd1 Further cleanup and small details 3 years ago
Nico de Poel 86c16e3694 - Replaced all input/output parameters with RenderTargetIdentifiers, allowing more flexibility in how these resources are assigned 3 years ago
Nico de Poel 1a0945a283 Allow FSR2 commands to be added to a CommandBuffer passed in externally 3 years ago
Nico de Poel 84c02a1110 ExecuteCommandBuffer needs to be done last, otherwise the commands to release temporary RTs won't be executed and they'll be cleared on the next frame. Oops. 3 years ago
Nico de Poel 903c2f71f3 Updated code to make it compatible with Unity 2020.1, i.e. the oldest version that's technically usable. 3 years ago