Tweaked an exception message

このコミットが含まれているのは:
Sergio Pedri committed 2021-01-15 20:22:32 +01:00
1 親 7629dee8c0
コミット 95c9d336d3
1ファイル変更
+3 -3
+3 -3
ファイルの表示
@@ -35,12 +35,12 @@ namespace ComputeSharp.Exceptions
builder.AppendLine(rank switch
{
2 => $"{nameof(GraphicsDevice.IsReadOnlyTexture2DSupportedForType)}<T>() or {nameof(GraphicsDevice.IsReadWriteTexture2DSupportedForType)}<T>().",
3 => $"{nameof(GraphicsDevice.IsReadOnlyTexture3DSupportedForType)}<T>() or {nameof(GraphicsDevice.IsReadWriteTexture3DSupportedForType)}<T>().",
2 => $"{nameof(GraphicsDevice.IsReadOnlyTexture2DSupportedForType)}<T>() or {nameof(GraphicsDevice)}.{nameof(GraphicsDevice.IsReadWriteTexture2DSupportedForType)}<T>().",
3 => $"{nameof(GraphicsDevice.IsReadOnlyTexture3DSupportedForType)}<T>() or {nameof(GraphicsDevice)}.{nameof(GraphicsDevice.IsReadWriteTexture3DSupportedForType)}<T>().",
_ => ThrowHelper.ThrowArgumentException<string>("Invalid texture rank")
});
builder.AppendLine("As a possible workaround on older devices, consider using a texture type of lower rank, or a linear buffer.");
builder.Append("As a possible workaround on older devices, consider using a texture type of lower rank, or a linear buffer.");
builder.ToString();
return new(builder.ToString());