Commit Graph

4171 Commits

Author SHA1 Message Date
Nicolas Silva
e90aacea96
Validate texture copy ranges earlier to prevent integer overflow (#3090)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-12-01 01:20:48 +00:00
Erich Gubler
46b121667b
refactor(dx12): remove unsafe ops in Adapter::texture_format_capabilities (#3194) 2022-11-30 16:48:03 -05:00
Erich Gubler
9bb2d28ce2
Add cargo-deny to CI (#3185) 2022-11-30 16:46:58 -05:00
Jim Blandy
9c6a60d97c
Fix surface creation cfgs in example framework. (#3246) 2022-11-30 16:46:24 -05:00
Nicolas Silva
a9d33193b3
Fix incorrect offset in get_mapped_range (#3233)
* Add a test.

* Fix incorrect offset in get_mapped_range.

* Add an entry in the changelog.
2022-11-30 16:45:49 -05:00
Jim Blandy
6d025a93c7
README.md: Update "Get started" link to "Running the examples". (#3242) 2022-11-28 14:38:39 -05:00
Connor Fitzgerald
183ba3f231 Make Surface::get_default_config return an Option. 2022-11-27 01:50:47 -05:00
Connor Fitzgerald
84cb3e65a9 Unify Surface Capabilities APIs under one function call 2022-11-27 01:50:47 -05:00
Jinlei Li
d7fe7ef8cc
vk: eliminate duplicate values in SurfaceCapabilities's formats field (#3227) 2022-11-26 03:37:37 -05:00
Nicolas Silva
82e9dcf8f7
Allow unspecified bits when deserializing the API's bitflags (#3229) 2022-11-25 23:13:22 -05:00
Jim Blandy
d4b1d57f3c
Move ResourceMetadata into its own module, and give it a proper interface (#3213) 2022-11-23 17:29:20 -05:00
Samuel Hurel
d3e5789b95
Fix doc generation (#3224) 2022-11-23 16:59:59 -05:00
Jim Blandy
73b23f1c8d
Move minimum supported rust version (MSRV) from 1.65 back to 1.64. (#3231) 2022-11-23 21:22:03 +00:00
Andreas Reich
2ccfb42440
allow gles float textures to be multisampled if available (#3183) 2022-11-23 16:10:11 -05:00
Jim Blandy
596d8851aa
Update ndk-sys to v0.4.1+23.1.7779620, to fix checksum failures. (#3232) 2022-11-23 15:29:22 -05:00
Jim Blandy
f41a1c294b
Remove unnecessary mutability from ResourceMetadata field uses. (#3210) 2022-11-15 21:52:12 +00:00
Erich Gubler
18f3f5f6f0
Enable unsafe_ops_in_unsafe_fn lint in all workspaces (#3044) 2022-11-14 10:49:39 -08:00
Connor Fitzgerald
d536613705
Fix merge compile issues (#3198) 2022-11-09 21:46:49 +00:00
Jim Blandy
bc1728065b
wgpu-hal: Document some details of buffer binding. (#3169) 2022-11-09 15:50:06 -05:00
i509VCB
0e937c8cd0
make Ids a u64 internally (#3178) 2022-11-09 15:48:07 -05:00
Ali
3c82a4cd5c
Added support for MSAA(x2,x8) beyond WEBGPU restrictions for native a… (#3140)
Closes https://github.com/gfx-rs/wgpu/issues/2910
2022-11-09 15:19:05 -05:00
Jinlei Li
04d12baa81 Change get_metal_layer() visiability to pub(crate) 2022-11-08 20:16:32 -08:00
Erich Gubler
08b160c293 style: strip trailing whitespace from ci.yml 2022-11-07 17:36:04 -08:00
Erich Gubler
c04da7adae style: strip trailing whitespace from README.md 2022-11-07 17:36:04 -08:00
Erich Gubler
6e026c8c0a style: EOF newline for ctx.yml 2022-11-07 17:36:04 -08:00
Erich Gubler
46af01c302 build: migrate Rust 1.64 -> 1.65 2022-11-07 17:36:04 -08:00
Erich Gubler
3d76979da6 build(ci): use RUST_VERSION for CTS consistently 2022-11-07 17:36:04 -08:00
Erich Gubler
4a9797276a refactor: resolve clippy::needless_borrow 2022-11-07 17:36:04 -08:00
Erich Gubler
a818b8540a refactor: resolve clippy::needless_return in raw-gles example 2022-11-07 17:36:04 -08:00
Erich Gubler
319a916cb6 refactor: fix label shadow warning for new_alpha_mode 2022-11-07 17:36:04 -08:00
Erich Gubler
fb67de908e refactor: resolve clippy::explicit_auto_deref 2022-11-07 17:36:04 -08:00
Erich Gubler
98eb19c854 refactor: resolve clippy::bool_to_int_with_if 2022-11-07 17:36:04 -08:00
Andreas Reich
a377ae2b7f
Alpha to coverage support for GLES (#3187) 2022-11-07 16:56:59 -05:00
Andreas Reich
b838b0871c
Added new UNRESTRICTED_INDEX_BUFFER downlevel flag. (#3157)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-11-07 15:45:50 -05:00
Nicolas Silva
db30e3909a
Avoid integer overflow on multiplication in write_texture. (#3146) 2022-11-07 15:31:19 -05:00
Erich Gubler
2245227f83 style(wgpu-info): strip trailing newlines 2022-11-07 14:28:08 -03:30
Erich Gubler
17b748a8a4 fix(wgpu-info): s/driver/&_info for DriverInfo line 2022-11-07 14:28:08 -03:30
TheOnlyMrCat
6ed103ec18
Add expose-ids feature (#3104) 2022-11-04 15:28:56 -04:00
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