mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 09:21:04 +01:00
Improve some error messages (#2446)
* Fix render target mismatch error message * Reword bind group layout mismatch error
This commit is contained in:
1 parent
b10f7ed407
commit
63dfd98d68
3 files changed
+9
-7
No files matched your search
@@ -117,7 +117,7 @@ pub struct ComputePassDescriptor<'a> {
|
||||
pub enum DispatchError {
|
||||
#[error("compute pipeline must be set")]
|
||||
MissingPipeline,
|
||||
#[error("current compute pipeline has a layout which is incompatible with a currently set bind group, first differing at entry index {index}")]
|
||||
#[error("the pipeline layout, associated with the current compute pipeline, contains a bind group layout at index {index} which is incompatible with the bind group layout associated with the bind group at {index}")]
|
||||
IncompatibleBindGroup {
|
||||
index: u32,
|
||||
//expected: BindGroupLayoutId,
|
||||
|
||||
@@ -26,7 +26,7 @@ pub enum DrawError {
|
||||
MissingVertexBuffer { index: u32 },
|
||||
#[error("index buffer must be set")]
|
||||
MissingIndexBuffer,
|
||||
#[error("current render pipeline has a layout which is incompatible with a currently set bind group, first differing at entry index {index}")]
|
||||
#[error("the pipeline layout, associated with the current render pipeline, contains a bind group layout at index {index} which is incompatible with the bind group layout associated with the bind group at {index}")]
|
||||
IncompatibleBindGroup {
|
||||
index: u32,
|
||||
//expected: BindGroupLayoutId,
|
||||
|
||||
Reference in new issue
Block a user