mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
refactor: break StageError::InvalidWorkgroupSize diag. at 100 columns
This commit is contained in:
1 parent
d7d2ede9fb
commit
e5b0edea79
1 file changed
+4
-2
@@ -282,8 +282,10 @@ impl WebGpuError for InputError {
|
||||
#[non_exhaustive]
|
||||
pub enum StageError {
|
||||
#[error(
|
||||
"Shader entry point's workgroup size {dimensions:?} ({total} total invocations) must be less or equal to the per-dimension \
|
||||
limit `Limits::{per_dimension_limits_desc}` of {per_dimension_limits:?} and the total invocation limit `Limits::{total_limit_desc}` of {total_limit}"
|
||||
"Shader entry point's workgroup size {dimensions:?} ({total} total invocations) must be \
|
||||
less or equal to the per-dimension limit `Limits::{per_dimension_limits_desc}` of \
|
||||
{per_dimension_limits:?} and the total invocation limit `Limits::{total_limit_desc}` of \
|
||||
{total_limit}"
|
||||
)]
|
||||
InvalidWorkgroupSize {
|
||||
dimensions: [u32; 3],
|
||||
|
||||
Reference in new issue
Block a user