-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metal] Implement Xcode 16.0 beta 1, beta 2 and beta 3 changes.
Note: there were no changes in beta 3. Draft because tests are needed for manual APIs, and the changes on the generator should be extracted to a separate PR. See the CoreSpotlight [PR](#20866) for more generator changes in this area.
- Loading branch information
1 parent
3789ab0
commit 1d18c72
Showing
24 changed files
with
620 additions
and
494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
|
||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace Metal { | ||
|
||
public partial interface IMTLCommandBuffer { | ||
|
||
/// <summary>Marks the specified residency sets as part of the current command buffer execution.</summary> | ||
public void UseResidencySets (IMTLResidencySet [] residencySets) | ||
{ | ||
NativeObjectExtensions.CallWithPointerToFirstElementAndCount (residencySets, nameof (residencySets), UseResidencySets); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace Metal { | ||
|
||
public partial interface IMTLCommandQueue { | ||
|
||
/// <summary>Marks the specified residency sets as part of the current command buffer execution.</summary> | ||
public void AddResidencySets (IMTLResidencySet [] residencySets) | ||
{ | ||
NativeObjectExtensions.CallWithPointerToFirstElementAndCount (residencySets, nameof (residencySets), AddResidencySets); | ||
} | ||
|
||
/// <summary>Removes the specified residency sets from the current command buffer execution.</summary> | ||
public void RemoveResidencySets (IMTLResidencySet [] residencySets) | ||
{ | ||
NativeObjectExtensions.CallWithPointerToFirstElementAndCount (residencySets, nameof (residencySets), RemoveResidencySets); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace Metal { | ||
|
||
public partial interface IMTLResidencySet { | ||
|
||
/// <summary>Adds allocations to be committed the next time <see cref="Commit" /> is called.</summary> | ||
public void AddAllocations (IMTLAllocation [] allocations) | ||
{ | ||
NativeObjectExtensions.CallWithPointerToFirstElementAndCount (allocations, nameof (allocations), AddAllocations); | ||
} | ||
|
||
/// <summary>Marks allocations to be removed the next time <see cref="Commit" /> is called.</summary> | ||
public void RemoveAllocations (IMTLAllocation [] allocations) | ||
{ | ||
NativeObjectExtensions.CallWithPointerToFirstElementAndCount (allocations, nameof (allocations), RemoveAllocations); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.