mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 02:21:25 +00:00
sdf-effects: Move into its own component
This commit is contained in:
parent
65e91fbbc4
commit
7ebe4f5631
4 changed files with 8 additions and 23 deletions
|
@ -292,7 +292,6 @@ set(${PREFIX}ENABLE_FILTER_AUTOFRAMING ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enabl
|
|||
set(${PREFIX}ENABLE_FILTER_AUTOFRAMING_NVIDIA ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable NVIDIA provider(s) Auto-Framing Filter")
|
||||
set(${PREFIX}ENABLE_FILTER_DENOISING ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable Denoising filter")
|
||||
set(${PREFIX}ENABLE_FILTER_DENOISING_NVIDIA ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable NVIDIA provider(s) for Denoising Filter")
|
||||
set(${PREFIX}ENABLE_FILTER_SDF_EFFECTS ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable SDF Effects Filter")
|
||||
set(${PREFIX}ENABLE_FILTER_UPSCALING ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable Upscaling Filter")
|
||||
set(${PREFIX}ENABLE_FILTER_UPSCALING_NVIDIA ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable NVIDIA provider(s) for Upscaling Filter")
|
||||
set(${PREFIX}ENABLE_FILTER_VIRTUAL_GREENSCREEN ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable Virtual Greenscreen Filter")
|
||||
|
@ -470,10 +469,6 @@ function(feature_filter_denoising RESOLVE)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
function(feature_filter_sdf_effects RESOLVE)
|
||||
is_feature_enabled(FILTER_SDF_EFFECTS T_CHECK)
|
||||
endfunction()
|
||||
|
||||
function(feature_filter_upscaling RESOLVE)
|
||||
is_feature_enabled(FILTER_UPSCALING T_CHECK)
|
||||
if(RESOLVE AND T_CHECK)
|
||||
|
@ -553,7 +548,6 @@ endfunction()
|
|||
# Set Requirements
|
||||
feature_filter_autoframing(OFF)
|
||||
feature_filter_denoising(OFF)
|
||||
feature_filter_sdf_effects(OFF)
|
||||
feature_filter_upscaling(OFF)
|
||||
feature_filter_virtual_greenscreen(OFF)
|
||||
feature_frontend(OFF)
|
||||
|
@ -682,7 +676,6 @@ endif()
|
|||
# Verify Requirements
|
||||
feature_filter_autoframing(ON)
|
||||
feature_filter_denoising(ON)
|
||||
feature_filter_sdf_effects(ON)
|
||||
feature_filter_upscaling(ON)
|
||||
feature_filter_virtual_greenscreen(ON)
|
||||
feature_frontend(ON)
|
||||
|
@ -973,22 +966,6 @@ if(T_CHECK)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# Filter/SDF Effects
|
||||
is_feature_enabled(FILTER_SDF_EFFECTS T_CHECK)
|
||||
if(T_CHECK)
|
||||
list(APPEND PROJECT_DATA
|
||||
"data/effects/sdf/sdf-producer.effect"
|
||||
"data/effects/sdf/sdf-consumer.effect"
|
||||
)
|
||||
list(APPEND PROJECT_PRIVATE_SOURCE
|
||||
"source/filters/filter-sdf-effects.hpp"
|
||||
"source/filters/filter-sdf-effects.cpp"
|
||||
)
|
||||
list(APPEND PROJECT_DEFINITIONS
|
||||
ENABLE_FILTER_SDF_EFFECTS
|
||||
)
|
||||
endif()
|
||||
|
||||
# Filter/Denoising
|
||||
is_feature_enabled(FILTER_DENOISING T_CHECK)
|
||||
if(T_CHECK)
|
||||
|
|
8
components/sdf-effects/CMakeLists.txt
Normal file
8
components/sdf-effects/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
## AUTOGENERATED COPYRIGHT HEADER START
|
||||
# Copyright (C) NaN-NaN undefined
|
||||
# AUTOGENERATED COPYRIGHT HEADER END
|
||||
cmake_minimum_required(VERSION 3.26)
|
||||
project("SDFFx")
|
||||
list(APPEND CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}] ")
|
||||
|
||||
streamfx_add_component("SDF Effects")
|
Loading…
Reference in a new issue