Fix source generators when using some non-US locales
このコミットが含まれているのは:
1 親
1445dbc50a
コミット
b9127acb36
8ファイル変更
+23
-19
検索条件に一致するファイルはありません
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
@@ -169,9 +170,9 @@ partial class IShaderGenerator
|
||||
|
||||
// Replace the actual thread num values
|
||||
hlslSource = hlslSource
|
||||
.Replace("<THREADSX>", threadIds.X.ToString())
|
||||
.Replace("<THREADSY>", threadIds.Y.ToString())
|
||||
.Replace("<THREADSZ>", threadIds.Z.ToString());
|
||||
.Replace("<THREADSX>", threadIds.X.ToString(CultureInfo.InvariantCulture))
|
||||
.Replace("<THREADSY>", threadIds.Y.ToString(CultureInfo.InvariantCulture))
|
||||
.Replace("<THREADSZ>", threadIds.Z.ToString(CultureInfo.InvariantCulture));
|
||||
|
||||
// Compile the shader bytecode
|
||||
using ComPtr<IDxcBlob> dxcBlobBytecode = ShaderCompiler.Instance.Compile(hlslSource.AsSpan());
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする