mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 14:39:58 -04:00
Add AMD FSR 3.1 frame generation: a generated frame between every two the game draws.
With Frame generation set to AMD FSR 3.1 (after a restart), AMD's frame generation swapchain takes the place of the present path's own: the device creates two more graphics queues for its presents and image acquires, the present path acquires, gets images and presents through its replacement functions, and every frame configures generation and records its preparation from the depth and camera motion vectors the DLSS or FSR 3.1 upscaling pass made (one of them must be on). Generation pauses while the menu is open. On an RTX 5090 at a 60 fps game, about one frame was generated for every frame drawn in play. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,3 +16,15 @@ int vk_ffx_load(void); // 1 when the library is there with its entry points (l
|
||||
int vk_ffx_upscale(VkCommandBuffer cb, const VkFfxImage *color, const VkFfxImage *depth, const VkFfxImage *mv,
|
||||
const VkFfxImage *out, float jx, float jy, int reset, float dt_ms, float fov_y);
|
||||
void vk_ffx_release(void); // before the device goes away
|
||||
|
||||
#ifdef __cplusplus
|
||||
// The API's calls themselves, for vk_fg.cpp (0 = FFX_API_RETURN_OK): the library loaded first (vk_ffx_load).
|
||||
#include "third_party/ffx_api/ffx_api.h"
|
||||
extern "C" {
|
||||
ffxReturnCode_t vk_ffx_create(ffxContext *ctx, ffxCreateContextDescHeader *desc);
|
||||
ffxReturnCode_t vk_ffx_destroy(ffxContext *ctx);
|
||||
ffxReturnCode_t vk_ffx_configure(ffxContext *ctx, const ffxConfigureDescHeader *desc);
|
||||
ffxReturnCode_t vk_ffx_query(ffxContext *ctx, ffxQueryDescHeader *desc);
|
||||
ffxReturnCode_t vk_ffx_dispatch(ffxContext *ctx, const ffxDispatchDescHeader *desc);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user