Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DeviceLocalBuffer API doesn't expose sharing mode #2126

Closed
john01dav opened this issue Jan 7, 2023 · 1 comment · Fixed by #2127
Closed

DeviceLocalBuffer API doesn't expose sharing mode #2126

john01dav opened this issue Jan 7, 2023 · 1 comment · Fixed by #2127

Comments

@john01dav
Copy link

DeviceLocalBuffer's constructors don't expose SharingMode, so I didn't even know that this existed at first. It came to my attention when validation layers detected that it was not set correctly. It's set to Exclusive by default, but I need it to be set to Concurrent since I am uploading data to my buffers in a background thread on a background queue, then using them on the main thread in the main queue.

Looking at the source code, this seems like a fairly easy fix, but adding a parameter is an API change so it warrants discussion before making a PR.

@Rua
Copy link
Contributor

Rua commented Jan 7, 2023

I'm guessing that this will be fixed by @marc0246's upcoming buffer refactoring.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants