Prevent bool fields in custom struct types in shaders
These are not allowed due to alignment reasons
このコミットが含まれているのは:
1 親
f68d56fcec
コミット
1e3611a060
4ファイル変更
+44
-4
検索条件に一致するファイルはありません
@@ -707,10 +707,10 @@ partial class DiagnosticDescriptors
|
||||
public static readonly DiagnosticDescriptor InvalidDiscoveredType = new DiagnosticDescriptor(
|
||||
id: "CMPS0050",
|
||||
title: "Invalid discovered type",
|
||||
messageFormat: "The compute shader or method {0} uses the invalid type {1} (only some .NET primitives and vector types, HLSL primitive, vector and matrix types, and custom types containing these types can be used)",
|
||||
messageFormat: "The compute shader or method {0} uses the invalid type {1} (only some .NET primitives and vector types, HLSL primitive, vector and matrix types, and custom types containing these types can be used, and bool fields in custom struct types have to be replaced with the ComputeSharp.Bool type for alignment reasons)",
|
||||
category: "ComputeSharp.Shaders",
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "Shaders and shader methods can only use supported types (some .NET primitives and vector types, HLSL primitive, vector and matrix types, and custom types containing these types can be used).",
|
||||
description: "Shaders and shader methods can only use supported types (some .NET primitives and vector types, HLSL primitive, vector and matrix types, and custom types containing these types can be used, and bool fields in custom struct types have to be replaced with the ComputeSharp.Bool type for alignment reasons).",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする