Missing punctuation (#19097)

This commit is contained in:
SpecificProtagonist 2025-05-07 01:01:59 +02:00 committed by GitHub
parent 770f10bc19
commit 73cde28cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -344,10 +344,10 @@ impl ImageFormat {
pub struct Image {
/// Raw pixel data.
/// If the image is being used as a storage texture which doesn't need to be initialized by the
/// CPU, then this should be `None`
/// Otherwise, it should always be `Some`
/// CPU, then this should be `None`.
/// Otherwise, it should always be `Some`.
pub data: Option<Vec<u8>>,
// TODO: this nesting makes accessing Image metadata verbose. Either flatten out descriptor or add accessors
// TODO: this nesting makes accessing Image metadata verbose. Either flatten out descriptor or add accessors.
pub texture_descriptor: TextureDescriptor<Option<&'static str>, &'static [TextureFormat]>,
/// The [`ImageSampler`] to use during rendering.
pub sampler: ImageSampler,