Skip to content

Commit

Permalink
Document size requirement for mapped_at_creation buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
Imberflur committed Sep 14, 2022
1 parent 8dd9957 commit ac15967
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2913,6 +2913,9 @@ pub struct BufferDescriptor<L> {
pub usage: BufferUsages,
/// Allows a buffer to be mapped immediately after they are made. It does not have to be [`BufferUsages::MAP_READ`] or
/// [`BufferUsages::MAP_WRITE`], all buffers are allowed to be mapped at creation.
///
/// If this is `true`, [`size`](#structfield.size) must be a multiple of
/// [`COPY_BUFFER_ALIGNMENT`].
pub mapped_at_creation: bool,
}

Expand Down

0 comments on commit ac15967

Please sign in to comment.