|
|
|
@ -115,6 +115,70 @@ add_library(video_core STATIC
|
|
|
|
|
renderer_opengl/renderer_opengl.h
|
|
|
|
|
renderer_opengl/utils.cpp
|
|
|
|
|
renderer_opengl/utils.h
|
|
|
|
|
renderer_vulkan/fixed_pipeline_state.cpp
|
|
|
|
|
renderer_vulkan/fixed_pipeline_state.h
|
|
|
|
|
renderer_vulkan/maxwell_to_vk.cpp
|
|
|
|
|
renderer_vulkan/maxwell_to_vk.h
|
|
|
|
|
renderer_vulkan/nsight_aftermath_tracker.cpp
|
|
|
|
|
renderer_vulkan/nsight_aftermath_tracker.h
|
|
|
|
|
renderer_vulkan/renderer_vulkan.h
|
|
|
|
|
renderer_vulkan/renderer_vulkan.cpp
|
|
|
|
|
renderer_vulkan/vk_blit_screen.cpp
|
|
|
|
|
renderer_vulkan/vk_blit_screen.h
|
|
|
|
|
renderer_vulkan/vk_buffer_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_buffer_cache.h
|
|
|
|
|
renderer_vulkan/vk_command_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_command_pool.h
|
|
|
|
|
renderer_vulkan/vk_compute_pass.cpp
|
|
|
|
|
renderer_vulkan/vk_compute_pass.h
|
|
|
|
|
renderer_vulkan/vk_compute_pipeline.cpp
|
|
|
|
|
renderer_vulkan/vk_compute_pipeline.h
|
|
|
|
|
renderer_vulkan/vk_descriptor_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_descriptor_pool.h
|
|
|
|
|
renderer_vulkan/vk_device.cpp
|
|
|
|
|
renderer_vulkan/vk_device.h
|
|
|
|
|
renderer_vulkan/vk_fence_manager.cpp
|
|
|
|
|
renderer_vulkan/vk_fence_manager.h
|
|
|
|
|
renderer_vulkan/vk_graphics_pipeline.cpp
|
|
|
|
|
renderer_vulkan/vk_graphics_pipeline.h
|
|
|
|
|
renderer_vulkan/vk_image.cpp
|
|
|
|
|
renderer_vulkan/vk_image.h
|
|
|
|
|
renderer_vulkan/vk_master_semaphore.cpp
|
|
|
|
|
renderer_vulkan/vk_master_semaphore.h
|
|
|
|
|
renderer_vulkan/vk_memory_manager.cpp
|
|
|
|
|
renderer_vulkan/vk_memory_manager.h
|
|
|
|
|
renderer_vulkan/vk_pipeline_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_pipeline_cache.h
|
|
|
|
|
renderer_vulkan/vk_query_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_query_cache.h
|
|
|
|
|
renderer_vulkan/vk_rasterizer.cpp
|
|
|
|
|
renderer_vulkan/vk_rasterizer.h
|
|
|
|
|
renderer_vulkan/vk_renderpass_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_renderpass_cache.h
|
|
|
|
|
renderer_vulkan/vk_resource_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_resource_pool.h
|
|
|
|
|
renderer_vulkan/vk_sampler_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_sampler_cache.h
|
|
|
|
|
renderer_vulkan/vk_scheduler.cpp
|
|
|
|
|
renderer_vulkan/vk_scheduler.h
|
|
|
|
|
renderer_vulkan/vk_shader_decompiler.cpp
|
|
|
|
|
renderer_vulkan/vk_shader_decompiler.h
|
|
|
|
|
renderer_vulkan/vk_shader_util.cpp
|
|
|
|
|
renderer_vulkan/vk_shader_util.h
|
|
|
|
|
renderer_vulkan/vk_staging_buffer_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_staging_buffer_pool.h
|
|
|
|
|
renderer_vulkan/vk_state_tracker.cpp
|
|
|
|
|
renderer_vulkan/vk_state_tracker.h
|
|
|
|
|
renderer_vulkan/vk_stream_buffer.cpp
|
|
|
|
|
renderer_vulkan/vk_stream_buffer.h
|
|
|
|
|
renderer_vulkan/vk_swapchain.cpp
|
|
|
|
|
renderer_vulkan/vk_swapchain.h
|
|
|
|
|
renderer_vulkan/vk_texture_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_texture_cache.h
|
|
|
|
|
renderer_vulkan/vk_update_descriptor.cpp
|
|
|
|
|
renderer_vulkan/vk_update_descriptor.h
|
|
|
|
|
renderer_vulkan/wrapper.cpp
|
|
|
|
|
renderer_vulkan/wrapper.h
|
|
|
|
|
sampler_cache.cpp
|
|
|
|
|
sampler_cache.h
|
|
|
|
|
shader_cache.h
|
|
|
|
@ -194,75 +258,6 @@ add_library(video_core STATIC
|
|
|
|
|
video_core.h
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if (ENABLE_VULKAN)
|
|
|
|
|
target_sources(video_core PRIVATE
|
|
|
|
|
renderer_vulkan/fixed_pipeline_state.cpp
|
|
|
|
|
renderer_vulkan/fixed_pipeline_state.h
|
|
|
|
|
renderer_vulkan/maxwell_to_vk.cpp
|
|
|
|
|
renderer_vulkan/maxwell_to_vk.h
|
|
|
|
|
renderer_vulkan/nsight_aftermath_tracker.cpp
|
|
|
|
|
renderer_vulkan/nsight_aftermath_tracker.h
|
|
|
|
|
renderer_vulkan/renderer_vulkan.h
|
|
|
|
|
renderer_vulkan/renderer_vulkan.cpp
|
|
|
|
|
renderer_vulkan/vk_blit_screen.cpp
|
|
|
|
|
renderer_vulkan/vk_blit_screen.h
|
|
|
|
|
renderer_vulkan/vk_buffer_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_buffer_cache.h
|
|
|
|
|
renderer_vulkan/vk_command_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_command_pool.h
|
|
|
|
|
renderer_vulkan/vk_compute_pass.cpp
|
|
|
|
|
renderer_vulkan/vk_compute_pass.h
|
|
|
|
|
renderer_vulkan/vk_compute_pipeline.cpp
|
|
|
|
|
renderer_vulkan/vk_compute_pipeline.h
|
|
|
|
|
renderer_vulkan/vk_descriptor_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_descriptor_pool.h
|
|
|
|
|
renderer_vulkan/vk_device.cpp
|
|
|
|
|
renderer_vulkan/vk_device.h
|
|
|
|
|
renderer_vulkan/vk_fence_manager.cpp
|
|
|
|
|
renderer_vulkan/vk_fence_manager.h
|
|
|
|
|
renderer_vulkan/vk_graphics_pipeline.cpp
|
|
|
|
|
renderer_vulkan/vk_graphics_pipeline.h
|
|
|
|
|
renderer_vulkan/vk_image.cpp
|
|
|
|
|
renderer_vulkan/vk_image.h
|
|
|
|
|
renderer_vulkan/vk_master_semaphore.cpp
|
|
|
|
|
renderer_vulkan/vk_master_semaphore.h
|
|
|
|
|
renderer_vulkan/vk_memory_manager.cpp
|
|
|
|
|
renderer_vulkan/vk_memory_manager.h
|
|
|
|
|
renderer_vulkan/vk_pipeline_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_pipeline_cache.h
|
|
|
|
|
renderer_vulkan/vk_query_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_query_cache.h
|
|
|
|
|
renderer_vulkan/vk_rasterizer.cpp
|
|
|
|
|
renderer_vulkan/vk_rasterizer.h
|
|
|
|
|
renderer_vulkan/vk_renderpass_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_renderpass_cache.h
|
|
|
|
|
renderer_vulkan/vk_resource_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_resource_pool.h
|
|
|
|
|
renderer_vulkan/vk_sampler_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_sampler_cache.h
|
|
|
|
|
renderer_vulkan/vk_scheduler.cpp
|
|
|
|
|
renderer_vulkan/vk_scheduler.h
|
|
|
|
|
renderer_vulkan/vk_shader_decompiler.cpp
|
|
|
|
|
renderer_vulkan/vk_shader_decompiler.h
|
|
|
|
|
renderer_vulkan/vk_shader_util.cpp
|
|
|
|
|
renderer_vulkan/vk_shader_util.h
|
|
|
|
|
renderer_vulkan/vk_staging_buffer_pool.cpp
|
|
|
|
|
renderer_vulkan/vk_staging_buffer_pool.h
|
|
|
|
|
renderer_vulkan/vk_state_tracker.cpp
|
|
|
|
|
renderer_vulkan/vk_state_tracker.h
|
|
|
|
|
renderer_vulkan/vk_stream_buffer.cpp
|
|
|
|
|
renderer_vulkan/vk_stream_buffer.h
|
|
|
|
|
renderer_vulkan/vk_swapchain.cpp
|
|
|
|
|
renderer_vulkan/vk_swapchain.h
|
|
|
|
|
renderer_vulkan/vk_texture_cache.cpp
|
|
|
|
|
renderer_vulkan/vk_texture_cache.h
|
|
|
|
|
renderer_vulkan/vk_update_descriptor.cpp
|
|
|
|
|
renderer_vulkan/vk_update_descriptor.h
|
|
|
|
|
renderer_vulkan/wrapper.cpp
|
|
|
|
|
renderer_vulkan/wrapper.h
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
create_target_directory_groups(video_core)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(video_core PUBLIC common core)
|
|
|
|
@ -278,12 +273,8 @@ endif()
|
|
|
|
|
|
|
|
|
|
add_dependencies(video_core host_shaders)
|
|
|
|
|
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
|
|
|
|
|
|
|
|
|
|
if (ENABLE_VULKAN)
|
|
|
|
|
target_include_directories(video_core PRIVATE sirit ../../externals/Vulkan-Headers/include)
|
|
|
|
|
target_compile_definitions(video_core PRIVATE HAS_VULKAN)
|
|
|
|
|
target_link_libraries(video_core PRIVATE sirit)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (ENABLE_NSIGHT_AFTERMATH)
|
|
|
|
|
if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK})
|
|
|
|
|