Commit Graph
67 Commits
Author SHA1 Message Date
sagudev 0c7c12193a [deno] Minimize OpState borrow
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-10-26 18:49:57 +00:00
renovate[bot]andConnor Fitzgerald 7dcf5c1820 Update Rust to 1.95 (#10207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-09-15 16:52:45 +00:00
Andy Leiserson 72e5062761 fix(deno): Mark some methods reentrant (#10061) 2026-09-01 06:05:18 -04:00
07132f4440 Implement texture-component-swizzle (#9553)
Co-authored-by: Inner Daemons <85136135+inner-daemons@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-08-30 03:49:16 -04:00
sagudev 9625c4225c [deno] Use error impl from core
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-19 14:26:54 +02:00
sagudev c43d2207c0 [deno] Use set_device_lost_closure for lost resolving
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-19 14:26:54 +02:00
Sam 45eda065c2 [core] Wrap Instance in Arc and store it in Adapter (#9956)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 11:28:48 +02:00
sagudev ecf8932500 [deno] Use Arced resources instead of Global (aka crate::Instance in deno)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-30 04:54:40 -04:00
Andy Leiserson 554335d338 cts: Enable strict WebGPU compliance in cts_runner (#9881) 2026-07-16 07:22:21 -04:00
teoxoy 69e66d8e2a add DENO_WEBGPU_STRICT_COMPLIANCE and set it for the CTS job 2026-07-01 14:43:44 -04:00
Luo Zhihao 49102603b5 Add immediates to deno_webgpu (#9569) 2026-06-18 14:50:14 -07:00
Andy LeisersonandTeodor Tanasoaia 55b45559a7 feat(core): Limit bucketing
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2026-03-23 18:25:15 -07:00
Andy Leiserson d540c4566e test(cts_runner): Use DXC by default 2026-03-10 16:57:39 -07:00
Andy Leiserson a16ca5cb42 feat(deno): Add DENO_WEBGPU_DX12_COMPILER env var
- Use the env var to select DXC in cts_runner
- Sync a few other env vars from `ci.yml`
2026-03-10 16:57:39 -07:00
Andy Leiserson 73624c9892 chore(deno): Implement is_fallback_adapter and validate feature level strings (#9043) 2026-02-23 11:10:43 -08:00
Andy Leiserson 046a1b4ce5 feat(deno): implement WGSLLanguageFeatures (#8884) 2026-01-22 10:42:01 -08:00
Marijn Suijten 234ec66152 Allow optional RawDisplayHandle in InstanceDescriptor (#8012) 2025-12-23 14:53:04 -05:00
Andy Leiserson b9324e9da9 [deno] Fix error reporting for async pipeline creation 2025-12-19 15:12:03 -08:00
Teodor Tanasoaia 5c76751104 [d3d12] add support for optional adapter telemetry (#8576) 2025-12-16 12:34:29 -05: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
Marc Pabst e7cdfc436a Allow disabling waiting for latency waitable object (#7400) 2025-08-10 10:01:25 +00:00
Jamie Nicol 5f8d408fb8 [deno_webgpu] Add stub GPUExternalTexture implementation
This doesn't do anything yet, but unblocks running some CTS tests.
2025-06-17 20:20:25 +01:00
Andy Leiserson e9af205c71 [deno] Implement ShaderModule.getCompilationInfo (#7736) 2025-06-11 03:49:39 -04:00
teoxoy 3b72d59a3c make memory pressure detection optional and configurable 2025-04-22 09:21:27 +02:00
Leo Kettmeir f0bf789f58 refactor(deno): use object wrap (#7113) 2025-02-13 04:17:00 -08:00
Kevin Reid 118a985ccd Allow creating Noop backend through the normal mechanisms. 2025-02-12 22:31:47 -05:00
@brody4hire - C. Jonathan BrodyandConnor Fitzgerald df54acc05d use hashbrown in more crates (etc.) (#6938)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-01-27 11:50:33 -05:00
Connor Fitzgerald d8e7ab1ad1 Refactor Cargo.toml Significantly (#6980) 2025-01-23 22:49:48 +00:00
Connor Fitzgerald a1fc4a0316 Allow Short Circuting GL Fences (#6942) 2025-01-21 19:28:14 +00:00
@brodycj - C. Jonathan BrodyandConnor Fitzgerald beb33414c7 trace directory path updates (#6924)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-01-16 14:50:15 +00:00
Connor Fitzgerald 0f37714fb8 Separate Out Backend Options into Individual Structs (#6895) 2025-01-15 17:32:15 +00:00
Andreas Reich fb210ab363 Pass InstanceDescriptor by reference and make it clonable (#6849) 2025-01-06 15:40:30 -05:00
df825fec8c chore: update deno (#6068)
---------

Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: chirsz <chirsz@foxmail.com>
Co-authored-by: Hajime-san <41257923+hajime-san@users.noreply.github.com>
Co-authored-by: Volker Schlecht <47375452+vlkrs@users.noreply.github.com>
2024-12-18 08:01:50 -08:00
Teodor Tanasoaia c8beade187 remove backend from ID (#6263) 2024-09-13 17:30:38 +02:00
teoxoy 3437589107 [wgpu-core] use .strict_get() & .strict_unregister() for devices
This works because we never assign errors to devices (they are never invalid).
2024-09-10 11:58:54 +02:00
teoxoy aa280ecd44 [wgpu-core] change return type of device creation methods to be more rusty
This is fine from the WebGPU spec's perspective as device creation returns a promise that can reject.
2024-09-10 11:58:54 +02:00
teoxoy 98426329a4 [wgpu-core] introduce Registry .strict_get() & .strict_unregister() and use them for adapters
This works because we never assign errors to adapters (they are never invalid).
2024-09-10 11:58:54 +02:00
Andreas Reich 0287eaf022 Remove gfx_select. 2024-08-14 17:34:11 +02:00
Andreas Reich 24498f04d4 The second unraveling: hub and all types on it are generic free!
gfx_select macros are empty husks now that are waiting to be removed
2024-08-14 17:34:11 +02:00
Mehmet Oguz Derin 34b0df277c Support texture-compression-bc-sliced-3d in wgpu (#5751) 2024-08-10 12:02:29 +02:00
Nicolas SilvaandAndreas Reich 4c6318c0d2 Expose gpu allocation configuration options (#5875)
* Expose gpu allocation configuration options

This commit adds hints to control memory allocations strategies to the configuration options. These hints allow for automatic profiles such as optimizing for performance (the default, makes sense for a game), optimizing for memory usage (typically more useful for a web browser or UI library) and specifying settings manually.

The details of gpu allocation are still in flux. The goal is to switch vulkan and metal to gpu_allocator which is currently used with d3d12. gpu_allocator will also likely receive more configuration options, in particular the ability to start with smaller memory block sizes and progressively grow the block size. So the manual settings already provision for this upcoming option. Another approach could be to wait and add the manual option after the dust settles.

The reason for providing presets and defining values in the backends is that I am convinced that optimal fonigurations should take hardware capabilities into consideration. It's a deep rabbithole, though, so that will be an exercise for later.

* changelog

* Update CHANGELOG.md

Co-authored-by: Andreas Reich <r_andreas2@web.de>

* Add a comment about not entirely knowing what we are doing

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-07-08 14:49:44 +02:00
Imbris 3a6814770a Allow unconsumed inputs in fragment shaders (#5531)
* Allow unconsumed inputs in fragment shaders by removing them from vertex
outputs when generating HLSL.

Fixes https://github.com/gfx-rs/wgpu/issues/3748

* Add naga::back::hlsl::FragmentEntryPoint for providing information
  about the fragment entry point when generating vertex entry points via
  naga::back::hlsl::Writer::write. Vertex outputs not consumed by the
  fragment entry point are omitted in the final output struct.
* Add naga snapshot test for this new feature,
* Remove Features::SHADER_UNUSED_VERTEX_OUTPUT,
  StageError::InputNotConsumed, and associated validation logic.
* Make wgpu dx12 backend pass fragment shader info when generating
  vertex HLSL.
* Add wgpu regression test for allowing unconsumed inputs.

* Address review

* Add note that nesting structs for the inter-stage interface can't
  happen.
* Remove new TODO notes (some addressed and some transferred to an issue
  https://github.com/gfx-rs/wgpu/issues/5577)
* Changed issue that regression test refers to 3748 -> 5553
* Add debug_assert that binding.is_some() in hlsl writer
* Fix typos caught in CI

Also, fix compiling snapshot test when hlsl-out feature is not enabled.
2024-07-04 09:08:46 +02:00
Leo Kettmeir d0a5e48aa7 chore: backport deno changes (#5686) 2024-05-11 09:29:09 +00:00
Leo KettmeirandDivy Srivastava d828f27de4 chore: update deno (#5469)
* chore: update deno

* update spec

* more error handling

* cleanup queue

* fix

* fix byow

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>

* fix

* fix

* fix

* fixes

* fix cts

* clean

---------

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-04-02 14:36:04 -04:00
John-John Tedro 950d765a4d Remove G parameter in Global<G> and generic IdentityHandlerFactory (#5159) 2024-01-29 15:37:57 +01:00
John-John Tedro 90b078f037 Improve ergonomics of gfx_select! (#5069) 2024-01-16 11:15:56 +01:00
Valaphee The Meerkat a1fafe394f Remove DX11 backend (#4828) 2023-12-06 15:12:46 -05:00