Commit Graph

1074 Commits

Author SHA1 Message Date
Sven Sauleau
45efae315b fix Wasm casing (#3878) 2023-06-21 20:54:07 +00:00
Andrew Wheeler(Genusis)
2ee2e1a770 Update RenderPass draw, draw_indexed, set_viewport and set_scissor_rect documentation (#3860) 2023-06-17 17:11:24 +00:00
Connor Fitzgerald
db39b5423e Formatting and example command fixes (#3872) 2023-06-15 20:05:26 +00:00
Connor Fitzgerald
e6be20f72e Make wgpu-info into a proper CLI Tool (#3856) 2023-06-15 19:56:15 +00:00
Connor Fitzgerald
10172e1f38 Move Examples and Tests to Their Own Crates (#3841)
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
2023-06-10 18:35:46 +00:00
Connor Fitzgerald
173820222f Migrate to nv-flip for image comparison (#3830)
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
2023-06-08 11:48:06 -04:00
Connor Fitzgerald
1d2a667b71 Fix trying to use a renderpass inside a compute pass (#3828)
* Fix trying to use a renderpass inside a compute pass

* Fix pipeline statistics test on mac

* Changelog
2023-06-05 09:05:59 -04:00
Jim Blandy
29914b308f wgpu-core: Move identity code to new identity module. 2023-05-24 09:54:03 -07:00
Jim Blandy
13bd3eea55 wgpu-core: Move HalAPI to new hal_api module. 2023-05-24 09:54:03 -07:00
Jim Blandy
f00e6b70ea wgpu-core: Move Global to new global module. 2023-05-24 09:54:03 -07:00
kyren
9c8666a5c9 Implement Send and Sync unconditionally for exposed Id type. (#3801) 2023-05-24 15:10:59 +02:00
Jim Blandy
3563849585 Document that various sizes and offsets are in bytes. (#3773) 2023-05-13 22:22:28 -04:00
Ame
4d8a7ed38d Change AdapterInfo::{device,vendor} fields to u32 (#3760)
* Change AdapterInfo device and vendor to u32s

* Add CHANGELOG
2023-05-09 11:17:27 +02:00
Andreas Reich
1dd105c3bf Fix crash on command buffer drop (#3726) 2023-05-03 05:00:59 -04:00
Josh Groves
66c029f172 Pass correct surface for existing canvases (#3718) 2023-04-30 21:52:41 +09:00
Alix Bott
c86f9773ca Fix unsetting vertex attributes in gles backend (#3706)
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
2023-04-19 21:14:45 +00:00
daxpedda
85fc427470 Adjust internal canvas size on Surface::configure() (#3690) 2023-04-19 21:09:31 +00:00
Jinlei Li
62ea7813e4 Implement Features::RG11B10UFLOAT_RENDERABLE (#3701) 2023-04-19 13:34:29 +02:00
pudi
562ad0d7c2 Fix documentation comments for multi_draw_*_indirect_count (#3694) 2023-04-15 18:13:31 +00:00
François
bf8e6fe371 add feature RG11B10UFLOAT_RENDERABLE on webgpu (#3689)
* add feature RG11B10UFLOAT_RENDERABLE on web

* changelog
2023-04-14 14:52:37 +02:00
François
8985bca32c remove old comment about swapchain for the web (#3673) 2023-04-12 21:55:16 +00:00
Connor Fitzgerald
a7defb723f Cleanups for WebGPU (#3671)
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
2023-04-12 21:27:30 +00:00
François
d781bb7443 expose-ids: pass the correct field for global ID (#3669) 2023-04-12 12:45:31 -04:00
Josh Groves
ee175f909c Fix depth stencil attachment downcast for WebGPU (#3670) 2023-04-12 16:33:50 +00:00
Josh Groves
cfc038aeb9 Avoid using WasmAbi functions on WebGPU backend (#3657)
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
2023-04-10 16:31:43 -04:00
Niklas Korz
2c37608ad3 Web: handle None for depth_ops and stencil_ops (#3660) 2023-04-10 11:21:17 +02:00
Teodor Tanasoaia
6918cf33d4 [metal] Fix metal erroring on an array_stride of 0 (#3538)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-04-05 22:40:15 +00:00
dependabot[bot]
a13ed91626 Bump bitflags from 1.3.2 to 2.0.2 (#3606)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connor@modyfi.io>
2023-04-05 22:24:59 +00:00
Lukas Herzberger
b6dbce740f Implement resolve query set (#3489
* implement command_encoder_resolve_query_set

* fix args

* add BufferUsages::QUERY_RESOLVE

* update changelog

* fix link text

* validate query resolve: check for QUERY_RESOLVE instead of CPY_DST

* update changelog, replace COPY_DST with QUERY_RESOLVE in mipmap example
2023-04-05 17:59:04 -04:00
TheOnlyMrCat
47a887ce0f Manually implement traits on wgpu::Id (#3630) 2023-04-05 17:56:04 -04:00
Benjamin Schaaf
fdbbd02c1e Properly drop surfaces (#3647)
Co-authored-by: Benjamin Schaaf <bschaaf@sublimetext.com>
Fixes #3646
2023-04-05 17:48:12 -04:00
Teodor Tanasoaia
37fbae7872 Revert "Fix macro to allow disabling dx12 feature. (#3590)" (#3649)
This reverts commit 110e62aed2.
2023-04-04 15:16:31 +02:00
daxpedda
9fa7186ede [gles] Fix tex_sub_image_* calls not always adjusting to target texture (#3641) 2023-04-04 13:51:13 +02:00
TheOnlyMrCat
53ddf687c6 Add a generic parameter to wgpu::Id (#3575) 2023-03-29 14:11:36 -04:00
Connor Fitzgerald
0c3ca5c08b Fix Metal Mipmap Behvior (#3610) 2023-03-21 16:37:30 +00:00
Andrew Numrich
110e62aed2 Fix macro to allow disabling dx12 feature. (#3590)
* Fix macro for DX12 conditional compilation

* Update CHANGELOG.md

* Apply suggestions from code review

---------

Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2023-03-15 18:48:47 +01:00
Kevin Reid
13d2c3673c In Context::handle_error_fatal, print cause chain. (#3563) 2023-03-06 23:00:34 -05:00
Teodor Tanasoaia
cf40e64b16 Change type of bytes_per_row and rows_per_image (#3529) 2023-03-06 16:44:36 -05:00
Teodor Tanasoaia
ac689cbe1f Update feature documentation (#3534) 2023-03-03 12:09:17 -05:00
Jesse Talavera-Greenberg
73b4257b17 Fix create_device_from_hal not using the provided hal_device's queue (#3523) 2023-02-23 13:54:52 +00:00
Teodor Tanasoaia
30064ead9f Remove SwiftShader failure from zero init test (#3515) 2023-02-21 12:15:38 -05:00
Nicolas Silva
438d6394ef Update naga to 0.11.0@git:9742f1616c3e3dd2cc9a5880616fc886c391bb9f (#3512)
* Update naga to 0.11.0@git:9742f1616c3e3dd2cc9a5880616fc886c391bb9f

* Mark the zero init workgroup test as passing.
2023-02-21 12:50:22 +01:00
Nicolas Silva
8f1db56fc0 Work around a clippy error (#3505) 2023-02-20 15:35:58 +01:00
Teodor Tanasoaia
074d1da831 Set the new naga capabilities (#3494)
* remove redundant flag

* set the `MULTISAMPLED_SHADING` downlevel flag for gles and dx11

* set the right naga capabilities

add `Features::SHADER_EARLY_DEPTH_TEST`

* add changelog entry

* remove `@early_depth_test` from water example
2023-02-16 22:43:38 -05:00
Nicolas Silva
bf38b4b0b1 Update naga to 0.11.0@git:568d7c4c136dada369ef7f59ee8414a263d6c7b2 (#3491)
* Update naga to 0.11.0@git:568d7c4c136dada369ef7f59ee8414a263d6c7b2

* Fix the clear_texture after naga update.
2023-02-16 15:24:24 +01:00
daxpedda
719ba83726 Enable more wgpu-hal functions for webgl (#3490) 2023-02-15 22:04:57 +00:00
daxpedda
e4445205c2 Remove emscripten crate features (#3467) 2023-02-15 21:46:00 +00:00
Teodor Tanasoaia
c51edd36fd Support stencil-only views and copying to/from combined depth-stencil textures (#3436) 2023-02-15 16:20:22 -05:00
Teodor Tanasoaia
b33731c44c Validate before extracting texture selectors (#3487)
Move calls to `extract_texture_selector` after calls to `validate_texture_copy_range`, to avoid overflow.
2023-02-14 12:31:18 -08:00
daxpedda
5b8c55c451 Build for WASM on docs.rs (#3462) 2023-02-09 15:38:40 -05:00