mirror of https://github.com/AxioDL/metaforce.git
Merge branch 'apple-silicon'
This commit is contained in:
commit
33568e6c01
|
@ -131,6 +131,7 @@ if(MSVC)
|
|||
endif()
|
||||
|
||||
else()
|
||||
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL x86_64)
|
||||
if(${URDE_VECTOR_ISA} STREQUAL "native")
|
||||
add_compile_options(-march=native)
|
||||
message(STATUS "Building with native ISA")
|
||||
|
@ -154,6 +155,7 @@ else()
|
|||
else()
|
||||
message(STATUS "Building with x87 Vector ISA")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
check_cxx_compiler_flag(-fno-plt HAS_NO_PLT)
|
||||
|
|
|
@ -85,6 +85,24 @@ add_executable(urde WIN32 MACOSX_BUNDLE
|
|||
Resource.hpp Resource.cpp
|
||||
Camera.hpp Camera.cpp
|
||||
GameMode.hpp GameMode.cpp)
|
||||
|
||||
target_compile_definitions(urde PUBLIC URDE_DLPACKAGE="${URDE_DLPACKAGE}")
|
||||
|
||||
target_include_directories(urde PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/Runtime # FIXME atdna cmake issue
|
||||
${CMAKE_BINARY_DIR})
|
||||
|
||||
target_link_libraries(urde
|
||||
UrdeIcons
|
||||
UrdeBadging
|
||||
RuntimeCommon
|
||||
amuse
|
||||
RetroDataSpec
|
||||
kabufuda
|
||||
${URDE_PLAT_LIBS})
|
||||
|
||||
target_atdna(urde atdna_Space.cpp Space.hpp)
|
||||
target_atdna(urde atdna_ResourceBrowser.cpp ResourceBrowser.hpp)
|
||||
target_atdna(urde atdna_ModelViewer.cpp ModelViewer.hpp)
|
||||
|
@ -92,15 +110,6 @@ target_atdna(urde atdna_ParticleEditor.cpp ParticleEditor.hpp)
|
|||
target_atdna(urde atdna_InformationCenter.cpp InformationCenter.hpp)
|
||||
target_atdna(urde atdna_GameMode.cpp GameMode.hpp)
|
||||
|
||||
target_compile_definitions(urde PUBLIC URDE_DLPACKAGE="${URDE_DLPACKAGE}")
|
||||
|
||||
target_include_directories(urde PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR})
|
||||
|
||||
target_link_libraries(urde
|
||||
UrdeIcons
|
||||
UrdeBadging
|
||||
RuntimeCommon
|
||||
${URDE_PLAT_LIBS})
|
||||
if(COMMAND add_sanitizers)
|
||||
add_sanitizers(urde)
|
||||
endif()
|
||||
|
|
|
@ -25,6 +25,7 @@ static hecl::SystemString CPUFeatureString(const zeus::CPUInfo& cpuInf) {
|
|||
features += _SYS_STR(", ");
|
||||
features += str;
|
||||
};
|
||||
#if __x86_64__
|
||||
if (cpuInf.AESNI)
|
||||
AddFeature(_SYS_STR("AES-NI"));
|
||||
if (cpuInf.SSE1)
|
||||
|
@ -45,6 +46,7 @@ static hecl::SystemString CPUFeatureString(const zeus::CPUInfo& cpuInf) {
|
|||
AddFeature(_SYS_STR("AVX"));
|
||||
if (cpuInf.AVX2)
|
||||
AddFeature(_SYS_STR("AVX2"));
|
||||
#endif
|
||||
return features;
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ cbuffer ThermalUniform : register(b2) {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if defined(URDE_THERMAL_COLD)
|
||||
#if defined(URDE_THERMAL_COLD) || defined(URDE_THERMAL_STATIC)
|
||||
float3 LightingFunc(in VertToFrag vtf) {
|
||||
return float3(1.0, 1.0, 1.0);
|
||||
}
|
||||
|
@ -279,6 +279,12 @@ float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(URDE_THERMAL_STATIC)
|
||||
float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
||||
return colorIn;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(URDE_SOLID)
|
||||
float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
||||
return solidColor;
|
||||
|
|
|
@ -136,7 +136,7 @@ float3 LightingFunc(thread VertToFrag& vtf, constant LightingUniform& lu, textur
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(URDE_THERMAL_COLD)
|
||||
#if defined(URDE_THERMAL_COLD) || defined(URDE_THERMAL_STATIC)
|
||||
struct LightingUniform {};
|
||||
float3 LightingFunc(thread VertToFrag& vtf, constant LightingUniform& lu, texture2d<float> extTex0, sampler clampSamp) {
|
||||
return float3(1.0, 1.0, 1.0);
|
||||
|
@ -267,6 +267,14 @@ float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(URDE_THERMAL_STATIC)
|
||||
float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
||||
texture2d<float> extTex0, texture2d<float> extTex1, texture2d<float> extTex2,
|
||||
sampler samp, sampler clampSamp, sampler clampEdgeSamp, float4 colorIn) {
|
||||
return colorIn;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(URDE_SOLID)
|
||||
float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
||||
texture2d<float> extTex0, texture2d<float> extTex1, texture2d<float> extTex2,
|
||||
|
|
2
amuse
2
amuse
|
@ -1 +1 @@
|
|||
Subproject commit 12752933271d7cf5ba48b8170e23c23c77257244
|
||||
Subproject commit d3c4f568bbe3dc5d74bd0e5d323b1450e651802c
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
|||
Subproject commit 2b75ffed470e6f9287da83bca72039ab2598c261
|
||||
Subproject commit eebc1a8b622acce6b71c91c132e9c1438a669d32
|
2
nod
2
nod
|
@ -1 +1 @@
|
|||
Subproject commit d53d6770386b5944a4e65251bde30596332bdc2c
|
||||
Subproject commit 02c188497af89e188edcc82387f787057739e530
|
2
specter
2
specter
|
@ -1 +1 @@
|
|||
Subproject commit 23f70151250ac08c78559ad71bf92e80912e678d
|
||||
Subproject commit 0fff9f75ccbb4f535a3f39c1589203e876080ddf
|
Loading…
Reference in New Issue