mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-29 06:36:24 +02:00
Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
25
src/Ryujinx.Graphics.Vulkan/DisposableBufferView.cs
Normal file
25
src/Ryujinx.Graphics.Vulkan/DisposableBufferView.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using Silk.NET.Vulkan;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Vulkan
|
||||
{
|
||||
readonly struct DisposableBufferView : IDisposable
|
||||
{
|
||||
private readonly Vk _api;
|
||||
private readonly Device _device;
|
||||
|
||||
public BufferView Value { get; }
|
||||
|
||||
public DisposableBufferView(Vk api, Device device, BufferView bufferView)
|
||||
{
|
||||
_api = api;
|
||||
_device = device;
|
||||
Value = bufferView;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_api.DestroyBufferView(_device, Value, Span<AllocationCallbacks>.Empty);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue