Nico de Poel
8c43881c8d
Added zero check to make undo mipmap bias offset an idempotent operation
3 years ago
Nico de Poel
9911642947
Refactored undo mipmap bias callback such that the RP integration does not need to maintain any bias offset state. Added NaN/Infinity check to the standard apply mipmap bias callback implementation.
3 years ago
Nico de Poel
bc3192fc40
Made undoing of mipmap bias a distinct separate callback, so that it can be overridden by client apps.
3 years ago
Nico de Poel
9e53cf52f8
Skip textures that don't have mipmaps and thus don't have any use for a mipmap bias
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
1ff980bea9
Changing my mind yet again about directory names
3 years ago
Nico de Poel
3e31950d56
Changed Fsr2Callbacks into an interface + base implementation
3 years ago
Nico de Poel
da651c3d6f
Moved some files
3 years ago
Nico de Poel
92e360aa24
Implemented the debug checking upon dispatch from the original FSR2 source, with some Unity adaptations.
Used this to good effect to fix a few small issues that had gone unnoticed.
Also removed the Message callback which was kind of pointless, since Unity already has a well-established way of outputting warnings and errors.
3 years ago
Nico de Poel
85829949f8
Made all inspector fields public, so that they can be easily accessed programmatically.
There's really not much reason to keep these private, as we otherwise would have added public properties that directly access them anyway.
3 years ago
Nico de Poel
c1326fc261
Added some comments to the main FSR2 classes
3 years ago
Nico de Poel
3dba9d1fa4
Implemented a few more things that are new in FSR 2.2
3 years ago
Nico de Poel
a576f94e95
A bit of reorganization in how shaders and buffers are created and destroyed.
Also using Unity's system info to decide on inverted depth or not.
3 years ago
Nico de Poel
4d6a47a03c
Reworked creation and dispatch to use description classes to pass parameters, designed similar to how the original FSR2 library does things, but adapted slightly to fit the Unity context.
3 years ago
Nico de Poel
447ae35772
- Added SPD constants buffer used by luminance pass
- Started code reorganization: added a callbacks class for things that need to be customizable by the gamedev
3 years ago