Erich Gubler
7510d7b929
fix: add cbindgen:ignore on conflicting monomorphizations
2025-02-14 12:18:41 -05:00
Teodor Tanasoaia
ef0e6f782a
deduplicate vertex buffer size validation ( #7124 )
2025-02-14 10:33:28 +01:00
Bruce Mitchener
bae0e70e8d
Fix clippy::unneeded_struct_pattern lints ( #7136 )
2025-02-14 01:32:21 -05:00
Kevin Reid
118a985ccd
Allow creating Noop backend through the normal mechanisms.
2025-02-12 22:31:47 -05:00
Kevin Reid
0143b4aaa0
Rename Empty backend to Noop.
...
This is in preparation for making it a more substantial test stub,
able to execute nontrivial code, and usable from the safe `wgpu` API.
2025-02-12 22:31:47 -05:00
Vecvec
3a4a40aae4
[wgpu-hal] Blas compaction ( #7101 )
2025-02-12 13:19:07 +00:00
Vecvec and Nicolas Silva
0922631125
Fix transform buffer when building blas ( #7062 )
...
Co-authored-by: Nicolas Silva <nical@fastmail.com >
2025-02-10 20:18:41 -05:00
sagudev
4675393a32
Unify ResolvedBindGroupDescriptor into BindGroupDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
3e0f3b4799
Unify ResolvedBindGroupEntry into BindGroupEntry
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
5764ada320
Unofy ResolvedBindingResource into BindingResource
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
a46fb070c2
Unify ResolvedPipelineLayoutDescriptor into PipelineLayoutDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
c3bda444a1
Unify ResolvedRenderPipelineDescriptor into RenderPipelineDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
dadd5af55c
Unify ResolvedComputePipelineDescriptor into ComputePipelineDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
40f5763e72
Unify ResolvedFragmentState into FragmentState
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
aa2d6d0849
Unify ResolvedVertexState into VertexState
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
e14e397424
Unify ResolvedProgrammableStageDescriptor into ProgrammableStageDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
8e943e828c
Unify ResolvedSurfaceOutput into SurfaceOutput
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
c0688b6de7
Unify ResolvedBufferBinding into BufferBinding
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-07 16:16:13 -05:00
sagudev
9db6430fdb
ArcComputePassDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-06 14:07:20 +01:00
sagudev
5c900f15f7
ArcPassTimestampWrites
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-06 14:07:20 +01:00
sagudev
bcbe4311a5
ArcRenderPassColorAttachment
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-06 14:07:20 +01:00
Vecvec
d34707ec3f
Rename instance_id & instance_custom_index to instance_index & instance_custom_data ( #6780 )
2025-02-05 18:23:22 +01:00
@brody4hire - C. Jonathan Brody
a8cc83e17a
avoid default features in many dependencies (etc.) ( #7031 )
2025-01-30 10:30:42 -05:00
metamuffin
33e8df0f44
Fix deadlock between snatchable_lock and trackers in Queue::write_texture ( #7004 )
...
* Fix deadlock between snatchable_lock and trackers in Queue::write_texture
* Fix another deadlock in write_texture between pending_writes and snatchable_lock.
2025-01-27 18:01:57 +01:00
@brody4hire - C. Jonathan Brody and Connor 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
0fc0b35899
Transition resources ( #6678 )
...
* WIP
* Fix typo
* WIP: Implement structure of command_encoder_transition_resources
* WIP
* More work
* Clippy
* Fix web build
* Use new types for API, more docs
* Add very basic test
* Try to fix test cfg
* Fix merge
* Missed commit
* Use wgt types instead of hal types
* Implement `Clone` for `ShaderModule` (#6939 )
* Move to dispatch trait, move more things to wgt
* Move existing code to use new wgt types
* Fixes
* Format import
* Format another file
* Fixes
* Make module private
* Fix imports
* Fix test imports
* Rexport types
* Fix imports
* Fix import
---------
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-01-24 00:54:19 -05:00
Connor Fitzgerald
d8e7ab1ad1
Refactor Cargo.toml Significantly ( #6980 )
2025-01-23 22:49:48 +00:00
Connor Fitzgerald
3dd925b697
Use Bitflags Unknown Bit Check ( #6967 )
2025-01-21 21:41:38 -05:00
Connor Fitzgerald
a1fc4a0316
Allow Short Circuting GL Fences ( #6942 )
2025-01-21 19:28:14 +00:00
Connor Fitzgerald
436f716715
Unconditionally Generate Bindless Samplers in DX12 ( #6766 )
2025-01-21 14:24:03 -05:00
Connor Fitzgerald
7fccb6bdb9
Standalone Compute
...
Fix Generate
Fix?
17th Time's The Charm
Fix Build
See Eye
Docs
Victory Tabular
Formatting
Formating3
2025-01-20 18:07:22 -05:00
Connor Fitzgerald
4ed5021996
Ban Dynamic Offsets and Binding Arrays in the Same Bind Group ( #6811 )
...
* Ban Dynamic Offsets and Binding Arrays in the Same Bind Group
* Add Tests and Uniform Buffer Restriction
2025-01-20 13:28:32 -05:00
Erich Gubler
3b3e1939f9
Eliminate overflow in query set bounds checks ( #6933 )
2025-01-17 16:36:22 +00:00
sotaroikeda and Sotaro Ikeda
3d13cc1bbe
Add a way to notify with Queue::submit() to Vulkan's vk::Semaphore allocated outside of wgpu ( #6813 )
...
Co-authored-by: Sotaro Ikeda <you@example.com >
2025-01-17 11:18:17 -05:00
@brodycj - C. Jonathan Brody and Connor Fitzgerald
beb33414c7
trace directory path updates ( #6924 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-01-16 14:50:15 +00: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
caelunshun and Connor Fitzgerald
30364134f3
Expose conversions between TextureFormat and naga::StorageFormat ( #6185 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-01-15 17:44:14 +00:00
Connor Fitzgerald
0f37714fb8
Separate Out Backend Options into Individual Structs ( #6895 )
2025-01-15 17:32:15 +00:00
atlv
be95178709
64 bit image atomics ( #5537 )
2025-01-15 08:05:13 -05:00
Vecvec and Connor Fitzgerald
0b2c9e4f4b
[Ray-tracing] Change index offset to first index ( #6873 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-01-14 16:56:24 -05:00
teoxoy
f62090ed71
use StatelessTracker for acceleration structures
2025-01-13 20:52:55 +01:00
teoxoy
f17f10dcdd
remove Tlas/Blas destroy methods
...
`Tlas.destroy` didn't check if the `Tlas` is used in a bind group of an active submission. The only reason we need the `destroy` methods for textures and buffers is because they allow users to eagerly release memory in browser implementations. I think we can remove the destroy methods on the acceleration structures for now as they complicate the picture without any gain. If they will be needed for Firefox we can add them back.
2025-01-13 20:52:55 +01:00
teoxoy
e066a23948
remove unused id
2025-01-13 20:52:55 +01:00
teoxoy
362e440552
add temp_resources to CommandBufferMutable, BakedCommands & EncoderInFlight, remove it from ActiveSubmission
...
Use `CommandBufferMutable.temp_resources` to store the ray tracing related staging buffers and scratch buffers. These shouldn't have been stored in `PendingWrites.temp_resources` because they can get destroyed early (before the command buffer that uses them has been submitted) if any other command buffer gets submitted first.
2025-01-13 20:52:55 +01:00
teoxoy
43e0ebde9f
[wgpu-core] ray tracing: remove acceleration structures from pending writes
...
The acceleration structures are already being kept alive by the tracker in the command encoder.
2025-01-13 20:52:55 +01:00
teoxoy
fb9f91a668
[wgpu-core] ray tracing: use error handling helpers
2025-01-13 20:52:55 +01:00
18471d8e78
Image atomics support ( #6706 )
...
* Image atomics support
* Address feedback
* fix merge
* Fixes
* Add a couple tests
* Update wgpu-types/src/lib.rs
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
* feedback
* feedback
* glsl
* glsl fix
* fix glsl
* fix fix
* fix fix fic
* fix?
* fix
---------
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2025-01-13 15:37:12 +00: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