win-capture: Add D3D12 capture support
Currently only supports shared texture capture, and doesn't support rescaling.
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
project(graphics-hook)
|
||||
|
||||
set(COMPILE_D3D12_HOOK FALSE CACHE BOOL "Compile D3D12 hook support (required windows 10 SDK)")
|
||||
|
||||
configure_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/graphics-hook-config.h.in"
|
||||
"${CMAKE_BINARY_DIR}/plugins/win-capture/graphics-hook/config/graphics-hook-config.h")
|
||||
|
||||
|
||||
set(graphics-hook_HEADERS
|
||||
"${CMAKE_BINARY_DIR}/plugins/win-capture/graphics-hook/config/graphics-hook-config.h"
|
||||
graphics-hook.h
|
||||
../graphics-hook-info.h
|
||||
../hook-helpers.h
|
||||
@@ -18,12 +26,16 @@ set(graphics-hook_SOURCES
|
||||
d3d9-capture.cpp
|
||||
dxgi-capture.cpp
|
||||
d3d10-capture.cpp
|
||||
d3d11-capture.cpp)
|
||||
d3d11-capture.cpp
|
||||
d3d12-capture.cpp)
|
||||
|
||||
add_library(graphics-hook MODULE
|
||||
${graphics-hook_SOURCES}
|
||||
${graphics-hook_HEADERS})
|
||||
|
||||
target_include_directories(graphics-hook PUBLIC
|
||||
"${CMAKE_BINARY_DIR}/plugins/win-capture/graphics-hook/config")
|
||||
|
||||
target_link_libraries(graphics-hook
|
||||
ipc-util psapi)
|
||||
|
||||
|
Reference in New Issue
Block a user