Skip to content

Commit 4059d32

Browse files
authored
Move VMASharp proposed API over to nint (#1260)
1 parent 9015b95 commit 4059d32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Vulkan/VMASharp_API_For_Review.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ namespace VMASharp
3636
public abstract DeviceMemory DeviceMemory { get; }
3737
public abstract long Offset { get; internal set; }
3838
public object? UserData { get; set; }
39-
public abstract IntPtr MappedData { get; }
39+
public abstract nint MappedData { get; }
4040
public void Dispose();
4141
public Result BindBufferMemory(Buffer buffer);
42-
public Result BindBufferMemory(Buffer buffer, long allocationLocalOffset, IntPtr pNext);
42+
public Result BindBufferMemory(Buffer buffer, long allocationLocalOffset, nint pNext);
4343
public Result BindBufferMemory(Buffer buffer, long allocationLocalOffset, void* pNext = null);
4444
public Result BindImageMemory(Image image);
45-
public Result BindImageMemory(Image image, long allocationLocalOffset, IntPtr pNext);
45+
public Result BindImageMemory(Image image, long allocationLocalOffset, nint pNext);
4646
public Result BindImageMemory(Image image, long allocationLocalOffset, void* pNext = null);
4747
public bool TouchAllocation();
4848
public Result Flush(long offset, long size);
4949
public Result Invalidate(long offset, long size);
50-
public abstract IntPtr Map();
50+
public abstract nint Map();
5151
public abstract void Unmap();
5252
public bool TryGetMemory<T>(out Memory<T> memory) where T : unmanaged;
5353
public bool TryGetSpan<T>(out Span<T> span) where T : unmanaged;
@@ -176,8 +176,8 @@ namespace VMASharp
176176
{
177177
public override DeviceMemory DeviceMemory { get; }
178178
public override long Offset { get; internal set; }
179-
public override IntPtr MappedData { get; }
180-
public override IntPtr Map();
179+
public override nint MappedData { get; }
180+
public override nint Map();
181181
public override void Unmap();
182182
}
183183
public class MapMemoryException : VulkanResultException

0 commit comments

Comments
 (0)