3795 Commits
Author SHA1 Message Date
Connor Fitzgerald 9f82504d8a Update changelog and bump versions wgpu-hal-v0.13.2 wgpu-types-v0.13.2 v0.13.2 wgpu-core-v0.13.2 2022-07-13 22:27:12 -04:00
Nicolas Silva 9a8229af7b 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 22:27:12 -04:00
Nicolas Silva 8cff4a03e5 Validate the range in map_async. (#2876)
* Validate the range in map_async.

* Add an entry in the changelog.
2022-07-13 22:27:12 -04:00
i509VCB 53e034ed88 fix panic with as_hal functions (#2871) 2022-07-13 22:27:12 -04:00
i509VCB 67221ed26c expose context and display from adapter and device for egl hal (#2860) 2022-07-13 22:27:12 -04:00
i509VCB 6467433ef7 document Adapter::new_external in wgpu-hal (#2863) 2022-07-13 22:27:12 -04:00
Sébastien Marleau 30f1b685a9 fix deduplication not taking into account render bundles (#2867) 2022-07-13 22:27:12 -04:00
i509VCB a739354414 allow access to queue family index in vulkan hal device (#2859) 2022-07-13 22:27:12 -04:00
Connor Fitzgerald 6653dd5b7c Update Changelog 2022-07-13 22:27:12 -04:00
Connor Fitzgerald 696702c2a9 Refactor GLES's texture_format_capabilities 2022-07-13 22:27:12 -04:00
Connor Fitzgerald 7d9936fd0e Properly query SRV and UAV format features for depth formats 2022-07-13 22:27:12 -04:00
Connor Fitzgerald bec4a0a38d Prevent get_texture_format_features from saying textures always support COPY_* 2022-07-13 22:27:12 -04:00
Connor Fitzgerald d49b487dd5 Fix texture multi-sample-ability check with TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES 2022-07-13 22:27:12 -04:00
Connor Fitzgerald f7ab70f429 DX12/VK allow texture_format_capabilities to be called on any texture format 2022-07-13 22:27:12 -04:00
Craig 2881c450f8 Prevent OpenGL from taking preference over Vulkan (#2853)
* Prevent OpenGL from taking preference over Vulkan

* update changelog

* fix wasm build of example
2022-07-13 22:27:12 -04:00
Jinlei LiandConnor Fitzgerald 00df88011b 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-13 22:27:12 -04:00
ElabajabaandConnor Fitzgerald e9bd8bd2fa 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-13 22:27:12 -04:00
Connor Fitzgerald 711b67f4e1 Changelog 2022-07-13 22:27:12 -04:00
Connor Fitzgerald a32e3c95bc Add aniso to dx12 2022-07-13 22:27:12 -04:00
Steven 428ec90c14 Add change (#2847) 2022-07-13 22:27:12 -04:00
Connor Fitzgerald 076df1a568 Bump version to 0.13.1 v0.13.1 wgpu-v0.13.1 wgpu-hal-v0.13.1 wgpu-core-v0.13.1 2022-07-03 02:02:55 -04:00
Connor Fitzgerald 913f7a8346 Touch up changelog 2022-07-03 02:02:55 -04:00
Connor Fitzgerald 3ccc0c3783 Fix out of bounds access when surface texture is written to by multiple command buffers 2022-07-03 02:02:55 -04:00
Connor Fitzgerald 3acc0cf30d Curb Expectations of DX11 2022-07-03 02:02:55 -04:00
Connor Fitzgerald ffeaf538a0 Fix GL_EXT_color_buffer_float detection on desktop 2022-07-03 02:02:55 -04:00
Connor Fitzgerald ca0afa0c7c Fix AutoNoVsync on OpenGL 2022-07-03 02:02:55 -04:00
Spencer C. Imbleau (he/him) 84793bfaa8 Fixes #2840 (#2842) 2022-07-03 02:02:55 -04:00
RustEnthusiast f78fc70343 Update wgpu repository link in Cargo.toml. (#2834)
This fixes issue #2830.
2022-07-03 02:02:55 -04:00
Fel b73f8638ae Add other breaking changes to 0.13 changelog (#2831) 2022-07-03 02:02:55 -04:00
multisn8 1796c54ffb Clarify about breaking max_buffer_size in Limits (#2828) 2022-07-03 02:02:55 -04: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
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
Connor Fitzgerald 1ceef24261 Add changelog for 0.13 (#2823)
* Changelog

* Update CHANGELOG.md

* Bump versions to 0.13
2022-06-30 20:25:49 +00:00
Connor Fitzgeraldandbjorn3 ea05b44f38 Improve Presentation Api (#2803)
* Add new presentation modes

* Expand presentation formats

* Add Surface::get_supported_modes

* Update to rust 2021 and improve some metal surface code

* Update wgpu-types/src/lib.rs

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>

* Fix windows build errors

* Fix issues with ALLOW_TEARING

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
2022-06-30 14:24:17 -04:00
Jinlei Li 98597da1ec Allow fragment stage to have more outputs than the pipeline has (#2822) 2022-06-30 03:36:11 +00:00
Connor Fitzgerald 1d8bc57a86 Don't wait for current submission inside of submit (#2824) 2022-06-30 03:05:42 +00:00
Connor Fitzgerald 464b61d01c Flip span labels to work better with tools (#2820) 2022-06-28 19:49:51 +00:00
Teodor TanasoaiaandConnor Fitzgerald 5eb09f6bd7 Implement Queue::write_buffer_with (#2777)
* implement Queue::write_buffer_with

* address comments

* update doc

* Fix copy span location

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-06-28 18:32:43 +00:00
Jinlei Li 0eb6845b6a web: march web-sys 0.3.58, sparse attachments support (#2813) 2022-06-28 14:15:57 -04:00
Jinlei Li b0c798639a core: restrict hal::TextureUses::COLOR_TARGET condition within create_texture (#2818) 2022-06-28 18:12:34 +00:00
Jim Blandy b370b990e5 Use numeric constants to define wgpu_types::Features values. (#2817)
As an incidental change, wgpu#2802 (de5fe90f2) changed the definitions
of the bitflags in `wgpu_types::Features` from looking like this:

    const DEPTH24UNORM_STENCIL8 = 1 << 1;

to this:

    const DEPTH24UNORM_STENCIL8 = Self::DEPTH_CLIP_CONTROL.bits << 1;

The intention was to make it easier to insert new flags at a logical
point in the list, and have the numbers automatically update
themselves.

Unfortunately, `cbindgen` can't cope with the new style of definition.
It produces definitions for these flags that look like this:

    #define WGPUFeatures_DEPTH24UNORM_STENCIL8 (uint64_t)((WGPUFeatures_DEPTH_CLIP_CONTROL).bits << 1)

These are integer values, so the `.bits` field access is bogus.

This commit changes the definitions back to using direct numbering,
which `cbindgen` doesn't choke on.
2022-06-28 08:25:38 -04:00
Jim Blandy 7cfbd874af Update Naga to 27d38aae (2022-6-27). (#2816) 2022-06-27 21:36:00 -04:00
Jinlei Li 61796b1d59 Relax render pass color_attachments validation (#2778)
* Make the color attachments `Option`-al in render pipelines, render passes, and render bundles

* vk:  `Option`-al color attachments support

* dx12: sparse color_attachments support

* Only non-hole attachments is supported on wasm target and gl backend

* deno_webgpu: `Option`-al color attachments support

* Follow all suggestions
2022-06-27 16:10:18 -07:00
Nicolas Silva 892c272d18 Replace android-properties with android_system_properties. (#2815)
The former use statically linked Android libc symbols while the latter loads them dynamically. This is required to support old and new versions of Android with the same binary. It unblocks updating wgpu in Gecko.

Fixes #2805.
2022-06-27 16:56:11 -04:00
rttad 064f3f1db4 Add Naga variant to ShaderSource 2022-06-26 23:34:16 -07:00
Jim Blandy 36ae2ceda3 Pass ShaderModuleDescriptor to create_shader_module by value.
This will allow us to pass module representations that are neither
`Copy` nor `Clone`, like `naga::Module`.
2022-06-26 23:34:16 -07:00
Connor Fitzgerald a3ed6e06ab Remove depth image from readme - we don't dictate direction of depth (#2812) 2022-06-27 03:28:49 +00:00
Connor Fitzgerald 84633a8b12 Force binding sizes to be multiples of 16 on webgl (#2808) 2022-06-27 02:39:51 +00:00
Jim Blandy 788cd7d2bb Remove redundant #[cfg] conditions from backend/direct.rs. (#2811) 2022-06-26 19:15:47 -04:00
i509VCB f041991d0c allow creating wgpu::Instance from wgpu_core::Instance 2022-06-26 15:32:34 -07:00