File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ impl Queue {
109
109
/// If possible, consider using [`Queue::write_buffer_with`] instead. That
110
110
/// method avoids an intermediate copy and is often able to transfer data
111
111
/// more efficiently than this one.
112
+ ///
113
+ /// Currently on native platforms, for both of these methods the staging
114
+ /// memory will be a new allocation. This will then be released after the
115
+ /// next submission finishes. To entirely avoid short-lived allocations, you might
116
+ /// be able to use [`StagingBelt`](crate::util::StagingBelt).
112
117
pub fn write_buffer ( & self , buffer : & Buffer , offset : BufferAddress , data : & [ u8 ] ) {
113
118
self . inner . write_buffer ( & buffer. inner , offset, data) ;
114
119
}
@@ -141,6 +146,10 @@ impl Queue {
141
146
/// ```
142
147
///
143
148
/// This method fails if `size` is greater than the size of `buffer` starting at `offset`.
149
+ ///
150
+ /// Currently on native platforms, the staging memory will be a new allocation, which will
151
+ /// then be released after the next submission finishes. To entirely avoid short-lived
152
+ /// allocations, you might be able to use [`StagingBelt`](crate::util::StagingBelt).
144
153
#[ must_use]
145
154
pub fn write_buffer_with < ' a > (
146
155
& ' a self ,
You can’t perform that action at this time.
0 commit comments