996 Commits

Author SHA1 Message Date
Mikołaj Radkowski
e7fcb94888
Make multi-planar textures renderable (#8307) 2025-10-29 13:33:48 -04:00
atlv
7a2afeb014
fix(vulkan): remove atomic memory semantics (#8391) 2025-10-29 13:21:56 -04:00
atlv
ddcd89fd69
Implement shader barycentrics (#8320) 2025-10-29 13:15:21 -04:00
Connor Fitzgerald
02145c435c docs(CHANGELOG): import entries from v26.0.6, v27.0.4 2025-10-23 15:00:44 -04:00
Erich Gubler
48f047f947 docs(CHANGELOG): move #8250's entry to Unreleased 2025-10-23 15:00:44 -04:00
Erich Gubler
1ba953d4f3 docs(CHANGELOG): move #8247's entry to Unreleased 2025-10-23 15:00:44 -04:00
Erich Gubler
8e61646521 docs(CHANGELOG): import entries from v26.0.5, v27.0.3 2025-10-23 15:00:44 -04:00
Andy Leiserson
7f644452f0
Check for attachment overlap using textures, not views (#8402) 2025-10-22 17:37:38 +02:00
Andy Leiserson
d575c0234b
Disallow mixing the raw encoding API with the wgpu API (#8373) 2025-10-22 11:34:40 -04:00
Erich Gubler
0f26cf29ca
style(CHANGELOG): fix up some style issues (#8397) 2025-10-21 21:14:54 +00:00
Erich Gubler
8ddd320cf2
docs(CHANGELOG): add entry for #8311 (#8398) 2025-10-21 21:14:01 +00:00
atlv
fa93d134ad
fix changelog typos (#8392) 2025-10-21 09:57:55 -04:00
Kevin Reid
f366e9615f
[types] Replace conditional derive(thiserror::Error) with unconditional impl. (#8384) 2025-10-20 22:27:57 +02:00
Jerzy Wilczek
a70b8336c0
fix: Move DropGuards to the end of their parent structs. (#8353) 2025-10-16 15:58:18 -04:00
Ryan Kaplan
756dd3c089
Fix bug where mapped range in WebBuffer is not cloned correctly (#8349)
Co-authored-by: Ryan Kaplan <ryan@Ryans-M2>
2025-10-16 15:56:45 -04:00
Opstic
f0209e3db8
Add support for transient textures on Vulkan and Metal (#8247)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-10-16 19:50:01 +00:00
Kevin Reid
98c345800a [hal] Replace cargo-clippy feature with lint configuration. 2025-10-15 19:34:40 -04:00
Erich Gubler
54ded60d8e fix(dx12): align tex. <-> buf. copies via intermediate buffer if !UnrestrictedBufferTextureCopyPitchSupported 2025-10-14 09:39:56 -04:00
Jim Blandy
1cbebdcffe
[core] Don't skip binding index checks for derived layouts. (#8325)
When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:

- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
  for explicit bind group creation

- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
  for all bind group layout creation.
2025-10-10 16:38:35 +00:00
Tom Schuster
2e48faf95d
Map more limits in WebGPU (#8328) 2025-10-10 12:11:16 -04:00
Robin Cramer
d0bb62a157
Added from_custom to texture (#8315) 2025-10-09 17:22:54 +02:00
Erich Gubler
adf4b2f2de fix: reject fragment shader output locations > max_color_attachments limit 2025-10-08 16:34:43 -04:00
Erich Gubler
bbedf6c226
docs(CHANGELOG): polish enumerate_adapters-is-async section (#8318)
* docs(CHANGELOG): polish `enumerate_adapters`-is-`async` section

* docs(CHANGELOG): indirectly acknowledge "yield" joke
2025-10-08 18:19:00 +00:00
Sam
a8f51f8fd1
Split MipmapFilterMode from FilterMode (#8314) 2025-10-08 18:06:33 +02:00
Erich Gubler
8ff1eb995d
typo(CHANGELOG): s/elimnating/eliminating (#8317) 2025-10-07 12:23:06 -07:00
renovate[bot]
854664a90d
chore(deps): update crate-ci/typos action to v1.37.3 (#8306)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-10-06 19:32:39 +00:00
Robin Cramer
4652ea4189
Changed enumerate_adapters to be able to work with custom backends (#8230)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-10-06 19:27:23 +00:00
Connor Fitzgerald
d28fb4d776
Update changelog for release v27.0.2 (#8293) 2025-10-06 13:11:35 -04:00
Clar Fon
790235717e
Make include_spirv actually work statically (#8250) 2025-10-04 09:50:52 +02:00
David Stern
b3c6a0b5cc
Gate DX12 mesh shader command signature initialization on device support. (#8297) 2025-10-04 00:41:58 +00:00
Connor Fitzgerald
482a983e10
Release v27 (#8287) 2025-10-01 19:36:18 -04:00
Andreas Reich
333f811e9c
Rework wgpu::PollType to only two enum variants (#8285) 2025-10-01 18:08:07 -04:00
Erich Gubler
90702156af fix(namer): escape, rather than strip, non-ASCII ident. characters
Escape non-ASCII identifier characters with `write!(…, "u{:04x}", …)`,
surrounding with `_` as appropriate. This solves (1) a debugging issue
where stripped characters would otherwise be invisible, and (2) failure
to re-validate that stripped identifiers didn't start with an ASCII
digit.

I've confirmed that this fixes [bug
1978197](https://bugzilla.mozilla.org/show_bug.cgi?id=1978197) on the
Firefox side.
2025-10-01 08:50:37 -04:00
Andreas Reich
00ea850d79
Allow timeouting on poll (#8282) 2025-10-01 07:19:24 +00:00
Erich Gubler
06fc6f7345
feat(wgsl): recognize enable primitive-index; (#8237) 2025-09-30 22:02:10 +00:00
Nils Hasenbanck
8c4aebc0c1
(Naga) Implement OpImageGather and OpImageDrefGather when ingesting SPIR-V (#8280) 2025-09-29 13:15:32 -04:00
Marijn Suijten
ea80c7dbc3
hal/vulkan: Accurately map all formats except fp16 to use the non-linear sRGB color space (#8226) 2025-09-29 11:50:10 -04:00
Nils Hasenbanck
8cb94db802
(Naga) Add support for Storage Image Multisample when ingesting SPIR-V (#8270) 2025-09-29 11:45:39 -04:00
Vecvec
f1c876c875
Create a seperate event for each fence wait. (#8273)
* create an event per fence wait

* Use seperate event for each `wait_for_present_queue_idle` call.

* changelog
2025-09-29 11:38:33 -04:00
Andy Leiserson
1967900565
Encode commands on finish (#8220)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-09-25 14:22:51 -04:00
Nils Hasenbanck
2f7ebf1401
(Naga) Add support for Descriptor Runtime Indexing when ingesting SPIR-V (#8256) 2025-09-25 08:25:04 -04:00
Magnus
05cc6dca82
[hal/dx12] Mesh Shaders (#8110)
* Features and draw commands added

* Tried to implement the pipeline creation (completely untested)

* Fixed clippy issues

* Fixed something I think

* A little bit of work on the mesh shader example (currently doesn't work on dx12)

* Reached a new kind of error state

* Fixed an alignment issue

* DirectX 12 mesh shaders working :party:

* Removed stupid change and updated changelog

* Fixed typo

* Added backends option to example framework

* Removed silly no write fragment shader from tests to see if anything breaks

* Tried to make mesh shader tests run elsewhere too

* Removed printlns and checked that dx12 mesh shader tests run

* Documented very strange issue

* I'm so lost

* Fixed stupid typos

* Fixed all issues

* Removed unnecessary example stuff, updated tests

* Updated typos.toml

* Updated limits

* Apply suggestion from @cwfitzgerald

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

* Apply suggestion from @cwfitzgerald

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

* Removed supported backends, made example & tests always pass the filename to shader compilers

* Removed excessive bools in test params

* Added new tests to the list

* I'm a sinner for this one (unused import)

* Replaced random stuff with test params hashing

* Updated typos.toml

* Updated -Fo typo thing

* Actually fixed typo issue this time

* Update CHANGELOG.md

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

* Update tests/tests/wgpu-gpu/mesh_shader/mod.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update wgpu-hal/src/dx12/mod.rs

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

* Addressed comments

* Lmao

---------

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-25 03:24:56 +00:00
Andy Leiserson
1f10d0ce8a
[naga] Don't report shader errors as their own source (#8258) 2025-09-24 22:42:24 -04:00
EriKWDev
3efd640178
naga: Correct spelling in wgsl parsing rg11b10float -> rg11b10ufloat (#8219) 2025-09-21 10:41:17 +00:00
Matthias Reitinger
b55c24cf27
[naga wgsl-in] Allow trailing comma in switch cases (#8165) 2025-09-16 07:58:23 -04:00
Andy Leiserson
f4ea8642a5
docs(CHANGELOG): Update pull request reference (#8208) 2025-09-11 00:52:02 -04:00
Andy Leiserson
d31d944ed5
Clarify the effect of the SUBGROUP features and capabilities (#8203) 2025-09-10 20:53:56 -04:00
Night_Hunter
3902b0c11c
Add support for builtin DComp swapchains (#7550)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Co-authored-by: Marijn Suijten <marijns95@gmail.com>
2025-09-11 00:19:42 +00:00
Connor Fitzgerald
fb28da16c1 [wgpu] add convience functions for deferring mapping/callbacks
Co-authored-by: Kevin Reid <kpreid@switchb.org>
2025-09-07 09:42:57 +02:00
Connor Fitzgerald
832609959d
Convert QueueWriteBufferView to be lifetime-less (#8161) 2025-09-07 07:34:06 +00:00