pub fn validate_color_attachment_bytes_per_sample( attachment_formats: impl Iterator<Item = Option<TextureFormat>>, limit: u32, ) -> Result<(), u32>