@@ -36,18 +36,18 @@ namespace VMASharp
36
36
public abstract DeviceMemory DeviceMemory { get ; }
37
37
public abstract long Offset { get ; internal set ; }
38
38
public object ? UserData { get ; set ; }
39
- public abstract IntPtr MappedData { get ; }
39
+ public abstract nint MappedData { get ; }
40
40
public void Dispose ();
41
41
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 );
43
43
public Result BindBufferMemory (Buffer buffer , long allocationLocalOffset , void* pNext = null );
44
44
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 );
46
46
public Result BindImageMemory (Image image , long allocationLocalOffset , void* pNext = null );
47
47
public bool TouchAllocation ();
48
48
public Result Flush (long offset , long size );
49
49
public Result Invalidate (long offset , long size );
50
- public abstract IntPtr Map ();
50
+ public abstract nint Map ();
51
51
public abstract void Unmap ();
52
52
public bool TryGetMemory <T >(out Memory <T > memory ) where T : unmanaged ;
53
53
public bool TryGetSpan <T >(out Span <T > span ) where T : unmanaged ;
@@ -176,8 +176,8 @@ namespace VMASharp
176
176
{
177
177
public override DeviceMemory DeviceMemory { get ; }
178
178
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 ();
181
181
public override void Unmap ();
182
182
}
183
183
public class MapMemoryException : VulkanResultException
0 commit comments