mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
VideoCommon: add common spirv helper functions
Co-authored-by: tellowkrinkle <tellowkrinkle@gmail.com>
This commit is contained in:
@ -74,6 +74,8 @@ add_library(videocommon
|
||||
ShaderCache.h
|
||||
ShaderGenCommon.cpp
|
||||
ShaderGenCommon.h
|
||||
Spirv.cpp
|
||||
Spirv.h
|
||||
Statistics.cpp
|
||||
Statistics.h
|
||||
TextureCacheBase.cpp
|
||||
@ -139,6 +141,7 @@ PRIVATE
|
||||
png
|
||||
xxhash
|
||||
imgui
|
||||
glslang
|
||||
)
|
||||
|
||||
if(_M_X86)
|
||||
@ -181,6 +184,16 @@ if(FFmpeg_FOUND)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# 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
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
# Add precompiled header
|
||||
target_link_libraries(videocommon PRIVATE use_pch)
|
||||
|
Reference in New Issue
Block a user