Nicolas Silva
9c6ae1beae
Log spring cleaning ( #6065 )
...
Remove unused logs in wgpu-core and wgpu-hal
2024-07-31 16:24:23 +00:00
Jim Blandy
7ff80d65fc
[naga] Use cfg aliases to enable naga:
🔙 :continue_forward.
...
Rather than `feature = "blah"`, use the new `cfg` identifiers
introduced by the `cfg_aliases` invocation in `naga/build.rs` to
decide whether to compile the `naga:🔙 :continue_forward` module,
which is only used by the GLSL and HLSL backends.
The `hlsl_out` `cfg` identifer has a more complex condition than just
`feature = "hlsl-out"`, introduced by #5919 .
Fixes #6063 .
2024-07-31 06:08:07 -04:00
AthosOfAthos
bfad205cf5
Reduced verbosity for 'Device::maintain: waiting for submission index… ( #6044 )
2024-07-30 10:58:38 +02:00
teoxoy
6351a75b0c
remove implemented TODO
2024-07-29 17:31:24 +02:00
teoxoy
76f9b2f87a
use ManuallyDrop
for Destroyed{Buffer,Texture}
2024-07-29 17:31:24 +02:00
teoxoy
650054bbcd
[player] simplify sync buffer writing
2024-07-29 17:31:24 +02:00
teoxoy
7502e65213
remove unused Global.device_get_buffer_sub_data
2024-07-29 17:31:24 +02:00
teoxoy
2ea081fabf
remove waiting functionality from Global.{buffer,texture,texture_view}_drop()
...
Those resources won't be destroyed if used by a submission anyway.
2024-07-29 17:31:24 +02:00
teoxoy
d1da4456a6
remove Global.clear_backend()
...
The method was only used by the player's tests which
was refactored to create a new `Global` instead.
Removing it cleans up the internals of `Hub.clear()`,
we should avoid having test only items.
2024-07-29 17:31:24 +02:00
teoxoy
f3e8e594ed
remove Hub.surface_unconfigure()
since the Hub
reference was unused.
2024-07-29 17:31:24 +02:00
teoxoy
1cb7ebab99
[wgpu-hal] replace Instance.destroy_surface()
with Drop
impls on Surface
s
...
Only the metal and vulkan backends require
destruction code and it can go in a `Drop` impl since
the `Instance` is unused in those implementations.
2024-07-29 17:31:24 +02:00
teoxoy
b145250ebc
[test] remove the workaround that keeps resources alive from the poll test
...
The workaround is no longer needed with aade481bdf
.
2024-07-29 11:29:53 +02:00
dependabot[bot]
69eea63757
build(deps): bump the patch-updates group with 2 updates ( #6059 )
...
Bumps the patch-updates group with 2 updates: [serde_json](https://github.com/serde-rs/json ) and [tokio](https://github.com/tokio-rs/tokio ).
Updates `serde_json` from 1.0.120 to 1.0.121
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.120...v1.0.121 )
Updates `tokio` from 1.39.1 to 1.39.2
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.1...tokio-1.39.2 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 09:37:03 +02:00
dependabot[bot]
3eb3595d02
build(deps): bump crate-ci/typos from 1.23.3 to 1.23.5 ( #6058 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.23.3 to 1.23.5.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.23.3...v1.23.5 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 09:20:57 +02:00
Samson
7462754bde
Remove 'de: 'static"
serde bound and replace &'static str
with Cow
in some errors ( #6048 )
...
* Remove `serde(bound(deserialize = "'de: 'static"))` and replace `&'static str` with `Cow` in deser errors
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Allow `clippy::result_large_err`
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-07-29 09:07:26 +02:00
dependabot[bot]
55ae943086
build(deps): bump the patch-updates group across 1 directory with 22 updates ( #6055 )
...
Bumps the patch-updates group with 17 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [env_logger](https://github.com/rust-cli/env_logger ) | `0.11.3` | `0.11.5` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.38.1` | `1.39.1` |
| [anstream](https://github.com/rust-cli/anstyle ) | `0.6.14` | `0.6.15` |
| [anstyle](https://github.com/rust-cli/anstyle ) | `1.0.7` | `1.0.8` |
| [anstyle-parse](https://github.com/rust-cli/anstyle ) | `0.2.4` | `0.2.5` |
| [anstyle-query](https://github.com/rust-cli/anstyle ) | `1.1.0` | `1.1.1` |
| [anstyle-wincon](https://github.com/rust-cli/anstyle ) | `3.0.3` | `3.0.4` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.9` | `4.5.11` |
| [clap_lex](https://github.com/clap-rs/clap ) | `0.7.1` | `0.7.2` |
| [colorchoice](https://github.com/rust-cli/anstyle ) | `1.0.1` | `1.0.2` |
| [env_filter](https://github.com/rust-cli/env_logger ) | `0.1.0` | `0.1.2` |
| [generator](https://github.com/Xudong-Huang/generator-rs ) | `0.8.1` | `0.8.2` |
| [is_terminal_polyfill](https://github.com/polyfill-rs/is_terminal_polyfill ) | `1.70.0` | `1.70.1` |
| [jobserver](https://github.com/rust-lang/jobserver-rs ) | `0.1.31` | `0.1.32` |
| [object](https://github.com/gimli-rs/object ) | `0.36.1` | `0.36.2` |
| [toml_datetime](https://github.com/toml-rs/toml ) | `0.6.6` | `0.6.7` |
| [version_check](https://github.com/SergioBenitez/version_check ) | `0.9.4` | `0.9.5` |
Updates `env_logger` from 0.11.3 to 0.11.5
- [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.11.3...v0.11.5 )
Updates `tokio` from 1.38.1 to 1.39.1
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.1...tokio-1.39.1 )
Updates `anstream` from 0.6.14 to 0.6.15
- [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.14...anstream-v0.6.15 )
Updates `anstyle` from 1.0.7 to 1.0.8
- [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.7...v1.0.8 )
Updates `anstyle-parse` from 0.2.4 to 0.2.5
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-parse-v0.2.4...anstyle-parse-v0.2.5 )
Updates `anstyle-query` from 1.1.0 to 1.1.1
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-query-v1.1.0...anstyle-query-v1.1.1 )
Updates `anstyle-wincon` from 3.0.3 to 3.0.4
- [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.3...anstyle-wincon-v3.0.4 )
Updates `clap` from 4.5.9 to 4.5.11
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.9...clap_complete-v4.5.11 )
Updates `clap_builder` from 4.5.9 to 4.5.11
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.9...v4.5.11 )
Updates `clap_derive` from 4.5.8 to 4.5.11
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.8...v4.5.11 )
Updates `clap_lex` from 0.7.1 to 0.7.2
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.7.1...clap_lex-v0.7.2 )
Updates `colorchoice` from 1.0.1 to 1.0.2
- [Commits](https://github.com/rust-cli/anstyle/compare/colorchoice-v1.0.1...colorchoice-v1.0.2 )
Updates `env_filter` from 0.1.0 to 0.1.2
- [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/env_filter-v0.1.0...env_filter-v0.1.2 )
Updates `generator` from 0.8.1 to 0.8.2
- [Release notes](https://github.com/Xudong-Huang/generator-rs/releases )
- [Commits](https://github.com/Xudong-Huang/generator-rs/compare/0.8.1...0.8.2 )
Updates `is_terminal_polyfill` from 1.70.0 to 1.70.1
- [Changelog](https://github.com/polyfill-rs/is_terminal_polyfill/blob/main-v1.70/CHANGELOG.md )
- [Commits](https://github.com/polyfill-rs/is_terminal_polyfill/compare/v1.70.0...v1.70.1 )
Updates `jobserver` from 0.1.31 to 0.1.32
- [Commits](https://github.com/rust-lang/jobserver-rs/compare/0.1.31...0.1.32 )
Updates `object` from 0.36.1 to 0.36.2
- [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gimli-rs/object/compare/0.36.1...0.36.2 )
Updates `tokio-macros` from 2.3.0 to 2.4.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-macros-2.3.0...tokio-macros-2.4.0 )
Updates `toml_datetime` from 0.6.6 to 0.6.7
- [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.6.6...toml_datetime-v0.6.7 )
Updates `version_check` from 0.9.4 to 0.9.5
- [Commits](https://github.com/SergioBenitez/version_check/compare/v0.9.4...v0.9.5 )
Updates `windows-core` from 0.54.0 to 0.58.0
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/compare/0.54.0...0.58.0 )
Updates `windows-result` from 0.1.2 to 0.2.0
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/commits )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: patch-updates
- dependency-name: anstream
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: anstyle
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: anstyle-parse
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: anstyle-query
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: anstyle-wincon
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap_builder
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap_derive
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap_lex
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: colorchoice
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: env_filter
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: generator
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: is_terminal_polyfill
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: jobserver
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: object
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tokio-macros
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: patch-updates
- dependency-name: toml_datetime
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: version_check
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: windows-core
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: patch-updates
- dependency-name: windows-result
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: patch-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 18:05:15 +02:00
teoxoy
ccd6d2ca48
remove BoundsCheckPolicies.image_store
2024-07-26 10:44:22 -07:00
Matthew Wong
339ecf37da
Fix error message in create_render_pass ( #6041 )
2024-07-26 16:59:41 +00:00
Bruce Mitchener
3166d37754
Use workspace dependencies more. ( #6020 )
2024-07-26 18:48:01 +02:00
teoxoy
1f4f675b1b
[naga] add back PartialEq
derives for some types
2024-07-26 09:37:52 -07:00
Andreas Reich
d3c38a4fd0
Fix AnyDevice drop implementation dropping the wrong thing ( #6052 )
2024-07-26 10:31:36 +02:00
teoxoy
03f6d24ea6
deduplicate derived BGLs
2024-07-25 18:15:29 +02:00
Marijn Suijten
2611d18b15
gles/wgl: Migrate from ancient/unmaintained winapi
to windows-rs
2024-07-25 11:15:26 +02:00
Erich Gubler
591e1d2a08
refactor(naga)!: remove FunctionTracer::overrides
2024-07-24 13:42:04 -04:00
Erich Gubler
6b3e039250
refactor(naga)!: remove ExpressionTracer::overrides
2024-07-24 13:42:04 -04:00
Erich Gubler
54fb4ccf7d
refactor(naga)!: remove Function::locals
, migrate docs to ExpressionContext::locals
2024-07-24 13:42:04 -04:00
Erich Gubler
65b6e15f0f
chore: satisfy clippy::unused_qualifications
2024-07-24 12:09:15 -04:00
Erich Gubler
723995d9a9
refactor: warn on and satisfy clippy::{ptr_as_ptr,ref_as_ptr}
in wgpu-{core,hal,types}
...
…using `cargo +1.79.0 clippy --workspace --all-features --all-targets
--fix`, plus some manual changes to (1) catch some missed cases (not run
on all platforms?) and (2) `--fix` doesn't make things compile again. 😀
2024-07-24 12:09:15 -04:00
Bruce Mitchener
06649a39f3
Fix a clippy::doc_lazy_continuation
lint ( #6036 )
2024-07-24 18:08:21 +02:00
Samson
2897fb58db
Error instead of panic in check bind ( #6012 )
...
Removed zipping of binding entries introduced in 4a19ac279c
(to make sure binding numbers actually match) and add unknown error for fallback.
2024-07-24 17:50:18 +02:00
Bruce Mitchener
4f02057359
Convert some module doc comments
...
Some module doc comments were using `/*! ... */` syntax and had
leading ` *` prefixes on each line. This interferes with the
tracking of `clippy::doc_lazy_continuation`, so switch those over
to `//!` style comment blocks.
This leaves `/*! ... */` blocks alone which didn't prefix each
line.
2024-07-24 11:17:00 -04:00
Bruce Mitchener
ea81a24414
naga: Remove feature std
for indexmap
...
This was added in https://github.com/gfx-rs/naga/pull/2062
This was needed before version 2, but not in version 2, so it
should be safe to remove now as it is enabled by default.
2024-07-24 16:55:57 +02:00
renshuncui
62333a573e
chore: fix some comments ( #6033 )
...
Signed-off-by: renshuncui <renshun@111.com>
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2024-07-24 16:48:51 +02:00
Erich Gubler
fa93676991
docs(CHANGELOG): add entry for const. eval of first{Leading,Trailing}Bit
2024-07-24 09:12:23 -04:00
Erich Gubler
a220fcfc57
feat(const_eval): impl. firstTrailingBit
2024-07-24 09:12:23 -04:00
Erich Gubler
2f7c87f7af
refactor(naga): rename MathFunction::FindLsb
to FirstTrailingBit
2024-07-24 09:12:23 -04:00
Erich Gubler
5b44baa8c8
feat(const_eval): impl. firstLeadingBit
2024-07-24 09:12:23 -04:00
Erich Gubler
c5fce7b433
refactor(naga): rename MathFunction::FindMsb
to FirstLeadingBit
2024-07-24 09:12:23 -04:00
Erich Gubler
3650f90079
refactor(const_eval): derive PartialEq
for testing in component-wise enum
s
2024-07-24 09:12:23 -04:00
Erich Gubler
380387e8e2
refactor(const_eval): derive Debug
for component-wise enum
s
2024-07-24 09:12:23 -04:00
Nicolas Silva
86507f33cd
Reduce the number of iterations in benchmarks to a small number when running on CI
2024-07-24 14:52:22 +02:00
Nicolas Silva
7446790354
Fix a few entry_point parameters
2024-07-24 14:31:23 +02:00
Erich Gubler
e216566e48
feat(shader)!: make ProgrammableStage::entry_point
optional
2024-07-24 07:40:00 -04:00
dependabot[bot]
4af1991569
build(deps): bump crate-ci/typos from 1.23.2 to 1.23.3 ( #6028 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.23.2 to 1.23.3.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.23.2...v1.23.3 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-24 09:19:51 +02:00
Erich Gubler
7b2e08fb94
refactor: satisfy clippy::missing_transmute_annotations
( #6024 )
...
* refactor(metal): satisfy `clippy::missing_transmute_annotations`
* refactor(gles): satisfy `clippy::missing_transmute_annotations`
* refactor(metal): `metal::Surface::view`: use `ptr::cast` instead of `as`
2024-07-24 08:56:45 +02:00
Andreas Reich
9b680e6997
Undo doing less bench iterations under cfg(test)
( #6021 )
2024-07-24 08:56:14 +02:00
Bruce Mitchener
0aca442d15
typos: More precise config, remove refs to "implace" ( #6018 )
...
The config can be made more precise so as to not accidentally
ignore some issues due to case (in-)sensitivity and searching for
substrings with `extend-words`.
Additionally, we can check the configuration directories as
well like `.github`.
The usage of `implace_it` went away some time ago, but not all
references were removed.
2024-07-24 08:55:10 +02:00
Imbris
6d7975eb3b
[naga hlsl-out glsl-out] Work around backend loop/switch bugs.
...
Introduce a new module, `naga:🔙 :continue_forward`, containing
shared code for rendering Naga `Continue` statements as backend
`break` statements and assignments to introduced `bool` locals.
See the module's documentation for details.
- [hlsl-out] Transform degenerate single body switches into `do-while`
loops. Properly render `Continue` statements enclosed by
`Switch` statements enclosed by `Loop` statements.
- [glsl-out] Transform degenerate single body switches into `do-while`
loops.
Improve `naga xtask validate spv` error message.
Fixes #4485 .
Fixes #4514 .
2024-07-23 18:12:19 -07:00
Erich Gubler
667096491d
style: remove trailing colons in Safety
section names
2024-07-23 14:02:16 -07:00
Erich Gubler
b350ca432b
style: use uppercase for SAFETY
comments
2024-07-23 14:02:16 -07:00