encase icon indicating copy to clipboard operation
encase copied to clipboard

BufferContentTrait

Open jonathandw743 opened this issue 1 year ago • 1 comments

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.

jonathandw743 avatar Dec 09 '23 21:12 jonathandw743

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

jonathandw743 avatar Apr 14 '24 19:04 jonathandw743