File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -313,11 +313,12 @@ pub enum StageError {
313
313
MultipleEntryPointsFound ,
314
314
#[ error( transparent) ]
315
315
InvalidResource ( #[ from] InvalidResourceError ) ,
316
- #[ error(
317
- "Location[{location}] {var}'s index exceeds `max_color_attachments` ({})" ,
318
- hal:: MAX_COLOR_ATTACHMENTS
319
- ) ]
320
- ColorAttachmentLocationExceedsLimit { location : u32 , var : InterfaceVar } ,
316
+ #[ error( "Location[{location}] {var}'s index exceeds `max_color_attachments` ({limit})" ) ]
317
+ ColorAttachmentLocationExceedsLimit {
318
+ location : u32 ,
319
+ var : InterfaceVar ,
320
+ limit : u32 ,
321
+ } ,
321
322
}
322
323
323
324
impl WebGpuError for StageError {
@@ -1366,6 +1367,7 @@ impl Interface {
1366
1367
return Err ( StageError :: ColorAttachmentLocationExceedsLimit {
1367
1368
location,
1368
1369
var : iv. clone ( ) ,
1370
+ limit : self . limits . max_color_attachments ,
1369
1371
} ) ;
1370
1372
}
1371
1373
}
You can’t perform that action at this time.
0 commit comments