Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Add more context to errors originating in Passes and Encoders #613

Merged
merged 1 commit into from Nov 11, 2020

Conversation

Kimundi
Copy link
Contributor

@Kimundi Kimundi commented Nov 9, 2020

Description
This adds some top-level error context information to indicate wether an error originated in a {Render,Compute}Pass or {Command,RenderBundle}Encoder to make error messages more clear.

Combined with gfx-rs/wgpu#1018, errors in passes will look like this:

wgpu error: Validation error

Caused by:
    In a RenderPass
    In a draw command
    index 3600 extends beyond limit 38

Copy link

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 11 warnings, 1 errors.

The .monocodus config not found in your repo. Default config is used.
Check config documentation here

Copy link

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 11 warnings, 1 errors.

The .monocodus config not found in your repo. Default config is used.
Check config documentation here

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@kvark
Copy link
Member

kvark commented Nov 11, 2020

bors r+

@bors bors bot merged commit 2563f20 into gfx-rs:master Nov 11, 2020
bors bot added a commit to gfx-rs/wgpu that referenced this pull request Nov 12, 2020
1018: Add context for errors originating from commads in a Pass r=kvark a=Kimundi

**Description**
This adds some error context information for some errors that can happen in a `{Render,Compute}Pass` to make error messages more clear.

Combined with gfx-rs/wgpu-rs#613, errors in passes will look like this:
```
wgpu error: Validation error

Caused by:
    In a RenderPass
    In a draw command
    index 3600 extends beyond limit 38
```


Co-authored-by: Marvin Löbel <loebel.marvin@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants