Implemented source generator support for interfaces

このコミットが含まれているのは:
Sergio Pedri committed 2021-01-06 18:01:03 +01:00
1 親 958fa15a11
コミット 2c90b7a92c
4ファイル変更
+61 -7

検索条件に一致するファイルはありません

+6 -2
ファイルの表示
@@ -79,7 +79,9 @@ namespace ComputeSharp.Shaders.Mappings
genericType == typeof(ReadOnlyTexture2D<>) ||
genericType == typeof(ReadOnlyTexture2D<,>) ||
genericType == typeof(ReadOnlyTexture3D<>) ||
genericType == typeof(ReadOnlyTexture3D<,>);
genericType == typeof(ReadOnlyTexture3D<,>) ||
genericType == typeof(IReadOnlyTexture2D<>) ||
genericType == typeof(IReadOnlyTexture3D<>);
}
/// <summary>
@@ -99,7 +101,9 @@ namespace ComputeSharp.Shaders.Mappings
genericType == typeof(ReadWriteTexture2D<>) ||
genericType == typeof(ReadWriteTexture2D<,>) ||
genericType == typeof(ReadWriteTexture3D<>) ||
genericType == typeof(ReadWriteTexture3D<,>);
genericType == typeof(ReadWriteTexture3D<,>) ||
genericType == typeof(IReadWriteTexture2D<>) ||
genericType == typeof(IReadWriteTexture3D<>); ;
}
}
}