mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-21 09:09:58 -04:00
Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
18
gpu/vk/movie_upscale_policy.h
Normal file
18
gpu/vk/movie_upscale_policy.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* Movie-only linear-upscale override policy. */
|
||||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
|
||||
namespace mkwvk::movie_upscale_policy {
|
||||
|
||||
enum class Mode { Automatic, Linear };
|
||||
|
||||
inline Mode parse(const char* value) {
|
||||
return value && std::strcmp(value, "linear") == 0 ? Mode::Linear : Mode::Automatic;
|
||||
}
|
||||
|
||||
inline bool use_linear(Mode mode, bool automatic_fallback, bool keep_all, bool cooperative_matrix, bool gameplay_network) {
|
||||
return cooperative_matrix && !gameplay_network && !keep_all && (mode == Mode::Linear || automatic_fallback);
|
||||
}
|
||||
|
||||
} // namespace mkwvk::movie_upscale_policy
|
||||
Reference in New Issue
Block a user