mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-21 00:59:59 -04:00
Triforce v0.6.0 "Sage Of Power"
Faster frames (the replay's memory work, held submits, helper threads, collection and capture cuts), the game letting old areas go (QueryMemoryInfo), the 0.5.2 stutter fixed, AMD RX 5000/6000 and integrated-GPU fixes, the GPU device chosen by name, the in-game menus and launcher reworked, controller, Linux and benchmark fixes.
This commit is contained in:
@@ -21,6 +21,9 @@ bool fsr4_built();
|
||||
/// Why FSR 4 cannot be chosen here (the Upscaler row says it), FSR_OK when it can or is not known yet
|
||||
enum FsrWhy { FSR_OK, FSR_NOT_BUILT, FSR_ENV_OFF, FSR_NO_LIBRARY, FSR_NO_MODEL, FSR_WHY_COUNT };
|
||||
FsrWhy fsr4_why();
|
||||
/// (Triforce, FSR4-7) The Upscaler row's name for FSR 4 (native_aa: its Native AA), by the version AMD's library runs here
|
||||
/// once it has been asked: "AMD FSR 4.1", "AMD FSR 4.1 Native AA"; "AMD FSR 4" before. Never waits for the library
|
||||
const char* fsr4_name(bool native_aa);
|
||||
/// Loads AMD's library once and asks it for an FSR 4 upscaler for this device, so fsr4_why knows before the first upscale
|
||||
/// (the menu, when it opens). Nothing in a build without FSR, or before the device is made
|
||||
void fsr4_probe();
|
||||
@@ -39,8 +42,11 @@ namespace fsr4fg {
|
||||
/// One present's frame, everything in GENERAL
|
||||
struct Inputs {
|
||||
VkImage color = VK_NULL_HANDLE; ///< the picture the game has just finished, as it is presented: R8G8B8A8_UNORM, with the HUD
|
||||
/// ((Triforce, FG-2) the same picture without the HUD: the gameplay upscale's output, encoded as the game's last pass
|
||||
/// encodes it (sRGB, 8 bits) and cut as the picture is (vk_framegen.cpp hudless_for). Null: no frame is made (GAME)
|
||||
VkImage hudless = VK_NULL_HANDLE;
|
||||
uint32_t width = 0, height = 0;
|
||||
bool pq = false; ///< its bytes are HDR10 codes (HDR Native), not sRGB
|
||||
bool pq = false; ///< its bytes are HDR10 codes (HDR Native), not sRGB: the renderer's own makes the frame (OWN)
|
||||
float peak_nits = 1000.0f; ///< the HDR peak, for a PQ picture
|
||||
VkImage depth = VK_NULL_HANDLE; ///< R32F, reversed (1 at the near plane), render_width x render_height
|
||||
VkImage motion = VK_NULL_HANDLE; ///< RG16F, render pixels toward the frame before, x right and y down, no jitter
|
||||
@@ -54,9 +60,9 @@ struct Inputs {
|
||||
};
|
||||
|
||||
/// Why AMD's library cannot make the frames here, FG_OK when it can. The first call after the device is made asks AMD's
|
||||
/// library (the loader and amd_fidelityfx_framegeneration_vk.dll beside the game, and whether they list an FSR 4 frame
|
||||
/// generation for this card and driver); RX_VK_FSR4_FG=0: never, =1: any version it lists counts (for trying the path on
|
||||
/// a card without FSR 4)
|
||||
/// library (the loader and amd_fidelityfx_framegeneration_vk.dll beside the game, and whether they list a frame generation
|
||||
/// for this card and driver: ((Triforce, FG-1) FSR 4's where listed, else FSR 3.1's, framegen_rows.h pick_version);
|
||||
/// RX_VK_FSR4_FG=0: never, =4: FSR 4's alone (as before), 1 or unset: the newest listed
|
||||
framegen_rows::Why why();
|
||||
inline bool offered() { return why() == framegen_rows::FG_OK; }
|
||||
/// (Triforce) why() as it is known now, never asking AMD's library (nor waiting for another thread asking it): FG_NOT_YET until
|
||||
@@ -64,7 +70,12 @@ inline bool offered() { return why() == framegen_rows::FG_OK; }
|
||||
/// it off the menu's thread)
|
||||
framegen_rows::Why why_known();
|
||||
inline bool offered_known() { return why_known() == framegen_rows::FG_OK; }
|
||||
/// Whether a made frame is asked of it now: the row at AMD FSR 4, where it can, and not beside NVIDIA DLSS frame generation.
|
||||
/// (Triforce) What keeps AMD's library from every present while it lasts (framegen_rows.h held_whole_run): HELD_HDR_NATIVE
|
||||
/// while the game's picture is HDR Native's PQ codes (vk_replay.cpp present_native_pq), HELD_HDR_SCENE in a run whose scene
|
||||
/// is RenoDX's RGBA16F (vk_temporal.cpp temporal_scene_format); HELD_NONE otherwise. In every build, never asks AMD's library
|
||||
framegen_rows::Held held();
|
||||
/// Whether a made frame is asked of it now: the row at AMD FSR 4, where it can, not beside NVIDIA DLSS frame generation,
|
||||
/// and nothing held for the whole run (held(): the renderer's own makes the frame then, and no input is made for AMD's).
|
||||
/// Read every frame; costs nothing while the row is elsewhere
|
||||
bool frames_wanted();
|
||||
/// The version AMD's library makes the frames with ("4.0.2"), "" before it is known
|
||||
@@ -72,7 +83,8 @@ const char* version();
|
||||
|
||||
/// Hands AMD's library this present's frame and records its work into cmd. MADE: the made frame is in made_image(). SKIP: it
|
||||
/// was given the frame as a new history and no frame is to be made. OWN: it did not take the present (the renderer's own
|
||||
/// interpolation makes the frame)
|
||||
/// interpolation makes the frame; HDR Native's picture too). GAME ((Triforce, FG-2)): not given, no picture without the HUD
|
||||
/// this frame: the game's frame alone. Each way it refuses or fails is logged, the first time
|
||||
framegen_rows::Made generate(VkCommandBuffer cmd, const Inputs& in);
|
||||
/// The made frame of the last generate that answered MADE: R8G8B8A8_UNORM at the picture's size, GENERAL; else null
|
||||
VkImage made_image();
|
||||
|
||||
Reference in New Issue
Block a user