aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/BufferState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/BufferState.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/BufferState.cs24
1 files changed, 1 insertions, 23 deletions
diff --git a/Ryujinx.Graphics.Vulkan/BufferState.cs b/Ryujinx.Graphics.Vulkan/BufferState.cs
index 1790017a..88858e86 100644
--- a/Ryujinx.Graphics.Vulkan/BufferState.cs
+++ b/Ryujinx.Graphics.Vulkan/BufferState.cs
@@ -1,5 +1,4 @@
-using Silk.NET.Vulkan;
-using System;
+using System;
namespace Ryujinx.Graphics.Vulkan
{
@@ -9,38 +8,17 @@ namespace Ryujinx.Graphics.Vulkan
private readonly int _offset;
private readonly int _size;
- private readonly IndexType _type;
private readonly Auto<DisposableBuffer> _buffer;
- public BufferState(Auto<DisposableBuffer> buffer, int offset, int size, IndexType type)
- {
- _buffer = buffer;
-
- _offset = offset;
- _size = size;
- _type = type;
- buffer?.IncrementReferenceCount();
- }
-
public BufferState(Auto<DisposableBuffer> buffer, int offset, int size)
{
_buffer = buffer;
-
_offset = offset;
_size = size;
- _type = IndexType.Uint16;
buffer?.IncrementReferenceCount();
}
- public void BindIndexBuffer(Vk api, CommandBufferScoped cbs)
- {
- if (_buffer != null)
- {
- api.CmdBindIndexBuffer(cbs.CommandBuffer, _buffer.Get(cbs, _offset, _size).Value, (ulong)_offset, _type);
- }
- }
-
public void BindTransformFeedbackBuffer(VulkanRenderer gd, CommandBufferScoped cbs, uint binding)
{
if (_buffer != null)