Skip to content

Commit 738b576

Browse files
fixup! fix: reject fragment shader output locations > max_color_attachments limit
1 parent 762d7df commit 738b576

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wgpu-core/src/validation.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,10 @@ pub enum StageError {
313313
MultipleEntryPointsFound,
314314
#[error(transparent)]
315315
InvalidResource(#[from] InvalidResourceError),
316-
#[error("Location[{location}] {var}'s index exceeds `max_color_attachments` ({limit})")]
317-
ColorAttachmentLocationExceedsLimit {
316+
#[error(
317+
"Location[{location}] {var}'s index exceeds the `max_color_attachments` limit ({limit})"
318+
)]
319+
ColorAttachmentLocationTooLarge {
318320
location: u32,
319321
var: InterfaceVar,
320322
limit: u32,

0 commit comments

Comments
 (0)