Skip to content

Commit e5b0ede

Browse files
refactor: break StageError::InvalidWorkgroupSize diag. at 100 columns
1 parent d7d2ede commit e5b0ede

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wgpu-core/src/validation.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,10 @@ impl WebGpuError for InputError {
282282
#[non_exhaustive]
283283
pub enum StageError {
284284
#[error(
285-
"Shader entry point's workgroup size {dimensions:?} ({total} total invocations) must be less or equal to the per-dimension \
286-
limit `Limits::{per_dimension_limits_desc}` of {per_dimension_limits:?} and the total invocation limit `Limits::{total_limit_desc}` of {total_limit}"
285+
"Shader entry point's workgroup size {dimensions:?} ({total} total invocations) must be \
286+
less or equal to the per-dimension limit `Limits::{per_dimension_limits_desc}` of \
287+
{per_dimension_limits:?} and the total invocation limit `Limits::{total_limit_desc}` of \
288+
{total_limit}"
287289
)]
288290
InvalidWorkgroupSize {
289291
dimensions: [u32; 3],

0 commit comments

Comments
 (0)