mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-26 03:46:49 -08:00
Use vulkan encode by default even on NVIDIA
This commit is contained in:
1 parent
a5837b47c7
commit
8eff464261
2 files changed
+13
-13
No files matched your search
@@ -223,17 +223,6 @@ public:
|
||||
if (config.codec == video_codec::raw or config.name == encoder_raw)
|
||||
return {encoder_raw, video_codec::raw};
|
||||
|
||||
#if WIVRN_USE_NVENC
|
||||
if ((nvidia and config.name.empty()) or config.name == encoder_nvenc)
|
||||
{
|
||||
for (auto codec: config.codec ? std::vector{*config.codec} : info.supported_codecs)
|
||||
{
|
||||
if (check_nvenc(codec))
|
||||
return {encoder_nvenc, codec};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WIVRN_USE_VULKAN_ENCODE
|
||||
if (config.name.empty() or config.name == encoder_vulkan)
|
||||
{
|
||||
@@ -245,6 +234,17 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WIVRN_USE_NVENC
|
||||
if ((nvidia and config.name.empty()) or config.name == encoder_nvenc)
|
||||
{
|
||||
for (auto codec: config.codec ? std::vector{*config.codec} : info.supported_codecs)
|
||||
{
|
||||
if (check_nvenc(codec))
|
||||
return {encoder_nvenc, codec};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WIVRN_USE_VAAPI
|
||||
if (config.name.empty() or config.name == encoder_vaapi)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user