mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 21:55:57 +00:00
FidelityFX SDK 1.1.4 frame interpolation and optical flow built into totk.exe behind frame_gen, contexts created and destroyed only, no frame-path change
The SDK subset, its compat header and the SPIR-V shader header come from Savage Wind (MIT); tools/ffx_shaders.py regenerates the header with glslangValidator, build_game.py compiles the SDK sources with ffx_compat.h force-included, and runtime/vk_fg.cpp makes the backend, optical flow and frame interpolation contexts after the device exists when frame_gen = 1 (default 0, read at start). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Revivedx <82332536+Revivedx@users.noreply.github.com>
This commit is contained in:
1 parent
25a53e5ef2
commit
4e48669c86
114 files changed
+46877
-6
No files matched your search
@@ -0,0 +1,19 @@
|
||||
// AMD FSR 3 frame generation (vk_fg.cpp): the FidelityFX SDK 1.1.4's frame interpolation and optical flow
|
||||
// (third_party/FidelityFX, MIT) on its Vulkan backend. Plain C interface: the SDK is C++.
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// vk_device.c, after the device exists: with TOTK_FRAME_GEN=1 (totk.ini frame_gen = 1) makes the shared backend, the
|
||||
// optical flow and the frame interpolation contexts and logs one line; otherwise does nothing.
|
||||
void vk_fg_init(void);
|
||||
// 1 while the contexts exist.
|
||||
int vk_fg_active(void);
|
||||
// vk_device.c destroy_all, before the device goes away; harmless when nothing was made.
|
||||
void vk_fg_release(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user