Commit Graph
43 Commits
Author SHA1 Message Date
Andy Leiserson 24125f1c44 fix(deno): Reject invalid texture usage with validation error 2026-05-21 10:48:06 -07:00
teoxoy 2060683c29 make vertex buffer slots optional 2026-04-14 17:20:15 -07:00
Andy Leiserson da19f17121 fix(core): Add validation in create_render_bundle_encoder (#9289) 2026-03-27 14:33:10 +01:00
Andy Leiserson 04cce5ace7 feat(types): Add conversions to/from feature name strings (#9163) 2026-03-18 09:59:45 -07:00
Teodor Tanasoaia e114d2f0a7 Add support for gaps in bind group layouts & update relevant validation (#9034)
* [wgpu-core] add support for optional BG & BGL entries

* [wgpu] allow gaps in bind group layouts

And allow unbinding in the web backend.

* adapt tests

* add changelog entry

* [wgpu] remove generic from `PipelineLayoutDescriptor`
2026-02-25 19:47:36 +01:00
Andy Leiserson b09a919c6a DepthStencilState validation fixes (#8840)
* Make `depth_compare` and `depth_write_enabled` optional

These fields are optional in the WebGPU API. Having them optional in the
wgpu API as well keeps validation logic centralized in wgpu-core.

Fixes #8830

* Remove `DepthStencilStateIdl`
2026-02-25 14:59:48 +01:00
Mendy Berger 7baace517b chore(deno_webgpu): Removed unnecessary vec (#9071) 2026-02-18 07:59:38 -07:00
Andy Leiserson 835560396f test(cts): Enable some external texture tests (#8901) 2026-02-03 15:58:21 -08:00
Andy Leiserson 965b7cbe79 feat(deno): Associate external memory with GPUDevice
Enable some tests that previously OOMed in CI.
2026-01-27 13:11:40 -08:00
Andy Leiserson 77c614c628 fix(deno): Don't leak wgpu queues when they are never accessed from JS 2026-01-27 13:11:40 -08:00
Erich Gubler 81542eadc3 fix(cts): render full err. msg. in Device::create_*_pipeline_async (#8788) 2025-12-27 14:47:35 -07:00
Andy Leiserson b9324e9da9 [deno] Fix error reporting for async pipeline creation 2025-12-19 15:12:03 -08:00
Andy Leiserson 59dbd6b954 [deno] Remove error return from new_render_pipeline 2025-12-19 15:12:03 -08:00
Andy Leiserson 90e162c0e3 [deno] Add some WebIDL converters 2025-12-19 15:12:03 -08:00
Connor Fitzgerald daf69de67a Bump MSRV to 1.92 for real (#8723) 2025-12-17 17:12:23 +01:00
Andy Leiserson 6dd69b0567 core: Reject zero-size bindings in createBindGroup (#8734) 2025-12-16 18:22:00 +00:00
Connor Fitzgerald e52e8336b0 Bring immediate api in line with spec (#8724) 2025-12-16 13:13:09 +01:00
Andy Leiserson 40e78df1fb [deno] Associate external memory with each command encoder on Metal (#8704)
* [deno] Associate external memory with each command encoder on Metal

This encourages doing garbage collection before the command buffer limit
is reached.

* Add bug reference
2025-12-11 09:48:26 -05:00
Andy Leiserson 660b21c571 [deno] Fix alignment check for mappedAtCreation buffers (#8700) 2025-12-10 15:15:37 -05:00
Connor FitzgeraldandJMS55 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
Connor Fitzgerald 5895de82b5 Rename push constants to immediates (#8586) 2025-12-01 15:20:02 +01: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
Andy Leiserson 07ce023cf1 Replay traces with pointers as IDs 2025-10-30 13:52:58 +01:00
Andreas Reich 333f811e9c Rework wgpu::PollType to only two enum variants (#8285) 2025-10-01 18:08:07 -04:00
Andy Leiserson 61e5124eb9 [deno] Return undefined instead of null from WebGPU APIs (#8266)
See denoland/deno#29603
2025-09-26 20:10:09 -04:00
Erich Gubler 2b71b1f99d feat(deno): accept GPUTexture as GPUBindingResource 2025-09-26 17:51:35 -04:00
Erich Gubler 375095f789 feat(deno): accept GPUBuffer as GPUBindingResource 2025-09-26 17:51:35 -04:00
Kenta Moriuchi 67f7a4ea3b [deno] add illegal constructor errors
(cherry-picked from denoland/deno#30500)
2025-09-25 16:35:05 -04:00
Andy Leisersonandsnek b6b951d467 Update to deno 2.3.2
(cherry picked from denoland/deno#29166)

Co-authored-by: snek <snek@deno.com>
2025-09-25 16:35:05 -04:00
Leo Kettmeir 190050e296 [deno] add deviceStartCapture and deviceStopCapture
This is achieved by adding a new `Deno.webgpu` namespace which will be
used for non-spec functionality, which for now will be marked as
unstable

(cherry picked from denoland/deno#28192)
2025-09-25 16:35:05 -04:00
Andy Leiserson e714cb0339 [deno] Format with Deno's rustfmt config 2025-09-25 16:35:05 -04:00
teoxoy 63f3df86c8 [wgpu-core] split command encoders from command buffers 2025-07-22 16:19:18 +02:00
Teodor Tanasoaia d2f8c44ac6 [wgpu-core] remove implicit PL & BGL IDs from pipeline creation (#7967) 2025-07-18 13:04:46 -04:00
Andy Leiserson 2db1d71f1b [deno] Implement nullable vertex buffer layouts 2025-07-10 09:52:20 -07:00
Erich Gubler d8d1af24b6 refactor(deno): impl From<wgpu_types::DeviceLostReason> for GPUDeviceLostReason 2025-06-30 10:58:56 -04:00
Andy Leiserson afa0f71736 [deno] Fix dropping of command encoders/buffers, and an enum typo (#7808)
Fixes #7797
2025-06-16 10:50:19 -07:00
Andy Leiserson e9af205c71 [deno] Implement ShaderModule.getCompilationInfo (#7736) 2025-06-11 03:49:39 -04:00
Andy Leiserson fd6f16f598 Revive the CTS job (#7675)
Includes the following minor functional fixes to deno_webgpu:

* Don't throw an error immediately when `create_buffer` is called with invalid usage flags.
* Implement `on_submitted_work_done`.
* Correct validation of GPUExtent3D element count.
* Run without tracing (instead of panic) if the DENO_WEBGPU_TRACE env var is not set.

Fixes #6838
2025-05-21 09:52:03 -07:00
Andy Leiserson 26bab56fd5 [deno] Rework error and device loss handling (#7693) 2025-05-17 19:38:22 +02:00
Connor Fitzgerald c860a2cf8c Rename and unsafe start_capture -> start_graphics_debugger_capture (#7470)
* Improve `start_capture` docs

* Docs
2025-04-03 13:07:22 -04:00
Connor Fitzgerald 7e119968ce Properly Deal with Timeouts (#7030) 2025-02-14 23:19:51 +00:00
Connor Fitzgerald 106b709798 Remove HashMaps from wgpu API (#7133)
* Remove HashMaps from Surface API

* Fix Comments and Errors
2025-02-14 14:36:22 -05:00
Leo Kettmeir f0bf789f58 refactor(deno): use object wrap (#7113) 2025-02-13 04:17:00 -08:00