teoxoy
2e1e1cd26e
inline id getters
2024-06-20 16:34:17 +02:00
teoxoy
ef2da1a6d7
rename UsageConflict to ResourceUsageCompatibilityError
2024-06-20 16:34:17 +02:00
teoxoy
5f6848eddf
remove IDs from UsageConflict variants
2024-06-20 16:34:17 +02:00
teoxoy
123a59ae7b
change return type of ResourceMetadataProvider.get to &Arc<T>
2024-06-20 16:34:17 +02:00
teoxoy
26eceabe86
move body of BufferUsageScope.insert_merge_single in BufferUsageScope.merge_single
2024-06-20 16:34:17 +02:00
teoxoy
aaec1c37b9
take resource lookup out of BufferUsageScope.merge_single
2024-06-20 16:34:17 +02:00
teoxoy
f5072261c7
remove ID from QueueSubmitError::BufferStillMapped
2024-06-20 16:34:17 +02:00
teoxoy
b0d2517bf4
change BindGroup.raw to BindGroup.try_raw
2024-06-20 16:34:17 +02:00
teoxoy
08f5eb82cd
introduce TextureView.try_raw
2024-06-20 16:34:17 +02:00
teoxoy
7bd9195aa2
take resource lookup out of StatelessTracker.add_single
2024-06-20 16:34:17 +02:00
teoxoy
2ec7254772
remove old comment
2024-06-20 16:34:17 +02:00
teoxoy
a024afe182
consolidate destroyed texture/buffer errors and separate them from invalid ID errors
2024-06-20 16:34:17 +02:00
teoxoy
97a038a768
make return type of TextureTracker.set_single non-optional
2024-06-20 16:34:17 +02:00
teoxoy
d2218398ff
take buffer lookup out of BufferBindGroupState.add_single
2024-06-20 16:34:17 +02:00
teoxoy
6a181fa634
remove IDs from StatelessBindGroupState
2024-06-20 16:34:17 +02:00
teoxoy
a979d2ed46
simplify BufferTracker.set_single's return type
2024-06-20 16:34:17 +02:00
teoxoy
862f19524f
make check_texture_usage a texture method
2024-06-20 16:34:17 +02:00
teoxoy
87382d7133
make check_buffer_usage a buffer method
2024-06-20 16:34:17 +02:00
teoxoy
068da49a4c
use error_ident for log instead of ID
2024-06-20 16:34:17 +02:00
teoxoy
836f016dcd
use the tracker index as key in hashmap instead of ID
2024-06-20 16:34:17 +02:00
teoxoy
0c4b449644
use Arc::ptr_eq for resource equality
2024-06-20 16:34:17 +02:00
teoxoy
a21bbdccf0
remove usage of Buffer IDs in clear code
2024-06-20 16:34:17 +02:00
teoxoy
8465a64104
remove usage of Texture IDs in clear code
2024-06-20 16:34:17 +02:00
teoxoy
2a7f09aebc
make clear_texture_via_render_passes infallible (in practice it was already)
2024-06-20 16:34:17 +02:00
teoxoy
8d805c99d3
remove TextureBindGroupState.add_single's return type
2024-06-20 16:34:17 +02:00
teoxoy
43177d78d6
replace uses of Id.backend() with A::VARIANT
2024-06-20 16:34:17 +02:00
Andreas Reich
7b89b6d959
Fix web example build ( #5832 )
...
* Ensure webgl example build only contains webgl and webgpu example build only contains webgpu
* fix ip printed on run-wasm
* Update examples on running examples on the web
2024-06-20 15:52:49 +02:00
Jim Blandy
584f9e189c
[core] Improve resource and api logging.
...
- Improve logging in `StatelessTracker::remove_abandoned` to show the
outcome of the call.
- Add similar logging to `BufferTracker` and `TextureTracker`.
- Let `device_create_buffer`'s log only the new buffer's label, id,
and whether it's mapped at creation. It used to show the whole
descriptor, which is too much detail.
- Have `queue_submit` log the submission id, and have `device_poll`
log what it was waiting for, and what actually got done.
- Have `Device::drop` log the destruction of the raw device when it
actually happens, so it's properly ordered with respect to logging
from other parts of the device, like `Device::command_allocator`.
2024-06-19 21:13:38 -07:00
barrett
d4b3856031
docs(readme): use emoji literals instead of shortcodes ( #5843 )
...
Otherwise, the emojis aren't parsed on Crates.io, leaving the table without much utility unless a user navigates to GitHub.
Fixes like these are very simple, but super helpful for some users! :)
2024-06-19 18:07:59 +00:00
teoxoy
284c807abc
reorder map_async validation steps
2024-06-19 14:05:18 +02:00
teoxoy
cc7b2db235
move map_async body in a new buffer method
2024-06-19 14:05:18 +02:00
teoxoy
0b7a5b054b
move command encoder/buffer creation in a new device method
2024-06-19 14:05:18 +02:00
teoxoy
4b5666ceff
move most device validity checks inside the device's methods
2024-06-19 14:05:18 +02:00
teoxoy
edc2cd9615
introduce Device.check_is_valid
2024-06-19 14:05:18 +02:00
teoxoy
508ece312d
remove device invalidity checks from property accessors
...
accessing those properties is always fine
2024-06-19 14:05:18 +02:00
teoxoy
3e44a98088
remove device validity checks from create_{texture,buffer}_from_hal
...
those resources have been created already, we don't need to make sure the device is valid
2024-06-19 14:05:18 +02:00
Teodor Tanasoaia
1904822084
mark timestamp query inside encoders/passes tests as flaky ( #5838 )
2024-06-19 12:45:14 +02:00
teoxoy
14e750205a
move BGL same device check inside create_bind_group
2024-06-19 11:15:38 +02:00
teoxoy
c01a1335aa
rename WrongDevice to DeviceMismatch
2024-06-19 11:15:38 +02:00
teoxoy
ce716adb5e
improve device mismatch errors
2024-06-19 11:15:38 +02:00
teoxoy
adfb183dc0
move same device validation in compute_pass_end_impl
2024-06-19 11:15:38 +02:00
teoxoy
53f8477b15
validate for same device via Arc::ptr_eq rather than IDs
2024-06-19 11:15:38 +02:00
Teodor Tanasoaia
a2fcd72606
disable rustdoc in CI ( #5839 )
2024-06-18 08:03:09 -04:00
Jubilee Young
1ced6c6165
Make compile_fxc accept full_stage: &CStr
2024-06-18 10:34:20 +02:00
Brad Werth
fe72235a7e
Add missing closing parentheses to some msl unpack functions.
2024-06-18 10:08:50 +02:00
Jim Blandy
975ccbd77b
[naga] Remove unneeded PartialEq derivations.
...
Remove `PartialEq` derivations from various Naga IR types on which
equality doesn't really make sense. In some cases, derive only in
`cfg(test)` builds, so tests can check for expected output.
In the GLSL front end, use `append` to add new constants, not
`fetch_or_append`, since the latter requires `PartialEq` yet GLSL
doesn't permit duplicate declarations anyway.
2024-06-17 11:30:09 +02:00
Erich Gubler
4a1174b5ed
refactor: use linear flow instead of broken loop for determining fallback
2024-06-17 05:26:03 -04:00
Erich Gubler
b9e787e667
refactor: satisfy clippy::never_loop
2024-06-17 05:26:03 -04:00
dependabot[bot]
707e91966f
build(deps): bump crate-ci/typos from 1.22.3 to 1.22.7 ( #5825 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.22.3 to 1.22.7.
- [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.22.3...v1.22.7 )
---
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-06-17 11:12:57 +02:00
Christofer Nolander
fe31966fdf
ensure that wgpu::Error is Sync ( #5820 )
...
* ensure that `wgpu::Error` is `Sync`
This makes it possible to wrap the error in `anyhow::Error` and
`eyre::Report`, which require the inner error to be `Sync`.
* update changelog
2024-06-16 19:48:35 -04:00