3180 Commits

Author SHA1 Message Date
bors[bot] da39957062 Merge #1728
1728: Move error formatting functionality  r=kvark a=scoopr

**Connections**
This is an attempt to implement #1082 

**Description**
This is a fairly straightforward move of the error formatting that were in wgpu-rs in to wgpu-code.

The enriching of some of the errors with the additional `ContextError` were still left with the wgpu-rs code, as I realised the current error messages refer to the API names as they appear in rust code and might not make sense for all the consumers of wgpu-core. It could be left as is and other consumers might enrich in their own ways, or the messages could be reformatted to be more conversational

**Testing**
Limited testing with the examples


Co-authored-by: Mikko Lehtonen <scoopr@iki.fi>
2021-08-03 14:59:38 +00:00
Mikko Lehtonen a1e6ffa96a Remove AsDisplay trait in error formatting 2021-08-03 01:30:36 +03:00
Mikko Lehtonen b56c2fb1c1 Error formatting impls closer to errors
This is achieved by making a ErrorFormatter helper that is passed to
fmt_pretty, making the impls a lot simpler.
2021-08-03 01:30:06 +03:00
Mikko Lehtonen 5947a06bb3 Move error formatting to wgpu-core 2021-08-02 23:52:35 +03:00
Connor Fitzgerald 11d31d5377 Merge pull request #1753 from euclio/wiki-link
update link to wgpu users wiki
2021-08-01 19:56:59 -04:00
Connor Fitzgerald 61b1a36225 Merge pull request #1754 from katharostech/bytemuck-hello-compute-output
Use Bytemuck to Cast Hello Compute Output
2021-08-01 19:56:36 -04:00
Zicklag 70093eca9e Use Bytemuck to Cast Hello Compute Output
This makes the cast of the output data in the hello-compute example
easier to read and it matches the way we cast the input data as well.
2021-08-01 16:23:14 -05:00
Andy Russell 2163d90c76 update link to wgpu users wiki 2021-08-01 17:11:19 -04:00
Connor Fitzgerald 5c9f1ad319 Merge pull request #1749 from euclio/wiki-link
update link to WebGPU wiki
2021-08-01 02:33:28 -04:00
Andy Russell 943e2ace99 update link to WebGPU wiki 2021-08-01 02:07:55 -04:00
Connor Fitzgerald bbeb30a2c9 Merge pull request #1745 from katharostech/new-clippy-lints
Fix New Clippy Lints From Rust 1.54.0
2021-07-29 18:27:18 -04:00
Zicklag 07cd75a36b Fix New Clippy Lints From Rust 1.54.0
Fixes a number of new lints introduce in the updated clippy that
CI is now using.
2021-07-29 16:29:46 -05:00
bors[bot] 7c4ab4e611 Merge #1739
1739: Run Reftests on WARP r=kvark a=cwfitzgerald

**Connections**

#1551.

**Description**

All the segmentation faults on linux, none of them on windows.

**Testing**

It is!


Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-07-29 13:34:17 +00:00
Connor Fitzgerald b2080bf2ad Add --no-fail-fast to CI 2021-07-29 09:24:07 -04:00
Connor Fitzgerald ebf049bcee Adjust limits for WARP on CI 2021-07-29 09:24:07 -04:00
Connor Fitzgerald 3c8de92ba0 Run reftests on WARP 2021-07-29 09:24:03 -04:00
bors[bot] c1a305c006 Merge #1744
1744: hal/dx12: fix depth formats and pipeline layout r=kvark a=kvark

**Connections**
Closes #1727

**Description**
There were 2 problems. One was that the reversing of the pipeline layout was done wrong (again). I don't know how it still worked on one of my machines :/
The other was that the backend relied on the depth format reinterpretation without using a typeless format. This is OK on higher-level platforms, but we should be doing it more careful. I tried to approach this maximally efficient: we only use the typeless format if all of the following are true:
  1. it's a depth/stencil format
  2. it needs to be seen as SRV/UAV

So in the case of a simple depth texture, we are still going to be using a fully-qualified format, and therefore get all of the benefit of HW compression on it.

**Testing**
Ran the examples on Intel


Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2021-07-29 05:15:43 +00:00
Dzmitry Malyshau 3a004ecf9a hal/dx12: fix depth formats and pipeline layout 2021-07-29 01:13:37 -04:00
bors[bot] b79c910b0f Merge #1741
1741: Improve Docs for DownlevelFlags r=cwfitzgerald a=zicklag

**Connections**
None

**Description**
Clarifies the documentation on the `DownlevelFlags`, and wraps the documentation of some of the flags to 100 chars.

**Testing**
Tested on Ubuntu 20.04


Co-authored-by: Zicklag <zicklag@katharostech.com>
2021-07-29 00:05:59 +00:00
Zicklag 88c58d2b20 Improve Docs for DownlevelFlags 2021-07-28 19:00:43 -05:00
bors[bot] 258e685ecb Merge #1742
1742: Mention WGPU_ADAPTER_NAME Env Var in WGPU README r=cwfitzgerald a=zicklag

**Connections**
None

**Description**
Mentions the new `WGPU_ADAPTER_NAME` environment variable in the WGPU readme.

**Testing**



Co-authored-by: Zicklag <zicklag@katharostech.com>
2021-07-28 20:13:58 +00:00
Zicklag 89b1dbcb5a Mention WGPU_ADAPTER_NAME Env Var in WGPU README 2021-07-28 14:08:44 -05:00
bors[bot] efba648c35 Merge #1737
1737: Use Bitshift Style for All Bitflag Consts r=cwfitzgerald a=zicklag

**Connections**
None exactly, but somewhat related to https://github.com/gfx-rs/wgpu/pull/1686 as I was going to put some of this change into that PR, but am splitting it out for ease of review.

**Description**
This is purely code-style related, but it makes it easier to read bitflag constants and much eaiser to add bitflags in the future.

**Testing**
Tested on Ubuntu 20.04


Co-authored-by: Zicklag <zicklag@katharostech.com>
2021-07-28 16:31:50 +00:00
Zicklag fd460fa1e4 Use Bitshift Style for All Bitflag Consts
This makes existing bitflags easier to read and makes it eaiser to add
new flags later.
2021-07-28 11:28:54 -05:00
bors[bot] b8d5c9d9ac Merge #1738
1738: Rename texture usage names according to binding r=kvark a=kvark

**Connections**
Matches https://github.com/gpuweb/gpuweb/pull/1989

**Description**
The `SAMPLED` usage name was confusing because integer and MSAA textures can't be sampled (with a sampler), but fetching data from them is under this usage.

**Testing**
No need


Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-07-28 04:22:21 +00:00