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
Copy file name to clipboardExpand all lines: crates/re_renderer/src/wgpu_resources/mod.rs
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ impl Texture2DBufferInfo {
162
162
163
163
/// Removes the padding from a buffer containing gpu texture data.
164
164
///
165
-
/// The buffer have the expected size for a padded buffer to hold the texture data.
165
+
/// The passed in buffer is to be expected to be exactly of size [Texture2DBufferInfo::buffer_size_padded].
166
166
///
167
167
/// Note that if you're passing in gpu data, there no alignment guarantees on the returned slice,
168
168
/// do NOT convert it using [`bytemuck`]. Use [`Texture2DBufferInfo::remove_padding_and_convert`] instead.
@@ -189,7 +189,7 @@ impl Texture2DBufferInfo {
189
189
190
190
/// Removes the padding from a buffer containing gpu texture data and remove convert to a given type.
191
191
///
192
-
/// The buffer have the expected size for a padded buffer to hold the texture data.
192
+
/// The passed in buffer is to be expected to be exactly of size [Texture2DBufferInfo::buffer_size_padded].
193
193
///
194
194
/// The unpadded row size is expected to be a multiple of the size of the target type.
195
195
/// (Which means that, while uncommon, it technically doesn't need to be as big as a block in the pixel - this can be useful for e.g. packing wide bitfields)
0 commit comments