Fix AsBindGroupError display for InvalidSamplerType (#16079)

# Objective

- Display message for `AsBindGroupError::InvalidSamplerType` was not
correctly displaying the binding index

## Solution

- Simple typo fix

## Testing

- Tested locally
This commit is contained in:
Gilles Henaux 2024-10-28 23:10:52 +01:00 committed by François
parent 303953d306
commit 2d226b8051
No known key found for this signature in database

View File

@ -359,7 +359,7 @@ pub enum AsBindGroupError {
/// The bind group could not be generated. Try again next frame.
#[display("The bind group could not be generated")]
RetryNextUpdate,
#[display("At binding index{0}, the provided image sampler `{_1}` does not match the required sampler type(s) `{_2}`.")]
#[display("At binding index {_0}, the provided image sampler `{_1}` does not match the required sampler type(s) `{_2}`.")]
InvalidSamplerType(u32, String, String),
}