Merge remote-tracking branch 'origin/1.9' into 1.9

This commit is contained in:
Wojtek Figat
2024-07-02 00:58:25 +02:00
3 changed files with 5 additions and 3 deletions

View File

@@ -535,6 +535,9 @@ bool GlobalSurfaceAtlasPass::Init()
// Check platform support
const auto device = GPUDevice::Instance;
_supported = device->GetFeatureLevel() >= FeatureLevel::SM5 && device->Limits.HasCompute && device->Limits.HasTypedUAVLoad;
#if PLATFORM_APPLE_FAMILY
_supported = false; // Vulkan over Metal has some issues in complex scenes with DDGI
#endif
return false;
}

View File

@@ -179,8 +179,7 @@ namespace Flax.Build
using (new ProfileEventScope("GenerateProjects"))
{
// Pick the project format
HashSet<ProjectFormat> projectFormats = new HashSet<ProjectFormat>();
var projectFormats = new HashSet<ProjectFormat>();
if (Configuration.ProjectFormatVS2022)
projectFormats.Add(ProjectFormat.VisualStudio2022);
if (Configuration.ProjectFormatVS2019)
@@ -195,7 +194,6 @@ namespace Flax.Build
projectFormats.Add(ProjectFormat.VisualStudio2022);
if (!string.IsNullOrEmpty(Configuration.ProjectFormatCustom))
projectFormats.Add(ProjectFormat.Custom);
if (projectFormats.Count == 0)
projectFormats.Add(Platform.BuildPlatform.DefaultProjectFormat);

View File

@@ -553,6 +553,7 @@ namespace Flax.Build.Projects.VisualStudioCode
{
var toolchain = platform.GetToolchain(architecture);
var targetBuildOptions = Builder.GetBuildOptions(target, platform, toolchain, architecture, configuration, Globals.Root);
targetBuildOptions.Flags |= NativeCpp.BuildFlags.GenerateProject;
var modules = Builder.CollectModules(rules, platform, target, targetBuildOptions, toolchain, architecture, configuration);
foreach (var module in modules)
{