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 GitHub
parent 67567702f0
commit 5d1d073c14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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),
}