Fix crash when using VK_EXT_metal_objects under ARC. #2200
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apple's Automatic Reference Counting automatically releases the Metal objects returned by
VK_EXT_metal_objects
.The
fetchDependencies
script now appliesTemplates/Vulkan-Headers/VK_EXT_metal_objects-unret.gitdiff
to add an__unsafe_unretained
ownership qualifier to the Metal object declarations invulkan_metal.h
.This should be a temporary patch until the
VK_EXT_metal_objects
extension can be properly modified.Fixes #2151.
Replaces #2179.
@MennoVink Please review.