Fix D3D12 shader cache invalidation for cooker building for Windows

This commit is contained in:
Wojciech Figat
2022-03-28 20:43:14 +02:00
parent 2b9a03d9bc
commit 3c4fd80f6e
5 changed files with 9 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
"Version": {
"Major": 1,
"Minor": 3,
"Build": 6228
"Build": 6229
},
"Company": "Flax",
"Copyright": "Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.",

View File

@@ -221,6 +221,7 @@ void CookAssetsStep::CacheData::Load(CookingData& data)
{
const auto settings = WindowsPlatformSettings::Get();
const bool modified =
Settings.Windows.SupportDX12 != settings->SupportDX12 ||
Settings.Windows.SupportDX11 != settings->SupportDX11 ||
Settings.Windows.SupportDX10 != settings->SupportDX10 ||
Settings.Windows.SupportVulkan != settings->SupportVulkan;
@@ -1025,6 +1026,7 @@ bool CookAssetsStep::Perform(CookingData& data)
#if PLATFORM_TOOLS_WINDOWS
{
const auto settings = WindowsPlatformSettings::Get();
cache.Settings.Windows.SupportDX12 = settings->SupportDX12;
cache.Settings.Windows.SupportDX11 = settings->SupportDX11;
cache.Settings.Windows.SupportDX10 = settings->SupportDX10;
cache.Settings.Windows.SupportVulkan = settings->SupportVulkan;

View File

@@ -75,6 +75,7 @@ public:
{
struct
{
bool SupportDX12;
bool SupportDX11;
bool SupportDX10;
bool SupportVulkan;

View File

@@ -13,5 +13,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("b8442186-4a70-7c85-704a-857cc7990797")]
[assembly: AssemblyVersion("1.3.6228")]
[assembly: AssemblyFileVersion("1.3.6228")]
[assembly: AssemblyVersion("1.3.6229")]
[assembly: AssemblyFileVersion("1.3.6229")]

View File

@@ -3,11 +3,11 @@
#pragma once
#define FLAXENGINE_NAME "FlaxEngine"
#define FLAXENGINE_VERSION Version(1, 3, 6228)
#define FLAXENGINE_VERSION_TEXT "1.3.6228"
#define FLAXENGINE_VERSION Version(1, 3, 6229)
#define FLAXENGINE_VERSION_TEXT "1.3.6229"
#define FLAXENGINE_VERSION_MAJOR 1
#define FLAXENGINE_VERSION_MINOR 3
#define FLAXENGINE_VERSION_BUILD 6228
#define FLAXENGINE_VERSION_BUILD 6229
#define FLAXENGINE_COMPANY "Flax"
#define FLAXENGINE_COPYRIGHT "Copyright (c) 2012-2022 Wojciech Figat. All rights reserved."