Add obsolete annotations to APIs removed in 3.0

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-08 23:04:43 +02:00
1 親 ec6f63e38a
コミット 495bd89f40
2ファイル変更
+12

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

+6
ファイルの表示
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
namespace ComputeSharp;
@@ -6,6 +7,11 @@ namespace ComputeSharp;
/// An attribute that indicates that a target shader type should get an automatic constructor for all fields.
/// </summary>
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(
"This API (and its accompanying source generator) is being removed in a future version of ComputeSharp. " +
"If you're relying on this functionality, consider switching to primary constructors, once they are supported. " +
"Otherwise, consider using alternative source generators providing similar functionality available on NuGet.")]
public sealed class AutoConstructorAttribute : Attribute
{
}