Andy Leiserson
885845087f
Extract the parts of PassState that apply to the base encoder
...
And rename a few things.
2025-09-11 10:20:03 -07:00
Andy Leiserson
a9638c8e3a
Remove pending_query_resets from CommandBufferMutable ( #8187 )
...
It is emptied by `reset_queries` at the end of every render pass, so
it's just keeping an allocation alive, not holding any state. It seems
unlikely that there is sufficient performance gain from reusing the
memory allocation to justify the complexity of additional state at
higher layers.
2025-09-09 13:03:12 -04:00
Connor Fitzgerald
2ff46cd7cd
Remove MULTI_DRAW_INDIRECT feature ( #8162 )
2025-08-28 12:00:14 -04:00
Lisitsa Nikita
1b948fbf42
Fix 'Read-only attachment with load' error message ( #8068 )
2025-08-09 17:58:32 +02:00
Andy Leiserson
910143d622
Check for more cases of unbalanced debug groups ( #8048 )
...
Fixes #3911
2025-08-05 16:52:50 +02:00
Andy Leiserson
f25a79595a
Add a missing condition to viewport validation ( #8040 )
2025-08-01 01:10:15 -04:00
SupaMaggie70Incorporated
074c0e7191
Add mesh shading api to wgpu & wgpu-core ( #7345 )
2025-07-24 20:58:56 -04:00
Lucas Abel
b8c462ac31
[core] fix missing applies of DISCARD_HAL_LABELS ( #7991 )
2025-07-23 12:06:42 -04:00
teoxoy
b8c5c4add4
rename cmd_buf to cmd_enc where appropriate
2025-07-22 16:19:18 +02:00
teoxoy
63f3df86c8
[wgpu-core] split command encoders from command buffers
2025-07-22 16:19:18 +02:00
Andy Leiserson
c868142709
Validate vertex and index buffer alignment ( #7929 )
2025-07-11 14:43:03 -07:00
Kevin Reid
da6ccd5516
Fix undeclared base in profiling scopes.
...
This would cause compilation to fail if profiling was enabled.
2025-07-10 14:42:08 -04:00
Andy Leiserson
468632f207
Restore plumbing of implicit remainder-of-buffer size to backends
2025-07-10 09:52:20 -07:00
Andy Leiserson
27e7408f16
Restore the buffer size changes
2025-07-10 09:52:20 -07:00
Connor Fitzgerald
a248b8caf3
[core] Add RawResourceAccess trait
2025-07-09 18:08:11 -04:00
Andy Leiserson
9834d9a446
Revert "Validate binding ranges against buffer size"
...
This reverts commit ef428fcab8 .
2025-07-09 16:29:41 -04:00
Andy Leiserson
b0527800a1
Revert "Restore unintentional support for zero-size buffers"
...
This reverts commit c0a580d6f0 .
2025-07-09 16:29:41 -04:00
Andy Leiserson
c0a580d6f0
Restore unintentional support for zero-size buffers
2025-07-08 14:45:12 -07:00
Andy Leiserson
ef428fcab8
Validate binding ranges against buffer size
2025-07-08 14:45:12 -07:00
teoxoy
487f79ba44
Add missing device validity checks
2025-07-02 11:11:37 +02:00
Erich Gubler
964c5bbf4c
feat(core): impl WebGpuError for API errors
2025-06-30 10:58:56 -04:00
Vecvec
27212104f8
Unify debug groups and markers.
2025-06-30 15:00:46 +02:00
Vecvec
6237dbf0b9
Unify timestamp writes.
2025-06-30 15:00:46 +02:00
Vecvec
afa96af76f
Unify set push constants.
2025-06-30 15:00:46 +02:00
Vecvec
acd8cb18bb
Unify rebinding resources.
2025-06-30 15:00:46 +02:00
Vecvec
4d36a02691
Unify set bind group.
2025-06-30 15:00:46 +02:00
Andy Leiserson
e936c065fc
Additional comments on render and compute pass encoding
2025-06-26 15:39:53 -07:00
Andy Leiserson
fc26fbc561
Deferred error reporting for render passes
2025-06-26 15:39:53 -07:00
Andy Leiserson
460f073a67
Deferred error reporting for compute passes
2025-06-26 15:39:53 -07:00
Andy Leiserson
09c08037c9
Add a field in BasePass to store errors
2025-06-26 15:39:53 -07:00
Andy Leiserson
24f779696b
Tweak MapPassErr to work for both errors and results ( #7780 )
2025-06-10 10:26:36 -07:00
Andy Leiserson
77d2b0017a
Split EncoderStateError from CommandEncoderError ( #7779 )
2025-06-10 09:46:30 -07:00
Andy Leiserson
d9c4bf22ea
Panic on errors in pass_end_with_unresolved_commands ( #7765 )
2025-06-09 11:28:43 -07:00
teoxoy
d714e3d95a
[d3d12,metal,gl] add support for rendering to slices of 3D textures
2025-04-25 12:39:45 +02:00
teoxoy
15477b84a9
[wgpu-hal] make begin_render_pass fallible
2025-04-25 12:39:45 +02:00
teoxoy
5ecc48d494
add RenderPassColorAttachment::depth_slice
2025-04-25 12:39:45 +02:00
Ebbe Steenhoudt
7cab1747ee
Loosen Viewport validation requirements to match the new specs ( #7564 )
2025-04-18 15:17:53 +02:00
Teodor Tanasoaia
78d05f5f71
[core] check that indirect buffers have not been destroyed ( #7534 )
2025-04-14 11:06:32 -04:00
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
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
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
25a51606d1
move(core): s/create_render_pass/begin_render_pass/
2025-02-17 12:42:10 -05:00
Teodor Tanasoaia
ef0e6f782a
deduplicate vertex buffer size validation ( #7124 )
2025-02-14 10:33:28 +01:00
sagudev
bcbe4311a5
ArcRenderPassColorAttachment
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2025-02-06 14:07:20 +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
fabcba8f9a
Refine Multi-Draw-Indirect ( #6870 )
2025-01-07 13:52:42 +01:00