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