mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 04:55:56 +00:00
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>
20 lines
688 B
C
20 lines
688 B
C
// 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
|