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())
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする