Commit Graph

4100 Commits

Author SHA1 Message Date
dependabot[bot]
bd712e083c Bump env_logger from 0.9.3 to 0.10.0 (#3479)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.3 to 0.10.0.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.9.3...v0.10.0)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 20:12:04 +00:00
dependabot[bot]
34da9b2da1 Bump termcolor from 1.1.3 to 1.2.0 (#3478)
Bumps [termcolor](https://github.com/BurntSushi/termcolor) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/BurntSushi/termcolor/releases)
- [Commits](https://github.com/BurntSushi/termcolor/compare/1.1.3...1.2.0)

---
updated-dependencies:
- dependency-name: termcolor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 20:09:18 +00:00
dependabot[bot]
fd920338a0 Bump range-alloc from 0.1.2 to 0.1.3 (#3477)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 17:41:04 +00:00
dependabot[bot]
420cfe66f7 Bump wasm-bindgen-test from 0.3.33 to 0.3.34 (#3474)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 17:36:56 +00:00
dependabot[bot]
0c273bc496 Bump hassle-rs from 0.9.0 to 0.10.0 (#3473)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 12:17:17 -05:00
dependabot[bot]
1c17d57e4d Bump thiserror from 1.0.37 to 1.0.38 (#3471)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 17:16:09 +00:00
dependabot[bot]
72ff326b53 Bump bytemuck from 1.12.3 to 1.13.0 (#3470)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 17:09:40 +00:00
dependabot[bot]
492b877b68 Bump libc from 0.2.126 to 0.2.139 (#3469)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 17:06:57 +00:00
daxpedda
5677195873 Add Dependabot (#3468) 2023-02-10 11:51:06 -05:00
daxpedda
5b8c55c451 Build for WASM on docs.rs (#3462) 2023-02-09 15:38:40 -05:00
Jinlei Li
4593f951dd vk: fix surface view formats validation error (#3432)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-02-09 13:00:42 -05:00
Jinlei Li
0d5b4841d5 web: reimplement adapter|device_features (#3428) 2023-02-09 12:14:15 -05:00
Teodor Tanasoaia
4bebad706e Improve CI (#3453) 2023-02-09 10:33:53 -05:00
Connor Fitzgerald
49cfc88f35 [GL] Unbind Vertex Buffers After Renderpass (#3459)
Closes https://github.com/gfx-rs/wgpu/issues/3457
2023-02-09 10:32:27 -05:00
Connor Fitzgerald
f1ef213bbb Fix CI for merge queues 2023-02-08 19:52:25 -05:00
Jim Blandy
b1d2ec043e Don't try to build the entire workspace on wasm32. (#3460) 2023-02-07 21:56:00 +00:00
Nathan Adams
238697c2da Add MULTISAMPLE_X16 texture format feature flag where supported (#3454) 2023-02-06 19:53:48 +01:00
Andreas Reich
3ea2c22c47 Fix for some minor issues in comments on some features. (#3455) 2023-02-06 18:19:33 +01:00
Teodor Tanasoaia
41de797c74 Change type of mip_level_count and array_layer_count (members of TextureViewDescriptor and ImageSubresourceRange) from Option<NonZeroU32> to Option<u32> (#3445)
Clean up duplicated code related to texture layers/mips.
2023-02-03 15:03:34 +01:00
Nicolas Silva
6399dd4866 Update naga to 0.11.0@git:4b796b157cb2b67b0ab166a2238fe4e9473bfd52 (#3451) 2023-02-03 12:30:08 +01:00
Elabajaba
42b48ecb9f Update gpu allocator to 0.22 (#3447)
* bump gpu-allocator version

* cargo.lock
2023-02-03 00:58:07 -05:00
Leo Kettmeir
e36c080ef8 fix(deno): specify viewFormats in configure surface (#3446) 2023-02-02 22:14:31 +01:00
Connor Fitzgerald
4ea31598a0 Re-sort view formats (#3444) 2023-02-02 09:22:33 +01:00
Elabajaba
7826092d86 Fix dx12 shader validation errors when dxil.dll isn't available in the local scope. (#3434)
* Fix dx12 shader validation errors when dxil.dll isn't available in the local scope.

* changelog

* clippy

* always explicitly validate shaders to simplify code

* destructor ordering
2023-02-01 22:55:54 -05:00
Elabajaba
c5e2f5a7b9 Add SHADERINT_16 feature to allow 16bit ints in Vulkan shaders (#3401)
* add support for vulkan SHADER_INT16

* changelog

* deno shader-i16

* better INT16 docs

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

* fix typo

---------

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-02-02 02:00:22 +00:00
AdrianEddy
2562f323bb [Metal] Add a way to create a device and queue from raw resources in wgpu-hal (#3338) 2023-02-01 23:56:48 +00:00
Elabajaba
1e27fd4afb fix clippy for rust 1.67 (#3435)
* clippy --fix

* elide lifetimes

* fmt and more fixes

* disable clippy::needless_borrowed_reference as it clashes with clippy::pattern_type_mismatch

* missed flags for target=wasm32-unknown-unknown
2023-02-01 23:06:03 +01:00
João Capucho
c371e7039d Implement the new checks for readonly stencils (#3443)
wgpu currently checks if the `write_mask` is 0 to determine wether a
stencil is used as readonly or not. However Webgpu contains a more
complex ruleset that also checks the cull mode and face operations to
determine if the stencil is readonly or not.

This commit brings these new rules to wgpu.
2023-02-01 21:13:46 +01:00
Nicolas Silva
48d8666de0 Remove some workspace inheritence from wgpu-types/Cargo.toml. (#3439)
Unfortunately that breaks the cargo vendor stuff in mozilla-central even though it is part of a build configuration that m-c does not use.
2023-01-31 12:28:42 +01:00
Teodor Tanasoaia
98ea3500fd copyTextureToTexture src/dst aspects must both refer to all aspects of src/dst format (#3431)
* src/dst aspects must both refer to all aspects of src/dst format

* add changelog entry
2023-01-28 17:08:21 +01:00
Jinlei Li
b31069f14a Improve vk format msaa capabilities detection (#3429)
* Improve vk format msaa capabilities detection

* Update CHANGELOG

* Follow the suggestions

* Update wgpu-hal/src/vulkan/adapter.rs

Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2023-01-28 12:03:43 +00:00
Raph Levien
fe2b230b0e Implement clear_buffer on web (#3426) 2023-01-26 22:32:34 +00:00
Connor Fitzgerald
659f697705 Add naga section in changelog v0.15.0 2023-01-25 19:45:50 -05:00
Connor Fitzgerald
b04cae69c0 Fix winapi features wgpu-v0.15.0 wgpu-hal-v0.15.1 2023-01-25 19:38:29 -05:00
Connor Fitzgerald
cf17230e32 Fix d3d12 version 2023-01-25 19:32:47 -05:00
Connor Fitzgerald
71e7bb2cf9 Fix wgpu versioning 2023-01-25 19:30:45 -05:00
Connor Fitzgerald
007d933260 Fix wgpu-core versioning 2023-01-25 19:30:39 -05:00
Connor Fitzgerald
c3ed411375 Fix wgpu-hal versioning wgpu-hal-v0.15.0 2023-01-25 19:27:20 -05:00
Connor Fitzgerald
d3fec9524f Release of 0.15 (#3424) wgpu-types-v0.15.0 2023-01-25 19:25:41 -05:00
Teodor Tanasoaia
d2809137ba Zero-initialize workgroup memory (#3174)
fixes https://github.com/gfx-rs/wgpu/issues/2430
2023-01-25 18:28:35 -05:00
Connor Fitzgerald
f3090955e1 Move surface view formats to a vec (#3423) 2023-01-25 22:17:56 +00:00
Jinlei Li
33f94c7c84 Implement view_formats for SurfaceConfiguration (#3409)
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-01-25 21:04:41 +00:00
823984418
5ded4ba701 In IntelliJ Rust plugin, Declarative macro expansion of bitflags! fails when a backslash is present in rustdoc. (#3386) 2023-01-25 20:05:05 +00:00
Jinlei Li
0d433214c7 validate the number of color_attachments in begin_render_pass (#3404) 2023-01-25 14:48:27 -05:00
Jinlei Li
969af43c05 move require_downlevel_flags(VIEW_FORMATS)? from create_texture_view() to create_texture() (#3420) 2023-01-25 17:33:58 +01:00
Almar Klein
9908f3ed04 Add test for writing a 3D texture (#3418) 2023-01-24 17:06:09 -05:00
IceSentry
bb876f372a Better error message for 16 byte alignment error (#3414)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Co-authored-by: gilescope <gilescope@gmail.com>
Closes https://github.com/gfx-rs/wgpu/pull/3099
Closes https://github.com/gfx-rs/wgpu/issues/2832
2023-01-24 20:46:19 +00:00
Elabajaba
5da2b8ad6b implement add_srgb_suffix for TextureFormat (#3419) 2023-01-24 15:16:45 -05:00
Ashley
c039a74884 [WebGL] Allow creating a texture from an external web_sys::WebGlFramebuffer and writing to it (#2609) 2023-01-24 13:47:03 -05:00
Connor Fitzgerald
95a760bb42 Implement queue.copy_external_image_to_texture for WebGL2 and improve WebGPU Impl (#3288)
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
Closes https://github.com/gfx-rs/wgpu/issues/1888
2023-01-24 18:44:15 +00:00