Commit Graph
8323 Commits
Author SHA1 Message Date
João Capucho a90aa9817b [glsl-in] Add support for non constant global init
Glsl allows things such as

```glsl
layout (location = 0) in vec4 a;
vec4 b = a;
```

In this case `b` depends on `a` which can't be known at compile time,
so it's necessary to add a small prologue to the entry point to
initialize it.
2021-08-04 12:07:17 -04:00
João Capucho 057dc3100d [glsl-in] Remove support for multiple entry points 2021-08-04 11:06:57 -04:00
Lonsdaleiter 64ffdd52ad Added is_surface_supported (#1763) 2021-08-04 14:27:08 +00:00
Dzmitry Malyshau 80cf1ffff9 Implement onSubmittedWorkDone 2021-08-04 01:03:26 -04:00
Mikko Lehtonen 5d9c276c82 Include naga diagnostic in the parse error (#1760)
Wraps the Naga's `ParseError` with `NagaParseError` type, that uses the
Naga's full error formatting for its `Display` impl, including shader
source.
2021-08-03 17:27:34 -04:00
João Capucho 6f476eeafe [glsl-in] Fix span of gvec3 in layouter 2021-08-03 13:58:25 -04:00
João Capucho c084e2cfa8 [glsl-in] Handle Pow in constant evaluation 2021-08-03 13:58:25 -04:00
João Capucho da77e1f847 [glsl-in] Accept precision in local variable 2021-08-03 13:58:25 -04:00
João Capucho bcfe1f6f28 [glsl-in] Parse some more memory qualifiers 2021-08-03 13:58:25 -04:00
João Capucho 08302b5078 [glsl-in] Fix missing implicit conversion in mix 2021-08-03 13:58:25 -04:00
João Capucho fde91c1d94 [glsl-in] Implicit splat min builtin 2021-08-03 13:58:25 -04:00
João Capucho 9742f6820a [glsl-in] Invalidate the expression in sampled_to_depth 2021-08-03 13:11:31 -04:00
João Capucho bd16bf90d0 [glsl-in] Unify depth_set and qualifiers 2021-08-03 13:11:31 -04:00
João Capucho 244d58e8ff [glsl-in] Add support for depth_ref 2021-08-03 13:11:31 -04:00
João Capucho 717063eb21 [glsl-in] Convert Sampled image to depth image 2021-08-03 13:11:31 -04:00
Dzmitry Malyshau b9d18a1699 Remove bors config (#1759) 2021-08-03 11:57:55 -04:00
Dzmitry Malyshau 50da3f33ba Merge pull request #1758 from kvark/windows-error
Fix error with resolver=1 on non-Windows
2021-08-03 11:52:54 -04:00
Mikko Lehtonen 78e4cd5dbc Remove AsDisplay trait in error formatting 2021-08-03 11:51:52 -04:00
Mikko Lehtonen 019dca3cfa 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 11:51:52 -04:00
Mikko Lehtonen e4cdddc639 Move error formatting to wgpu-core 2021-08-03 11:51:52 -04:00
João Capucho d6643086f3 Check documentation errors in CI 2021-08-02 22:46:06 -04:00
João Capucho d39f6780a7 Documentation fixes 2021-08-02 22:46:06 -04:00
Jim Blandy b7a4ee1d2d [spv-out] Document back::spv::Writer::write_varying. 2021-08-02 22:34:52 -04:00
Jim Blandy e4931e106d Document EntryPoint. 2021-08-02 22:33:32 -04: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
Gordon-F 8e17c29644 [glsl-out] Add inout qualifier for pointer function arguments 2021-07-31 23:59:06 -04:00
João Capucho e58d1649c3 Fix clippy lints 2021-07-31 23:28:13 -04:00
João Capucho 223016a418 [glsl-in] Implement textureGrad 2021-07-31 23:28:13 -04:00
João Capucho 65e915f998 [glsl-in] Implicit convert texture functions 2021-07-31 23:28:13 -04:00
João Capucho 56ce439ff5 [glsl-in] Implement layouting for composite types 2021-07-31 23:25:22 -04:00
João Capucho e0e840b22c [glsl-in] Implement std140 and std430 layouts
Structs are not yet implemented
2021-07-31 23:25:22 -04:00
Arnaud Golfouse e0efe34402 Fix typo in error message (#1150) 2021-07-29 22:57:27 -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]andConnor Fitzgerald 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]andDzmitry Malyshau 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
Jakob Hellermann fa05f0d0d9 [glsl-out] split reflection_names into a map for types and another for globals (#1144)
* split reflection_names into a map for types and another for globals

* reflection_names_structs -> reflection_names_uniforms
2021-07-29 00:17:01 -04:00
bors[bot]andZicklag 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]andZicklag 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