Fixed implicit type conversion for type specialization
This commit is contained in:
@@ -249,12 +249,12 @@ bool ShaderAssetBase::LoadShaderCache(ShaderCacheResult& result)
|
||||
options.SourceLength = sourceLength;
|
||||
options.Profile = shaderProfile;
|
||||
options.Output = &cacheStream;
|
||||
if (CommandLine::Options.ShaderDebug)
|
||||
if (CommandLine::Options.ShaderDebug.IsTrue())
|
||||
{
|
||||
options.GenerateDebugData = true;
|
||||
options.NoOptimize = true;
|
||||
}
|
||||
else if (CommandLine::Options.ShaderProfile)
|
||||
else if (CommandLine::Options.ShaderProfile.IsTrue())
|
||||
{
|
||||
options.GenerateDebugData = true;
|
||||
}
|
||||
|
||||
@@ -193,8 +193,8 @@ bool ShaderCacheManagerService::Init()
|
||||
CacheVersion cacheVersion;
|
||||
const String cacheVerFile = rootDir / TEXT("CacheVersion");
|
||||
#if USE_EDITOR
|
||||
const bool shaderDebug = CommandLine::Options.ShaderDebug;
|
||||
const bool shaderProfile = CommandLine::Options.ShaderProfile;
|
||||
const bool shaderDebug = CommandLine::Options.ShaderDebug.IsTrue();
|
||||
const bool shaderProfile = CommandLine::Options.ShaderProfile.IsTrue();
|
||||
#else
|
||||
const bool shaderDebug = false;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user