You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internally, BufferSlice and various commands take an Option<BufferSize> where None represents “the remainder of the buffer”. I believe, but am not certain, that this is a leftover from before wgpu::Buffers knew and exposed their own size (#2923), and the code may be simplified by making most or all of these internalOptions non-optional. The public API would continue to accept Options for convenience; the size would be picked up from the Buffer object whenever it is not specified.
(I discovered this while working on BufferSlice and am making a note of it for later.)
The text was updated successfully, but these errors were encountered:
Internally,
BufferSlice
and various commands take anOption<BufferSize>
whereNone
represents “the remainder of the buffer”. I believe, but am not certain, that this is a leftover from beforewgpu::Buffer
s knew and exposed their own size (#2923), and the code may be simplified by making most or all of these internalOption
s non-optional. The public API would continue to acceptOption
s for convenience; the size would be picked up from theBuffer
object whenever it is not specified.(I discovered this while working on
BufferSlice
and am making a note of it for later.)The text was updated successfully, but these errors were encountered: