Skip to content

Commit

Permalink
Fix marshalling of MTLResourceOptions on .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Feb 1, 2024
1 parent e72d4ae commit da6748c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Veldrid.MetalBindings/MTLResourceOptions.cs
@@ -1,6 +1,6 @@
namespace Veldrid.MetalBindings
{
public enum MTLResourceOptions : uint
public enum MTLResourceOptions : ulong
{
CPUCacheModeDefaultCache = MTLCPUCacheMode.DefaultCache,
CPUCacheModeWriteCombined = MTLCPUCacheMode.WriteCombined,
Expand All @@ -12,4 +12,4 @@ public enum MTLResourceOptions : uint

HazardTrackingModeUntracked = (uint)(0x1UL << 8),
}
}
}
4 changes: 2 additions & 2 deletions src/Veldrid.MetalBindings/MTLStorageMode.cs
@@ -1,10 +1,10 @@
namespace Veldrid.MetalBindings
{
public enum MTLStorageMode : uint
public enum MTLStorageMode : ulong
{
Shared = 0,
Managed = 1,
Private = 2,
Memoryless = 3,
}
}
}

0 comments on commit da6748c

Please sign in to comment.