Inner Daemons
c7f3db8bf1
Remove dispatch2 dependency ( #9048 )
2026-02-18 16:55:20 -08:00
Alexander Meißner
05861da365
[hal metal] ray tracing acceleration structures ( #8071 )
...
* Fixes index_buffer label in ray_traced_triangle example.
* Fixes min_push_constant_size in ray_shadows example.
* Ensures there always is Some() buffer reference, even for get_acceleration_structure_build_sizes().
* Updates CHANGELOG.
* Adds feature detection.
* Adds Capabilities Limits.
* Adds necessary objc2-metal features in Cargo.toml
* Sets raw_tlas_instance_size.
* Sets ray_tracing_scratch_buffer_alignment.
* Adds conv::map_index_format().
* Adds conv::map_acceleration_structure_descriptor().
* Implements AccelerationStructure.
* Implements resource binding.
squash with "Implements resource binding."
* Adds CommandState::acceleration_structure_builder.
* Implements CommandEncoder::copy_acceleration_structure_to_acceleration_structure().
* Implements CommandEncoder::build_acceleration_structures().
* Implements CommandEncoder::place_acceleration_structure_barrier().
* Implements CommandEncoder::read_acceleration_structure_compact_size().
* Implements Device::get_acceleration_structure_build_sizes().
* Implements Device::get_acceleration_structure_device_address().
* Implements Device::create_acceleration_structure().
* Implements Device::destroy_acceleration_structure().
* Implements Device::tlas_instance_to_bytes().
* Adds CommandEncoder::set_acceleration_structure_dependencies().
* Review feedback
2026-02-19 06:21:11 +13:00
Connor Fitzgerald
04746e747e
Implement 3 part MSRV policy ( #8999 )
2026-02-08 17:04:36 -05:00
Inner Daemons
fab57513ec
Add metallib passthrough ( #8886 )
2026-01-30 13:52:05 -05:00
Erich Gubler
9bc127f128
chore: update CORE_MSRV to 1.90 ( #8943 )
...
New cases for some Clippy lints pop up as part of this upgrade that
cannot be done before, listed below. Yuck!
- `clippy::manual_is_multiple_of`
- `clippy::missing_const_for_fn`
- `clippy::useless_nonzero_new_unchecked`
2026-01-27 19:37:10 -05:00
Mads Marquart
80871cfc01
Use objc2-metal with metal naming scheme
...
To keep the diff smaller and easier to review, this uses a temporary
fork of `objc2-metal` and `objc2-quartz-core` whose methods use the
naming scheme of the `metal` crate.
One particular difficult part with this is that the `metal` crate has
several methods where the order of the arguments are swapped relative
to the corresponding Objective-C methods.
This includes most perilously the following, since these have both an
offset and an index argument, both of which are integers:
- `set_bytes`
- `set_vertex_bytes`
- `set_fragment_bytes`
- `set_buffer`
- `set_vertex_buffer`
- `set_fragment_buffer`
- `set_threadgroup_memory_length`
But also:
- `set_vertex_texture`
- `set_fragment_texture`
- `set_sampler_state`
- `set_vertex_sampler_state`
- `set_fragment_sampler_state`
2026-01-27 16:28:08 -08:00
Mads Marquart
8ffa34a9d4
[metal] Use raw-window-metal to do layer creation ( #6210 )
...
This removes the manual implementation introduced in 7b00140 .
2026-01-26 12:45:03 -08:00
Marijn Suijten
234ec66152
Allow optional RawDisplayHandle in InstanceDescriptor ( #8012 )
2025-12-23 14:53:04 -05:00
David Duarte
ea361fc114
hal/vulkan: Replace gpu-alloc by gpu-allocator ( #8158 )
2025-12-12 19:10:42 +00:00
Connor Fitzgerald
f91d9f385b
Fix vscode issues on wasm32 ( #8584 )
2025-11-27 10:56:43 +01:00
Jean Francois Pambrun
0a99be6f05
Disable DX on gnu target. ( #8430 )
2025-11-19 13:04:49 -05: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
charlotte 🌸
0810110bd7
Add pci bus and device uuid to AdapterInfo ( #8290 )
2025-10-24 11:53:44 -04:00
Kevin Reid
98c345800a
[hal] Replace cargo-clippy feature with lint configuration.
2025-10-15 19:34:40 -04:00
Kevin Reid
a6f70c7f35
[hal] Remove unused rustc-hash dependency.
2025-10-15 19:34:40 -04:00
Kevin Reid
00b4258b32
[hal] Remove spurious gpu-allocator feature flag.
...
There was an implicit `gpu-allocator` feature because there was no
`dep:` on the optional `gpu-allocator` dependency, but enabling the
`gpu-allocator` feature does nothing (there are no occurrences of
`#[feature = "gpu-allocator"]`) so it has no reason to exist.
* `
2025-10-15 19:34:40 -04:00
Andy Leiserson
aee8cd1650
Lazy-load the dcomp library ( #8216 )
2025-09-15 11:48:28 -07:00
Zachary Harrold
995efddc62
Fix portable-atomic on wgpu-hal ( #7735 )
2025-06-26 08:48:41 +02:00
Zachary Harrold and Connor Fitzgerald
6151330e3a
[wgpu-hal]: MVP no_std support ( #7599 )
...
* MVP `no_std` support in `wgpu-hal`
* Update CHANGELOG.md
* Fix visibility
* Fix unused imports
* Response to feedback
Co-Authored-By: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
* Update other `validation_canary` usages
Co-Authored-By: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
---------
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-05-30 12:31:44 -04:00
Raphael Hetzel
0d569d5550
Optional web-specific deps for wasm32 ( #7565 )
2025-05-29 22:26:01 +00:00
Connor Fitzgerald
fa702f9141
Move everything to workspace dependencies
2025-04-27 18:34:52 +02:00
Kevin Reid
9727e75ad7
Update Cargo.toml to direct-minimal-versions consistency.
2025-04-25 14:40:12 -04:00
teoxoy
e78bc98d1b
remove oom_panic feature
2025-04-22 09:21:27 +02:00
bf8cc43a15
Add stderr and termcolor features to Naga ( #7482 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2025-04-18 21:06:22 +00:00
Connor Fitzgerald
45d8f42513
Use workspace package information everywhere
2025-04-10 20:41:28 -04:00
Connor Fitzgerald
8c2c2ce203
Release v25 ( #7505 )
2025-04-10 16:13:02 +00:00
Connor Fitzgerald
4687973c9a
Use bytemuck instead of slice::from_raw_parts for transmutes ( #7376 )
2025-03-19 22:05:21 -04:00
Kevin Reid
289d0e5c5a
Allow the "gles" backend to (theoretically) compile on no_std targets.
...
This entirely consists of conditionally replacing `Mutex` with `RefCell`,
then making sure that this doesn’t accidentally happen if we are also
exposing `Send + Sync`.
2025-03-05 11:48:42 +01:00
Kevin Reid
67f1554e77
Fix build of wgpu-hal on macOS with features = ["gles"]. ( #7266 )
...
Without this change, `cargo build -p wgpu-hal --features=gles` will fail
if `target_os = "macos"`.
2025-03-05 00:12:43 -05:00
Erich Gubler
c626d4f819
build: update CORE_MSRV 1.80.1 → 1.82.0
2025-02-26 22:58:50 -05:00
Erich Gubler
1bd3c7b4ee
refactor(hal): s/once_cell::Lazy/std::sync::LazyLock
...
Weaken our dependence on the `once_cell` crate by using functionality
from `std` instead that was upstreamed from `once_cell`, this time with
what's available in Rust 1.80+.
It's not yet possible to eliminate this dependency entirely, but do what
we can for now.
2025-02-26 22:58:50 -05:00
Erich Gubler
18951ea3d2
build: update CORE_MSRV 1.76.0 → 1.80.1
2025-02-26 22:58:50 -05:00
Connor Fitzgerald
8fb09a5ad6
Move REPO_MSRV to 1.85 ( #7218 )
2025-02-24 23:39:34 -05:00
Flávio J. Saraiva and Connor Fitzgerald
a26171b2a0
Fix compilation for targets that don't have AtomicU64. ( #7118 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-02-24 22:07:13 +00:00
Connor Fitzgerald
ae5dc0e7cb
Target Specific Compilation ( #7076 )
2025-02-22 12:38:58 +01:00
@brody4hire - C. Jonathan Brody
a8cc83e17a
avoid default features in many dependencies (etc.) ( #7031 )
2025-01-30 10:30:42 -05:00
Connor Fitzgerald
d8e7ab1ad1
Refactor Cargo.toml Significantly ( #6980 )
2025-01-23 22:49:48 +00:00
Connor Fitzgerald
436f716715
Unconditionally Generate Bindless Samplers in DX12 ( #6766 )
2025-01-21 14:24:03 -05:00
@brodycj - C. Jonathan Brody
623f143a82
Start using hashbrown ( #6925 )
2025-01-16 14:53:36 +01:00
Connor Fitzgerald
779261e64d
Release v24 ( #6923 )
2025-01-15 16:29:22 -05:00
Zachary Harrold and Connor Fitzgerald
05e62f96f9
Add no_std support to wgpu-types ( #6892 )
...
* Initial Commit
* Remove now-redundant `format` import
* Update CHANGELOG.md
* Appropriately feature-gate `texture_format_serialize` test
* Remove `alloc` feature
Also fixed some documentation links and a Wasm `std` import
* Revert change to `Serialize` for `TextureFormat`
* Combine use statements
* Switch from `PathBuf` to `String`
* Consider environmental flags as unset on `no_std`
* Fix missing `format!`
* Add new CI tasks for `no_std` testing
* Comment out known failing CI matrix option
* Update all usage of `Dx12Compiler::DynamicDxc`
* Added comments to CI
* Update .github/workflows/ci.yml
* Update .github/workflows/ci.yml
* Update .github/workflows/ci.yml
* CI Touchups
---------
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-01-12 05:03:47 +00:00
Connor Fitzgerald and Guus Waals
b0f1fa66ef
Add VisionOS Support ( #6888 )
...
* Add visionos support
* Use `target_vendor = "apple"`
* Fixes
* Build VisionOS
* Gah
* Bleh
* Typos
---------
Co-authored-by: Guus Waals <_@guusw.nl >
2025-01-10 17:33:58 +00:00
Connor Fitzgerald
0dab31ab2a
Fix aarch64-pc-windows-msvc ( #6868 )
2025-01-07 02:28:05 +00:00
Connor Fitzgerald
cb6dbb897f
Vulkan Sampler Cache ( #6847 )
2025-01-06 19:17:17 -05:00
Erich Gubler
b2c9b0af5a
chore: add web_sys_unstable_apis to lints.rust.unexpected_cfgs.check-cfg in wgpu_{hal,types}
2024-12-17 13:30:52 -05:00
Connor Fitzgerald
fdb6266d36
Update Some Repository Documentation ( #6708 )
...
* Update Some Repository Documentation
* Capitalization
2024-12-12 04:54:42 +00:00
Douglas Dwyer
be02606118
Static linking for DXC via mach-dxcompiler ( #6574 )
2024-12-01 23:14:10 -05:00
Andreas Reich
29bb44b19a
Bump version & update changelog following 23.0.1 patch release ( #6612 )
...
* put in missing v22.1.0 changelog
* bump wgpu, wgpu-core, wgpu-hal to 23.0.1
* add changelog for v23.0.1, remove lines from v24 line
2024-11-25 09:54:49 +01:00
Erich Gubler
08c9d8c397
chore: bump WGPU workspace crates to 23
2024-10-30 07:14:10 -07:00
Erich Gubler
d22aa2eb55
chore: format TOML files with taplo 0.9.3
2024-10-11 14:40:01 -04:00