ImageLoad doc fix: Depth images can be multisampled, now.

This commit is contained in:
Jim Blandy 2021-08-18 12:10:43 -07:00 committed by Dzmitry Malyshau
parent cefaa396d4
commit 6ab6d6fc46

View File

@ -1082,11 +1082,9 @@ pub enum Expression {
/// - [`Storage`] images hold exactly one sample per texel, so `index` must /// - [`Storage`] images hold exactly one sample per texel, so `index` must
/// be `None`. /// be `None`.
/// ///
/// - [`Depth`] images may have mipmaps, so `index` must be `Some(level)`, /// - [`Depth`] and [`Sampled`] images may be multisampled or have
/// where `level` identifies the level of detail. /// mipmaps, but not both. Which one is indicated by the variant's
/// /// [`multi`] field:
/// - [`Sampled`] images may be multisampled or have mipmaps, but not both.
/// Which one is indicated by the `Sampled` variant's [`multi`] field:
/// ///
/// - If `multi` is `true`, then the image has multiple samples per /// - If `multi` is `true`, then the image has multiple samples per
/// texel, and `index` must be `Some(sample)`, where `sample` is /// texel, and `index` must be `Some(sample)`, where `sample` is