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
{
}
+6
ファイルの表示
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
namespace ComputeSharp;
@@ -10,6 +11,11 @@ namespace ComputeSharp;
/// Methods also need to be static, though this can only be tested at runtime.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(
"This API (and shader metaprogramming in general) is being removed in a future version of ComputeSharp. " +
"If you're relying on this functionality, consider manually implementing different shader variants. " +
"It is possible to still reuse code by moving it to helper methods that are used by multiple shaders.")]
public sealed class ShaderMethodAttribute : Attribute
{
}