-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content_of to get buffer contents quickly #59
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good but the trait will have to be in scope.
What about adding the functions onto the existing buffer types?
ex StorageBuffer::content_of(item: &T) -> Vec<u8>
yeah ok |
e377e42
to
cc70ad2
Compare
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
cc70ad2
to
3a8738e
Compare
back after a year lol, i have no idea why CI is failing. it doesn't even look like its to do with this change |
Added traits that allow the user to quickly get the buffer contents for a value. This would be convenient for writing data to GPU buffers.