Commit Graph
8323 Commits
Author SHA1 Message Date
Nicolas Silva d0aa3f471a Validate the number of color attachments in create_render_pipeline (#2913) 2022-07-25 23:28:52 -04:00
Jeron Aldaron Lau a0058217d6 Make termcolor dependency optional (#2014) 2022-07-23 00:46:28 -04:00
Connor Fitzgerald 537c6bed4e Add warning when using CompareFunction::*Equal without an invariant Attribute (#2887) 2022-07-21 02:24:49 -04:00
Leo Kettmeir 6448c6062f add CODEOWNERS file (#2896) 2022-07-20 12:47:34 -04:00
Leo Kettmeir 534ad76d5a upstream deno changes (#2895)
* upstream GPUAutoLayoutMode

* clean up symbols and fix miscalled op

* fix gfx-rs/wgpu#2778
2022-07-20 12:47:10 -04:00
Ashley cc985396da Handle Unpack2x16float in hlsl (#2002) 2022-07-17 03:18:48 -04:00
ani 8f302a89ef Update reserved WGSL keywords (#2009) 2022-07-17 00:40:05 -04:00
Seamus Mulholland-Patterson e49ef97311 added changelog entry for #2886 2022-07-15 14:11:04 -04:00
Seamus Mulholland-Patterson 6d4677fd7f added downlevel restriction error message for InvalidFormatUsages error 2022-07-15 14:11:04 -04:00
Connor Fitzgerald 48325f1aaa v0.13.2 changelog (#2882) 2022-07-14 01:29:09 +00: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
Jim Blandy 18d053d5af Specify an exact wasm-bindgen-cli version in publish.yml. (#2873)
The versions of wasm-bindgen-cli run by `.github/workflows/publish.yml` must
exactly match the version of `wasm-bindgen` used by `wgpu`. At the moment,
`wgpu/Cargo.toml` specifies `0.2.81`, and our `Cargo.lock` agrees, so
that is what `publish.yml` should mention.
2022-07-13 12:37:47 -04:00
Jim Blandy 5094525fb8 For wgpu web backend, use a real type for submission indices. (#2874)
The wgpu web backend uses `()` as `Context::SubmissionIndex`, which is
fine --- WebGPU provides no way to identify individual queue
submissions --- except that Clippy is concerned about us passing
around `()` in the front end as if it were a real value. Instead,
define a new zero-size `wgpu::backend::web::SubmissionIndex` type for
this use.
2022-07-13 12:37:21 -04:00
Nicolas Silva af345cd6c3 Validate the range in map_async. (#2876)
* Validate the range in map_async.

* Add an entry in the changelog.
2022-07-13 12:34:36 -04:00
i509VCB db24c066cb fix panic with as_hal functions (#2871) 2022-07-12 14:38:59 -04:00
Jinlei Li ecf3f5ec38 metal | vulkan-portability: extract the generic code into get_metal_layer (#2826) 2022-07-10 23:06:32 -04:00
i509VCB a108efe6b6 expose context and display from adapter and device for egl hal (#2860) 2022-07-10 18:50:54 -04:00
i509VCB 0dfb1115d2 document Adapter::new_external in wgpu-hal (#2863) 2022-07-10 18:49:53 -04:00
Nicholas Rishel 4add620d37 Fix instruction to run example test in README. (#2868) 2022-07-10 22:18:01 +00:00
Sébastien Marleau 2ce1318c8c fix deduplication not taking into account render bundles (#2867) 2022-07-10 22:15:52 +00:00
Nicolas Silva 324de1bef6 Ensure the BufferMapCallback is always called. (#2848)
* Ensure the BufferMapAsyncCallback is always called.

This solves two issues on the Gecko side:
 - The callback cleans up after itself (the user data is deleted at the end of the callback), so dropping the callback without calling it is a memory leak. I can't think of a better way to implement this on the C++ side since there can be any number of callback at any time living for an unspecified amount of time.
 - This makes it easier to implement the error reporting of the WebGPU spec.

* Update the changelog.
2022-07-07 23:29:05 -07:00
i509VCB 94c065cb33 allow access to queue family index in vulkan hal device (#2859) 2022-07-07 19:43:13 -04:00
Ashley 17dcf39a1b Rename hlsl input/output structs (#2001) 2022-07-06 14:27:54 -04:00
Connor Fitzgerald 9c5015f059 Update Changelog 2022-07-06 11:06:34 -04:00
Connor Fitzgerald 259991e258 Refactor GLES's texture_format_capabilities 2022-07-06 11:06:34 -04:00
Connor Fitzgerald 499e9e628e Properly query SRV and UAV format features for depth formats 2022-07-06 11:06:34 -04:00
Connor Fitzgerald 59f4efe93a Prevent get_texture_format_features from saying textures always support COPY_* 2022-07-06 11:06:34 -04:00
Connor Fitzgerald 7e369fdd57 Fix texture multi-sample-ability check with TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES 2022-07-06 11:06:34 -04:00
Connor Fitzgerald bb273a908f DX12/VK allow texture_format_capabilities to be called on any texture format 2022-07-06 11:06:34 -04:00
Connor Fitzgerald ff233fbf31 Add format features table to wgpu-info and improve output 2022-07-06 11:06:34 -04:00
Craig 1da5bbd7b4 Prevent OpenGL from taking preference over Vulkan (#2853)
* Prevent OpenGL from taking preference over Vulkan

* update changelog

* fix wasm build of example
2022-07-06 00:11:22 -04:00
Jinlei LiandConnor Fitzgerald b574354af4 gl: fix depth stencil texture format capability (#2854)
* gl: fix depth stencil texture format capabilitys

* Update CHANGELOG

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-07-06 03:37:26 +00:00
ElabajabaandConnor Fitzgerald ab340baf69 Update present_mode docs as most of them don't automatically fall back to Fifo anymore. (#2855)
* space

PresentMode no longer automatically falls back to Fifo

* Update wgpu-types/src/lib.rs

Auto(No)Vsync fallback wording.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>

* changelog

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-07-05 20:59:41 +00:00
Connor Fitzgerald 615ced5a99 Changelog 2022-07-04 16:38:27 -04:00
Connor Fitzgerald 7319a8136b Add aniso to dx12 2022-07-04 16:38:27 -04:00
Steven c36eb9f44b Add change (#2847) 2022-07-03 21:09:39 +00:00
Connor Fitzgerald 6befbcbca4 Touch up changelog 2022-07-03 01:08:40 -04:00
Connor Fitzgerald 7d85efb301 Fix out of bounds access when surface texture is written to by multiple command buffers 2022-07-03 01:08:40 -04:00
Connor Fitzgerald aaabd56d9a Curb Expectations of DX11 2022-07-03 01:08:40 -04:00
Connor Fitzgerald 87552a92cc Fix GL_EXT_color_buffer_float detection on desktop 2022-07-03 01:08:40 -04:00
Connor Fitzgerald eea8edb8a0 Fix AutoNoVsync on OpenGL 2022-07-03 01:08:40 -04:00
Spencer C. Imbleau (he/him) 72a4ef9362 Fixes #2840 (#2842) 2022-07-03 02:00:25 +00:00
RustEnthusiast cb0646f8da Update wgpu repository link in Cargo.toml. (#2834)
This fixes issue #2830.
2022-07-02 08:17:08 +00:00
Connor Fitzgerald 350171ed2f Prepare naga-cli 0.9 for release (#1999) naga-cli-v0.9.0 2022-07-02 04:00:51 +00:00
Fel c20c86a948 Add other breaking changes to 0.13 changelog (#2831) 2022-07-01 22:39:11 +00:00
multisn8 5bef140228 Clarify about breaking max_buffer_size in Limits (#2828) 2022-07-01 19:32:27 +00:00
Connor Fitzgerald e125321bff Release 0.13 two - electric boogaloo (#2827) wgpu-core-v0.13.0 wgpu-types-v0.13.0 wgpu-v0.13.0 wgpu-hal-v0.13.0 v0.13.0 2022-07-01 14:38:04 +00:00
Connor Fitzgerald 195f36b770 Merge pull request #39 from cwfitzgerald/v0.5.0
Bump version to 0.5.0
d3d12-v0.5.0
2022-07-01 10:08:35 -04:00
Connor Fitzgerald 3761d8a3ff Bump version to 0.5.0 2022-07-01 10:05:54 -04:00
David Huculak 93dbffa5d3 Add other breaking changes to 0.13 changelog (#2825)
* add other breaking changes to 0.13 changelog

* fix typo
2022-07-01 01:44:29 +00:00