Fixed handling of constants in source generators
このコミットが含まれているのは:
1 親
30fb7f448c
コミット
3daafd3e16
2ファイル変更
+6
-5
検索条件に一致するファイルはありません
@@ -141,6 +141,8 @@ namespace ComputeSharp.SourceGenerators
|
||||
}
|
||||
else if (HlslKnownTypes.IsScalarOrVectorType(typeName))
|
||||
{
|
||||
if (fieldSymbol.IsConst) continue;
|
||||
|
||||
var (fieldSize, fieldPack) = HlslKnownSizes.GetTypeInfo(typeName);
|
||||
|
||||
// Calculate the right offset with 16-bytes padding (HLSL constant buffer).
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする