Use explicit types everywhere
このコミットが含まれているのは:
1 親
27c629f3b4
コミット
16c0fc9aab
74ファイル変更
+455
-446
検索条件に一致するファイルはありません
@@ -62,15 +62,15 @@ public partial class DeviceDisposalTests
|
||||
|
||||
using (GraphicsDevice graphicsDevice = device.Get())
|
||||
{
|
||||
using var r1 = graphicsDevice.AllocateConstantBuffer<float>(128);
|
||||
using var r2 = graphicsDevice.AllocateReadOnlyBuffer<float>(128);
|
||||
using var r3 = graphicsDevice.AllocateReadWriteBuffer<float>(128);
|
||||
using var r4 = graphicsDevice.AllocateReadOnlyTexture2D<float>(128, 128);
|
||||
using var r5 = graphicsDevice.AllocateReadWriteTexture2D<float>(128, 128);
|
||||
using var r6 = graphicsDevice.AllocateUploadBuffer<float>(128);
|
||||
using var r7 = graphicsDevice.AllocateReadBackBuffer<float>(128);
|
||||
using var r8 = graphicsDevice.AllocateUploadTexture2D<float>(128, 128);
|
||||
using var r9 = graphicsDevice.AllocateReadBackTexture2D<float>(128, 128);
|
||||
using ConstantBuffer<float> r1 = graphicsDevice.AllocateConstantBuffer<float>(128);
|
||||
using ReadOnlyBuffer<float> r2 = graphicsDevice.AllocateReadOnlyBuffer<float>(128);
|
||||
using ReadWriteBuffer<float> r3 = graphicsDevice.AllocateReadWriteBuffer<float>(128);
|
||||
using ReadOnlyTexture2D<float> r4 = graphicsDevice.AllocateReadOnlyTexture2D<float>(128, 128);
|
||||
using ReadWriteTexture2D<float> r5 = graphicsDevice.AllocateReadWriteTexture2D<float>(128, 128);
|
||||
using UploadBuffer<float> r6 = graphicsDevice.AllocateUploadBuffer<float>(128);
|
||||
using ReadBackBuffer<float> r7 = graphicsDevice.AllocateReadBackBuffer<float>(128);
|
||||
using UploadTexture2D<float> r8 = graphicsDevice.AllocateUploadTexture2D<float>(128, 128);
|
||||
using ReadBackTexture2D<float> r9 = graphicsDevice.AllocateReadBackTexture2D<float>(128, 128);
|
||||
|
||||
GraphicsDeviceHelper.GetD3D12Device(graphicsDevice, in d3D12Device);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ public partial class DeviceDisposalTests
|
||||
|
||||
using (GraphicsDevice graphicsDevice = device.Get())
|
||||
{
|
||||
using var buffer = graphicsDevice.AllocateReadWriteBuffer<float>(128);
|
||||
using ReadWriteBuffer<float> buffer = graphicsDevice.AllocateReadWriteBuffer<float>(128);
|
||||
|
||||
using (ComputeContext context = graphicsDevice.CreateComputeContext())
|
||||
{
|
||||
@@ -151,7 +151,7 @@ public partial class DeviceDisposalTests
|
||||
|
||||
using (GraphicsDevice graphicsDevice = device.Get())
|
||||
{
|
||||
using var texture = graphicsDevice.AllocateReadWriteTexture2D<Rgba32, float4>(128, 128);
|
||||
using ReadWriteTexture2D<Rgba32, float4> texture = graphicsDevice.AllocateReadWriteTexture2D<Rgba32, float4>(128, 128);
|
||||
|
||||
using (ComputeContext context = graphicsDevice.CreateComputeContext())
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ public class DeviceLostTests
|
||||
|
||||
await GraphicsDeviceHelper.RemoveDeviceAsync(graphicsDevice);
|
||||
|
||||
using var _ = graphicsDevice.AllocateBuffer<float>(bufferType, 128);
|
||||
using Resources.Buffer<float> _ = graphicsDevice.AllocateBuffer<float>(bufferType, 128);
|
||||
}
|
||||
|
||||
[CombinatorialTestMethod]
|
||||
@@ -67,7 +67,7 @@ public class DeviceLostTests
|
||||
|
||||
await GraphicsDeviceHelper.RemoveDeviceAsync(graphicsDevice);
|
||||
|
||||
using var _ = graphicsDevice.AllocateTexture2D<float>(textureType, 128, 128);
|
||||
using Resources.Texture2D<float> _ = graphicsDevice.AllocateTexture2D<float>(textureType, 128, 128);
|
||||
}
|
||||
|
||||
[CombinatorialTestMethod]
|
||||
@@ -81,7 +81,7 @@ public class DeviceLostTests
|
||||
|
||||
await GraphicsDeviceHelper.RemoveDeviceAsync(graphicsDevice);
|
||||
|
||||
using var _ = graphicsDevice.AllocateTexture3D<float>(textureType, 128, 128, 3);
|
||||
using Resources.Texture3D<float> _ = graphicsDevice.AllocateTexture3D<float>(textureType, 128, 128, 3);
|
||||
}
|
||||
|
||||
[CombinatorialTestMethod]
|
||||
@@ -153,6 +153,6 @@ public class DeviceLostTests
|
||||
|
||||
await GraphicsDeviceHelper.RemoveDeviceAsync(graphicsDevice);
|
||||
|
||||
using var _ = graphicsDevice.CreateComputeContext();
|
||||
using ComputeContext _ = graphicsDevice.CreateComputeContext();
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする