Remove unnecessary IReadWriteResource implementations
このコミットが含まれているのは:
1 親
057110bd98
コミット
0c970156f0
6ファイル変更
+6
-85
検索条件に一致するファイルはありません
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.__Internals;
|
||||
using ComputeSharp.Graphics.Commands.Interop;
|
||||
@@ -57,7 +56,7 @@ partial class ReadWriteTexture1D<T, TPixel>
|
||||
/// <summary>
|
||||
/// A wrapper for a <see cref="ReadWriteTexture1D{T, TPixel}"/> resource that has been temporarily transitioned to readonly.
|
||||
/// </summary>
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyNormalizedTexture1D<TPixel>, GraphicsResourceHelper.IReadWriteResource
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyNormalizedTexture1D<TPixel>, GraphicsResourceHelper.IReadOnlyResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The owning <see cref="ReadWriteTexture1D{T, TPixel}"/> instance being wrapped.
|
||||
@@ -109,12 +108,6 @@ partial class ReadWriteTexture1D<T, TPixel>
|
||||
return this.d3D12ResourceDescriptorHandles.D3D12GpuDescriptorHandle;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetGpuAndCpuDescriptorHandlesForClear(GraphicsDevice device, out bool isNormalized)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
ID3D12Resource* GraphicsResourceHelper.IReadOnlyResource.ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
@@ -126,13 +119,6 @@ partial class ReadWriteTexture1D<T, TPixel>
|
||||
|
||||
return this.owner.D3D12Resource;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetID3D12ResourceAndTransitionStates(GraphicsDevice device, ResourceState resourceState, out ID3D12Resource* d3D12Resource, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void DangerousOnDispose()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.__Internals;
|
||||
using ComputeSharp.Graphics.Commands.Interop;
|
||||
@@ -57,7 +56,7 @@ partial class ReadWriteTexture1D<T>
|
||||
/// <summary>
|
||||
/// A wrapper for a <see cref="ReadWriteTexture1D{T}"/> resource that has been temporarily transitioned to readonly.
|
||||
/// </summary>
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyTexture1D<T>, GraphicsResourceHelper.IReadWriteResource
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyTexture1D<T>, GraphicsResourceHelper.IReadOnlyResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The owning <see cref="ReadWriteTexture1D{T}"/> instance being wrapped.
|
||||
@@ -109,12 +108,6 @@ partial class ReadWriteTexture1D<T>
|
||||
return this.d3D12ResourceDescriptorHandles.D3D12GpuDescriptorHandle;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetGpuAndCpuDescriptorHandlesForClear(GraphicsDevice device, out bool isNormalized)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
ID3D12Resource* GraphicsResourceHelper.IReadOnlyResource.ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
@@ -127,12 +120,6 @@ partial class ReadWriteTexture1D<T>
|
||||
return this.owner.D3D12Resource;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetID3D12ResourceAndTransitionStates(GraphicsDevice device, ResourceState resourceState, out ID3D12Resource* d3D12Resource, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void DangerousOnDispose()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.__Internals;
|
||||
using ComputeSharp.Graphics.Commands.Interop;
|
||||
@@ -57,7 +56,7 @@ partial class ReadWriteTexture2D<T, TPixel>
|
||||
/// <summary>
|
||||
/// A wrapper for a <see cref="ReadWriteTexture2D{T, TPixel}"/> resource that has been temporarily transitioned to readonly.
|
||||
/// </summary>
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyNormalizedTexture2D<TPixel>, GraphicsResourceHelper.IReadWriteResource
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyNormalizedTexture2D<TPixel>, GraphicsResourceHelper.IReadOnlyResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The owning <see cref="ReadWriteTexture2D{T, TPixel}"/> instance being wrapped.
|
||||
@@ -121,12 +120,6 @@ partial class ReadWriteTexture2D<T, TPixel>
|
||||
return this.d3D12ResourceDescriptorHandles.D3D12GpuDescriptorHandle;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetGpuAndCpuDescriptorHandlesForClear(GraphicsDevice device, out bool isNormalized)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
ID3D12Resource* GraphicsResourceHelper.IReadOnlyResource.ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
@@ -139,12 +132,6 @@ partial class ReadWriteTexture2D<T, TPixel>
|
||||
return this.owner.D3D12Resource;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetID3D12ResourceAndTransitionStates(GraphicsDevice device, ResourceState resourceState, out ID3D12Resource* d3D12Resource, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void DangerousOnDispose()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.__Internals;
|
||||
using ComputeSharp.Graphics.Commands.Interop;
|
||||
@@ -60,7 +59,7 @@ partial class ReadWriteTexture2D<T>
|
||||
/// <summary>
|
||||
/// A wrapper for a <see cref="ReadWriteTexture2D{T}"/> resource that has been temporarily transitioned to readonly.
|
||||
/// </summary>
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyTexture2D<T>, GraphicsResourceHelper.IReadWriteResource
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyTexture2D<T>, GraphicsResourceHelper.IReadOnlyResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The owning <see cref="ReadWriteTexture2D{T}"/> instance being wrapped.
|
||||
@@ -121,12 +120,6 @@ partial class ReadWriteTexture2D<T>
|
||||
return this.d3D12ResourceDescriptorHandles.D3D12GpuDescriptorHandle;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetGpuAndCpuDescriptorHandlesForClear(GraphicsDevice device, out bool isNormalized)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
ID3D12Resource* GraphicsResourceHelper.IReadOnlyResource.ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
@@ -139,12 +132,6 @@ partial class ReadWriteTexture2D<T>
|
||||
return this.owner.D3D12Resource;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetID3D12ResourceAndTransitionStates(GraphicsDevice device, ResourceState resourceState, out ID3D12Resource* d3D12Resource, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void DangerousOnDispose()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.__Internals;
|
||||
using ComputeSharp.Graphics.Commands.Interop;
|
||||
@@ -57,7 +56,7 @@ partial class ReadWriteTexture3D<T, TPixel>
|
||||
/// <summary>
|
||||
/// A wrapper for a <see cref="ReadWriteTexture3D{T, TPixel}"/> resource that has been temporarily transitioned to readonly.
|
||||
/// </summary>
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyNormalizedTexture3D<TPixel>, GraphicsResourceHelper.IReadWriteResource
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyNormalizedTexture3D<TPixel>, GraphicsResourceHelper.IReadOnlyResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The owning <see cref="ReadWriteTexture3D{T, TPixel}"/> instance being wrapped.
|
||||
@@ -121,12 +120,6 @@ partial class ReadWriteTexture3D<T, TPixel>
|
||||
return this.d3D12ResourceDescriptorHandles.D3D12GpuDescriptorHandle;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetGpuAndCpuDescriptorHandlesForClear(GraphicsDevice device, out bool isNormalized)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
ID3D12Resource* GraphicsResourceHelper.IReadOnlyResource.ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
@@ -139,12 +132,6 @@ partial class ReadWriteTexture3D<T, TPixel>
|
||||
return this.owner.D3D12Resource;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetID3D12ResourceAndTransitionStates(GraphicsDevice device, ResourceState resourceState, out ID3D12Resource* d3D12Resource, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void DangerousOnDispose()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.__Internals;
|
||||
using ComputeSharp.Graphics.Commands.Interop;
|
||||
@@ -57,7 +56,7 @@ partial class ReadWriteTexture3D<T>
|
||||
/// <summary>
|
||||
/// A wrapper for a <see cref="ReadWriteTexture3D{T}"/> resource that has been temporarily transitioned to readonly.
|
||||
/// </summary>
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyTexture3D<T>, GraphicsResourceHelper.IReadWriteResource
|
||||
private sealed unsafe class ReadOnly : ReferenceTrackedObject, IReadOnlyTexture3D<T>, GraphicsResourceHelper.IReadOnlyResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The owning <see cref="ReadWriteTexture3D{T}"/> instance being wrapped.
|
||||
@@ -121,12 +120,6 @@ partial class ReadWriteTexture3D<T>
|
||||
return this.d3D12ResourceDescriptorHandles.D3D12GpuDescriptorHandle;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetGpuAndCpuDescriptorHandlesForClear(GraphicsDevice device, out bool isNormalized)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
ID3D12Resource* GraphicsResourceHelper.IReadOnlyResource.ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
@@ -139,12 +132,6 @@ partial class ReadWriteTexture3D<T>
|
||||
return this.owner.D3D12Resource;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
(D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES) GraphicsResourceHelper.IReadWriteResource.ValidateAndGetID3D12ResourceAndTransitionStates(GraphicsDevice device, ResourceState resourceState, out ID3D12Resource* d3D12Resource, out ReferenceTracker.Lease lease)
|
||||
{
|
||||
throw new NotSupportedException("This operation cannot be performaned on a readonly wrapper.");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void DangerousOnDispose()
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする