Merge pull request #597 from Sergio0694/dev/version-update
Obsolete APIs to remove, bump package version
このコミットが含まれているのは:
6ファイル変更
+21
-1
検索条件に一致するファイルはありません
@@ -60,7 +60,7 @@
|
||||
As such, this needs to be changed before a new release as well.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<ComputeSharpPackageVersion>2.1.0</ComputeSharpPackageVersion>
|
||||
<ComputeSharpPackageVersion>2.2.0</ComputeSharpPackageVersion>
|
||||
<IsCommitOnReleaseBranch>false</IsCommitOnReleaseBranch>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
|
||||
<!-- Samples don't need public XML docs for all APIs -->
|
||||
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
||||
|
||||
<!-- Ignore obsolete warnings (due to APIs pending removal for 3.0) -->
|
||||
<NoWarn>$(NoWarn);CS0618</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Reference PolySharp for all .NET Standard 2.0 sample projects -->
|
||||
|
||||
@@ -9,6 +9,8 @@ using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
|
||||
namespace ComputeSharp.Core.SourceGenerators;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
@@ -23,6 +23,9 @@
|
||||
|
||||
<!-- Missing readonly modifier for readonly struct members (not needed in tests) -->
|
||||
<NoWarn>$(NoWarn);IDE0251</NoWarn>
|
||||
|
||||
<!-- Ignore obsolete warnings (due to APIs pending removal for 3.0) -->
|
||||
<NoWarn>$(NoWarn);CS0618</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Reference PolySharp for all .NET Standard 2.0 test projects -->
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする