2023-04-21 07:14:55 +00:00
|
|
|
add_subdirectory(host_shaders)
|
|
|
|
|
2017-12-10 23:55:03 +00:00
|
|
|
add_library(video_core STATIC
|
|
|
|
command_processor.cpp
|
|
|
|
command_processor.h
|
2023-04-27 04:38:28 +00:00
|
|
|
custom_textures/custom_format.cpp
|
|
|
|
custom_textures/custom_format.h
|
|
|
|
custom_textures/custom_tex_manager.cpp
|
|
|
|
custom_textures/custom_tex_manager.h
|
|
|
|
custom_textures/material.cpp
|
|
|
|
custom_textures/material.h
|
2017-12-10 23:55:03 +00:00
|
|
|
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 15:06:38 +00:00
|
|
|
precompiled_headers.h
|
2017-12-10 23:55:03 +00:00
|
|
|
primitive_assembly.cpp
|
|
|
|
primitive_assembly.h
|
2023-03-27 11:29:17 +00:00
|
|
|
rasterizer_accelerated.cpp
|
|
|
|
rasterizer_accelerated.h
|
2017-12-10 23:55:03 +00:00
|
|
|
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
|
2023-04-21 07:14:55 +00:00
|
|
|
rasterizer_cache/framebuffer_base.h
|
|
|
|
rasterizer_cache/pixel_format.cpp
|
2022-08-20 09:17:31 +00:00
|
|
|
rasterizer_cache/pixel_format.h
|
2022-08-20 08:40:49 +00:00
|
|
|
rasterizer_cache/rasterizer_cache.cpp
|
|
|
|
rasterizer_cache/rasterizer_cache.h
|
2023-05-06 23:34:28 +00:00
|
|
|
rasterizer_cache/rasterizer_cache_base.h
|
|
|
|
rasterizer_cache/sampler_params.h
|
2023-07-18 14:31:31 +00:00
|
|
|
rasterizer_cache/slot_id.h
|
2023-04-21 07:14:55 +00:00
|
|
|
rasterizer_cache/surface_base.cpp
|
|
|
|
rasterizer_cache/surface_base.h
|
2022-08-20 08:40:49 +00:00
|
|
|
rasterizer_cache/surface_params.cpp
|
|
|
|
rasterizer_cache/surface_params.h
|
2023-04-21 07:14:55 +00:00
|
|
|
rasterizer_cache/texture_codec.h
|
2023-07-18 14:31:31 +00:00
|
|
|
rasterizer_cache/texture_cube.h
|
2023-04-21 07:14:55 +00:00
|
|
|
rasterizer_cache/utils.cpp
|
|
|
|
rasterizer_cache/utils.h
|
2020-01-28 13:57:30 +00:00
|
|
|
renderer_opengl/frame_dumper_opengl.cpp
|
|
|
|
renderer_opengl/frame_dumper_opengl.h
|
2023-04-21 07:14:55 +00:00
|
|
|
renderer_opengl/gl_blit_helper.cpp
|
|
|
|
renderer_opengl/gl_blit_helper.h
|
2023-03-27 11:29:17 +00:00
|
|
|
renderer_opengl/gl_driver.cpp
|
|
|
|
renderer_opengl/gl_driver.h
|
2017-12-10 23:55:03 +00:00
|
|
|
renderer_opengl/gl_rasterizer.cpp
|
|
|
|
renderer_opengl/gl_rasterizer.h
|
2023-05-06 23:34:28 +00:00
|
|
|
renderer_opengl/gl_rasterizer_cache.cpp
|
2018-11-06 09:40:49 +00:00
|
|
|
renderer_opengl/gl_resource_manager.cpp
|
2017-12-10 23:55:03 +00:00
|
|
|
renderer_opengl/gl_resource_manager.h
|
2018-03-23 23:51:06 +00:00
|
|
|
renderer_opengl/gl_shader_decompiler.cpp
|
|
|
|
renderer_opengl/gl_shader_decompiler.h
|
2019-09-07 22:11:09 +00:00
|
|
|
renderer_opengl/gl_shader_disk_cache.cpp
|
|
|
|
renderer_opengl/gl_shader_disk_cache.h
|
2017-12-10 23:55:03 +00:00
|
|
|
renderer_opengl/gl_shader_gen.cpp
|
|
|
|
renderer_opengl/gl_shader_gen.h
|
2018-04-09 21:31:11 +00:00
|
|
|
renderer_opengl/gl_shader_manager.cpp
|
|
|
|
renderer_opengl/gl_shader_manager.h
|
2017-12-10 23:55:03 +00: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 09:56:30 +00:00
|
|
|
renderer_opengl/gl_stream_buffer.cpp
|
|
|
|
renderer_opengl/gl_stream_buffer.h
|
2023-08-01 00:35:41 +00:00
|
|
|
renderer_opengl/gl_texture_mailbox.cpp
|
|
|
|
renderer_opengl/gl_texture_mailbox.h
|
2023-04-21 07:14:55 +00:00
|
|
|
renderer_opengl/gl_texture_runtime.cpp
|
|
|
|
renderer_opengl/gl_texture_runtime.h
|
2019-01-30 20:10:33 +00:00
|
|
|
renderer_opengl/gl_vars.cpp
|
|
|
|
renderer_opengl/gl_vars.h
|
2017-12-10 23:55:03 +00:00
|
|
|
renderer_opengl/pica_to_gl.h
|
2019-08-09 18:00:47 +00:00
|
|
|
renderer_opengl/post_processing_opengl.cpp
|
|
|
|
renderer_opengl/post_processing_opengl.h
|
2017-12-10 23:55:03 +00:00
|
|
|
renderer_opengl/renderer_opengl.cpp
|
|
|
|
renderer_opengl/renderer_opengl.h
|
2023-03-27 11:29:17 +00:00
|
|
|
renderer_software/renderer_software.cpp
|
|
|
|
renderer_software/renderer_software.h
|
|
|
|
renderer_software/sw_clipper.cpp
|
|
|
|
renderer_software/sw_clipper.h
|
|
|
|
renderer_software/sw_framebuffer.cpp
|
|
|
|
renderer_software/sw_framebuffer.h
|
|
|
|
renderer_software/sw_lighting.cpp
|
|
|
|
renderer_software/sw_lighting.h
|
|
|
|
renderer_software/sw_proctex.cpp
|
|
|
|
renderer_software/sw_proctex.h
|
|
|
|
renderer_software/sw_rasterizer.cpp
|
|
|
|
renderer_software/sw_rasterizer.h
|
|
|
|
renderer_software/sw_texturing.cpp
|
|
|
|
renderer_software/sw_texturing.h
|
2023-06-20 12:24:24 +00:00
|
|
|
renderer_vulkan/pica_to_vk.h
|
|
|
|
renderer_vulkan/vk_common.cpp
|
|
|
|
renderer_vulkan/vk_common.h
|
|
|
|
renderer_vulkan/vk_instance.cpp
|
|
|
|
renderer_vulkan/vk_instance.h
|
|
|
|
renderer_vulkan/vk_platform.cpp
|
|
|
|
renderer_vulkan/vk_platform.h
|
2023-06-26 14:22:51 +00:00
|
|
|
renderer_vulkan/vk_shader_gen.cpp
|
|
|
|
renderer_vulkan/vk_shader_gen.h
|
|
|
|
renderer_vulkan/vk_shader_gen_spv.cpp
|
|
|
|
renderer_vulkan/vk_shader_gen_spv.h
|
|
|
|
renderer_vulkan/vk_shader_util.cpp
|
|
|
|
renderer_vulkan/vk_shader_util.h
|
2017-12-10 23:55:03 +00:00
|
|
|
shader/debug_data.h
|
|
|
|
shader/shader.cpp
|
|
|
|
shader/shader.h
|
|
|
|
shader/shader_interpreter.cpp
|
|
|
|
shader/shader_interpreter.h
|
2023-01-06 15:28:02 +00:00
|
|
|
shader/shader_jit_x64.cpp
|
|
|
|
shader/shader_jit_x64_compiler.cpp
|
|
|
|
shader/shader_jit_x64.h
|
|
|
|
shader/shader_jit_x64_compiler.h
|
2023-03-27 11:29:17 +00:00
|
|
|
shader/shader_uniforms.cpp
|
|
|
|
shader/shader_uniforms.h
|
2017-12-10 23:55:03 +00:00
|
|
|
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-24 01:22:05 +00:00
|
|
|
|
2023-04-21 07:14:55 +00:00
|
|
|
add_dependencies(video_core host_shaders)
|
|
|
|
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
|
2020-03-16 14:42:05 +00:00
|
|
|
|
2017-12-10 23:55:03 +00:00
|
|
|
create_target_directory_groups(video_core)
|
2014-04-29 02:40:39 +00:00
|
|
|
|
2023-04-28 20:02:53 +00:00
|
|
|
target_link_libraries(video_core PUBLIC citra_common citra_core)
|
2023-06-20 12:24:24 +00:00
|
|
|
target_link_libraries(video_core PRIVATE Boost::serialization dds-ktx json-headers nihstro-headers tsl::robin_map)
|
2023-06-26 14:22:51 +00:00
|
|
|
target_link_libraries(video_core PRIVATE vulkan-headers vma glad sirit SPIRV glslang)
|
2022-09-21 16:36:12 +00:00
|
|
|
set_target_properties(video_core PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
|
2017-05-28 01:26:55 +00:00
|
|
|
|
2023-01-06 15:28:02 +00:00
|
|
|
if ("x86_64" IN_LIST ARCHITECTURE)
|
2017-11-25 03:17:30 +00:00
|
|
|
target_link_libraries(video_core PUBLIC xbyak)
|
2016-12-12 09:23:08 +00:00
|
|
|
endif()
|
2022-12-17 15:06:38 +00:00
|
|
|
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(video_core PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|