2017-12-10 17:55:03 -06:00
|
|
|
add_library(video_core STATIC
|
|
|
|
command_processor.cpp
|
|
|
|
command_processor.h
|
|
|
|
debug_utils/debug_utils.cpp
|
|
|
|
debug_utils/debug_utils.h
|
|
|
|
geometry_pipeline.cpp
|
|
|
|
geometry_pipeline.h
|
|
|
|
gpu_debugger.h
|
|
|
|
pica.cpp
|
|
|
|
pica.h
|
|
|
|
pica_state.h
|
|
|
|
pica_types.h
|
2022-12-17 09:06:38 -06:00
|
|
|
precompiled_headers.h
|
2017-12-10 17:55:03 -06:00
|
|
|
primitive_assembly.cpp
|
|
|
|
primitive_assembly.h
|
|
|
|
rasterizer_interface.h
|
|
|
|
regs.cpp
|
|
|
|
regs.h
|
|
|
|
regs_framebuffer.h
|
|
|
|
regs_lighting.h
|
|
|
|
regs_pipeline.h
|
|
|
|
regs_rasterizer.h
|
|
|
|
regs_shader.h
|
|
|
|
regs_texturing.h
|
|
|
|
renderer_base.cpp
|
|
|
|
renderer_base.h
|
2022-08-20 16:50:20 -05:00
|
|
|
rasterizer_cache/cached_surface.cpp
|
|
|
|
rasterizer_cache/cached_surface.h
|
2022-08-20 04:17:31 -05:00
|
|
|
rasterizer_cache/morton_swizzle.h
|
|
|
|
rasterizer_cache/pixel_format.h
|
2022-08-20 03:40:49 -05:00
|
|
|
rasterizer_cache/rasterizer_cache.cpp
|
|
|
|
rasterizer_cache/rasterizer_cache.h
|
2022-08-20 04:52:24 -05:00
|
|
|
rasterizer_cache/rasterizer_cache_types.h
|
|
|
|
rasterizer_cache/rasterizer_cache_utils.cpp
|
|
|
|
rasterizer_cache/rasterizer_cache_utils.h
|
2022-08-20 03:40:49 -05:00
|
|
|
rasterizer_cache/surface_params.cpp
|
|
|
|
rasterizer_cache/surface_params.h
|
2022-08-20 16:50:20 -05:00
|
|
|
rasterizer_cache/texture_runtime.cpp
|
|
|
|
rasterizer_cache/texture_runtime.h
|
2020-01-28 07:57:30 -06:00
|
|
|
renderer_opengl/frame_dumper_opengl.cpp
|
|
|
|
renderer_opengl/frame_dumper_opengl.h
|
2017-12-10 17:55:03 -06:00
|
|
|
renderer_opengl/gl_rasterizer.cpp
|
|
|
|
renderer_opengl/gl_rasterizer.h
|
2018-11-06 03:40:49 -06:00
|
|
|
renderer_opengl/gl_resource_manager.cpp
|
2017-12-10 17:55:03 -06:00
|
|
|
renderer_opengl/gl_resource_manager.h
|
2018-03-23 18:51:06 -05:00
|
|
|
renderer_opengl/gl_shader_decompiler.cpp
|
|
|
|
renderer_opengl/gl_shader_decompiler.h
|
2019-09-07 17:11:09 -05:00
|
|
|
renderer_opengl/gl_shader_disk_cache.cpp
|
|
|
|
renderer_opengl/gl_shader_disk_cache.h
|
2017-12-10 17:55:03 -06:00
|
|
|
renderer_opengl/gl_shader_gen.cpp
|
|
|
|
renderer_opengl/gl_shader_gen.h
|
2018-04-09 16:31:11 -05:00
|
|
|
renderer_opengl/gl_shader_manager.cpp
|
|
|
|
renderer_opengl/gl_shader_manager.h
|
2017-12-10 17:55:03 -06:00
|
|
|
renderer_opengl/gl_shader_util.cpp
|
|
|
|
renderer_opengl/gl_shader_util.h
|
|
|
|
renderer_opengl/gl_state.cpp
|
|
|
|
renderer_opengl/gl_state.h
|
2018-02-23 03:56:30 -06:00
|
|
|
renderer_opengl/gl_stream_buffer.cpp
|
|
|
|
renderer_opengl/gl_stream_buffer.h
|
2019-01-30 14:10:33 -06:00
|
|
|
renderer_opengl/gl_vars.cpp
|
|
|
|
renderer_opengl/gl_vars.h
|
2017-12-10 17:55:03 -06:00
|
|
|
renderer_opengl/pica_to_gl.h
|
2019-08-09 13:00:47 -05:00
|
|
|
renderer_opengl/post_processing_opengl.cpp
|
|
|
|
renderer_opengl/post_processing_opengl.h
|
2017-12-10 17:55:03 -06:00
|
|
|
renderer_opengl/renderer_opengl.cpp
|
|
|
|
renderer_opengl/renderer_opengl.h
|
2020-03-24 10:44:44 -05:00
|
|
|
renderer_opengl/texture_downloader_es.cpp
|
|
|
|
renderer_opengl/texture_downloader_es.h
|
2020-03-16 09:42:05 -05:00
|
|
|
renderer_opengl/texture_filters/anime4k/anime4k_ultrafast.cpp
|
|
|
|
renderer_opengl/texture_filters/anime4k/anime4k_ultrafast.h
|
|
|
|
renderer_opengl/texture_filters/bicubic/bicubic.cpp
|
|
|
|
renderer_opengl/texture_filters/bicubic/bicubic.h
|
2022-11-16 11:55:14 -06:00
|
|
|
renderer_opengl/texture_filters/nearest_neighbor/nearest_neighbor.cpp
|
|
|
|
renderer_opengl/texture_filters/nearest_neighbor/nearest_neighbor.h
|
2020-04-16 13:33:14 -05:00
|
|
|
renderer_opengl/texture_filters/scale_force/scale_force.cpp
|
|
|
|
renderer_opengl/texture_filters/scale_force/scale_force.h
|
2020-04-02 22:42:50 -05:00
|
|
|
renderer_opengl/texture_filters/texture_filter_base.h
|
|
|
|
renderer_opengl/texture_filters/texture_filterer.cpp
|
|
|
|
renderer_opengl/texture_filters/texture_filterer.h
|
2020-03-16 09:42:05 -05:00
|
|
|
renderer_opengl/texture_filters/xbrz/xbrz_freescale.cpp
|
|
|
|
renderer_opengl/texture_filters/xbrz/xbrz_freescale.h
|
2020-04-07 09:12:32 -05:00
|
|
|
#temporary, move these back in alphabetical order before merging
|
|
|
|
renderer_opengl/gl_format_reinterpreter.cpp
|
|
|
|
renderer_opengl/gl_format_reinterpreter.h
|
2017-12-10 17:55:03 -06:00
|
|
|
shader/debug_data.h
|
|
|
|
shader/shader.cpp
|
|
|
|
shader/shader.h
|
|
|
|
shader/shader_interpreter.cpp
|
|
|
|
shader/shader_interpreter.h
|
2023-01-06 09:28:02 -06:00
|
|
|
shader/shader_jit_x64.cpp
|
|
|
|
shader/shader_jit_x64_compiler.cpp
|
|
|
|
shader/shader_jit_x64.h
|
|
|
|
shader/shader_jit_x64_compiler.h
|
2017-12-10 17:55:03 -06:00
|
|
|
swrasterizer/clipper.cpp
|
|
|
|
swrasterizer/clipper.h
|
|
|
|
swrasterizer/framebuffer.cpp
|
|
|
|
swrasterizer/framebuffer.h
|
|
|
|
swrasterizer/lighting.cpp
|
|
|
|
swrasterizer/lighting.h
|
|
|
|
swrasterizer/proctex.cpp
|
|
|
|
swrasterizer/proctex.h
|
|
|
|
swrasterizer/rasterizer.cpp
|
|
|
|
swrasterizer/rasterizer.h
|
|
|
|
swrasterizer/swrasterizer.cpp
|
|
|
|
swrasterizer/swrasterizer.h
|
|
|
|
swrasterizer/texturing.cpp
|
|
|
|
swrasterizer/texturing.h
|
|
|
|
texture/etc1.cpp
|
|
|
|
texture/etc1.h
|
|
|
|
texture/texture_decode.cpp
|
|
|
|
texture/texture_decode.h
|
|
|
|
utils.h
|
|
|
|
vertex_loader.cpp
|
|
|
|
vertex_loader.h
|
|
|
|
video_core.cpp
|
|
|
|
video_core.h
|
|
|
|
)
|
2014-08-23 20:22:05 -05:00
|
|
|
|
2020-03-16 09:42:05 -05:00
|
|
|
set(SHADER_FILES
|
2020-03-24 10:44:44 -05:00
|
|
|
renderer_opengl/depth_to_color.frag
|
|
|
|
renderer_opengl/depth_to_color.vert
|
|
|
|
renderer_opengl/ds_to_color.frag
|
2020-03-16 09:42:05 -05:00
|
|
|
renderer_opengl/texture_filters/anime4k/refine.frag
|
|
|
|
renderer_opengl/texture_filters/anime4k/x_gradient.frag
|
|
|
|
renderer_opengl/texture_filters/anime4k/y_gradient.frag
|
|
|
|
renderer_opengl/texture_filters/bicubic/bicubic.frag
|
2022-11-16 11:55:14 -06:00
|
|
|
renderer_opengl/texture_filters/nearest_neighbor/nearest_neighbor.frag
|
2020-04-16 13:33:14 -05:00
|
|
|
renderer_opengl/texture_filters/scale_force/scale_force.frag
|
2020-03-16 09:42:05 -05:00
|
|
|
renderer_opengl/texture_filters/tex_coord.vert
|
|
|
|
renderer_opengl/texture_filters/xbrz/xbrz_freescale.frag
|
|
|
|
renderer_opengl/texture_filters/xbrz/xbrz_freescale.vert
|
|
|
|
)
|
|
|
|
|
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/generate_shaders.cmake)
|
|
|
|
|
|
|
|
foreach(shader_file ${SHADER_FILES})
|
|
|
|
get_filename_component(shader_file_name ${shader_file} NAME)
|
|
|
|
GetShaderHeaderFile(${shader_file_name})
|
|
|
|
list(APPEND SHADER_HEADERS ${shader_header_file})
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_custom_target(shaders
|
|
|
|
BYPRODUCTS ${SHADER_HEADERS}
|
2020-06-13 13:20:30 -05:00
|
|
|
COMMAND "${CMAKE_COMMAND}" -P ${CMAKE_CURRENT_SOURCE_DIR}/generate_shaders.cmake
|
2020-03-16 09:42:05 -05:00
|
|
|
SOURCES ${SHADER_FILES}
|
|
|
|
)
|
|
|
|
add_dependencies(video_core shaders)
|
|
|
|
|
|
|
|
target_include_directories(video_core PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2017-12-10 17:55:03 -06:00
|
|
|
create_target_directory_groups(video_core)
|
2014-04-28 21:40:39 -05:00
|
|
|
|
2017-05-27 20:26:55 -05:00
|
|
|
target_link_libraries(video_core PUBLIC common core)
|
2019-12-29 18:51:06 -06:00
|
|
|
target_link_libraries(video_core PRIVATE glad nihstro-headers Boost::serialization)
|
2022-09-21 11:36:12 -05:00
|
|
|
set_target_properties(video_core PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
|
2017-05-27 20:26:55 -05:00
|
|
|
|
2023-01-06 09:28:02 -06:00
|
|
|
if ("x86_64" IN_LIST ARCHITECTURE)
|
2017-11-24 21:17:30 -06:00
|
|
|
target_link_libraries(video_core PUBLIC xbyak)
|
2016-12-12 03:23:08 -06:00
|
|
|
endif()
|
2022-12-17 09:06:38 -06:00
|
|
|
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(video_core PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|