Nathan Adams
238697c2da
Add MULTISAMPLE_X16 texture format feature flag where supported ( #3454 )
2023-02-06 19:53:48 +01:00
Teodor Tanasoaia
41de797c74
Change type of mip_level_count and array_layer_count (members of TextureViewDescriptor and ImageSubresourceRange) from Option<NonZeroU32> to Option<u32> ( #3445 )
...
Clean up duplicated code related to texture layers/mips.
2023-02-03 15:03:34 +01:00
Nicolas Silva
6399dd4866
Update naga to 0.11.0@git:4b796b157cb2b67b0ab166a2238fe4e9473bfd52 ( #3451 )
2023-02-03 12:30:08 +01:00
Elabajaba
1e27fd4afb
fix clippy for rust 1.67 ( #3435 )
...
* clippy --fix
* elide lifetimes
* fmt and more fixes
* disable clippy::needless_borrowed_reference as it clashes with clippy::pattern_type_mismatch
* missed flags for target=wasm32-unknown-unknown
2023-02-01 23:06:03 +01:00
Raph Levien
fe2b230b0e
Implement clear_buffer on web ( #3426 )
2023-01-26 22:32:34 +00:00
Teodor Tanasoaia
d2809137ba
Zero-initialize workgroup memory ( #3174 )
...
fixes https://github.com/gfx-rs/wgpu/issues/2430
2023-01-25 18:28:35 -05:00
Connor Fitzgerald
f3090955e1
Move surface view formats to a vec ( #3423 )
2023-01-25 22:17:56 +00:00
33f94c7c84
Implement view_formats for SurfaceConfiguration ( #3409 )
...
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-01-25 21:04:41 +00:00
Jinlei Li
0d433214c7
validate the number of color_attachments in begin_render_pass ( #3404 )
2023-01-25 14:48:27 -05:00
Almar Klein
9908f3ed04
Add test for writing a 3D texture ( #3418 )
2023-01-24 17:06:09 -05:00
Ashley
c039a74884
[WebGL] Allow creating a texture from an external web_sys::WebGlFramebuffer and writing to it ( #2609 )
2023-01-24 13:47:03 -05: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
1e1001
5acb70691d
Make make_spirv_raw and make_spirv handle big-endian binaries ( #3411 )
...
Fixes https://github.com/gfx-rs/wgpu/issues/3408
2023-01-21 04:04:55 +00:00
Xiaopeng Li and lixiaopeng.jetspark
24a904256e
Add create_surface_from_surface_handle ( #3225 )
...
Co-authored-by: lixiaopeng.jetspark <lixiaopeng.jetspark@bytedance.com >
2023-01-19 11:16:11 -05:00
Nicolas Silva
a3e3d2503f
Update naga to 1be8024. ( #3405 )
2023-01-19 15:25:25 +00:00
Elabajaba
81569dd6c3
Updated Dxc integration for DX12 backend ( #3356 )
...
Co-authored-by: unknown <alimilhim5@gmail.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Closes https://github.com/gfx-rs/wgpu/issues/2722
closes https://github.com/gfx-rs/wgpu/pull/3147
2023-01-18 21:25:56 +00: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
Ashley
b323ea7115
Implement device_features and adapter_features for the web backend ( #2986 )
...
* Implement device_features and adapter_features for the web backend
* Use dyn_into instead
* Same for device_features
* Fix nit
2023-01-16 10:07:21 +00:00
Connor Fitzgerald
2ecced0c88
Improve write_buffer_with Spans ( #3383 )
2023-01-15 03:11:14 -05:00
Grisha
04da0c3f0b
Add missing backtick
2023-01-13 23:31:17 -03:30
Nathan Adams
4400ff8289
Increase GL MAX_PUSH_CONSTANTS from 16 to 64 ( #3374 )
2023-01-13 00:18:54 +00:00
Mica White
f2d2a0c00c
Remove panics in Deref impl of QueueWriteBufferView and BufferViewMut ( #3336 )
2023-01-12 18:57:06 +01:00
Nicolas Silva
5a2e60c50e
Update naga to e98bd92 ( #3352 )
2023-01-10 14:04:18 -05:00
Kurt Kühnert
c1a0912b64
added texture metadata ( #3346 )
2023-01-05 13:01:16 -05:00
Jinlei Li
33e5b7af26
vulkan feature exclude macOS and iOS by default ( #3292 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
Closes https://github.com/gfx-rs/wgpu/issues/3287
2023-01-04 21:35:29 +00:00
Teodor Tanasoaia
784ee43be7
Make ObjectId structure and invariants idiomatic ( #3347 )
2023-01-04 15:13:59 -05:00
Nathan Adams
186a29c34d
Implement TextureFormat::Stencil8 + add stencil example ( #3343 )
...
* Implement TextureFormat::Stencil8
* Add stencil-triangles demo to test Stencil8 and show how to use stencil testing
* Added changelog for Stencil8
2023-01-02 13:47:10 +01:00
Connor Fitzgerald
6f4ec4fbab
Properly expose [Adapter::get_presentation_timestamp] ( #3321 )
2022-12-21 01:27:16 -05:00
Connor Fitzgerald
9b9cc330ca
Fix up strict-assert usage ( #3320 )
...
* Removes unused assertions.rs
* Strict assert macro fixes
* Strict asserts shouldn't be default on wgpu
2022-12-20 22:04:45 -08:00
Connor Fitzgerald
6b6bc69ba0
Check for webgl2 validation errors and catch issues ( #3296 )
2022-12-20 15:51:17 -05:00
Connor Fitzgerald and Jim Blandy
5241633b3a
Implement Presentation Timestamp Correlation ( #3240 )
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2022-12-20 17:52:08 +00:00
Elabajaba
f3c50918c2
Suballocate DX12 buffer creation ( #3163 )
...
closes https://github.com/gfx-rs/wgpu/issues/2720
2022-12-20 12:23:44 -05:00
i509VCB
052bd17d41
Context dynamic dispatch ( #3051 )
2022-12-19 19:17:19 -05:00
Andreas Reich
46831a8b25
deref/deref_mut methods on buffer-views inline ( #3307 )
...
* mark deref/deref_mut methods on buffer-views inline
* inline for deref for both direct/web backend
* changelog entry
2022-12-19 15:40:47 +01:00
Erich Gubler
3cc6621fd3
Resolve Rust 1.66 clippy lints ( #3304 )
2022-12-16 17:23:12 -05:00
David Huculak
f14bee6740
Add blit shader comment ( #3301 )
2022-12-16 01:34:32 -05:00
Imbris
645469d2f9
Small typo fix in TextureViewDescriptor docs ( #3300 )
2022-12-15 15:19:00 -05:00
Connor Fitzgerald
2480eff65e
Error when not using cargo-nextest ( #3293 )
...
Closes https://github.com/gfx-rs/wgpu/issues/3285
2022-12-15 00:09:04 +00:00
Harald Reingruber and Connor Fitzgerald
f0f700c2d9
Test setup for WebAssembly+WebGL ( #3238 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-12-09 01:02:39 +00:00
Jim Blandy
a50836e0cb
Make wgpu-core users responsible for choosing back ends. ( #3254 )
2022-12-07 20:58:45 -05:00
i509VCB
88acaf7922
wgpu spell checking ( #3228 )
2022-12-02 02:59:55 -05:00
Kevin Reid
2209463a54
Return an error instead of panicking when canvas context is unavailable ( #3052 )
...
* Low-level error handling in canvas context creation (for WebGPU and WebGL 2).
Part of fixing #3017 . This commit changes the handling of `web_sys`
errors and nulls from `expect()` to returning `Err`, but it doesn't
actually affect the public API — that will be done in the next commit.
* Breaking: Change type of `create_surface()` functions to expose canvas errors.
Part of fixing #3017 .
2022-11-30 23:41:29 -05:00
Connor Fitzgerald
7960c5e154
Disable multithreaded gl compute on llvmpipe ( #3251 )
2022-12-01 04:28:09 +00:00
Kevin Reid
98999dad63
Document when types are not WebGPU types. ( #3235 )
...
* Explain wgpu::util more precisely.
* Add notes to types that are unique to wgpu (not WebGPU).
I also changed the wording in BufferSlice to be more consistent with
other documentation.
2022-12-01 02:30:30 +00: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
Jim Blandy
9c6a60d97c
Fix surface creation cfgs in example framework. ( #3246 )
2022-11-30 16:46:24 -05: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
183ba3f231
Make Surface::get_default_config return an Option.
2022-11-27 01:50:47 -05:00
Connor Fitzgerald
84cb3e65a9
Unify Surface Capabilities APIs under one function call
2022-11-27 01:50:47 -05:00