Skip to content

Commit e872991

Browse files
committed
Clarify the Image! docs.
To clarify something I found hard to understand.
1 parent 1bd30fd commit e872991

File tree

1 file changed

+2
-1
lines changed
  • crates/spirv-std/macros/src

1 file changed

+2
-1
lines changed

crates/spirv-std/macros/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ use std::fmt::Write;
113113
/// when set the image format is unknown.
114114
/// Accepted values: `f32`, `f64`, `u8`, `u16`, `u32`, `u64`, `i8`, `i16`, `i32`, `i64`.
115115
/// - `format` — The image format of the image, mutually exclusive with `type`.
116-
/// Accepted values: Snake case versions of [`ImageFormat`].
116+
/// Accepted values: Snake case versions of [`ImageFormat`] variants, e.g. `rgba32f`,
117+
/// `rgba8_snorm`.
117118
/// - `sampled` — Whether it is known that the image will be used with a sampler.
118119
/// Accepted values: `true` or `false`. Default: `unknown`.
119120
/// - `multisampled` — Whether the image contains multisampled content.

0 commit comments

Comments
 (0)