Commit Graph

4133 Commits

Author SHA1 Message Date
Kevin Reid
eda77e6abb
Expand documentation of Queue::write_texture. (#3173) 2022-11-03 14:00:56 -04:00
Jim Blandy
9fb9dbf653 deno_webgpu: Don't confuse zero with "to the end of the buffer".
`RenderBundleEncoder::set_index_buffer` and `set_vertex_buffer`
interpret a `size` of `None` to mean "from the given offset to the end
of the buffer", but `std::num::NonZeroU64::new` produces `None` when
its argument is zero, which is quite different. Fix this similarly to
the way it's handled in `op_webgpu_render_pass_set_index_buffer`.

The WebGPU spec says this should work; filed as #3170.
2022-11-03 09:14:18 -07:00
Connor Fitzgerald
7f64498d6e
Test clamp and Generalize Shader Tests (#3167)
* Sample numeric tests

* Generalize shader tests
2022-11-02 19:42:18 -04:00
Connor Fitzgerald
4d199a38df
Forward port v0.14.1 changelog (#3166) 2022-11-02 22:15:03 +00:00
Lilith
a31cd2ef5c
Remove DEPTH24PLUS_STENCIL8 feature (#3151) 2022-11-02 16:44:15 -04:00
Imbris
8a7240cdbe Address review comments with small factoring out of conditional failure test pattern. 2022-11-02 02:14:42 -04:00
Imbris
688643d2b6 Indicate in MAPPABLE_PRIMARY_BUFFER docs that it it only supported on
vulkan, dx12, and metal.
2022-11-02 02:14:42 -04:00
Imbris
f018e9539b Rework buffer_usage test to properly check every failure case using error scopes (instead of accidentally just testing the first one). 2022-11-02 02:14:42 -04:00
i509VCB
32febc5c9e export the strict assert macros uniformly 2022-11-01 04:59:24 -04:00
i509VCB
085e41171f use debug_assert_** with not(feature = "strict_asserts")
strict_asserts should at least validate with the debug_assert_** family of macros in debug builds. Otherwise undefined behavior can sneak by.
2022-11-01 04:59:24 -04:00
Harald Reingruber
51b34c5b51
Improve compute shader validation error message (#3139)
* Improve compute shader validation error message

* Add entry to changelog.

* Improve error message wording (by cwfitzgerald)

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>

* Add credit and PR link to changelog

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-29 17:49:03 -04:00
Xiaopeng Li
ccabcad6bb
Update naga (#3144) 2022-10-28 11:46:43 -04:00
Connor Fitzgerald
c4533971c0
Struct Alignment Test (#3125) 2022-10-26 23:37:25 +00:00
Jinlei Li
dcc0baa1ff
Fix texture_as_hal internal unwrap may cause panic (#3131) 2022-10-26 17:13:43 -04:00
i509VCB
d81cb46be0
enable doc_auto_cfg for docs.rs (#3113)
* enable doc_auto_cfg for docs.rs

This should expose more feature labels in the generated documentation and removes the needs for the manually labeling the features for a type, function or enum variants.

* enable docsrs cfg when building docs for master
2022-10-26 17:07:25 -04:00
Josh Groves
49415fe971
Remove unrelated comment in CompositeAlphaMode (#3129) 2022-10-21 11:32:19 -04:00
Jinlei Li
cc448817e7
Use cargo 1.64 workspace inheritance feature (#3107) 2022-10-20 01:41:17 -04:00
Xiaopeng Li
754a4bad80
Add Surface::as_hal_mut (#3123) 2022-10-19 16:06:23 -04:00
Ashley
d3ab5a197e
WebGL2 multiview support via OVR_multiview2 (#3121)
* Add OVR_multiview2 support

* Add changelog entry

* Only use multiview on wasm32 + unknown

* Add note to Features::MULTIVIEW
2022-10-18 12:14:18 -04:00
Connor Fitzgerald
ce081796c8
Rework CI (#3097) 2022-10-14 22:55:36 -04:00
Benjamin Loison
435ce062a9
Correct a typo (#3108) 2022-10-15 01:00:49 +00:00
Jim Blandy
b28a87e298
Global init remove dummy argument (#3101) 2022-10-13 17:41:58 -04:00
Nicolas Silva
d1ff3838b8
Expose the full Result type to the rust map_async callback (#2939) 2022-10-13 15:41:52 -04:00
Jim Blandy
215884184b
Reformat comments in wgpu-core. (#3102) 2022-10-13 18:34:44 +00:00
Jim Blandy
fa4d8401e8
Use std::fmt::Formatter::debug_struct for RenderPass. (#3100) 2022-10-13 14:00:54 -04:00
i509VCB
7aca31fe9c
allow creation of wgpu_hal textures for gles backend (#3046)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-13 06:41:12 +00:00
Jinlei Li
caee97e402
Add get_default_configure to simplify user creation of SurfaceConfiguration (#3034) 2022-10-13 06:15:46 +00:00
Xiaopeng Li
9272cc65cc
Fix memory leak on macOS (#3056) 2022-10-13 02:13:31 -04:00
Jinlei Li
b72bcc54dc
web: implement queue_validate_write_buffer (#3098) 2022-10-13 02:11:31 -04:00
Jinlei Li
42be6f36aa
web: call create_query_set and write_timestamp of web-sys (#3091) 2022-10-13 02:10:33 -04:00
Jim Blandy
f3d455b617
vulkan: Don't use pointer to dropped PhysicalDeviceDriverProperties. (#3076)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-12 20:52:32 +00:00
Nicolas Silva
cf3ea638ee
(WIP) Add tests for empty buffers and map ranges (#2879) 2022-10-12 16:25:39 -04:00
Andreas Reich
aed3b1ae59
adds eq to DepthBiasState and DepthStencilState (#3096) 2022-10-12 14:28:44 -04:00
killian
0951b033a7
Implement Hash for DepthStencilState and DepthBiasState (#3092)
* Implement Hash for DepthStencilState and DepthBiasState

* Fix clippy error

* cargo fmt

* Fix Hash implementation

Co-authored-by: char0313 <killia.charrier@etudiant.univ-reims.dr>
2022-10-11 19:14:10 +00:00
Andreas Reich
351ca3ea3d
Fix webgl srgb blit not setting the viewport correctly (#3093)
* Fix webgl srgb blit not setting the viewport correctly

* Add changelog notes
2022-10-11 14:04:06 -04:00
Nicolas Silva
eca04f59db
Make some errors not fatal (#3094) 2022-10-11 13:40:30 -04:00
daxpedda
318cb7aa9b
Implement Clone for ShaderModuleDescriptor (#3086) 2022-10-09 14:14:33 -04:00
Andreas Reich
acadd8dad5
webgl backend supports now non-srgb framebuffer (#3070) 2022-10-08 23:48:44 -04:00
Lucas Kent
81dc1e24eb
Update cargo-run-wasm (#3057) 2022-10-08 22:51:01 -04:00
Lukas Herzberger
3cd93983b2
Create instance from worker (#2858)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-08 05:49:20 +00:00
Olaroll
f57db150f2
Fixed missing device feature in mipmap example (#3081) 2022-10-08 05:42:57 +00:00
daxpedda
02cc2ae234
[BREAKING] Make Shader(Module)Source::Wgsl optional (#2890) 2022-10-08 01:12:50 -04:00
char0313
6451d31b7a Add a CHANGELOG entry 2022-10-07 18:16:23 -04:00
char0313
d5f1941fea Change msrv and ci 2022-10-07 18:16:23 -04:00
char0313
ac5390528e Convert All Default Implementations on Enums to derive(Default) 2022-10-07 18:16:23 -04:00
Connor Fitzgerald
29643139e1
Update cargo-public-api report in release notes (#3078) 2022-10-07 00:01:40 +00:00
terrarier2111
1e63e8ca9b
Implement Default for CompositeAlphaMode (#3074) 2022-10-06 20:07:12 +00:00
Jim Blandy
58f92cc6b4
Provoke VUID-vkDestroyDevice-device-00378 without #3069. (#3075) 2022-10-06 18:06:32 +00:00
Nicolas Silva
f68a095ecb Add an entry in the changelog. 2022-10-06 10:12:16 -07:00
Nicolas Silva
0a3e209c90 Shrink the default max binding index to 640 and expose it in Limits.
Following the corresponding changes happening in WebGPU.
2022-10-06 10:12:16 -07:00