Merge branch '1.13' of https://gitlab.flaxengine.com/flax/flaxengine into 1.13
This commit is contained in:
@@ -24,13 +24,13 @@ runs:
|
||||
;;
|
||||
Darwin)
|
||||
export VULKAN_SDK_ROOT=`pwd`/../VulkanSDK
|
||||
curl -LO "https://sdk.lunarg.com/sdk/download/$VULKAN_SDK_VER/mac/vulkan-sdk.dmg"
|
||||
hdiutil attach vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk
|
||||
sudo "/Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan" --root $VULKAN_SDK_ROOT --accept-licenses --default-answer --confirm-command install
|
||||
curl -LO "https://sdk.lunarg.com/sdk/download/$VULKAN_SDK_VER/mac/vulkansdk-macos-$VULKAN_SDK_VER.zip"
|
||||
unzip vulkansdk-macos-$VULKAN_SDK_VER.zip
|
||||
sudo open -n vulkansdk-macos-$VULKAN_SDK_VER.app --args --root $VULKAN_SDK_ROOT --accept-licenses --default-answer --confirm-command install
|
||||
export VULKAN_SDK=$VULKAN_SDK_ROOT/macOS
|
||||
;;
|
||||
*) # Windows
|
||||
curl -L -o vulkan-sdk.exe https://sdk.lunarg.com/sdk/download/$VULKAN_SDK_VER/windows/VulkanSDK-$VULKAN_SDK_VER-Installer.exe
|
||||
curl -L -o vulkan-sdk.exe https://sdk.lunarg.com/sdk/download/$VULKAN_SDK_VER/windows/vulkansdk-windows-X64-$VULKAN_SDK_VER.exe
|
||||
./vulkan-sdk.exe --root "C:\VulkanSDK" --accept-licenses --default-answer --confirm-command install
|
||||
export VULKAN_SDK="C:\VulkanSDK"
|
||||
;;
|
||||
|
||||
@@ -280,12 +280,12 @@ void GPUDeviceVulkan::GetInstanceLayersAndExtensions(Array<const char*>& outInst
|
||||
}
|
||||
}
|
||||
|
||||
bool vkTrace = false;
|
||||
#if VULKAN_USE_DEBUG_LAYER
|
||||
if (!useDebugLayer)
|
||||
ValidationLevel = VulkanValidationLevel::Disabled;
|
||||
const bool useVkTrace = false;
|
||||
|
||||
bool vkTrace = false;
|
||||
if (useVkTrace && useDebugLayer)
|
||||
{
|
||||
const char* VkTraceName = "VK_LAYER_LUNARG_vktrace";
|
||||
|
||||
@@ -384,6 +384,7 @@ namespace Flax.Build
|
||||
}
|
||||
|
||||
// Prepare tasks for the execution
|
||||
Sdk.DelayedPrint();
|
||||
using (new ProfileEventScope("PrepareTasks"))
|
||||
{
|
||||
using (new ProfileEventScope("Setup"))
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace Flax.Build
|
||||
public abstract class Sdk
|
||||
{
|
||||
private static Dictionary<string, Sdk> _sdks;
|
||||
private static List<Sdk> _delayedPrints;
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if SDK is valid.
|
||||
@@ -53,14 +54,11 @@ namespace Flax.Build
|
||||
/// </summary>
|
||||
public static void Print()
|
||||
{
|
||||
_delayedPrints = null;
|
||||
Get(string.Empty);
|
||||
foreach (var e in _sdks)
|
||||
{
|
||||
var sdk = e.Value;
|
||||
if (sdk.IsValid)
|
||||
Log.Message(sdk.GetType().Name + ", " + sdk.Version + ", " + sdk.RootPath);
|
||||
else
|
||||
Log.Message(sdk.GetType().Name + ", missing");
|
||||
Print(e.Value);
|
||||
}
|
||||
foreach (var e in WindowsPlatformBase.GetSDKs())
|
||||
{
|
||||
@@ -70,6 +68,31 @@ namespace Flax.Build
|
||||
{
|
||||
Log.Message("Windows Toolset " + e.Key + ", " + e.Value);
|
||||
}
|
||||
_delayedPrints = new List<Sdk>();
|
||||
}
|
||||
|
||||
private static void Print(Sdk sdk)
|
||||
{
|
||||
if (sdk.IsValid)
|
||||
Log.Message(sdk.GetType().Name + ", " + sdk.Version + ", " + sdk.RootPath);
|
||||
else
|
||||
Log.Message(sdk.GetType().Name + ", missing");
|
||||
}
|
||||
|
||||
internal static void DelayedPrint()
|
||||
{
|
||||
if (_delayedPrints == null || _delayedPrints.Count == 0)
|
||||
return;
|
||||
foreach (var sdk in _delayedPrints)
|
||||
Print(sdk);
|
||||
_delayedPrints.Clear();
|
||||
}
|
||||
|
||||
protected Sdk()
|
||||
{
|
||||
// SDKs coming from dynamic build files (eg. plugins or modules) can be printed after they are initialized with a delay
|
||||
if (_delayedPrints != null)
|
||||
_delayedPrints.Add(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -165,6 +165,7 @@ namespace Flax.Build
|
||||
}
|
||||
|
||||
// Performance logging
|
||||
Sdk.DelayedPrint();
|
||||
if (Configuration.PerformanceInfo)
|
||||
{
|
||||
Log.Info(string.Empty);
|
||||
|
||||
Reference in New Issue
Block a user