Dzmitry Malyshau
c8436de1ec
Force point size output on Vulkan
2021-09-15 19:15:23 -04:00
Christofer Nolander
06316c1bac
hal/metal: support Features::NON_FILL_POLYGON_MODE ( #1885 )
...
* hal/metal: support Features::NON_FILL_POLYGON_MODE
* Document Metal support for NON_FILL_POLYGON_MODE
* Split Features::NON_FILL_POLYGON_MODE in two
Adds two new features: `LINE_POLYGON_MODE` and `POINT_POLYGON_MODE`.
Allows metal to support `PolygonMode::Line` while not being required to
support `PolygonMode::Point`.
* Formatting
* Rename {LINE,POINT}_POLYGON_MODE to POLYGON_MODE_{LINE,POINT}
2021-08-31 16:20:38 +00:00
Dzmitry Malyshau
f78061bcef
Merge swap chain into surface
2021-08-11 20:58:42 -04:00
Dzmitry Malyshau
552a5f138e
Rename texture usage names
2021-07-28 00:17:54 -04:00
Dzmitry Malyshau
1a9a855ea9
Rename InputStepMode to VertexStepMode
2021-07-21 17:48:00 -04:00
Connor Fitzgerald
93cca6d182
Fix limits for rpi on vk
2021-07-03 22:15:16 -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
7b3a7db72e
Disable CI testing pending further investigation
2021-06-24 00:39:16 -04:00
Connor Fitzgerald
cfb84748bf
Exclude llvmpipe due to segfaults
2021-06-23 20:51:24 -04:00
Connor Fitzgerald
3356f5f993
PR comments
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
782c72d32c
hal/mtl: queue
2021-06-10 10:54:06 -04:00
Ian Gowen
29b1df51fc
[rs] Change the texture sample type for the cube example from Float to Uint, and move the mandelbrot->color mapping functionality from the texel generation code to the fragment shader.
2021-05-18 10:33:15 -04:00
VincentFTS
d81061eca8
[rs] Boost texels alpha channel in cube example.
...
Permits to have a good rendering for WebGL.
2021-03-26 18:43:45 +01:00
Gordon-F
6485e81f4b
[rs] Enable EXPERIMENTAL_TRANSLATION with GL backend for some examples
2021-03-25 22:11:51 +03:00
Joshua Groves
e65ef710a5
[rs] Update to latest wgpu-{core,types}
2021-03-24 00:00:16 -02:30
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
43423f922c
[rs] Update wgpu with the new vertex format
2021-02-27 22:56:47 -05:00
Dzmitry Malyshau
5c680a1629
[rs] Blend state API update
2021-02-19 16:16:19 -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
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
Dzmitry Malyshau
c9a718d689
[rs] Adopt the updated bind group entry API
2020-11-30 22:31:31 -05:00
Dzmitry Malyshau
72ab5f2809
[rs] Update wgpu with the polygon modes support, use in the cube example
2020-09-10 22:02:05 -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
Dzmitry Malyshau
6832ad1513
[rs] Update wgpu with the error model changes
2020-08-04 17:09:21 -04:00
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
Dzmitry Malyshau
e97bda20b2
[rs] Update wgpu, use defaults for rasterizer states, use depth-clamping
2020-07-23 22:35:13 -04:00
Marvin Löbel
50935bf1d3
[rs] Update wgpu-rs for the Cow changes in wgpu
2020-07-23 00:48:13 +02:00
Connor Fitzgerald
857955483a
[rs] Implement PUSH_CONSTANTS feature
2020-07-13 15:43:46 -04:00
Gabriel Majeri
f41e9ea5e2
[rs] Use common types from wgpu-types
2020-07-13 20:12:27 +03:00
Gabriel Majeri
c4888c1873
[rs] Unwrap errors from transfer API
2020-07-13 14:13:23 +03:00
Dzmitry Malyshau
f042b4a7e9
[rs] Refactor examples API, improve belt documentation and logic
2020-06-23 23:51:47 -04:00
Dzmitry Malyshau
3397750c4d
[rs] Staging belt, use LocalSpawner for the framework
2020-06-23 23:15:47 -04:00