IceSentry
bb876f372a
Better error message for 16 byte alignment error ( #3414 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: gilescope <gilescope@gmail.com >
Closes https://github.com/gfx-rs/wgpu/pull/3099
Closes https://github.com/gfx-rs/wgpu/issues/2832
2023-01-24 20:46:19 +00:00
Connor Fitzgerald
95a760bb42
Implement queue.copy_external_image_to_texture for WebGL2 and improve WebGPU Impl ( #3288 )
...
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
Closes https://github.com/gfx-rs/wgpu/issues/1888
2023-01-24 18:44:15 +00:00
Teodor Tanasoaia
964c94a02d
Update TextureView validation ( #3410 )
...
* update TextureView validation
* add changelog entry
* remove call to clone
* dereference instead
2023-01-24 12:02:16 +01:00
Jinlei Li and Teodor Tanasoaia
4cd753bccd
vk: improve view_formats setting ( #3412 )
...
* vk: improve view_formats setting
* Fix extension detection
* Update wgpu-hal/src/vulkan/device.rs
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
* Follow the suggestion
* Tiny doc fix
* Follow the suggestion
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2023-01-23 16:02:25 +01:00
Nicolas Silva
a3e3d2503f
Update naga to 1be8024. ( #3405 )
2023-01-19 15:25:25 +00:00
Connor Fitzgerald
2c3f9fabb7
Allow vulkan to change view formats ( #3399 )
2023-01-19 14:20:15 +01:00
Jinlei Li
0849e78600
Add view_formats in TextureDescriptor ( #3237 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Co-authored-by: crowlkats <crowlkats@toaxl.com >
Closes https://github.com/gfx-rs/wgpu/issues/3030
2023-01-18 16:03:56 -05:00
Teodor Tanasoaia
fae740df5c
Fix being able to sample a depth texture with a filtering sampler ( #3394 )
2023-01-18 15:53:50 -05:00
Connor Fitzgerald
2ecced0c88
Improve write_buffer_with Spans ( #3383 )
2023-01-15 03:11:14 -05:00
Leo Kettmeir
f40611fd5c
don't panic on mapped buffer in queue_submit ( #3364 )
2023-01-15 07:10:11 +01:00
Jim Blandy
8c9f3f159b
queue_write_texture: Validate the destination texture. ( #3378 )
2023-01-14 10:35:46 +01:00
James0124
a06ef71fd7
Add validation in accordance with WebGPU GPUSamplerDescriptor valid… ( #3353 )
...
* Add validation in accordance with WebGPU `GPUSamplerDescriptor` valid usage for `lodMinClamp` and `lodMaxClamp`.
`lodMinClamp` must not be negative, and `lodMaxClamp` must be >= `lodMinClamp`
* Add changelog entry.
* Run `cargo fmt`.
2023-01-06 13:16:16 +01:00
Teodor Tanasoaia
62e932b0a8
Add missing DEPTH_BIAS_CLAMP and FULL_DRAW_INDEX_UINT32 downlevel flags ( #3316 )
...
* add missing `DEPTH_BIAS_CLAMP` and `FULL_DRAW_INDEX_UINT32` downlevel flags
* add changelog entry
* use require_downlevel_flags
2022-12-20 18:21:54 +01:00
Teodor Tanasoaia
14886ee142
Sync depth/stencil copy restrictions with the spec ( #3314 )
...
* sync depth/stencil copy restrictions with the spec
* add changelog entry
2022-12-20 15:26:00 +01:00
Erich Gubler
3cc6621fd3
Resolve Rust 1.66 clippy lints ( #3304 )
2022-12-16 17:23:12 -05:00
Connor Fitzgerald
3ce5ca866b
Improve dynamic offset binding errors ( #3294 )
2022-12-15 00:53:42 +00:00
Jim Blandy
a50836e0cb
Make wgpu-core users responsible for choosing back ends. ( #3254 )
2022-12-07 20:58:45 -05:00
Nicolas Silva and Connor Fitzgerald
e90aacea96
Validate texture copy ranges earlier to prevent integer overflow ( #3090 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-12-01 01:20:48 +00:00
Nicolas Silva
a9d33193b3
Fix incorrect offset in get_mapped_range ( #3233 )
...
* Add a test.
* Fix incorrect offset in get_mapped_range.
* Add an entry in the changelog.
2022-11-30 16:45:49 -05:00
Connor Fitzgerald
84cb3e65a9
Unify Surface Capabilities APIs under one function call
2022-11-27 01:50:47 -05:00
Nicolas Silva
82e9dcf8f7
Allow unspecified bits when deserializing the API's bitflags ( #3229 )
2022-11-25 23:13:22 -05:00
Jim Blandy
73b23f1c8d
Move minimum supported rust version (MSRV) from 1.65 back to 1.64. ( #3231 )
2022-11-23 21:22:03 +00:00
Erich Gubler
18f3f5f6f0
Enable unsafe_ops_in_unsafe_fn lint in all workspaces ( #3044 )
2022-11-14 10:49:39 -08:00
Ali
3c82a4cd5c
Added support for MSAA(x2,x8) beyond WEBGPU restrictions for native a… ( #3140 )
...
Closes https://github.com/gfx-rs/wgpu/issues/2910
2022-11-09 15:19:05 -05:00
Erich Gubler
319a916cb6
refactor: fix label shadow warning for new_alpha_mode
2022-11-07 17:36:04 -08:00
Andreas Reich and Connor Fitzgerald
b838b0871c
Added new UNRESTRICTED_INDEX_BUFFER downlevel flag. ( #3157 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-11-07 15:45:50 -05:00
Nicolas Silva
db30e3909a
Avoid integer overflow on multiplication in write_texture. ( #3146 )
2022-11-07 15:31:19 -05:00
Nicolas Silva
d1ff3838b8
Expose the full Result type to the rust map_async callback ( #2939 )
2022-10-13 15:41:52 -04:00
Jim Blandy
215884184b
Reformat comments in wgpu-core. ( #3102 )
2022-10-13 18:34:44 +00:00
daxpedda
02cc2ae234
[BREAKING] Make Shader(Module)Source::Wgsl optional ( #2890 )
2022-10-08 01:12:50 -04:00
Nicolas Silva
0a3e209c90
Shrink the default max binding index to 640 and expose it in Limits.
...
Following the corresponding changes happening in WebGPU.
2022-10-06 10:12:16 -07:00
Jim Blandy
c781971792
When a command encoder is dropped, destroy its hal command buffer. ( #3069 )
...
Fixes #2965 .
2022-10-06 01:06:55 -07:00
Mikko Lehtonen
60fd2a32e9
Implement missing PrettyError impls ( #3066 )
2022-10-05 18:43:52 -04:00
i509VCB
2372895944
Handle unsupported surfaces more gracefully ( #3054 )
2022-10-05 16:42:06 -04:00
SpecificProtagonist
b65ebb4b30
remove copyless ( #3050 )
2022-09-26 05:15:35 +00:00
2c1d7a8a5c
Split Blendability and Filterability into Two Different TextureFormatFeatureFlags ( #3012 )
...
* Split Blendability and Filterability into Two Different TextureFormatFeatureFlags
* Update CHANGELOG.md
* Split out individual booleans to improve readability
* Make sure blendablity is correctly set for guaranteed format features of WebGPU
* Cargo fmt
Co-authored-by: Xander Warnez <xander.warnez@materialise.be >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-09-21 19:39:01 +00:00
daxpedda
95408cd48b
[BREAKING] Wrap ShaderSource::Naga in Cow<'static> ( #2903 )
2022-09-19 00:50:46 -04:00
Imbris and Connor Fitzgerald
41006d7a88
Buffer usages mismatch check and documentation for mapped_at_creation size requirement. ( #3023 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-09-19 04:41:29 +00:00
Jinlei Li
44399bb4a3
Expose alpha_mode, support non-opaque mode on metal and vk backends ( #2836 )
2022-09-19 00:10:21 -04:00
Jim Blandy
2cd08a1c9c
Placate Clippy 0.1.63. ( #2977 )
2022-08-24 17:25:59 -04:00
Jim Blandy
c6ca2a7d0d
Always free staging buffers ( #2961 )
...
* Have `prepare_staging_buffer` take a raw hal Device.
This helps the borrow checker understand that we can borrow
`pending_writes`'s encoder and the raw Device at the same time.
* Always free staging buffers.
We must ensure that the staging buffer is not leaked when an error
occurs, so allocate it as late as possible, and free it explicitly when
those fallible operations we can't move it past go awry.
Fixes #2959 .
* Some tests for texture and buffer copies.
* Add CHANGELOG.md entry.
2022-08-13 18:25:49 -07:00
Jim Blandy
33d313cba9
Document some wgpu-core resource tracking types ( #2960 )
2022-08-13 20:35:57 -04:00
Nicolas Silva and Connor Fitzgerald
6e99cd3a3e
Fix calculation/validation of layer/mip ranges in create_texture_view ( #2955 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-08-14 00:01:19 +00:00
Nicolas Silva
ef3b31cd9a
Map bounds check ( #2938 )
...
* Validate that map_async's range is not negative.
map_async already checks that the range's end is within the bounds of the buffer, so this also ensures the range start is within bounds.
* Add an entry in the changelog.
2022-08-03 20:28:36 -07:00
Nicolas Silva
e59c33046b
Validate against the maximum binding index ( #2892 )
...
* Validate binding indices in create_bind_group_layout.
* Add an entry in the changelog
2022-08-01 16:25:32 -04:00
Nicolas Silva and Connor Fitzgerald
a05c8dc2dc
Fix buffer zeroing with offset in map_buffer ( #2916 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-07-31 22:05:18 +00:00
Nicolas Silva
d0aa3f471a
Validate the number of color attachments in create_render_pipeline ( #2913 )
2022-07-25 23:28:52 -04:00
Connor Fitzgerald
537c6bed4e
Add warning when using CompareFunction::*Equal without an invariant Attribute ( #2887 )
2022-07-21 02:24:49 -04:00
Seamus Mulholland-Patterson
6d4677fd7f
added downlevel restriction error message for InvalidFormatUsages error
2022-07-15 14:11:04 -04:00
Nicolas Silva
6058676dd2
Record that the buffer is mapped when its size is zero. ( #2877 )
...
* Record that the buffer is mapped when its size is zero.
* Avoid internally trying to map a zero-sized buffer if mapped_at_creation is true.
* Add an entry in the changelog.
2022-07-13 18:01:12 +00:00