VincentFTS
f465de93f8
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
53d92fa617
Enable EXPERIMENTAL_TRANSLATION with GL backend for some examples
2021-03-25 22:11:51 +03:00
Joshua Groves
761ce80947
Update to latest wgpu-{core,types}
2021-03-24 00:00:16 -02:30
Dzmitry Malyshau
0cccf9ccee
Update to naga-14
2021-03-14 00:50:35 -05:00
Dzmitry Malyshau
d4ec1157f0
Update wgpu depth_or_array_layers
2021-03-01 23:26:08 -05:00
Dzmitry Malyshau
6d39d8f739
Update wgpu with the new vertex format
2021-02-27 22:56:47 -05:00
Dzmitry Malyshau
60fe95205a
Blend state API update
2021-02-19 16:16:19 -05:00
Zsolt Bölöny
66b9633cf8
Convert PrimitiveState::cull_mode to Option<Face>
2021-02-11 12:59:47 +01:00
Dzmitry Malyshau
74eed253d8
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
517ce3ef8d
Update wgpu to the new render pipeline descriptor API
2021-01-29 00:51:44 -05:00
Connor Fitzgerald
6d52bc5535
Add pipeline statistics and timeline queries
2021-01-16 01:05:03 -05:00
Jay Oster
dae801baa0
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
bdd6edecd2
Require labels to match gfx-rs/wgpu#1088
...
Change-Id: I1acc45a3023dfc78b6694bd4a28a0131f07b7ba7
2020-12-16 00:15:05 +01:00
Dzmitry Malyshau
7b06c4a3f7
Introduce ShaderModuleDescriptor
2020-12-05 18:53:37 -05:00
kejor
423c2489b8
API and examples update for index_format
2020-12-04 20:29:42 -05:00
Dzmitry Malyshau
9c529b94f5
Adopt the updated bind group entry API
2020-11-30 22:31:31 -05:00
Dzmitry Malyshau
a9e9f8cabc
Update wgpu with the polygon modes support, use in the cube example
2020-09-10 22:02:05 -04:00
Rukai
085e50c798
Replace unsafe impl Pod with safe derive
2020-09-08 23:39:12 +10:00
Dzmitry Malyshau
44c6910934
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
1e695f2803
Update wgpu with pipeline labels
2020-08-13 13:04:23 -04:00
Dzmitry Malyshau
ed9a2ca6df
Update for the wgpu grand refactor
2020-08-13 00:26:40 -04:00
Marvin Löbel
e9cf243663
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
924e4b38e4
Update wgpu for optional layouts
2020-08-10 16:42:52 -04:00
Dzmitry Malyshau
9b5cbd98ad
Update wgpu with the error model changes
2020-08-04 17:09:21 -04:00
OptimisticPeach
2512c30e57
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
b76e560432
Update wgpu, use defaults for rasterizer states, use depth-clamping
2020-07-23 22:35:13 -04:00
Marvin Löbel
eb9299d247
Update wgpu-rs for the Cow changes in wgpu
2020-07-23 00:48:13 +02:00
Connor Fitzgerald
a67047297c
Implement PUSH_CONSTANTS feature
2020-07-13 15:43:46 -04:00
Gabriel Majeri
e01e93a619
Use common types from wgpu-types
2020-07-13 20:12:27 +03:00
Gabriel Majeri
009d062482
Unwrap errors from transfer API
2020-07-13 14:13:23 +03:00
Dzmitry Malyshau
aef72d7fd7
Refactor examples API, improve belt documentation and logic
2020-06-23 23:51:47 -04:00
Dzmitry Malyshau
4aa7abdff8
Staging belt, use LocalSpawner for the framework
2020-06-23 23:15:47 -04:00
Dzmitry Malyshau
3f57811e7a
Another refactor of RenderPassDescriptor API
2020-06-20 19:07:06 -04:00
Dzmitry Malyshau
330986bc66
Update wgpu without peek-poke
2020-06-20 17:20:20 -04:00
Dzmitry Malyshau
65718c1e25
Add include_spirv macro
2020-06-18 01:04:42 -04:00
Dzmitry Malyshau
3f0e11fe47
Remove interface blocks from the water shaders
2020-06-17 11:03:02 -04:00
bors[bot] and Nikita Krupitskas
ddfe8d67d2
Merge #374
...
374: Add debug markers and debug markers example r=kvark a=krupitskas
Depends on https://github.com/gfx-rs/wgpu/pull/719
Co-authored-by: Nikita Krupitskas <krupitskas@icloud.com >
2020-06-17 13:54:00 +00:00
Dzmitry Malyshau
47cbde6782
Update with minBufferBindingSize
2020-06-17 00:13:47 -04:00
Nikita Krupitskas
f9ae9be70a
Add debug markers and debug markers example
2020-06-16 11:13:03 +03:00
Dzmitry Malyshau
fe42169e2e
Revert "API update for RODS2"
...
This reverts commit edb3610530 .
2020-06-15 18:16:14 -04:00
Dzmitry Malyshau
edb3610530
API update for RODS2
2020-06-14 09:25:13 -04:00
Connor Fitzgerald
f8be38cc01
Implement TEXTURE_BINDING_ARRAY extension
2020-06-11 16:36:53 -04:00
Dzmitry Malyshau
9259d2e51d
Update to wgpu with shader validation
2020-06-08 20:54:39 -04:00
Connor Fitzgerald
b71c420f7a
Implement extensions interface as described in wgpu#691
2020-06-08 01:20:00 -04:00
Connor Fitzgerald
cf9d9d6656
Rustify the example's use of Extensions and SamplerDescriptor
2020-06-02 21:44:07 -04:00
Connor Fitzgerald
c4819ccf7d
Add Extension/Limit interface
2020-06-01 13:08:56 -04:00
AlphaModder
91d46ecc2b
Rename SwapChain::get_next_texture to SwapChain::get_next_frame, and have it return errors to the user.
2020-05-30 18:41:31 -07:00
Dzmitry Malyshau
686b4f71a6
Update wgpu and use write_texture
2020-05-26 10:10:32 -04:00
Dzmitry Malyshau
28c826182f
Update wgpu and use write_buffer in the examples
2020-05-14 10:12:47 -04:00
Paul Kernfeld
1172a186b1
Add Buffer.slice fn for #199
...
This fn is used for set_index_buffer, set_vertex_buffer, and
BindingResource
2020-05-10 17:37:19 -04:00