fsr.h 752 B

12345678910111213141516171819
  1. // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/bit_cast.h"
  5. #include "common/common_types.h"
  6. namespace FSR {
  7. // Reimplementations of the constant generating functions in ffx_fsr1.h
  8. // GCC generated a lot of warnings when using the official header.
  9. void FsrEasuConOffset(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4],
  10. f32 inputViewportInPixelsX, f32 inputViewportInPixelsY,
  11. f32 inputSizeInPixelsX, f32 inputSizeInPixelsY, f32 outputSizeInPixelsX,
  12. f32 outputSizeInPixelsY, f32 inputOffsetInPixelsX, f32 inputOffsetInPixelsY);
  13. void FsrRcasCon(u32* con, f32 sharpness);
  14. } // namespace FSR