Teodor Tanasoaia
7d1005faad
[WebGPU] validate polygon mode ( #4196 )
2023-10-04 12:27:27 +00:00
Teodor Tanasoaia
fd02a12726
Make GLES optional on Windows & macOS ( #4185 )
2023-10-03 16:16:24 -04:00
Teodor Tanasoaia
422c636877
Add Rgb10a2Uint format ( #4199 )
2023-10-03 14:56:21 +02:00
Brad Werth
57f8757fad
Add device destroy method ( #4163 )
...
Plus tests that ensure that an invalid device behaves correctly.
Mostly a stub implementation otherwise.
2023-09-27 14:34:23 +02:00
Jacob Hughes
27f2ce397a
Re-export Naga ( #4172 )
2023-09-25 13:23:03 -07:00
Jim Blandy
8e393ca213
Add some missing Debug implementations. ( #4166 )
2023-09-22 23:00:07 -04:00
Frederik Magnus Johansen Vestre and Teodor Tanasoaia
dc5beac8c9
Support dual source blending ( #4022 )
...
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2023-09-19 13:26:30 +02:00
Andreas Reich and Connor Fitzgerald
507101987b
Make StoreOp an enum instead of a bool ( #4147 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-09-18 14:58:41 -04:00
Kevin Reid
7c575a0b40
Add details to RequestDeviceError. ( #4145 )
2023-09-16 00:16:49 -04:00
Kevin Reid and Connor Fitzgerald
332cd0325d
Add details to InstanceError and CreateSurfaceError. ( #4066 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-09-01 01:48:31 -04:00
Patrik Buhring
41efabbd88
Fix limits interface on web. ( #4107 )
2023-09-01 05:46:00 +00:00
Fredrik Fornwall
bf324fb947
Make power_preference_from_env() respect WGPU_POWER_PREF=none ( #4076 )
...
Also update wgpu/README.md now that default() is None.
2023-08-18 11:05:34 +02:00
JMS55
76aa03c9dc
Faster set_bind_group for WebGPU backend ( #4068 )
2023-08-16 23:26:29 -04:00
Pieter-Jan Briers
e973a06268
Allow specifying minor GLES3 version ( #3998 )
2023-08-16 11:51:56 -04:00
Kevin Reid
2bdb3196f9
Add an overview of RenderPass and how render state works. ( #4055 )
...
* Explain the general relationship of `set` and `draw` methods.
* Explain render state changes and that you can have lots of them.
* Specify default values of render state.
2023-08-14 22:24:27 +02:00
Connor Fitzgerald
f825ce4ac2
Fix Callback Ordering ( #4036 )
...
* Fix Callback Ordering
* Format & Changelog
2023-08-14 08:33:50 -04:00
Ryan Kaplan and Ryan Kaplan
014ae3fe43
Add get_mapped_range_as_array_buffer which - on wasm WebGPU builds - avoids copying mapped data into wasm heap ( #4042 )
...
Co-authored-by: Ryan Kaplan <ryan@Ryans-M2.local >
2023-08-13 16:02:16 +02:00
3305e88d63
feature: Timestamp queries ( #3636 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: Connor Fitzgerald <connor@modyfi.io >
2023-08-02 18:04:24 -04:00
494ae1a815
Add support for occlusion queries ( #3402 )
...
Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-08-02 19:05:59 +00:00
Erich Gubler
eb45d01b50
refactor: satisfy clippy::items_after_test_module
2023-07-25 17:05:28 -04:00
amfaber and Connor Fitzgerald
a60efbde96
Expose TextureUsages in SurfaceCapabilities ( #3874 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-07-19 22:57:41 +00:00
Aaron Hill and Connor Fitzgerald
fd5550cc89
Make RequestAdapterOptions.power_preference optional ( #3903 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-07-19 21:04:31 +00:00
Fredrik Fornwall and Andreas Reich
89f721f882
Make initialize_adapter_from_env take a compatible surface ( #3905 )
...
* Make initialize_adapter_from_env take a compatible surface
Add a compatible surface parameter to initialize_adapter_from_env, and
use that to make initialize_adapter_from_env_or_default always respect
its compatible_surface parameter.
---------
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2023-07-10 09:27:02 +02:00
AdrianEddy
e85cc91b5d
Add support for importing external buffers ( #3355 )
2023-07-07 18:00:08 -04:00
Fredrik Fornwall
234dea18c4
Fix link to GPUVertexBufferLayout
...
Fixes #3342 .
2023-07-05 20:08:22 -02:30
Fredrik Fornwall
1c43272d2a
Remove backend_bits from initialize_adapter_from_env ( #3904 )
...
Remove backend_bits from initialize_adapter_from_env, backends can
be specified using the backends field in InstanceDescriptor instead.
2023-07-05 18:21:39 +02:00
daxpedda and Connor Fitzgerald
88f18ed190
Don't implement Send or Sync on Wasm ( #3691 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-06-29 20:31:18 +00:00
Jinlei Li
cc203a66b1
web: use get_preferred_canvas_format() to fill SurfaceCapabilities ( #3744 )
...
* web: use `get_preferred_canvas_format()` to fill `formats` of `SurfaceCapabilities`
* Only keep preferred format as the first element
* Update CHANGELOG
* Find preferred format and move it to the first position in the formats.
* Add a note to preferred_format.
* Remove the unnecessary allocation.
2023-06-23 22:24:58 +08:00
Sven Sauleau
45efae315b
fix Wasm casing ( #3878 )
2023-06-21 20:54:07 +00:00
Andrew Wheeler(Genusis)
2ee2e1a770
Update RenderPass draw, draw_indexed, set_viewport and set_scissor_rect documentation ( #3860 )
2023-06-17 17:11:24 +00:00
Connor Fitzgerald
db39b5423e
Formatting and example command fixes ( #3872 )
2023-06-15 20:05:26 +00:00
Connor Fitzgerald
e6be20f72e
Make wgpu-info into a proper CLI Tool ( #3856 )
2023-06-15 19:56:15 +00:00
Connor Fitzgerald and Connor Fitzgerald
10172e1f38
Move Examples and Tests to Their Own Crates ( #3841 )
...
Co-authored-by: Connor Fitzgerald <connor@modyfi.io >
2023-06-10 18:35:46 +00:00
Connor Fitzgerald and Connor Fitzgerald
173820222f
Migrate to nv-flip for image comparison ( #3830 )
...
Co-authored-by: Connor Fitzgerald <connor@modyfi.io >
2023-06-08 11:48:06 -04:00
Connor Fitzgerald
1d2a667b71
Fix trying to use a renderpass inside a compute pass ( #3828 )
...
* Fix trying to use a renderpass inside a compute pass
* Fix pipeline statistics test on mac
* Changelog
2023-06-05 09:05:59 -04:00
Jim Blandy
29914b308f
wgpu-core: Move identity code to new identity module.
2023-05-24 09:54:03 -07:00
Jim Blandy
13bd3eea55
wgpu-core: Move HalAPI to new hal_api module.
2023-05-24 09:54:03 -07:00
Jim Blandy
f00e6b70ea
wgpu-core: Move Global to new global module.
2023-05-24 09:54:03 -07:00
kyren
9c8666a5c9
Implement Send and Sync unconditionally for exposed Id type. ( #3801 )
2023-05-24 15:10:59 +02:00
Jim Blandy
3563849585
Document that various sizes and offsets are in bytes. ( #3773 )
2023-05-13 22:22:28 -04:00
Ame
4d8a7ed38d
Change AdapterInfo::{device,vendor} fields to u32 ( #3760 )
...
* Change AdapterInfo device and vendor to u32s
* Add CHANGELOG
2023-05-09 11:17:27 +02:00
Andreas Reich
1dd105c3bf
Fix crash on command buffer drop ( #3726 )
2023-05-03 05:00:59 -04:00
Josh Groves
66c029f172
Pass correct surface for existing canvases ( #3718 )
2023-04-30 21:52:41 +09:00
Alix Bott and Connor Fitzgerald
c86f9773ca
Fix unsetting vertex attributes in gles backend ( #3706 )
...
Co-authored-by: Connor Fitzgerald <connor@modyfi.io >
2023-04-19 21:14:45 +00:00
daxpedda
85fc427470
Adjust internal canvas size on Surface::configure() ( #3690 )
2023-04-19 21:09:31 +00:00
Jinlei Li
62ea7813e4
Implement Features::RG11B10UFLOAT_RENDERABLE ( #3701 )
2023-04-19 13:34:29 +02:00
pudi
562ad0d7c2
Fix documentation comments for multi_draw_*_indirect_count ( #3694 )
2023-04-15 18:13:31 +00:00
François
bf8e6fe371
add feature RG11B10UFLOAT_RENDERABLE on webgpu ( #3689 )
...
* add feature RG11B10UFLOAT_RENDERABLE on web
* changelog
2023-04-14 14:52:37 +02:00
François
8985bca32c
remove old comment about swapchain for the web ( #3673 )
2023-04-12 21:55:16 +00:00
Connor Fitzgerald and Connor Fitzgerald
a7defb723f
Cleanups for WebGPU ( #3671 )
...
Co-authored-by: Connor Fitzgerald <connor@modyfi.io >
2023-04-12 21:27:30 +00:00