teoxoy
4bbed4074c
add max_bind_groups_plus_vertex_buffers limit
2026-04-14 17:20:15 -07:00
teoxoy
2060683c29
make vertex buffer slots optional
2026-04-14 17:20:15 -07:00
atlv
e6e5f5288c
Bring immediate in line with webgpu spec ( #9280 )
2026-04-09 22:36:02 +00:00
Andy Leiserson
11db97cf1b
fix(core): Use more checked arithmetic ( #9357 )
2026-04-01 15:23:21 -07:00
Andy Leiserson
d152e7369b
Reduce binary bloat from error vtables ( #9149 )
2026-03-04 08:52:24 -08:00
Luo Zhihao
c0f04c801c
Validate strip_index_format equals index buffer format for indexed drawing with strip topology
2026-02-01 23:14:52 -08:00
Connor Fitzgerald
5895de82b5
Rename push constants to immediates ( #8586 )
2025-12-01 15:20:02 +01: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
SupaMaggie70Incorporated
074c0e7191
Add mesh shading api to wgpu & wgpu-core ( #7345 )
2025-07-24 20:58:56 -04:00
Andy Leiserson
c868142709
Validate vertex and index buffer alignment ( #7929 )
2025-07-11 14:43:03 -07:00
Andy Leiserson
27e7408f16
Restore the buffer size changes
2025-07-10 09:52:20 -07: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
ef428fcab8
Validate binding ranges against buffer size
2025-07-08 14:45:12 -07:00
Erich Gubler
964c5bbf4c
feat(core): impl WebGpuError for API errors
2025-06-30 10:58:56 -04:00
Vecvec
afa96af76f
Unify set push constants.
2025-06-30 15:00:46 +02:00
Vecvec
4d36a02691
Unify set bind group.
2025-06-30 15:00:46 +02:00
Ebbe Steenhoudt
7cab1747ee
Loosen Viewport validation requirements to match the new specs ( #7564 )
2025-04-18 15:17:53 +02: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
Teodor Tanasoaia
ef0e6f782a
deduplicate vertex buffer size validation ( #7124 )
2025-02-14 10:33:28 +01:00
Teodor Tanasoaia
1abf3fe90e
remove unused enum variants ( #6550 )
2024-11-15 14:25:18 +01:00
teoxoy
c0c594eff2
[wgpu-core] use Fallible for RenderBundle
2024-09-10 11:58:54 +02:00
teoxoy
45206e553d
[wgpu-core] use Fallible for RenderPipeline
2024-09-10 11:58:54 +02:00
teoxoy
b42500ee40
[wgpu-core] use Fallible for BindGroup
2024-09-10 11:58:54 +02:00
teoxoy
b14fe14e88
[wgpu-core] use Fallible for QuerySet
2024-09-10 11:58:54 +02:00
teoxoy
68e8b7d4a8
[wgpu-core] introduce Fallible and use it for Buffer (first step of invalidity internalization)
2024-09-10 11:58:54 +02:00
teoxoy
3547138716
remove PrettyError
2024-07-02 18:06:19 +02:00
teoxoy
4a19ac279c
introduce MultiError and use it for BGL incompatibility errors
2024-07-02 18:06:19 +02:00
teoxoy
9ec0f45efd
move the BGL compatibility check in the binder
2024-07-02 18:06:19 +02:00
teoxoy
a4bb5dff2b
rename error variants that contain IDs
2024-07-02 18:06:19 +02:00
teoxoy
f54b354021
use .validate_dynamic_bindings() in render bundle's set_bind_group
2024-06-27 10:20:11 +02:00
teoxoy
a2c60cea4f
remove render pipeline id from set render pipeline scope
...
and make sure that we use `ResourceErrorIdent` in all relevant inner errors
2024-06-27 10:20:11 +02:00
teoxoy
287d8ee414
move pipeline ident to appropriate errors
2024-06-27 10:20:11 +02:00
Andreas Reich
b4c7987aa7
Separate renderpass arc resolve & renderpass consume on end ( #5794 )
2024-06-25 09:37:29 +02:00
teoxoy
ef2da1a6d7
rename UsageConflict to ResourceUsageCompatibilityError
2024-06-20 16:34:17 +02:00
teoxoy
aaec1c37b9
take resource lookup out of BufferUsageScope.merge_single
2024-06-20 16:34:17 +02:00
teoxoy
b0d2517bf4
change BindGroup.raw to BindGroup.try_raw
2024-06-20 16:34:17 +02:00
teoxoy
a024afe182
consolidate destroyed texture/buffer errors and separate them from invalid ID errors
2024-06-20 16:34:17 +02:00
teoxoy
862f19524f
make check_texture_usage a texture method
2024-06-20 16:34:17 +02:00
teoxoy
87382d7133
make check_buffer_usage a buffer method
2024-06-20 16:34:17 +02:00
Nicolas Silva and Connor Fitzgerald
c77b4d3f56
Use a unique tracker index per resource instead of the ID in trackers ( #5244 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2024-02-26 20:25:12 +00:00
Nicolas Silva
66ba64b721
Store Arcs instead of IDs in render bundles ( #5242 )
2024-02-15 15:54:11 -05:00
Bude
4face1c2ba
Feature/serde feature ( #5149 )
...
* Add serde, serialize, deserialize features to wgpu and wgpu-core
Remove trace, replay features from wgpu-types
* Do not use trace, replay in wgpu-types anymore
* Make use of deserialize, serialize features in wgpu-core
* Make use of serialize, deserialize features in wgpu
* Run cargo fmt
* Use serde(default) for deserialize only
* Fix serial-pass feature
* Add a comment for new features
* Add CHANGELOG entry
* Run cargo fmt
* serial-pass also needs serde features for Id<T>
* Add feature documentation to lib.rs docs
* wgpu-types implicit serde feature
* wgpu-core explicit serde feature
* wgpu explicit serde feature
* Update CHANGELOG.md
* Fix compilation with default features
* Address review comments
2024-01-28 20:13:04 +00:00
Nicolas Silva
e2e9ef5547
Fix the validation of vertex/index/instance ranges in render bundles
2024-01-26 17:26:44 +01: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
Nicolas Silva
58fe7eac48
Don't case the dynamic offsets count to u8 ( #5026 )
2024-01-09 15:41:39 +01:00
Mikko Lehtonen
159ac9e373
validation: More detailed on incompatible BGL ( #4826 )
2023-12-17 18:22:39 -05:00
Nicolas Silva
9fd13dcce3
Validate max_vertex_buffers in set_vertex_buffer ( #4574 )
2023-10-26 19:48:03 -04:00
James0124
7544af0f83
Add validation in accordance with WebGPU setViewport valid usage fo… ( #4058 )
...
* Add validation in accordance with WebGPU `setViewport` valid usage for `x`, `y` and `this.[[attachment_size]]`.
`x` and `y` must not be negative, and the rect must be contained in the render target.
* Add changelog entry.
2023-08-15 09:15:19 +02:00
494ae1a815
Add support for occlusion queries ( #3402 )
...
Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-08-02 19:05:59 +00:00
Erich Gubler
0f0044f358
fix(wgpu-core)!: use u32 indices for bind group layouts everywhere ( #3743 )
2023-05-03 20:56:54 -04:00