CAS is a dynamic sharpening filter within AMD’s FidelityFX open source toolkit, which helps developers create high-quality post-processing effects that make games look beautiful while offering a balance of visual fidelity and performance. CAS draws out detail in low-contrast areas and minimizes artifacts from typical sharpening routines, improving image quality to deliver a sharper, richer gaming experience.
The new F1 2019 1.07 patch offers gamers two new anti-aliaising modes to play with. First is “TAA and FidelityFX Sharpening” which takes the temporarily anti-aliased image rendered at the specified resolution and applies AMD’s Contrast Adaptive Sharpening. Second is “TAA and FidelityFX Upscaling” which renders the scene to a reduced resolution, applies temporal anti-aliasing, then runs FidelityFX Upscaling and Contrast Adaptive Sharpening to reconstruct the image at the specified resolution.
FidelityFX is a series of optimized shader-based features aimed at improving rendering quality and performance. These shaders are provided under the open source MIT license and can freely be integrated in your game or any graphics application. FidelityFX features can be used on any graphics APIs that support either the HLSL or GLSL shading language, such as Direct3D 12, Vulkan®, or Direct3D 11.
FidelityFX effects are easy to integrate – all that’s needed is to #include the provided header files and use appropriate functions in your shader code. Specific #define can be set to turn these headers into HLSL, GLSL or C code. See documentation for details.
Contrast Adaptive Sharpening (CAS)
Contrast Adaptive Sharpening (CAS) is the first FidelityFX release. CAS provides a mixed ability to sharpen and optionally scale an image. The algorithm adjusts the amount of sharpening per pixel to target an even level of sharpness across the image. Areas of the input image that are already sharp are sharpened less, while areas that lack detail are sharpened more. This allows for higher overall natural visual sharpness with fewer artifacts.
CAS was designed to help increase the quality of existing Temporal Anti-Aliasing (TAA) solutions. TAA often introduces a variable amount of blur due to temporal feedback. The adaptive sharpening provided by CAS is ideal to restore detail in images produced after TAA .
CAS’ optional scaling capability is designed to support Dynamic Resolution Scaling (DRS). DRS changes render resolution every frame, which requires scaling prior to compositing the fixed-resolution User Interface (UI). CAS supports both up-sampling and down-sampling in the same single pass that applies sharpening.
Example before sharpening:
CAS sample applications are provided for Direct3D 12 and Vulkan.