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
Kevin Reid
780209dfb4
Add Buffer::size() and Buffer::usage(). ( #2923 )
2022-08-02 17:10:49 -04:00
ani and Connor Fitzgerald
29f5f8f60e
Add WGSL examples to documentation ( #2888 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-08-02 19:24:10 +00:00
i509VCB
8444fbe460
vulkan: fix issues querying multiview support ( #2934 )
2022-08-01 20:55:53 -04: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
Seamooo and Connor Fitzgerald
0dce58dfbd
changed websys features in core and hal to align with used features ( #2922 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-08-01 19:06:26 +00:00
Reece and ABuffSeagull
4cbf8cfcf1
Fix opening of renderdoc lib ( #2930 )
...
* Fix opening renderdoc lib
Renderdoc needs to not be opened by us, but instead open the existing copy.
Unfortunately this requires OS specific flags for opening, plus `libloading`
doesn't have full API coverage currently.
* Added changelog entry for #2930
* Hide RTLD_NOLOAD behind a cfg for unix
Co-authored-by: ABuffSeagull <reecevanatta@hey.com >
2022-08-01 01:39:55 +00: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
Kevin Reid
a420e453c3
StagingBelt: check for free chunks in the receiver as well as free_chunks. ( #2906 )
...
* StagingBelt: check for free chunks in the `receiver` as well as `free_chunks`.
Previously, chunks would only be taken from the GPU callback receiver
and put on `free_chunks` during `finish()`. So, there might be chunks
that are actually available for use but wouldn't be used.
Now, we consult the receiver whenever we're about to consult the
`free_chunks`, so the reuse of chunks will be as good as possible (given
the application's uses of operations that trigger `map_async` callbacks).
* Changelog entry.
2022-07-26 14:59:27 +00:00
i509VCB
75519839be
export AdapterContext in Gles hal ( #2870 )
2022-07-25 23:37:50 -04:00
Kevin Reid
7b487682d9
Expand StagingBelt documentation. ( #2905 )
2022-07-26 03:36:56 +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
e49ef97311
added changelog entry for #2886
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
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
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
Connor Fitzgerald
9c5015f059
Update Changelog
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 Li and Connor 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
Elabajaba and Connor 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
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
aaabd56d9a
Curb Expectations of DX11
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
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
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
Dzmitry Malyshau
c00e471274
Release 0.12
2021-12-18 12:36:41 -05:00
Dzmitry Malyshau
5441556988
Release wgpu-hal-0.11.2
2021-10-12 12:22:49 -04:00
Dzmitry Malyshau
60bb2aaa6b
hal/gles: work around the clear shader bug
2021-10-09 16:33:45 -04:00
Dzmitry Malyshau
d48bc62826
hal/vk: check for NV optimus
2021-10-09 16:33:45 -04:00
Dzmitry Malyshau
44f488efed
gles: fix querying storage limits
2021-10-09 16:33:45 -04:00
Dzmitry Malyshau
713f7fd7f2
Changelog update for 0.11
2021-10-07 19:15:49 -04:00
Dzmitry Malyshau
62f26367cd
Fix the check for depth+stencil aspect of views
2021-08-20 12:11:57 -04:00
Dzmitry Malyshau
a296cf6e9e
[metal] set threadgroup memory sizes reflected from the shader
2021-08-19 13:25:04 -04:00
Dzmitry Malyshau
9da5c1d3a0
Release v0.10 ( #1820 )
...
* Release v0.10
* hal/gles: update glow handles logic
2021-08-18 19:06:21 +00:00
Dzmitry Malyshau
dffe1f1793
Return a texture by the surface
2021-08-11 20:58:42 -04:00
Dzmitry Malyshau
f78061bcef
Merge swap chain into surface
2021-08-11 20:58:42 -04:00
Dzmitry Malyshau
552a5f138e
Rename texture usage names
2021-07-28 00:17:54 -04:00
Connor Fitzgerald
683d03a8e4
Add Rgb9e5Ufloat
2021-07-21 23:54:46 -04:00