Diggory Blake
bed49ac654
Print chosen adapter when running examples
2020-11-30 18:33:51 +00:00
Dzmitry Malyshau
2dc59ba2d9
Port to the updated wgpu error model
2020-11-23 17:59:21 -05:00
Zsolt Bölöny
16427aed19
Rename TextureUsage::OUTPUT_ATTACHMENT to RENDER_ATTACHMENT
2020-11-09 10:35:55 +01:00
Dzmitry Malyshau
503b61dc6c
Update wgpu with another bind group fix, updated power preference
2020-10-13 16:57:52 -04:00
Dzmitry Malyshau
30fb46a999
Really fix the environment to WGPU_BACKEND this time
2020-10-11 23:43:39 -04:00
Dzmitry Malyshau
d8fe188305
Support WGPU_BACKEND environment in the examples
2020-10-11 23:17:38 -04:00
Joshua Groves
0fb8a436e5
Reorder framework window creation for web
2020-09-16 01:04:49 -02:30
crispweed
1935cfa28a
Removed erroneous zero size check related conditional in water example resize() ( #534 )
...
* The conditional at the start of resize() already tests for and exits on the zero width and height condition.
The conditional removed here was then getting run on every other call to resize(), which doesn't seem logical, doesn't correspond to the comment, and seemed to be causing at least one issue with rendered viewport going black during resize.
Fixes #532
(probably) Fixes #519
* Defensive coding to prevent various issues when window size goes to zero, e.g. NaN being passed in cgmath::perspective() aspect ratio parameter.
Fixes #531
2020-08-25 13:25:50 -04:00
Dzmitry Malyshau
ed9a2ca6df
Update for the wgpu grand refactor
2020-08-13 00:26:40 -04:00
Connor Fitzgerald
ccfe3ed285
Enable features in CI to prevent compiler errors
2020-07-29 12:58:08 -04:00
Connor Fitzgerald
7871d100c8
Convert to tracing for logging and add fmt logger
2020-07-26 00:44:39 -04:00
Connor Fitzgerald
7e17789987
Split framework limit situation into requested/required, enforcing correctness in the framework
2020-07-24 17:37:04 -04:00
Rukai
be388200dc
Update to latest wgpu
2020-07-21 01:51:55 +10:00
Zsolt Bölöny
10538f8a9f
Move logger init earlier in the example framework
2020-07-19 22:41:27 +02:00
Connor Fitzgerald
a67047297c
Implement PUSH_CONSTANTS feature
2020-07-13 15:43:46 -04:00
m4b
68754e6ca9
recreate swapchain on framework.rs examples on resize, ref #352
2020-07-10 21:30:39 -07:00
Gabriel Majeri
eb91482d0b
Update to new wgpu-core render pipeline API
2020-07-07 21:02:11 +03:00
Connor Fitzgerald
5529b60da4
Convert Extensions + Capabilities into Features
2020-06-26 01:27:57 -04:00
kyren
e6ec327689
A different attempt at the example framework
2020-06-25 13:13:13 -04:00
kyren
f05496fa59
Get event loop + futures working on native, untested on web
2020-06-25 13:13:13 -04: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
Connor Fitzgerald
741644d252
Add Tracing
2020-06-22 23:14:29 -04:00
Marvin Löbel
693abce446
Move backends: BackendBit paramter to Instance::new()
2020-06-19 01:25:38 +02: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
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
1e722a557e
Read WGPU_TRACE environment in the examples
2020-05-15 17:49:16 -04:00
Dzmitry Malyshau
28c826182f
Update wgpu and use write_buffer in the examples
2020-05-14 10:12:47 -04:00
Keeley Hoek
ab2f1c7d03
Don't busy-redraw in examples
2020-05-12 03:20:19 +10:00
Dzmitry Malyshau
17b46687ce
Rustfmt pass on examples
2020-05-05 21:55:42 -04:00
Dzmitry Malyshau
4413c4648d
Update for wgpu-core
2020-04-30 15:52:16 -04:00
Dzmitry Malyshau
e30a428190
Port the Web backend to the Context trait
2020-04-26 19:18:24 -04:00
Dzmitry Malyshau
ba95354734
Rewire the backend system to remove wgpu-native step
...
Main change here is the introduction of the Context trait.
The "direct" implementation of it goes straight to wgpu-core.
This commit also has small improvements:
- consuming command buffers on submit
- Instance type
- proper call to destructors
2020-04-26 19:18:24 -04:00
Joshua Groves
423f576d8e
Use srgb for swapchain when possible
2020-04-18 01:04:28 -02:30
Joshua Groves
f0ab842d6e
Combine wasm_main/main and add console_log
2020-04-18 01:04:28 -02:30
Joshua Groves
349f992a7a
Switch event loop back to ControlFlow::Poll
2020-04-18 01:04:28 -02:30
Joshua Groves
2ea9e01e5c
Get boids working
2020-04-18 01:04:28 -02:30
Joshua Groves
e1eaa6ca26
Add web backend
2020-04-18 01:04:28 -02:30
Hackpoetic
a6e81dc703
cargo fmt the code and tweak format rules
2020-04-10 22:56:24 -04:00
Dzmitry Malyshau
b93e942b58
Update to latest wgpu, duplicate RequestAdapterOptions
2020-04-02 00:29:24 -04:00
Dzmitry Malyshau
02f7ac9c02
Change NDC Y axis
2020-03-30 09:36:36 -04:00
Joshua Groves
b3e4253df1
Return futures from request adapter/request device
2020-03-16 16:35:51 -02:30
Dzmitry Malyshau
d842432d17
Update for the latest spec changes
2020-03-15 11:25:06 -04:00
Dzmitry Malyshau
b588345568
Disable no_redirection_bitmap on Windows
2020-02-09 19:25:34 -05:00
Dzmitry Malyshau
3a9113c962
Disable window bitmap redirection
2020-02-02 00:21:51 -05:00
Dzmitry Malyshau
37094051b5
Update wgpu and winit
2020-01-13 13:20:13 -05:00