Andy Leiserson
4a91c7fc6c
Ensure the limit for storage binding size honors alignment ( #8719 )
2025-12-15 12:42:17 -05:00
Connor Fitzgerald
e3149bac9e
LoadOp::DontCare ( #8549 )
2025-12-08 03:41:38 +00:00
Connor Fitzgerald
a356cb2026
Update Repo MSRV to 1.91 ( #8678 )
2025-12-07 21:52:35 -05:00
Layl
21e6143ed0
Add MULTISAMPLE_ARRAY feature flag. ( #8571 )
2025-12-05 18:31:05 +01:00
Connor Fitzgerald and JMS55
9a41de4e96
Move subgroup size info to AdapterInfo ( #8609 )
...
Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com >
2025-12-04 17:01:56 +00:00
Kevin Reid
2ca7ed99ba
Break up wgpu-types/src/lib.rs into more files. ( #8607 )
2025-12-01 14:27:45 -05:00
Connor Fitzgerald
5895de82b5
Rename push constants to immediates ( #8586 )
2025-12-01 15:20:02 +01:00
Connor Fitzgerald
babd6940d9
Revert "Lower blas_max_primitve_count ( #8446 )"
...
This reverts commit f314b1611a .
2025-11-27 10:56:10 +01:00
Connor Fitzgerald
dc01e6e213
Normalize logging levels ( #8579 )
2025-11-27 10:55:02 +01:00
Kevin Reid
fa4c8e8198
Make links from wgpu-types to wgpu work in docs.rs.
...
As a bonus, the macro now allows defining such links while writing the
item name only once instead of twice.
2025-11-26 20:15:53 -05:00
Inner Daemons and Andreas Reich
05369a6b83
Multiview on DX12 ( #8495 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2025-11-16 17:46:52 +01:00
d0cf78c8c8
[hal/metal] Mesh Shaders ( #8139 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: Magnus <85136135+SupaMaggie70Incorporated@users.noreply.github.com >
2025-11-14 23:11:43 -05:00
Vecvec
efca3f5066
[spirv] Make ray queries safer ( #8390 )
2025-11-13 00:33:32 -05:00
a05c70cef7
WGSL parsing for mesh shaders ( #8370 )
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: SupaMaggie70Incorporated <85136135+SupaMaggie70Incorporated@users.noreply.github.com >
2025-11-12 21:06:20 -05:00
csmoe
961be24246
Warn about Limits::max_non_sampler_bindings's default 1_000_000 ( #8447 )
2025-11-12 17:53:45 +01:00
Andy Leiserson
a2db631672
Fix clamping at minimal render extent ( #8486 )
...
This was a regression introduced by #8307 .
For mipmapped multi-planar textures, requires that the size is a
multiple of a power of two determined by the mip level count, in lieu
of properly aligning the size of each mip level to an even
dimension. See #8491 .
(The failure referred to by "fails due to missing validation" was
fixed before the regression, by #8402 , but was not identified as fixed
and added to the test list at that time.)
2025-11-06 17:56:18 -08:00
Andy Leiserson
3443224e78
Correct STORAGE_READ_ONLY exclusivity ( #8490 )
...
Fixes #8485
2025-11-06 15:04:38 -08:00
Marijn Suijten
59a03eaf2f
[d3d12 wgl] Upgrade to windows 0.62 crates ( #6876 )
...
* [d3d12 wgl] Upgrade to `windows 0.59` crates
https://github.com/microsoft/windows-rs/releases/tag/0.61.0
The latest `windows 0.59` and `windows-core 0.59` crates were
just released (strangely tagged `0.61`), including some minor code
improvements for us. The MSRV has been bumped to `1.74`, but `wgpu` is
already on `1.76` anyway.
* [d3d12 wgl] Upgrade to `windows 0.61` crates
https://github.com/microsoft/windows-rs/releases/tag/63
* [d3d12 wgl] Upgrade to windows 0.62 crates
https://github.com/microsoft/windows-rs/releases/tag/69
2025-11-05 11:47:31 -05:00
renovate[bot] and Andreas Reich
cb2edd2915
Update crate-ci/typos action to v1.39.0 ( #8466 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2025-11-05 16:35:03 +00:00
ad0f3111b7
Add multiview limits and tests ( #8206 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
Co-authored-by: Magnus <85136135+SupaMaggie70Incorporated@users.noreply.github.com >
2025-11-01 12:08:15 +00:00
Connor Fitzgerald
a682d9e15a
Update desired_maximum_frame_latency documentation ( #8421 )
2025-10-30 13:57:52 +01:00
Andy Leiserson
5798a443d2
Add ReferenceType trait for command structures
...
Use it to deduplicate some `Foo` / `ArcFoo` / `TraceFoo` definitions.
2025-10-30 13:52:58 +01:00
Vecvec
f314b1611a
Lower blas_max_primitve_count ( #8446 )
2025-10-29 23:03:34 -04:00
Mikołaj Radkowski
e7fcb94888
Make multi-planar textures renderable ( #8307 )
2025-10-29 13:33:48 -04:00
atlv
ddcd89fd69
Implement shader barycentrics ( #8320 )
2025-10-29 13:15:21 -04:00
charlotte 🌸
0810110bd7
Add pci bus and device uuid to AdapterInfo ( #8290 )
2025-10-24 11:53:44 -04:00
Kevin Reid
f366e9615f
[types] Replace conditional derive(thiserror::Error) with unconditional impl. ( #8384 )
2025-10-20 22:27:57 +02:00
Opstic and Connor Fitzgerald
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
Kanashimia
2ed308a76a
docs(types): swap Higher and Lower for *_subgroup_size ( #8344 )
2025-10-14 09:03:55 -04:00
Sam
a8f51f8fd1
Split MipmapFilterMode from FilterMode ( #8314 )
2025-10-08 18:06:33 +02:00
Connor Fitzgerald
e73d0558f0
Fix docs.rs build ( #8292 )
2025-10-06 13:11:48 -04:00
Clar Fon
790235717e
Make include_spirv actually work statically ( #8250 )
2025-10-04 09:50:52 +02: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
Andreas Reich
00ea850d79
Allow timeouting on poll ( #8282 )
2025-10-01 07:19:24 +00:00
Andy Leiserson and Andreas Reich
1967900565
Encode commands on finish ( #8220 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2025-09-25 14:22:51 -04:00
Andy Leiserson
d31d944ed5
Clarify the effect of the SUBGROUP features and capabilities ( #8203 )
2025-09-10 20:53:56 -04:00
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
8d1f4bb5f2
Require token for experimental features ( #8163 )
2025-08-29 15:43:27 -04:00
Alphyr
5a24e2474d
wgpu-types: Do not depend on "bitflags/serde" if feature "serde" is not enabled ( #8170 )
2025-08-29 12:31:31 -04:00
Lucas Abel
5d4cf56689
[api] expose invalid submission index to PollError ( #8169 )
2025-08-29 12:30:55 -04:00
Andy Leiserson
7933dd78aa
docs(types): note intent to move EXTERNAL_TEXTURE to a downlevel flag
2025-08-28 13:58:36 -07:00
Andy Leiserson and Erich Gubler
4a7b6abb19
Add F16_IN_F32 downlevel flag for pack/unpack/quantize f16 ( #8130 )
...
Although the operation of these functions is defined in terms of f16
semantics, the input/output types are not f16, and they are generally
available even when native `f16` support is not. But in at least one
case, they are only available with `f16` support, so add a new downlevel
flag that is cleared when these functions are not available.
Add some infrastructure to simplify testing of missing
capabilities/extensions, and add tests for a few more kinds of f16
usage.
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2025-08-28 13:58:36 -07:00
Connor Fitzgerald
2ff46cd7cd
Remove MULTI_DRAW_INDIRECT feature ( #8162 )
2025-08-28 12:00:14 -04:00
Connor Fitzgerald
97ba77d668
We're just lowercase bro ( #8160 )
2025-08-28 11:09:07 -04:00
Kevin Reid
c1254b4c80
Add more overview documentation to Buffer and usages.
2025-08-24 17:30:48 -04:00
Jamie Nicol
167ff7b952
[metal] Implement support for external textures
...
This contains the Metal HAL changes required to support external
textures. When creating a bind group we create resource bindings for
each of the 3 textures and parameters buffer that the external texture
has been lowered to. When creating the pipeline layout we fill the
`BindTarget` accordingly, so that the Naga MSL backend can bind each
of the global variables to which the the external texture has been
lowered to each of these resources.
We must also ensure the size of the buffer bound to the parameters
global matches the size of the MSL type, else metal validation
complains. We do this by adding a padding field to the rust-side
ExternalTextureParams struct, the size of which is used as the size of
the buffer to allocate.
Lastly we enable `Features::EXTERNAL_TEXTURE` on the Metal backend.
2025-08-21 12:35:19 +01:00
Andy Leiserson
e7a99be058
[deno] Fix some problems in the handling of device limits ( #8085 )
...
* Correct error type when a requested limit is too high
* Clamp requested limits to the WebGPU defaults
Fixes #8084
2025-08-20 14:58:56 -07:00
Magnus and Connor Fitzgerald
17a17f716a
Initial precompiled shaders implementation ( #7834 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-08-20 16:20:59 -04:00
Jamie Nicol
486c151772
[dx12,vulkan] Add support for P010 texture format ( #8086 )
...
P010 is a 4:2:0 chroma subsampled planar format, similar to NV12. Each
component uses 16 bits of storage, of which only the high 10 bits are
used. On DX12 this maps to DXGI_FORMAT_P010, and on Vulkan this maps to
G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16.
The existing "nv12" gpu test module has been renamed to
"planar_texture", and a new test P010_TEXTURE_CREATION_SAMPLING has
been added similar to the existing NV12_TEXTURE_CREATION_SAMPLING. The
remaining tests in this module have been converted to validation tests,
and now test both NV12 and P010 formats.
2025-08-13 15:35:20 +02:00