This is still incomplete as d3d12 doesn't have any proper sync with the captured frame and as such is still not suggested for general usage. This change though is monumental for this project as it removes a full memory copy reducing bandwidth consumption enormously.
32 lines
514 B
CMake
32 lines
514 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(capture_DXGI LANGUAGES C)
|
|
|
|
add_library(capture_DXGI STATIC
|
|
src/dxgi.c
|
|
src/d3d11.c
|
|
src/d3d12.c
|
|
src/ods_capture.c
|
|
src/util.c
|
|
src/com_ref.c
|
|
|
|
src/pp/downsample.c
|
|
src/pp/sdrwhitelevel.c
|
|
src/pp/rgb24.c
|
|
)
|
|
|
|
add_definitions("-DCOBJMACROS -DINITGUID -DWIDL_C_INLINE_WRAPPERS")
|
|
|
|
target_link_libraries(capture_DXGI
|
|
lg_common
|
|
d3d11
|
|
dxgi
|
|
dwmapi
|
|
d3dcompiler
|
|
)
|
|
|
|
target_include_directories(capture_DXGI
|
|
PRIVATE
|
|
src
|
|
"${PROJECT_TOP}/vendor/directx"
|
|
)
|