mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-30 14:01:39 +00:00
[naga] Document return types of image query operations.
This commit is contained in:
parent
d417433e0c
commit
8ee3c414f0
@ -1256,15 +1256,18 @@ pub enum SampleLevel {
|
||||
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
||||
pub enum ImageQuery {
|
||||
/// Get the size at the specified level.
|
||||
///
|
||||
/// The return value is a `u32` for 1D images, and a `vecN<u32>`
|
||||
/// for an image with dimensions N > 2.
|
||||
Size {
|
||||
/// If `None`, the base level is considered.
|
||||
level: Option<Handle<Expression>>,
|
||||
},
|
||||
/// Get the number of mipmap levels.
|
||||
/// Get the number of mipmap levels, a `u32`.
|
||||
NumLevels,
|
||||
/// Get the number of array layers.
|
||||
/// Get the number of array layers, a `u32`.
|
||||
NumLayers,
|
||||
/// Get the number of samples.
|
||||
/// Get the number of samples, a `u32`.
|
||||
NumSamples,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user