Fix sorting of custom type declarations in HLSL
このコミットが含まれているのは:
1 親
a926a1211f
コミット
2cb61a3eec
2ファイル変更
+25
-22
検索条件に一致するファイルはありません
@@ -68,6 +68,18 @@ internal static class HlslSourceSyntaxProcessor
|
||||
writer.WriteLine(skipIfPresent: true);
|
||||
}
|
||||
|
||||
// Declared types (these have to be declared early on in the shader so that even if
|
||||
// forward declarations for types are not supported, like is the case for D2D shaders
|
||||
// using the FXC compiler, the resulting HLSL code is valid in case any forward
|
||||
// declaration of methods in the shader has one of these types in its signature).
|
||||
foreach (HlslUserType userType in typeDeclarations)
|
||||
{
|
||||
writer.WriteLine(skipIfPresent: true);
|
||||
writer.WriteLine(userType.Definition);
|
||||
}
|
||||
|
||||
writer.WriteLine(skipIfPresent: true);
|
||||
|
||||
// Forward declarations of shader/static methods
|
||||
foreach (HlslMethod method in processedMethods)
|
||||
{
|
||||
@@ -91,15 +103,6 @@ internal static class HlslSourceSyntaxProcessor
|
||||
}
|
||||
|
||||
writer.WriteLine(skipIfPresent: true);
|
||||
|
||||
// Declared types
|
||||
foreach (HlslUserType userType in typeDeclarations)
|
||||
{
|
||||
writer.WriteLine(skipIfPresent: true);
|
||||
writer.WriteLine(userType.Definition);
|
||||
}
|
||||
|
||||
writer.WriteLine(skipIfPresent: true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする