Commit Graph
8897 Commits
Author SHA1 Message Date
Dzmitry Malyshau 2c76b0e656 hal/dx12: clippy fixes, buffer-texture copies 2021-07-13 01:01:27 -04:00
Dzmitry Malyshau 35ee65707f hal: make copy to work on one array layer at a time 2021-07-13 01:01:26 -04:00
Dzmitry Malyshau f79c3781c3 hal/dx12: buffer-buffer and texture-texture copies 2021-07-13 01:01:25 -04:00
Dzmitry Malyshau 4f6812fc36 hal/dx12: resource barriers 2021-07-13 01:01:25 -04:00
Dzmitry Malyshau 43a39a229e hal/dx12: command pooling 2021-07-13 01:01:24 -04:00
Dzmitry Malyshau e128021aee hal/dx12: pipeline layout 2021-07-13 01:01:23 -04:00
Dzmitry Malyshau 904621ee19 hal/dx12: sampler and query set creation 2021-07-13 01:01:23 -04:00
Dzmitry Malyshau 04ca3212de hal/dx12: intercept debug output 2021-07-13 01:01:22 -04:00
Dzmitry Malyshau 855689462c hal/dx12: fences 2021-07-13 01:01:21 -04:00
Dzmitry Malyshau c7519432ee Filter texture usages on view creation 2021-07-13 01:01:21 -04:00
Dzmitry Malyshau 925ece8b40 hal/dx12: creation of RTV/DSV/UAV 2021-07-13 01:01:20 -04:00
Dzmitry Malyshau 23615aa55d hal/dx12: texture and view creation 2021-07-13 01:01:19 -04:00
Dzmitry Malyshau c01f6a557e hal/dx12: enable the backend in wgpu-core 2021-07-13 01:01:19 -04:00
Dzmitry Malyshau 971aee0e1c hal/dx12: buffer creation, device idling 2021-07-13 01:01:18 -04:00
Dzmitry Malyshau 0942fb1346 hal/dx12: swap chain configuration 2021-07-13 01:01:17 -04:00
Dzmitry Malyshau eb565a59f7 hal/dx12: move device and encoder into modules 2021-07-13 01:01:17 -04:00
Dzmitry Malyshau 3a2bbfd563 hal/dx12: adapter initialization 2021-07-13 01:01:16 -04:00
Connor Fitzgerald d6e386df2d Check docs in CI 2021-07-12 23:38:06 -04:00
bors[bot]andZicklag 4b4e393eec Merge #1641
1641: Enable VK_KHR_timeline_semaphore On Vulkan < 1.2 r=kvark a=zicklag

**Connections**
Fixes #1640 

**Description**
This is my attempt to fix #1640.

**Testing**
Test the `cube` example on:
- `Intel(R) UHD Graphics (CML GT2) (Vulkan)`
- `Using GeForce GTX 1650 (Vulkan)`


Co-authored-by: Zicklag <zicklag@katharostech.com>
2021-07-12 23:59:03 +00:00
Zicklag 7e837ffcdc Enable VK_KHR_timeline_semaphore On Vulkan < 1.2 2021-07-12 18:51:38 -05:00
bors[bot]andJim Blandy 6c8e046238 Merge #1639
1639: Doc fixes for wgpu r=cwfitzgerald a=jimblandy

This PR makes `cargo doc --all-features` work without errors.

Commits are organized for ease of review (and for revision, if I screwed something up).


Co-authored-by: Jim Blandy <jimb@red-bean.com>
2021-07-12 21:27:52 +00:00
Jim Blandy 51dc5b407c Doc fixes: Broken links, <code> formatting. 2021-07-12 12:53:43 -07:00
Jim Blandy 3cbd845afb Docs: Fix outdated references to VertexStateDescriptor::vertex_buffers. 2021-07-12 12:53:42 -07:00
Jim Blandy db9d076ffa Docs: get_timestamp_period is now a method on Queue, not Device. 2021-07-12 12:50:09 -07:00
Jim Blandy 454164c1d0 Docs: Fix outdated references to SAMPLED_TEXTURE_BINDING_ARRAY.
This is now simply `Features::TEXTURE_BINDING_ARRAY`.
2021-07-12 12:50:09 -07:00
Jim Blandy 3e6629ceca Document that no dimension of a texture's size may be zero. 2021-07-12 12:50:09 -07:00
Jim Blandy ae4a450103 RenderEncoder doc fixes.
Change references to `RenderBundleEncoder` in descriptions of `RenderEncoder`
methods to `RenderEncoder` instead, since they all seem to be referring to
methods of this trait, and presumably apply to `RenderPass`es as well.
2021-07-12 12:50:05 -07:00
bors[bot]andConnor Fitzgerald c41efb0256 Merge #1634
1634: Improve documentation of ImageDataLayout r=kvark a=cwfitzgerald

**Connections**

Fixes #1626.

**Description**

Just improves the docs.

**Testing**

Docs. @StarArawn take a look if that clears things up.


Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-07-12 18:12:17 +00:00
bors[bot]andAndreas Reich 5c2e40c6ed Merge #1636
1636: Rename StoreOp::Clear to StoreOp::Discard r=kvark a=Wumpf

(recent change in spec)

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2021-07-12 16:47:19 +00:00
Andreas Reich f5a4cbc0e1 Rename StoreOp::Load to StoreOp::Discard
(recent change in spec)
2021-07-12 18:06:15 +02:00
Connor Fitzgerald 3deb4f5fb6 Improve documentation of ImageDataLayout 2021-07-12 02:16:38 -04:00
bors[bot]andConnor Fitzgerald 3d16671e3f Merge #1633
1633: Always use EXT Robustness with EGL r=kvark a=cwfitzgerald

**Connections**

Closes #1631. Closes #1577. 

**Description**

KHR robustness doesn't seem to work on any real platform. This unconditionally uses EXT robustness.

**Testing**

Works on rpi and my haswell rig. @Gordon-F could you check your android?


Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-07-12 04:38:58 +00:00
Dzmitry Malyshau 458db0b522 [hlsl-out] expose profile string conversions 2021-07-11 23:14:07 -04:00
Connor Fitzgerald 6c1dd5e153 Always use EXT Robustness 2021-07-11 22:28:45 -04:00
bors[bot]andZicklag e5142b3cdc Merge #1623
1623: Enable All Backends for Trace Player r=cwfitzgerald a=zicklag

**Connections**
None

**Description**
I just spent a bit of time trying to figure out how to get the trace player to play an OpenGL trace before realizing that only the primary backends were enabled at instance creation. This just enables all backends in the trace player. I believe that this should be harmless as it shouldn't change anything for traces on the primary supported backends.

**Testing**
It's not tested specifically, but it's such a minor change it shouldn't matter, I think.


Co-authored-by: Zicklag <zicklag@katharostech.com>
2021-07-10 01:51:22 +00:00
Zicklag 0614ccea7e Enable All Backends for Trace Player 2021-07-09 20:42:59 -05:00
bors[bot]andBenoît du Garreau e27fbb821b Merge #1612
1612: Update `web-sys` r=grovesNL a=a1phyr

`wgpu` uses unstable APIs so the version has to be pinned and manually updated.

No breaking changes happened in `0.3.51` so this update is easy.

Co-authored-by: Benoît du Garreau <bdgdlm@outlook.com>
2021-07-07 18:44:46 +00:00
João Capucho 7532c2abaa [glsl-in] Remove wrong texture types
Glsl doesn't have depth textures what it has is combined image/samplerShadow
2021-07-07 12:59:20 -04:00
João Capucho bd339e5f60 [glsl-in] Add textureProj 2021-07-07 12:59:20 -04:00
João Capucho 3f2b754c42 [glsl-in] Fix proxy write type mismatch 2021-07-07 12:59:20 -04:00
João Capucho ba75ca6efe [glsl-in] Don't implicitly cast shifts 2021-07-07 12:59:20 -04:00
João Capucho 105a2ae5e1 [glsl-in] Check type dimensions in function calls 2021-07-07 12:59:20 -04:00
Gordon-F 9e61390626 [hlsl-out] Zero initialize variables. Write interpolation and sampling qualifier 2021-07-07 10:57:28 -04:00
Benoît du Garreau 8bd9e151cd Update web-sys 2021-07-07 16:09:15 +02:00
bors[bot]andConnor Fitzgerald 4781d9da7b Merge #1607
1607: Fix Downlevel Vertex Stage Storage Buffer Check r=kvark a=cwfitzgerald

**Connections**

Fixes a bug in #1599. Also follows up on #1583 marking all of hello-compute as a failure.

**Testing**

Tests now pass on rpi4.


Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-07-07 14:01:37 +00:00
Connor Fitzgerald 90ef8141f9 Fully skip all rpi hello-compute tests due to non-determinism 2021-07-06 21:43:47 -04:00
Connor Fitzgerald bd1c153a2f Rename testing framework's segfault to skip 2021-07-06 21:43:47 -04:00
Connor Fitzgerald 8ded21862e Fix downlevel vertex stage storage buffer check 2021-07-06 21:43:47 -04:00
Jim Blandy 918183162f [spv-out]: Access BlockContext::cached directly.
Since `BlockContext` now owns the `cached` table directly, there's no point in
going through a helper function.
2021-07-06 14:57:09 -04:00
Jim Blandy 562af28773 [spv-out] Move cached expression table to BlockContext.
Since the table of cached expressions is only meaningful within a single
function, it's really something that should only be accessed from
`BlockContext`.

However, to save heap allocations, it makes sense to retain it in the `Writer`
between functions. But the `Writer` field should have a different name, to
ensure people don't use it by accident.
2021-07-06 14:57:09 -04:00