Commit Graph
9013 Commits
Author SHA1 Message Date
Erich Gubler f8113c55b7 feat(const_eval): impl. asinh 2024-01-18 16:57:46 -05:00
Erich Gubler e2783c7d45 feat(const_eval): impl. asin 2024-01-18 16:57:46 -05:00
Erich Gubler afb54d58ba feat(const_eval): impl. acosh 2024-01-18 16:57:46 -05:00
Erich Gubler 6654c68950 feat(const_eval): impl. acos 2024-01-18 16:57:46 -05:00
Erich Gubler 12b11f870b feat(const_eval): impl. cosh 2024-01-18 16:57:46 -05:00
Erich Gubler 7528b22e57 feat(const_eval): impl. cos 2024-01-18 16:57:46 -05:00
Erich Gubler 3ab9a80815 feat(const_eval): impl. tanh 2024-01-18 16:57:46 -05:00
Erich Gubler bdf1cb4ec3 feat(const_eval): impl. tan 2024-01-18 16:57:46 -05:00
Erich Gubler 29a46234f4 feat(const_eval)!: reimpl. clamp 2024-01-18 16:57:46 -05:00
Erich Gubler 6f5b2a64e2 feat(const_eval): impl. step 2024-01-18 16:57:46 -05:00
Erich Gubler f2dbdfcdc6 feat(const_eval): impl. sqrt 2024-01-18 16:57:46 -05:00
Erich Gubler 133b573133 feat(const_eval): impl. sinh 2024-01-18 16:57:46 -05:00
Erich Gubler 99a38c7b7c feat(const_eval): impl. sin 2024-01-18 16:57:46 -05:00
Erich Gubler 5dc1038124 feat(const_eval): impl. saturate 2024-01-18 16:57:46 -05:00
Erich Gubler 87dafb645a feat(const_eval): impl. round 2024-01-18 16:57:46 -05:00
Erich Gubler fc27b08dca feat(const_eval): impl. abs with new component_wise_scalar 2024-01-18 16:57:46 -05:00
Erich Gubler 5c900f2568 refactor(const_eval): add component_wise_float helper, reimpl. math_pow 2024-01-18 16:57:46 -05:00
Erich Gubler c2058487ca chore: run rustfmt in naga 2024-01-18 16:57:46 -05:00
John-John Tedro adf1e3b6c5 Improve test feedback and implementation (#5068) 2024-01-17 16:50:39 -05:00
Josh Groves 3716b8a1bc Update glow to 0.13.1 (#5083) 2024-01-17 20:54:10 +00:00
Connor Fitzgerald 484457d959 Fix wgpu-hal build wgpu-info-v0.19.0 v0.19.0 wgpu-hal-v0.19.0 wgpu-v0.19.0 wgpu-core-v0.19.0 2024-01-17 15:23:50 -05:00
Connor Fitzgerald 7eac4cec5b Fix naga release naga-v0.19.0 naga-cli-v0.19.0 2024-01-17 14:47:13 -05:00
Connor Fitzgerald 8b2098bd4e Release 0.19 (#5082) d3d12-v0.19.0 wgpu-types-v0.19.0 2024-01-17 14:42:11 -05:00
Andreas ReichandConnor Fitzgerald 4c18e283d1 polish changelog for upcoming release (#5078)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-01-17 18:24:43 +00:00
Andreas ReichandEmil Ernerfeldt b8f27c7284 Expose maximum_frame_latency (#4899)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-01-17 12:46:34 -05:00
Connor Fitzgerald 2e38187954 Re-export public dependencies (#5063) 2024-01-16 19:21:51 +00:00
dependabot[bot]andAndreas Reich 6c86b55764 Bump Swatinem/rust-cache from 2.7.1 to 2.7.3 (#5060)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-16 11:37:27 -05:00
John-John Tedro 90b078f037 Improve ergonomics of gfx_select! (#5069) 2024-01-16 11:15:56 +01:00
Nicolas Silva 445fa6019b d3d12: Propagate descriptor heap and handle allocation errors (#5065) 2024-01-15 15:43:30 +00:00
Andreas Reichanddaxpedda 1da093f7d6 Fix cases in which instance creation may not create any context (#5059)
* Fix cases in which instance creation may not create any context

* split condition steps on picking webgpu instance

* comment formulation fix on backend availability

Co-authored-by: daxpedda <daxpedda@gmail.com>

---------

Co-authored-by: daxpedda <daxpedda@gmail.com>
2024-01-15 12:16:23 +01: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
Andreas Reich 7774f31021 Allow WebGPU & WebGL in same wasm and detect WebGPU availability (#5044)
* Rename backends: web -> webgpu, direct -> wgpu_core

* rename context objects for web & core

* allow webgpu & webgl features side-by-side

* make sure webgl ci doesn't use webgpu

* update any_backend_feature_enabled

* add panicing generate_report method for compatibility

* RequestDeviceErrorKind::Web rename, fixup various cfg attributes

* automatic webgpu support detection

* changelog entry

* fix emscripten

* fix weird cfg, fix comment typo

* remove try_generate_report again

* Make get_mapped_range_as_array_buffer WebGPU only again
2024-01-14 09:45:52 +00:00
Brad Werth f89bd3b978 Make DeviceLostClosure.from_c consume the closure before dropping it. (#5032)
This clarifies that the Rust and C-style callbacks/closures need to be
consumed (not called) before they are dropped. It also makes the from_c
function consume the param closure so that it can be dropped without
panicking.

It also relaxes the restriction that the callback/closure can only be
called once.
2024-01-14 02:53:40 -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
Connor FitzgeraldandAndreas Reich ad625f433f Convert Tests to Use Async Poll (#5053)
* Convert Tests to Use Async Poll

* Update examples/src/repeated_compute/mod.rs

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

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-13 17:34:51 +00:00
Connor Fitzgerald 5fd7d228ad Add proper timeouts to CI/nextest (#5051) 2024-01-13 12:26:55 +01:00
Nicolas Silva 376d901d1e Triage suspected resources after triaging submissions (#5050) 2024-01-12 13:19:19 -05:00
Nicolas Silva 11c29c825f Prevent a few integer overflows (#5042)
* Prevent a few integer overflows

* Add a changelog entry

* use u64
2024-01-12 16:23:23 +01:00
Andreas Reich 4fd4a7142e Unify surface creation by introducing new SurfaceTarget enum (#4984) 2024-01-11 22:24:01 -05:00
Nicolas Silva bc65d84cdb Remove the Destroyed state from Storage (#4970)
* Remove the Destroyed state from Storage

It used to be how we handled destroying buffers and textures but we moved to different approach.

* Explicit check for destroyed textures/buffers in a few entry points

This used to be checked automatically when getting the resource from the registry, but has to be done manually now that we track we track the destroyed state in the resources.
2024-01-11 10:45:12 +00:00
Nicolas Silva b30c0c2e00 Remove the free_resources tracker (#5037) 2024-01-11 09:41:09 +00:00
Nicolas Silva c90f43bc2a Move the trace recording of destroy events out of triage_resources (#5036) 2024-01-11 00:48:25 -05:00
Connor Fitzgerald 2512b2dae1 Pin rust-cache-version (#5040) 2024-01-11 01:57:51 +00: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
Connor Fitzgerald cf01592016 Dependabot Improvements (#5035) 2024-01-10 17:57:03 -05:00
Connor Fitzgerald f7695b360b Add test -> check Dependency (#5033) 2024-01-10 17:56:46 -05:00
Nicolas Silva f27bb443c1 Don't crash if a texture is destroyed before queue submission (#5028) 2024-01-10 14:36:02 +01:00
dependabot[bot] c367adf3bf Bump getrandom from 0.2.11 to 0.2.12 (#5030)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-10 02:51:31 +00:00
Nicolas Silva 4400a58470 Fix a bounds check in remove_abandoned (#5024) 2024-01-09 11:24:18 -05:00