dependabot[bot]
f5b5d683bd
build(deps): bump crate-ci/typos from 1.18.2 to 1.19.0 ( #5336 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.18.2 to 1.19.0.
- [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.18.2...v1.19.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
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>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-03-04 10:33:26 -05:00
teoxoy
9c9418e84a
[wgpu-hal] make android dependencies optional based on features
2024-03-04 15:03:50 +01:00
Erik Živković
19cc9d9776
Revert "Add OpenGL support for TEXTURE_FORMAT_16BIT_NORM on supported versions ( #5330 )" ( #5339 )
...
This reverts commit 352cb3d40b
.
2024-03-04 09:19:57 +01:00
Erik Živković
352cb3d40b
Add OpenGL support for TEXTURE_FORMAT_16BIT_NORM on supported versions ( #5330 )
2024-03-03 21:38:38 +00:00
Erik Živković
f0ed4cf520
Add support for running on OpenGL 4.1 with a core profile on macOS ( #5331 )
...
When running wgpu with an OpenGL context on macOS that is created with a core
profile and with the forward-compatibility bit set, the MAX_VARYING_COMPONENTS
constant returns 0 when queried. The default value is 60, so we return the
default value if the query returns 0.
We also need to use `#version 140` on macOS since `#version 130` isn't accepted.
Since `#version 140` should be available from OpenGL 3.1, we use that everywhere.
That way we don't need any specific macOS flags or features.
2024-03-03 22:22:20 +01:00
Eshed Schacham
2d8d045453
wgpu-hal: add ndk-sys dependency to fix linking error. ( #5326 )
2024-03-01 21:16:09 +00:00
Connor Fitzgerald
aaf6db6a3d
Vendor WebGPU Bindings from web_sys ( #5325 )
2024-03-01 21:13:14 +00:00
Connor Fitzgerald
a5c0181c3a
Bitfield Fixes ( #5305 )
2024-02-29 20:50:42 +00:00
Jim Blandy
b020b984df
[naga] Fix docs generated by gen_component_wise_extractor
. ( #5314 )
2024-02-29 15:39:27 -05:00
Connor Fitzgerald
8129897ccb
Nested loop test
2024-02-28 13:54:27 +01:00
Connor Fitzgerald
330a8608e3
Fix Presentation ( #5312 )
2024-02-27 20:36:20 -05:00
dependabot[bot]
744454b9e2
Bump Many Dependencies and MSRV ( #5241 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-02-27 14:43:05 -05:00
Erich Gubler
d365927903
test(player): don't specify shader entry points
...
This is done to exercise the prior change.
2024-02-27 13:57:17 -05:00
Erich Gubler
023b0e063f
feat!: make ProgrammableStage::entry_point
optional in wgpu-core
2024-02-27 13:57:17 -05:00
Erich Gubler
2c66504a59
refactor(valid): factor out shader_stage_from_stage_bit
helper
2024-02-27 13:57:17 -05:00
Erich Gubler
be384fc001
refactor: factor out stage_err
helper in pipeline creation
2024-02-27 13:57:17 -05:00
Connor Fitzgerald
5e6f799573
Fix docs.rs Builds ( #5310 )
2024-02-27 18:50:06 +00:00
David Stern
23392c5228
Try to load libX11.so.6
in addition to libX11.so
. ( #5307 )
2024-02-27 12:15:13 -05:00
Nicolas Silva
6f68d3dffa
Correctly set the tacker sizes before executing render bundles
2024-02-27 10:05:09 -05:00
Nicolas Silva
ed852c4774
Don't put the mapped-at-creation staging buffer in the registry
2024-02-27 10:05:09 -05:00
Nicolas Silva
c77b4d3f56
Use a unique tracker index per resource instead of the ID in trackers ( #5244 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-02-26 20:25:12 +00:00
Connor Fitzgerald
38419a9cf2
Fix Integer Clamp ( #5300 )
...
* Fix Integer Clamp
* Changelog
2024-02-26 20:28:23 +01:00
Erich Gubler
d6465702b6
fix: command_encoder_clear_buffer
: err. on offset + size > u64::MAX
...
Rust would have made this operation either an overflow in release mode,
or a panic in debug mode. Neither seem appropriate for this context,
where I suspect an error should be returned instead. Web browsers, for
instance, shouldn't crash simply because of an issue of this nature.
Users may, quite reasonably, have bad arguments to this in early stages
of development!
2024-02-26 09:32:26 -05:00
Erich Gubler
9747a0ed23
fix: always check buffer clear offset
for OOB
...
Fuzz testing in Firefox encountered crashes for calls of
`Global::command_encoder_clear_buffer` where:
* `offset` is greater than `buffer.size`, but…
* `size` is `None`.
Oops! We should _always_ check this (i.e., even when `size` is `None`),
because we have no guarantee that `offset` and the fallback value of
`size` is in bounds. 😅 So, we change validation here to unconditionally
compute `size` and run checks we previously gated behind `if let
Some(size) = size { … }`.
For convenience, the spec. link for this method:
<https://gpuweb.github.io/gpuweb/#dom-gpucommandencoder-clearbuffer >
2024-02-26 09:32:26 -05:00
Erich Gubler
751cddc510
refactor: command_encoder_clear_buffer
: s/end/end_offset
2024-02-26 09:32:26 -05:00
Erich Gubler
7300b9f037
style: fix fmt. of assert!(…)
in clear_texture_via_buffer_copies
2024-02-26 09:32:26 -05:00
Bruce Mitchener
177517ad54
deps: Update ahash
to fix "unknown feature stdsimd
" error. ( #5304 )
2024-02-26 03:35:25 -05:00
Augusto Hack
a315925882
wgpu-core: Inform user about possible fix ( #5298 )
2024-02-25 14:30:55 -05:00
JMS55
5b9ade8223
Add AccelerationStructure to WGSL write_value_type ( #5261 )
2024-02-24 02:41:37 -05:00
Peter Whidden
440574f927
fix typo in docstring ( #5281 )
2024-02-21 21:31:35 +00:00
HexoKnight
3715cb1383
fix doc link ( #5280 )
2024-02-21 13:55:10 -05:00
Nicolas Silva
66c7e98ad7
Add feature flags in hal to panic when running into some types of errors ( #5273 )
2024-02-21 11:35:24 -05:00
Nicolas Silva
75a98f2712
Validate that the view dimension of a multisampled texture binding is 2d ( #5274 )
...
* Validate that the view dimension of a multisampled texture binding is 2d
* typo
2024-02-21 08:56:28 +01:00
Connor Fitzgerald
910fb7c341
Remove GPU based validation in Tests ( #5271 )
...
* Remove GPU based validation in Tests
* Lol Typo
2024-02-19 17:04:03 -05:00
Bartłomiej Maryńczak
2e9ee0aa56
[wgpu-hal.gles] Error log for failed GLES heuristics ( #5266 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-02-19 20:33:47 +00:00
Nicolas Silva
a016a3aaec
Make Features fit in 64 bits again ( #5268 )
2024-02-19 15:12:41 -05:00
Augusto Hack
a302c8da82
Docs surface creation no longer unsafe ( #5265 )
...
* doc: as of #4597 surface creation is no longer unsafe
* doc: extend documentation of the include_wgsl macro
2024-02-19 11:23:12 +00:00
Connor Fitzgerald
df386dae02
Add vec3-in-array-test ( #5264 )
2024-02-18 12:46:29 -05:00
Nicolas Silva
004e3efe84
Simplify the ID allocation in IdentityValues ( #5229 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-02-15 20:55:55 +00:00
Nicolas Silva
66ba64b721
Store Arcs instead of IDs in render bundles ( #5242 )
2024-02-15 15:54:11 -05:00
Nicolas Silva
286306d7e8
Store the device's queue via a weak ref instead of an ID ( #5230 )
2024-02-15 15:42:28 -05:00
Imbris
abc0b30dfc
Add test case for builtin only accessed in function parsed after the entry point function
2024-02-15 18:12:25 +01:00
Imbris
8b818a2076
Defer entry-point processing so that all potential uses of builtin's are found before culling the unused ones
2024-02-15 18:12:25 +01:00
Imbris
6223af3860
Extract entry point processing from parse_function into an independent function.
2024-02-15 18:12:25 +01:00
Imbris
ae22743326
Add test case to naga/spv-in for an unnamed glPerVertex struct
2024-02-15 18:12:25 +01:00
Imbris
4554f852c1
[spv-in] Remove providing "perVertexStruct" for certain unnamed inputs
...
since we probably shouldn't be naming things if they don't have a name
in the input.
As requested here: https://github.com/gfx-rs/wgpu/pull/5227#issuecomment-1936027091
2024-02-15 18:12:25 +01:00
Imbris
b704132b4c
Remove unnecessary "gl_PerVertex" name check so unused builtins will be
...
handled even when this name is not in the input SPIRV.
2024-02-15 18:12:25 +01:00
Erich Gubler
18b7904b8e
fix: discard cmd. enc. buf. on wgpu_core::Global::command_encoder_drop
2024-02-15 10:45:32 -05:00
Erich Gubler
754d93a4a7
fix(gles): discard cmd. enc. buf. on drop
2024-02-15 10:45:32 -05:00
Erich Gubler
2b487724f2
fix(dx12): discard cmd. enc. buf. on drop
2024-02-15 10:45:32 -05:00