2018-03-28 09:57:46 -04:00
|
|
|
add_library(videocommon
|
2018-01-21 20:22:45 +10:00
|
|
|
AbstractFramebuffer.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
AbstractFramebuffer.h
|
2023-01-27 11:34:59 +13:00
|
|
|
AbstractGfx.cpp
|
|
|
|
AbstractGfx.h
|
2019-05-29 05:40:33 -04:00
|
|
|
AbstractShader.h
|
2017-10-22 00:49:40 +10:00
|
|
|
AbstractStagingTexture.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
AbstractStagingTexture.h
|
2017-04-22 23:44:34 -05:00
|
|
|
AbstractTexture.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
AbstractTexture.h
|
2015-01-31 11:38:23 +01:00
|
|
|
AsyncRequests.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
AsyncRequests.h
|
2017-06-19 14:17:18 +10:00
|
|
|
AsyncShaderCompiler.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
AsyncShaderCompiler.h
|
2015-01-31 11:38:23 +01:00
|
|
|
BoundingBox.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
BoundingBox.h
|
2014-09-16 20:18:15 +01:00
|
|
|
BPFunctions.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
BPFunctions.h
|
2011-01-31 03:16:10 +00:00
|
|
|
BPMemory.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
BPMemory.h
|
2010-11-01 15:47:02 +00:00
|
|
|
BPStructs.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
BPStructs.h
|
2011-01-31 03:16:10 +00:00
|
|
|
CommandProcessor.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
CommandProcessor.h
|
|
|
|
ConstantManager.h
|
2023-02-10 00:28:06 -06:00
|
|
|
Constants.h
|
2019-05-29 05:40:33 -04:00
|
|
|
CPMemory.cpp
|
|
|
|
CPMemory.h
|
2022-11-10 19:30:49 -06:00
|
|
|
CPUCull.cpp
|
|
|
|
CPUCull.h
|
|
|
|
CPUCullImpl.h
|
2013-06-11 08:33:56 -05:00
|
|
|
DriverDetails.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
DriverDetails.h
|
2010-11-01 15:47:02 +00:00
|
|
|
Fifo.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
Fifo.h
|
2019-02-15 11:59:50 +10:00
|
|
|
FramebufferManager.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
FramebufferManager.h
|
2019-02-15 11:59:50 +10:00
|
|
|
FramebufferShaderGen.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
FramebufferShaderGen.h
|
2023-01-27 17:03:15 +13:00
|
|
|
FrameDumper.cpp
|
|
|
|
FrameDumper.h
|
2023-01-28 13:50:57 +13:00
|
|
|
FrameDumpFFMpeg.h
|
2020-04-26 16:37:49 -05:00
|
|
|
FreeLookCamera.cpp
|
|
|
|
FreeLookCamera.h
|
2014-10-30 15:13:31 +01:00
|
|
|
GeometryShaderGen.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
GeometryShaderGen.h
|
2014-12-14 21:23:13 +01:00
|
|
|
GeometryShaderManager.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
GeometryShaderManager.h
|
2022-02-26 00:19:38 -06:00
|
|
|
GraphicsModSystem/Config/GraphicsMod.cpp
|
|
|
|
GraphicsModSystem/Config/GraphicsMod.h
|
|
|
|
GraphicsModSystem/Config/GraphicsModFeature.cpp
|
|
|
|
GraphicsModSystem/Config/GraphicsModFeature.h
|
|
|
|
GraphicsModSystem/Config/GraphicsModGroup.cpp
|
|
|
|
GraphicsModSystem/Config/GraphicsModGroup.h
|
|
|
|
GraphicsModSystem/Config/GraphicsTarget.cpp
|
|
|
|
GraphicsModSystem/Config/GraphicsTarget.h
|
|
|
|
GraphicsModSystem/Config/GraphicsTargetGroup.cpp
|
|
|
|
GraphicsModSystem/Config/GraphicsTargetGroup.h
|
2022-03-12 15:30:50 -06:00
|
|
|
GraphicsModSystem/Constants.h
|
2022-03-05 00:41:14 -06:00
|
|
|
GraphicsModSystem/Runtime/Actions/MoveAction.cpp
|
|
|
|
GraphicsModSystem/Runtime/Actions/MoveAction.h
|
|
|
|
GraphicsModSystem/Runtime/Actions/PrintAction.cpp
|
|
|
|
GraphicsModSystem/Runtime/Actions/PrintAction.h
|
|
|
|
GraphicsModSystem/Runtime/Actions/ScaleAction.cpp
|
|
|
|
GraphicsModSystem/Runtime/Actions/ScaleAction.h
|
|
|
|
GraphicsModSystem/Runtime/Actions/SkipAction.cpp
|
|
|
|
GraphicsModSystem/Runtime/Actions/SkipAction.h
|
|
|
|
GraphicsModSystem/Runtime/FBInfo.cpp
|
|
|
|
GraphicsModSystem/Runtime/FBInfo.h
|
|
|
|
GraphicsModSystem/Runtime/GraphicsModAction.h
|
2022-07-02 14:49:51 -05:00
|
|
|
GraphicsModSystem/Runtime/GraphicsModActionData.h
|
2022-03-05 00:41:14 -06:00
|
|
|
GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp
|
|
|
|
GraphicsModSystem/Runtime/GraphicsModActionFactory.h
|
|
|
|
GraphicsModSystem/Runtime/GraphicsModManager.cpp
|
|
|
|
GraphicsModSystem/Runtime/GraphicsModManager.h
|
2010-11-01 15:47:02 +00:00
|
|
|
HiresTextures.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
HiresTextures.h
|
2017-04-16 19:30:11 +10:00
|
|
|
HiresTextures_DDSLoader.cpp
|
2010-11-01 15:47:02 +00:00
|
|
|
IndexGenerator.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
IndexGenerator.h
|
2016-06-26 23:01:02 +12:00
|
|
|
LightingShaderGen.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
LightingShaderGen.h
|
|
|
|
LookUpTables.h
|
|
|
|
NativeVertexFormat.h
|
2019-03-17 01:09:06 +01:00
|
|
|
NetPlayChatUI.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
NetPlayChatUI.h
|
2019-04-02 17:13:42 -04:00
|
|
|
NetPlayGolfUI.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
NetPlayGolfUI.h
|
2010-11-01 15:47:02 +00:00
|
|
|
OnScreenDisplay.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
OnScreenDisplay.h
|
2023-01-27 17:03:15 +13:00
|
|
|
OnScreenUI.cpp
|
|
|
|
OnScreenUI.h
|
2023-02-03 19:11:31 +13:00
|
|
|
OnScreenUIKeyMap.h
|
2010-11-01 15:47:02 +00:00
|
|
|
OpcodeDecoding.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
OpcodeDecoding.h
|
2012-06-17 13:58:29 +02:00
|
|
|
PerfQueryBase.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
PerfQueryBase.h
|
2022-12-23 19:52:53 -05:00
|
|
|
PerformanceMetrics.cpp
|
|
|
|
PerformanceMetrics.h
|
|
|
|
PerformanceTracker.cpp
|
|
|
|
PerformanceTracker.h
|
2010-11-01 15:47:02 +00:00
|
|
|
PixelEngine.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
PixelEngine.h
|
2010-11-01 15:47:02 +00:00
|
|
|
PixelShaderGen.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
PixelShaderGen.h
|
2010-11-01 15:47:02 +00:00
|
|
|
PixelShaderManager.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
PixelShaderManager.h
|
2014-07-29 11:47:56 -05:00
|
|
|
PostProcessing.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
PostProcessing.h
|
2023-01-27 17:03:15 +13:00
|
|
|
Present.cpp
|
|
|
|
Present.h
|
2010-11-18 02:21:26 +00:00
|
|
|
RenderBase.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
RenderBase.h
|
2016-12-29 17:31:51 +01:00
|
|
|
RenderState.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
RenderState.h
|
2018-02-25 01:15:35 +10:00
|
|
|
ShaderCache.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
ShaderCache.h
|
2017-07-20 17:10:02 +10:00
|
|
|
ShaderGenCommon.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
ShaderGenCommon.h
|
2022-05-04 00:40:59 -05:00
|
|
|
Spirv.cpp
|
|
|
|
Spirv.h
|
2010-11-01 15:47:02 +00:00
|
|
|
Statistics.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
Statistics.h
|
2010-11-01 15:47:02 +00:00
|
|
|
TextureCacheBase.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
TextureCacheBase.h
|
2017-04-22 23:44:34 -05:00
|
|
|
TextureConfig.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
TextureConfig.h
|
2010-11-01 15:47:02 +00:00
|
|
|
TextureConversionShader.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
TextureConversionShader.h
|
2017-08-04 17:56:24 +02:00
|
|
|
TextureConverterShaderGen.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
TextureConverterShaderGen.h
|
|
|
|
TextureDecoder.h
|
2014-07-12 10:49:24 -04:00
|
|
|
TextureDecoder_Common.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
TextureDecoder_Util.h
|
2021-05-01 00:59:24 -05:00
|
|
|
TextureInfo.cpp
|
|
|
|
TextureInfo.h
|
2019-09-06 21:22:47 +12:00
|
|
|
TMEM.cpp
|
|
|
|
TMEM.h
|
2019-05-29 05:40:33 -04:00
|
|
|
UberShaderCommon.cpp
|
|
|
|
UberShaderCommon.h
|
|
|
|
UberShaderPixel.cpp
|
|
|
|
UberShaderPixel.h
|
|
|
|
UberShaderVertex.cpp
|
|
|
|
UberShaderVertex.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexLoader.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoader.h
|
2014-12-13 01:51:14 +01:00
|
|
|
VertexLoaderBase.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoaderBase.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexLoaderManager.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoaderManager.h
|
|
|
|
VertexLoaderUtils.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexLoader_Color.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoader_Color.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexLoader_Normal.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoader_Normal.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexLoader_Position.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoader_Position.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexLoader_TextCoord.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoader_TextCoord.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexManagerBase.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexManagerBase.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexShaderGen.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexShaderGen.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VertexShaderManager.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexShaderManager.h
|
2013-08-11 16:30:19 +02:00
|
|
|
VideoBackendBase.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VideoBackendBase.h
|
2023-01-30 22:36:25 +13:00
|
|
|
VideoEvents.h
|
2019-05-29 05:40:33 -04:00
|
|
|
VideoCommon.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VideoConfig.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VideoConfig.h
|
2010-11-01 15:47:02 +00:00
|
|
|
VideoState.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VideoState.h
|
2023-01-31 17:58:54 +13:00
|
|
|
Widescreen.cpp
|
|
|
|
Widescreen.h
|
2010-11-01 15:47:02 +00:00
|
|
|
XFMemory.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
XFMemory.h
|
2014-10-30 15:13:31 +01:00
|
|
|
XFStructs.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
XFStructs.h
|
2014-10-30 15:13:31 +01:00
|
|
|
)
|
2017-03-01 07:43:43 -05:00
|
|
|
|
2018-03-28 09:57:46 -04:00
|
|
|
target_link_libraries(videocommon
|
|
|
|
PUBLIC
|
2013-11-15 01:09:38 +00:00
|
|
|
core
|
2018-03-28 09:57:46 -04:00
|
|
|
PRIVATE
|
2019-11-22 17:10:41 -05:00
|
|
|
fmt::fmt
|
2023-02-06 13:29:36 +01:00
|
|
|
${spng_target}
|
2018-03-28 17:00:49 -04:00
|
|
|
xxhash
|
2018-10-10 01:34:26 +11:00
|
|
|
imgui
|
2022-12-23 19:52:53 -05:00
|
|
|
implot
|
2022-05-04 00:40:59 -05:00
|
|
|
glslang
|
2013-11-15 01:09:38 +00:00
|
|
|
)
|
2013-02-26 13:49:00 -06:00
|
|
|
|
2014-06-07 20:24:02 -05:00
|
|
|
if(_M_X86)
|
2018-03-28 09:57:46 -04:00
|
|
|
target_sources(videocommon PRIVATE
|
|
|
|
TextureDecoder_x64.cpp
|
|
|
|
VertexLoaderX64.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoaderX64.h
|
2018-03-28 09:57:46 -04:00
|
|
|
)
|
2015-02-12 18:52:07 -06:00
|
|
|
elseif(_M_ARM_64)
|
2018-03-28 09:57:46 -04:00
|
|
|
target_sources(videocommon PRIVATE
|
|
|
|
VertexLoaderARM64.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
VertexLoaderARM64.h
|
2018-03-28 09:57:46 -04:00
|
|
|
TextureDecoder_Generic.cpp
|
|
|
|
)
|
2013-02-26 13:49:00 -06:00
|
|
|
else()
|
2018-03-28 09:57:46 -04:00
|
|
|
target_sources(videocommon PRIVATE
|
|
|
|
TextureDecoder_Generic.cpp
|
|
|
|
)
|
2011-12-05 05:26:28 +01:00
|
|
|
endif()
|
|
|
|
|
2017-05-22 12:13:19 -07:00
|
|
|
if(FFmpeg_FOUND)
|
2019-05-29 05:40:33 -04:00
|
|
|
target_sources(videocommon PRIVATE
|
2023-01-28 13:50:57 +13:00
|
|
|
FrameDumpFFMpeg.cpp
|
2019-05-29 05:40:33 -04:00
|
|
|
)
|
2017-05-22 12:13:19 -07:00
|
|
|
target_link_libraries(videocommon PRIVATE
|
|
|
|
FFmpeg::avcodec
|
|
|
|
FFmpeg::avformat
|
|
|
|
FFmpeg::avutil
|
2021-10-01 18:49:25 -10:00
|
|
|
FFmpeg::swresample
|
2017-05-22 12:13:19 -07:00
|
|
|
FFmpeg::swscale
|
|
|
|
)
|
2019-09-06 21:22:47 +12:00
|
|
|
if(APPLE)
|
2021-10-01 18:49:25 -10:00
|
|
|
target_link_libraries(videocommon PRIVATE
|
|
|
|
${COREMEDIA_LIBRARY}
|
|
|
|
${VIDEOTOOLBOX_LIBRARY}
|
|
|
|
${COREVIDEO_LIBRARY}
|
2019-09-06 21:22:47 +12:00
|
|
|
${AUDIOTOOLBOX_LIBRARY}
|
2021-10-01 18:49:25 -10:00
|
|
|
)
|
|
|
|
endif()
|
2010-11-17 01:03:39 +00:00
|
|
|
endif()
|
2022-05-22 01:19:44 +02:00
|
|
|
|
2022-05-04 00:40:59 -05:00
|
|
|
# Silence warnings on glslang by flagging it as a system include
|
|
|
|
target_include_directories(videocommon
|
|
|
|
SYSTEM PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/glslang/glslang/Public
|
|
|
|
SYSTEM PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/glslang/StandAlone
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/glslang
|
|
|
|
)
|
|
|
|
|
2022-05-22 01:19:44 +02:00
|
|
|
if(MSVC)
|
|
|
|
# Add precompiled header
|
|
|
|
target_link_libraries(videocommon PRIVATE use_pch)
|
|
|
|
endif()
|