Layl and Layl Bongers
2ef72b9313
Add multiview support ( #2187 )
...
Co-authored-by: Layl Bongers <2385329-layl@users.noreply.gitlab.com >
2021-11-19 10:56:48 -05:00
Boris-Chengbiao Zhou
08b9c46ec4
Validate strip_index_format ( #2177 )
...
The spec mandates that stripIndexFormat is set even when drawIndexed is
not used. (https://www.w3.org/TR/webgpu/#primitive-state )
There is some recent discussion about this though:
https://github.com/gpuweb/gpuweb/issues/2199
2021-11-14 19:03:33 -05:00
Dzmitry Malyshau
c8436de1ec
Force point size output on Vulkan
2021-09-15 19:15:23 -04:00
Dzmitry Malyshau
300f7d2e8c
Expose query resolve offset and respect it in the mipmap example
2021-09-14 09:47:15 -04:00
Dzmitry Malyshau
f78061bcef
Merge swap chain into surface
2021-08-11 20:58:42 -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
Dzmitry Malyshau
552a5f138e
Rename texture usage names
2021-07-28 00:17:54 -04:00
Connor Fitzgerald
a13b54ced8
Fix limits for llvmpipe
2021-07-03 22:15:16 -04:00
Connor Fitzgerald
1fb77c68da
Mark vk mipmap example as passing
2021-07-02 01:15:23 -04:00
Connor Fitzgerald
a336c9e160
Spell tolerance right
2021-07-02 00:13:33 -04:00
Connor Fitzgerald
f76200e725
Update testing limits for rpi4
2021-07-02 00:13:33 -04:00
Dzmitry Malyshau
ba006cfaa7
Rename ColorWrite, TextureUsage, and BufferUsage
2021-06-30 14:57:38 -04:00
Dzmitry Malyshau
568ac3fa24
Switch all bitflag names to plural
2021-06-30 14:43:36 -04:00
Connor Fitzgerald
3356f5f993
PR comments
2021-06-23 19:10:11 -04:00
Connor Fitzgerald
c0664c2bb7
Begin robust exception system
2021-06-23 19:10:11 -04:00
Connor Fitzgerald
382fc751c7
Keep raising the mipmap limit
2021-06-23 19:10:11 -04:00
Connor Fitzgerald
f47a54009d
Finish reftest and test running infra
2021-06-23 19:10:11 -04:00
Connor Fitzgerald
d094712cd4
Make screenshots pass on laptop
2021-06-23 19:10:11 -04:00
Connor Fitzgerald
ec74722d57
Add image comparison to all examples
2021-06-23 19:10:11 -04:00
Connor Fitzgerald
ebbbf2216b
Add image comparison to the mipmap example
2021-06-23 19:10:11 -04:00
Dzmitry Malyshau
fb662dfbec
hal/vk: polishing to run halmark with no validation issues
2021-06-16 17:15:34 -04:00
Dzmitry Malyshau
782c72d32c
hal/mtl: queue
2021-06-10 10:54:06 -04:00
Dzmitry Malyshau
1ada1d8d24
[rs] Update gfx and naga to gfx-22
2021-04-19 18:15:14 -04:00
Gordon-F
6d62cc5bc3
[rs] Update to latest wgpu, naga, gfx.
2021-03-25 21:46:35 +03:00
Joshua Groves
e65ef710a5
[rs] Update to latest wgpu-{core,types}
2021-03-24 00:00:16 -02:30
Dzmitry Malyshau
2fae02d8b2
[rs] Update naga to gfx-16
2021-03-17 09:35:54 -04:00
Dzmitry Malyshau
d1d941229c
[rs] Update to naga-14
2021-03-14 00:50:35 -05:00
Dzmitry Malyshau
67655976e6
[rs] Update wgpu depth_or_array_layers
2021-03-01 23:26:08 -05:00
Dzmitry Malyshau
1a9bd4d14b
[rs] Stop using vertex attributes in the mipmap example
2021-02-12 22:33:17 -05:00
Zsolt Bölöny
7a31e4e333
[rs] Convert PrimitiveState::cull_mode to Option<Face>
2021-02-11 12:59:47 +01:00
Dzmitry Malyshau
9755a464ae
[rs] Update version and dependencies to gfx-9
2021-02-01 02:16:31 -05:00
Dzmitry Malyshau
41a1c0e46f
[rs] Convert cube, skybox, msaa-line, and mipmap, to WGSL
...
Validate example shaders in tests
Support WGSL on the Web via Naga
Port the shadow WGSL partially
Convert hello-compute and boids to WGSL
Conver the shadow's fragment shader to WGSL
Shader entry point refactor
2021-01-30 01:02:04 -05:00
Dzmitry Malyshau
edb342cffe
[rs] Update wgpu to the new render pipeline descriptor API
2021-01-29 00:51:44 -05:00
Connor Fitzgerald
af61d9c917
[rs] Add pipeline statistics and timeline queries
2021-01-16 01:05:03 -05:00
Jay Oster
78f33bcf67
[rs] Replace futures with pollster
...
This PR removes all of the `futures` dependencies. `std::future` does not contain a lot of useful helpers available in futures. The obvious ones are `join_all`, `FutureExt::map`, and `block_on`.
* `join_all` is replaced with a `Vec<T>` and async blocks.
* `FuturesExt::map` in the web backend is replaced by rolling the `map` function into the `MakeSendFuture` type.
* `block_on` is provided by `pollster`.
The original code using `join_all` ignored the result type yielded by the Future from `map_async`. This code does the same, but makes dropping the result a little more obvious.
These should not be troublesome. Figured I would call them out anyway.
The last big change is replacing `futures-executor` in the examples with `async-executor`. A new concrete `Spawner` type is used in the example framework instead of an implementation of `futures_task::LocalSpawn`.
2021-01-07 10:10:18 -08:00
Emanuele Dalla Longa
0b718aea93
[rs] Require labels to match gfx-rs/wgpu#1088
...
Change-Id: I1acc45a3023dfc78b6694bd4a28a0131f07b7ba7
2020-12-16 00:15:05 +01:00
Dzmitry Malyshau
47f471bebb
[rs] Introduce ShaderModuleDescriptor
2020-12-05 18:53:37 -05:00
kejor
fe1a76dee7
[rs] API and examples update for index_format
2020-12-04 20:29:42 -05:00
Zsolt Bölöny
7c290fdd8d
[rs] Rename TextureUsage::OUTPUT_ATTACHMENT to RENDER_ATTACHMENT
2020-11-09 10:35:55 +01:00
Paris DOUADY
d66ffc2902
[rs] Fix mipmap example which was y-flipped
2020-10-12 16:51:24 +02:00
Dzmitry Malyshau
dd850b8156
[rs] Use implicit bind group layout in the mipmap example
2020-09-10 23:59:52 -04:00
Rukai
3cfb3295cb
[rs] Replace unsafe impl Pod with safe derive
2020-09-08 23:39:12 +10:00
Dzmitry Malyshau
82866bac4a
[rs] Change buffer binding to not take a slice.
...
Also switch the shadow example to use dynamic offsets.
Add the relevant feature to our example table.
2020-08-21 09:49:33 -04:00
Dzmitry Malyshau
45de9a5462
[rs] Update wgpu with pipeline labels
2020-08-13 13:04:23 -04:00
Dzmitry Malyshau
5c5483a25e
[rs] Update for the wgpu grand refactor
2020-08-13 00:26:40 -04:00
Marvin Löbel
40ded76554
[rs] Udderly remove cows from the following APIs:
...
- BufferDescriptor
- CommandEncoderDescriptor
- RenderBundleDescriptor
- TextureDescriptor
- TextureViewDescriptor
- PipelineLayoutDescriptor
- SamplerDescriptor
- BindGroupDescriptor
- ProgrammableStageDescriptor
- RenderPassDescriptor
- RenderPipelineDescriptor
- BindGroupLayoutDescriptor
- VertexStateDescriptor
- VertexBufferDescriptor
- RenderBundleEncoderDescriptor
- ComputePipelineDescriptor
Also change anisotropy_clamp to use NonZeroU8
2020-08-12 10:21:38 +02:00
Dzmitry Malyshau
de41bac69b
[rs] Update wgpu for optional layouts
2020-08-10 16:42:52 -04:00
Kunal Mohan
f9ab713d0e
[rs] Replace u32 with NonZeroU32 in TextureView
2020-08-05 22:54:41 +05:30
Kunal Mohan
eba4cd977b
[rs] Replace NonZeroU32 with u32 in TextureViewDescriptor
2020-07-30 23:01:49 +05:30
OptimisticPeach
208e3ec8a0
[rs] Combine create_buffer and create_buffer_with_dataCombines both by creating a new buffer descriptor which can deal with both of copying and allocating.
2020-07-29 21:35:21 -04:00