Erich Gubler
cab36d8ba0
v0.19.5 ( #5963 )
...
* docs(CHANGELOG): add entry for #5812/#5833
Permalinks:
* <https://github.com/gfx-rs/wgpu/issues/5812 >
* <https://github.com/gfx-rs/wgpu/pull/5833 >
* chore: `wgpu-hal` 0.19.5 release
* docs(CHANGELOG): add `Unreleased` again
2024-07-16 10:11:04 -04:00
Jubilee
410d87e956
Do not feed &"" to D3DCompile ( #5812 )
...
A recent change by rustc, now in 1.79-stable, makes empty str constants
point to the same location: 0x01. This is an optimization of sorts, not
stable behavior. Code must not rely on constants having stable addresses
nor should it pass &"" to APIs expecting CStrs or NULL addresses.
D3DCompile will segfault if you give it such a pointer, or worse:
read random garbage addresses!
Pass the NULL pointer to D3DCompile if wgpu lacks a decent CString.
refs:
- https://learn.microsoft.com/en-us/windows/win32/api/d3dcompiler/nf-d3dcompiler-d3dcompile
Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
Co-authored-by: Brezak <bezak.adam@proton.me>
2024-07-15 22:22:15 -04:00
Connor Fitzgerald
87576b72b3
Versions and Changelog
2024-04-17 19:38:52 -04:00
Erich Gubler
95dc7e5991
BACKPORT to 0.19: fix: don't depend on BG{,L} layout entry order in HAL #5421 ( #5455 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 15:37:47 -04:00
Connor Fitzgerald
9f505e730f
Versions
2024-03-01 17:00:26 -05:00
Eshed Schacham
75fd68939c
wgpu-hal: add ndk-sys dependency to fix linking error. ( #5326 )
2024-03-01 17:00:26 -05:00
Erich Gubler
be8c7e6ced
fix(gles): discard cmd. enc. buf. on drop
2024-03-01 16:37:53 -05:00
Erich Gubler
45ef1757cb
fix(dx12): discard cmd. enc. buf. on drop
2024-03-01 16:37:52 -05:00
Connor Fitzgerald
61d779d4d6
Versions
2024-02-29 17:27:23 -05:00
Bartłomiej Maryńczak
f8355a8114
[wgpu-hal.gles] Error log for failed GLES heuristics ( #5266 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-02-29 17:00:09 -05:00
David Stern
40ebec1dfd
Try to load libX11.so.6
in addition to libX11.so
. ( #5307 )
2024-02-29 16:32:32 -05:00
ark
565f6990c2
using non alpha channeled texture
2024-02-29 16:30:54 -05:00
Okko Hakola
446a3dcdbf
[d3d12] Avoid panic on instance drop ( #5134 )
2024-02-29 15:53:31 -05:00
Connor Fitzgerald
b8a8ff6e44
Versions
2024-01-21 18:38:30 -05:00
Imbris
e1481b656a
Make sure to unset current context in wgl Surface::configure/present ( #5087 )
2024-01-21 18:20:16 -05:00
Teodor Tanasoaia
c094e625d0
[d3d12] use plane 1 for stencil only views ( #5100 )
...
* [d3d12] use plane 1 for stencil only views
* add test
* skip stencil only view creation on WebGL
2024-01-21 18:20:02 -05:00
Nick
a0db2a2355
Make sure to copy all of the buffers into the resource array for dx12. ( #5091 )
...
* Make sure to copy all of the buffers into the resource array for dx12.
Fixes #5088 . Even though we're telling DX12 that the maximum frame latency should be our non-padded value, the swap chain may request any of the buffers allocated to it.
* Up the maximum frame latency on the DX12 backend to allow a larger range.
2024-01-21 18:19:54 -05:00
Nicolas Silva
ba74217c89
d3d12: Null check the out ComPtr of a few creation functions ( #5096 )
...
My understanding is that we shouldn't need to (The d3d12 docs aren't very specific about that), but we have evidence that these functions sometimes leave the resource pointer set to null without returning an error.
2024-01-21 18:19:45 -05:00
Connor Fitzgerald
484457d959
Fix wgpu-hal build
2024-01-17 15:23:50 -05:00
Connor Fitzgerald
8b2098bd4e
Release 0.19 ( #5082 )
2024-01-17 14:42:11 -05:00
Andreas Reich
b8f27c7284
Expose maximum_frame_latency ( #4899 )
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-01-17 12:46:34 -05:00
Nicolas Silva
445fa6019b
d3d12: Propagate descriptor heap and handle allocation errors ( #5065 )
2024-01-15 15:43:30 +00:00
dependabot[bot]
c5a0b0b7b4
Bump the patch-updates group with 12 updates ( #5061 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-14 23:48:30 -05:00
daxpedda
580340f2d3
Add cfg_aliases
to wgpu-core
and wgpu-hal
( #5055 )
2024-01-14 00:59:59 -05:00
Connor Fitzgerald
552f06da2f
Fix DX12 Wait with Timeout ( #5052 )
2024-01-13 15:50:32 -05:00
dependabot[bot]
8c1658f28f
Bump the patch-updates group with 11 updates ( #5039 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-10 19:38:11 -05:00
Jim Blandy
8af6975d5e
Prefer Arc::into_inner
over Arc::try_unwrap
. ( #5018 )
2024-01-08 19:24:33 -05:00
Rubens Brandão
0298198ab7
fix: get CONTEXT_PROFILE_MASK in invalid version ( #5007 )
2024-01-06 15:16:29 +00:00
dependabot[bot]
dd2b985690
Bump winit from 0.29.8 to 0.29.9 ( #5004 )
...
Bumps [winit](https://github.com/rust-windowing/winit ) from 0.29.8 to 0.29.9.
- [Release notes](https://github.com/rust-windowing/winit/releases )
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-windowing/winit/compare/v0.29.8...v0.29.9 )
---
updated-dependencies:
- dependency-name: winit
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>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-06 09:56:44 -05:00
dependabot[bot]
f162cfa0f8
Bump gpu-allocator from 0.24.0 to 0.25.0 ( #4992 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-04 22:12:25 -05:00
Nick
00cf05c1d0
Fix Queue::write_texture, Fix DX12 write_texture_subset_2d and re-enable the test. ( #4990 )
2024-01-04 19:50:41 -05:00
Valaphee The Meerkat
7c21e605fb
gles: use already existing debug__fn private capabilty instead of checking extensions ( #4974 )
2024-01-04 09:48:28 +01:00
Connor Fitzgerald
ad23b450d6
Pin DXC and Vulkan SDK version ( #4980 )
2024-01-04 08:41:13 +00:00
Ian Douglas Scott
771f64917c
wgpu-hal: Fix Mesa version check for version with suffix containing .
( #4959 )
...
On Pop!_OS we have versions like
`Mesa 23.3.0-1pop0~1702935939~22.04~67e417a`. This failed to parse here
since it tried to split at the `.` in the suffix.
Not sure if other distros use a suffix with a `.`, but splitting from
the left and comparing as a tuple instead of a float seems cleaner
overall.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-01-04 07:22:33 +00:00
Connor Fitzgerald
b989e56874
Use Custom Mesa for Building ( #4977 )
2024-01-03 22:49:40 -05:00
Teodor Tanasoaia
6fdec5cc6b
[gl] fix RGBA8 format capabilities ( #4968 )
...
- `Rgba8UnormSrgb` can't be used as a storage texture
- `Rgba8Snorm` can be used as a storage texture
2024-01-03 12:14:15 +01:00
dependabot[bot]
d7db4e5ef0
Bump winit from 0.29.6 to 0.29.8 ( #4948 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-01-02 16:44:43 -05:00
dependabot[bot]
085141149b
Bump winit from 0.29.5 to 0.29.6 ( #4930 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-24 22:28:37 -05:00
dependabot[bot]
c97b351b83
Bump winit from 0.29.4 to 0.29.5 ( #4922 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-21 23:19:32 -05:00
sotaroikeda
1d6c7a0263
Support Device fence sharing with dx12 on Windows ( #4900 )
...
Co-authored-by: Sotaro Ikeda <you@example.com>
2023-12-20 13:33:47 -05:00
daxpedda
bcdc240a9a
WebGL: add support for more RawWindowHandle
variants ( #4888 )
2023-12-17 20:47:38 -05:00
daxpedda
2053358d89
Add wgpu
crate features for backends ( #4815 )
...
* Introduce `dx12` and `metal` crate features to `wgpu`
* Implement dummy `Context` to allow compilation with `--no-default-features`
* Address review
* Remove `dummy::Context` in favor of `hal::api::Empty`
* Add changelog entry
* Panic early in `Instance::new()` if no backend is enabled
Co-Authored-By: Andreas Reich <1220815+Wumpf@users.noreply.github.com>
---------
Co-authored-by: Andreas Reich <1220815+Wumpf@users.noreply.github.com>
2023-12-16 10:39:53 +01:00
Xiaopeng Li
ecc301ea16
fix present mode for wgl ( #4865 )
2023-12-12 13:36:43 -05:00
Michael Palmos
eff9a362be
Add COPY_SRC
to Metal's surface usage bits. ( #4852 )
2023-12-10 08:32:36 +00:00
dependabot[bot]
0a81ec377a
Bump once_cell from 1.18.0 to 1.19.0 ( #4847 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.18.0 to 1.19.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: once_cell
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-12-07 23:47:27 -05:00
Theo Dulka
cf8e11efc3
Use VK_EXT_robustness2
only when not using an outdated intel iGPU driver ( #4602 )
2023-12-07 14:08:21 -05:00
Teodor Tanasoaia
0cbabcf229
Update multi-planar texture API ( #4837 )
2023-12-07 14:06:56 -05:00
Nicolas Silva
ff7b2c3993
Work around cbindgen issue
...
cbindgen spins out of control if wgpu_hal reexports a wgpu_types type using pub type in stead of pub use while keeping the same name.
2023-12-07 11:45:57 +01:00
Daniel Keitel
0f4df52b5a
[wgpu-hal] Inline RayQuery Support ( #3507 )
...
Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com>
Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-12-06 21:12:41 +00:00
Valaphee The Meerkat
5022a6244b
[gl] add support for line and point polygon modes ( #4836 )
...
Co-authored-by: Nicolas Silva <nical@fastmail.com>
2023-12-06 15:51:27 -05:00