Josh Groves
ab38e8e430
Avoid overflows for extreme scissor coordinates ( #7459 )
2025-04-01 09:47:39 -04:00
teoxoy
7d15c511de
move indirect validation code to its own folder
...
rename items appropriately
internalize indirect buffer bind groups
2025-03-26 18:26:31 +00:00
teoxoy
ef622c1061
validate multi draw indirect calls
2025-03-26 18:26:31 +00:00
teoxoy
0285e60984
Replace the indirect-validation feature with InstanceFlags::VALIDATION_INDIRECT_CALL.
...
With the only caveat that device creation will now panic if the `wgsl` feature is not enabled, `InstanceFlags::VALIDATION_INDIRECT_CALL` is set and the device supports `DownlevelFlags::INDIRECT_EXECUTION`.
2025-03-26 18:26:31 +00:00
teoxoy
53c2d15e0b
implement indirect draw validation
2025-03-26 18:26:31 +00:00
Bruce Mitchener
edd0ef80af
Fix clippy::manual_repeat_n lints ( #7394 )
2025-03-22 16:18:34 +00:00
Vecvec
5b3266db23
Support getting hit vertex positions ( #7183 )
2025-03-04 20:06:44 +01:00
Erich Gubler
8774ab53d5
chore: remove std::mem::* imports now unnecessary with CORE_MSRV
...
`std::mem::{size,align}_of{,_val}` was added to `std::prelude` in Rust
1.80; see
[`rust`#123168](https://github.com/rust-lang/rust/pull/123168/ ).
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
sagudev
705e3d60e7
[core] validate equal sample_count in copy_texture_to_texture
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-23 15:05:55 +01:00
Kevin Reid
7bcbfe0712
wgpu-core: Adjust imports to allow no_std.
...
Dependencies on `std` that still exist:
* Locks
* `std::error::Error` (waiting for Rust 1.81)
* `std::os::raw::c_char` for FFI
* `thread_local` and `Backtrace` in `snatch`
2025-02-21 08:47:16 +01:00
Erich Gubler
6a01091397
move(core): s/create_compute_pass/begin_compute_pass/
2025-02-17 12:42:10 -05:00
Erich Gubler
25a51606d1
move(core): s/create_render_pass/begin_render_pass/
2025-02-17 12:42:10 -05:00
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
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
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
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
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
Erich Gubler
3b3e1939f9
Eliminate overflow in query set bounds checks ( #6933 )
2025-01-17 16:36:22 +00:00
@brodycj - C. Jonathan Brody
623f143a82
Start using hashbrown ( #6925 )
2025-01-16 14:53:36 +01: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
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
Connor Fitzgerald
fabcba8f9a
Refine Multi-Draw-Indirect ( #6870 )
2025-01-07 13:52:42 +01:00
Vecvec
658052885a
Use transform_buffer_offset when initialising transform_buffer. ( #6864 )
...
* use `transform_buffer_offset` instead of `index_buffer_offset` in part of the initialisation of transform_buffer.
* Format.
* Changelog.
* Only unwrap transform alignment once.
2025-01-07 03:01:50 -05:00
Samson
ee3ae0e549
[core] Use higher level LoadOp,StoreOp ( #6785 )
2024-12-22 21:48:11 -05:00
teoxoy
a5c3be575e
remove device arg from all CommandEncoder methods
2024-12-20 15:44:15 +01:00
teoxoy
973def4c53
remove old todo
2024-12-20 15:44:15 +01:00
teoxoy
7b2a561402
make open_pass panic if the encoder is open
2024-12-20 15:44:15 +01:00
teoxoy
0fed4dbc16
make close_and_swap panic if the encoder is not open
2024-12-20 15:44:15 +01:00
teoxoy
486967632c
rename close to close_if_open and add close that panics if the encoder is not open
2024-12-20 15:44:15 +01:00
teoxoy
7a476fcbf4
use open_pass in some more places
2024-12-20 15:44:15 +01:00
teoxoy
062999658a
let open_pass handle hal label mapping
2024-12-20 15:44:15 +01:00
teoxoy
38e09d02cc
update code that opens and closes the encoder to
...
go through `CommandEncoder`'s methods
So that `CommandEncoder.is_open` is always accurate.
2024-12-20 15:44:15 +01:00
Samson
f6fec82853
[core] Allow depthClearValue to be empty ( #6753 )
2024-12-16 16:21:06 -05:00
Samson
4da7c263ed
[core] Support optional ops in PassChannel ( #6716 )
...
* Support optional ops in PassChannel
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* respect view format aspect
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-12-16 12:20:20 +01:00
Samson
8f82992b9f
Inline PassChannel into ColorAttachment ( #6704 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-12-12 15:57:05 +01:00
Erich Gubler
727992e844
chore: satisfy clippy::unused_qualification ( #6712 )
2024-12-12 00:47:48 -05:00
atlv and Erich Gubler
5543961a71
Replace Range<T> with StateTransition<T> ( #6703 )
...
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2024-12-11 16:11:39 +01:00
Erich Gubler
f8b67a752a
docs: remove last paragraph from CommandBuffer::data ( #6680 )
2024-12-07 01:30:09 -05:00
atlv
0b6571a68d
Align Storage Access enums to spec ( #6642 )
2024-12-03 17:37:23 +01:00
teoxoy
02b28e28f0
use EncoderGuard for the other command encoder operations
...
The spec requires us to invalidate the encoder if there was any error during the body of these operations.
2024-12-02 15:59:14 -08:00
teoxoy
5e1fbd7176
move CommandEncoderStatus on the CommandBuffer and change its variants to hold CommandBufferMutable
...
This makes the code more straightforward, we were previously holding invalidity state in 2 places: `CommandBuffer::data` could hold `None` and in `CommandEncoderStatus::Error`.
This commit also implements `Drop` for `CommandEncoder` which makes the destruction/reclamation code automatic. We were previously not reclaiming all command encoders (`CommandBufferMutable::destroy` didn't call `release_encoder`) even though all encoders are coming from a pool.
2024-12-02 15:59:14 -08:00
teoxoy
68d336ef79
use CommandEncoder for BakedCommands & EncoderInFlight
2024-12-02 15:59:14 -08:00