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