Add unit tests for TransferBuffer<T> with no double support
このコミットが含まれているのは:
1 親
a441ce5e6f
コミット
a850b1f206
1ファイル変更
+18
-1
@@ -388,7 +388,7 @@ public partial class BufferTests
|
||||
[Resource(typeof(ReadOnlyBuffer<>))]
|
||||
[Resource(typeof(ReadWriteBuffer<>))]
|
||||
[ExpectedException(typeof(UnsupportedDoubleOperationException))]
|
||||
public void Dispatch_ReadWriteBuffer_DoublePrecision_ThrowsExceptionIfUnsupported(Device device, Type resourceType)
|
||||
public void Dispatch_Buffer_DoublePrecision_ThrowsExceptionIfUnsupported(Device device, Type resourceType)
|
||||
{
|
||||
if (device.Get().IsDoublePrecisionSupportAvailable())
|
||||
{
|
||||
@@ -399,4 +399,21 @@ public partial class BufferTests
|
||||
|
||||
Assert.Fail();
|
||||
}
|
||||
|
||||
[CombinatorialTestMethod]
|
||||
[AllDevices]
|
||||
[Resource(typeof(UploadBuffer<>))]
|
||||
[Resource(typeof(ReadBackBuffer<>))]
|
||||
[ExpectedException(typeof(UnsupportedDoubleOperationException))]
|
||||
public void Dispatch_TransferBuffer_DoublePrecision_ThrowsExceptionIfUnsupported(Device device, Type resourceType)
|
||||
{
|
||||
if (device.Get().IsDoublePrecisionSupportAvailable())
|
||||
{
|
||||
Assert.Inconclusive();
|
||||
}
|
||||
|
||||
using TransferBuffer<double> buffer = device.Get().AllocateTransferBuffer<double>(resourceType, 32);
|
||||
|
||||
Assert.Fail();
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする