mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Fix more compiler warnings/errors
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Documentation">
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Label="License">
|
||||
<None Include="$(MSBuildThisFileDirectory)osu-framework.licenseheader">
|
||||
<Link>osu-framework.licenseheader</Link>
|
||||
|
||||
@@ -3,4 +3,8 @@
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>$(MSBuildThisFileDirectory)app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Documentation">
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
@@ -3,4 +3,8 @@
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>$(MSBuildThisFileDirectory)app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Documentation">
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace osu.Framework.Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks whether this <see cref="MemberInfo"/> is supported on the current runtime platform as specified by
|
||||
/// <see cref="SupportedOSPlatformAttribute"/> and <see cref="UnsupportedOSPlatformAttribute"/>.
|
||||
/// [SupportedOSPlatform] and [UnsupportedOSPlatform].
|
||||
/// </summary>
|
||||
/// <param name="member">The <see cref="MemberInfo"/> to check the attributes of.</param>
|
||||
/// <returns><c>true</c> if this <paramref name="member"/> is supported, false otherwise.</returns>
|
||||
@@ -34,7 +34,7 @@ namespace osu.Framework.Extensions
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns whether the provided <see cref="OSPlatformAttribute"/> matches the current (runtime) platform.
|
||||
/// Returns whether the provided [OSPlatformAttribute] matches the current (runtime) platform.
|
||||
/// </summary>
|
||||
/// <remarks>This is currently a naive check which doesn't support specific OS versions.</remarks>
|
||||
private static bool matchesCurrentPlatform(OSPlatformAttribute attribute)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace osu.Framework.Graphics.Veldrid.Batches
|
||||
/// Most documentation recommends that three buffers are used to avoid contention.
|
||||
///
|
||||
/// We already have a triple buffer (see <see cref="GameHost.DrawRoots"/>) governing draw nodes.
|
||||
/// In theory we could set this to two, but there's also a global usage of a vertex batch in <see cref="VeldridRenderer"/> (see <see cref="VeldridRenderer.DefaultQuadBatch"/>).
|
||||
/// In theory we could set this to two, but there's also a global usage of a vertex batch in <see cref="VeldridRenderer"/> (see <see cref="Renderer.DefaultQuadBatch"/>).
|
||||
///
|
||||
/// So this is for now an unfortunate memory overhead. Further work could be done to provide
|
||||
/// these in a way they were not created per draw-node, reducing buffer overhead from 9 to 3.
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace osu.Framework.Graphics.Veldrid.Shaders
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="VeldridShaderPart"/> based off this shader with a list of attributes passed through as input & output.
|
||||
/// Creates a <see cref="VeldridShaderPart"/> based off this shader with a list of attributes passed through as input & output.
|
||||
/// Attributes from the list that are already defined in this shader will be ignored.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -154,7 +154,7 @@ namespace osu.Framework.Graphics.Veldrid.Shaders
|
||||
/// This creates a new <see cref="VeldridShaderPart"/> rather than altering this existing instance since this is cached at a <see cref="IShaderStore"/> level and should remain immutable.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <param name="attributes">The list of attributes to include in the shader as input & output.</param>
|
||||
/// <param name="attributes">The list of attributes to include in the shader as input & output.</param>
|
||||
public VeldridShaderPart WithPassthroughInput(IReadOnlyList<VeldridShaderAttribute> attributes)
|
||||
{
|
||||
string result = code;
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace osu.Framework.Utils
|
||||
/// <param name="learningRate">The rate of optimization. Larger values converge faster but can be unstable.</param>
|
||||
/// <param name="b1">The B1 parameter for the Adam optimizer. Between 0 and 1.</param>
|
||||
/// <param name="b2">The B2 parameter for the Adam optimizer. Between 0 and 1.</param>
|
||||
/// <param name="initialControlPoints">The initial bezier control points to use before optimization. The length of this list should be equal to <see cref="numControlPoints"/>.</param>
|
||||
/// <param name="initialControlPoints">The initial bezier control points to use before optimization. The length of this list should be equal to <paramref name="numControlPoints"/>.</param>
|
||||
/// <param name="learnableMask">Mask determining which control point positions are fixed and cannot be changed by the optimiser.</param>
|
||||
/// <returns>A List of vectors representing the bezier control points.</returns>
|
||||
public static List<Vector2> PiecewiseLinearToBezier(ReadOnlySpan<Vector2> inputPath,
|
||||
@@ -337,7 +337,7 @@ namespace osu.Framework.Utils
|
||||
/// <param name="learningRate">The rate of optimization. Larger values converge faster but can be unstable.</param>
|
||||
/// <param name="b1">The B1 parameter for the Adam optimizer. Between 0 and 1.</param>
|
||||
/// <param name="b2">The B2 parameter for the Adam optimizer. Between 0 and 1.</param>
|
||||
/// <param name="initialControlPoints">The initial B-spline control points to use before optimization. The length of this list should be equal to <see cref="numControlPoints"/>.</param>
|
||||
/// <param name="initialControlPoints">The initial B-spline control points to use before optimization. The length of this list should be equal to <paramref name="numControlPoints"/>.</param>
|
||||
/// <param name="learnableMask">Mask determining which control point positions are fixed and cannot be changed by the optimiser.</param>
|
||||
/// <returns>A List of vectors representing the B-spline control points.</returns>
|
||||
public static List<Vector2> PiecewiseLinearToBSpline(ReadOnlySpan<Vector2> inputPath,
|
||||
|
||||
Reference in New Issue
Block a user