Add external memory support for vulkan on windows & linux#275
Closed
inner-daemons wants to merge 8 commits into
Closed
Add external memory support for vulkan on windows & linux#275inner-daemons wants to merge 8 commits into
inner-daemons wants to merge 8 commits into
Conversation
Author
|
I've verified in a personal project that this code works. I'd like to get a review of it so we can hopefully get this merged! Going to ping @Jasper-Bekkers, hopefully this isn't too much of a hassle. No rush here just want to make sure you see it! |
Comment on lines
+385
to
+386
| // On other platforms you can't create an external capable allocator, so this would be unreachable | ||
| #[cfg(any(windows, all(unix, not(target_vendor = "apple"))))] |
Member
There was a problem hiding this comment.
I think on other platforms then we should fail with an error rather then silently failing to create an exportable texture.
Author
There was a problem hiding this comment.
The error would occur elsewhere, see lines 843-845
MarijnS95
reviewed
Jul 14, 2025
Author
|
I think I've addressed most comments |
Author
|
Going to ping you @MarijnS95 and @Jasper-Bekkers since this has been stale for a while |
Author
|
Going to close this as I'm not getting any response. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This has been tested by my own project, though no in tree testing is there yet(not sure how I'd add that). Also, the testing is only for vulkan Linux but I suspect it would also work on Windows in its current state.
Based on discussion in #274, also going to ping @Jasper-Bekkers :)
Implementation details: the memory is only allocated with support for exporting it later. The user must manually export the memory later, though this isn't very difficult. Used as a reference was this article from vulkan docs.