Connor Fitzgerald and teoxoy
1df98d9888
Test And Normalize Vertex Behavior on All Backends ( #4723 )
...
Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com >
2023-11-21 22:11:24 +00:00
Jim Blandy
72462267e8
[naga]: Let TypeInner::Matrix hold a Scalar, not just a width.
...
Let `naga::TypeInner::Matrix` hold a full `Scalar`, with a kind and
byte width, not merely a byte width, to make it possible to represent
matrices of AbstractFloats for WGSL.
2023-11-21 12:02:50 +01:00
6e21f7a929
Arcanization of wgpu core resources ( #3626 )
...
Arcanization of wgpu_core resources
---------
Co-authored-by: Elabajaba <Elabajaba@users.noreply.github.com >
Co-authored-by: Niklas Korz <niklas@niklaskorz.de >
Co-authored-by: grovesNL <josh@joshgroves.com >
Co-authored-by: Jim Blandy <jimb@red-bean.com >
Co-authored-by: Mauro Gentile <Mauro.Gentile@ubisoft.com >
Co-authored-by: Sludge <96552222+SludgePhD@users.noreply.github.com >
2023-11-20 08:41:52 +01:00
Teodor Tanasoaia
666f681dae
[vk] check that adapters are Vulkan compliant ( #4718 )
2023-11-17 17:42:53 -05:00
Teodor Tanasoaia
a34e39ad2f
[dx12] filter out haswell iGPUs ( #4709 )
2023-11-17 13:40:09 -05:00
daxpedda
bec6560e10
Add WasmNotSendSync ( #4702 )
2023-11-16 19:47:10 -05:00
Jim Blandy
9f91c95c24
[naga] Introduce Scalar type to IR.
...
Introduce a new struct type, `Scalar`, combining a `ScalarKind` and a
`Bytes` width, and use this whenever such pairs of values are passed
around.
In particular, use `Scalar` in `TypeInner` variants `Scalar`, `Vector`,
`Atomic`, and `ValuePointer`.
Introduce associated `Scalar` constants `I32`, `U32`, `F32`, `BOOL`
and `F64`, for common cases.
Introduce a helper function `Scalar::float` for constructing `Float`
scalars of a given width, for dealing with `TypeInner::Matrix`, which
only supplies the scalar width of its elements, not a kind.
Introduce helper functions on `Literal` and `TypeInner`, to produce
the `Scalar` describing elements' values.
Use `Scalar` in `wgpu_core::validation::NumericType` as well.
2023-11-14 14:21:27 +01:00
Andreas Reich and Teodor Tanasoaia
f7420511d0
rename/deprecate block_size -> block_copy_size, improve docs ( #4647 )
...
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2023-11-13 19:04:35 +00:00
Westerbly Snaydley
2e7fd75712
vk: Enable FifoRelaxed PresentMode ( #4666 )
2023-11-10 17:09:42 +00:00
Teodor Tanasoaia
1d4fa812ef
Gate usage of metal::ComputePassDescriptor on timestamp query support ( #4643 )
2023-11-06 14:30:04 +00:00
Connor Fitzgerald
7f72c9fc3b
Fix GL Push Constant Layout ( #4607 )
...
* It verks!
* More tests
* Fixes
* Working multi-stage push constants
* Comments
* Add push constant partial update teste
* Docs
* Update Cargo.toml
* Comments
2023-11-06 07:58:26 -05:00
exrook
e7e2f2aa73
vulkan: Log validation layer messages during instance creation/destruction ( #4586 )
2023-11-05 23:14:59 -05:00
daxpedda
9501ccc6b0
Use HLSL 2018 ( #4629 )
2023-11-04 19:53:48 +00:00
Zoxc
3f80ee785c
Implement mipmap views on the OpenGL backend ( #4278 )
2023-11-01 16:57:24 -04:00
Zoxc
8f6fcb1e6f
Further OpenGL 3.1 support ( #4612 )
2023-10-30 11:51:13 -04:00
Zoxc and Connor Fitzgerald
ac896cf223
Improve OpenGL 3.1 support ( #4272 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-30 05:35:24 +00:00
Zoxc
ff1ba0b4fe
[wgl] Create a hidden window per instance ( #4603 )
2023-10-30 01:10:01 -04:00
Connor Fitzgerald
2aa7c29068
Extra Profiling Scopes ( #4610 )
2023-10-30 03:58:32 +00:00
4c5a817071
Bump raw window handle to 0.6.0 ( #4202 )
...
Co-authored-by: junglie85 <junglie85@gmail.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-27 05:24:46 +00:00
Nicolas Silva
9fd13dcce3
Validate max_vertex_buffers in set_vertex_buffer ( #4574 )
2023-10-26 19:48:03 -04:00
Connor Fitzgerald
ca7ac86ccd
DXC on DX12 in CI ( #4571 )
2023-10-26 04:01:38 -04:00
Zoxc
3bdad8bd77
Add timestamp support to OpenGL ( #4267 )
2023-10-23 21:26:23 -04:00
wicast and Connor Fitzgerald
9dc57617e4
feat(spv): shader debug option ( #4028 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-23 23:44:04 +00:00
Connor Fitzgerald
85cab49c53
Normalize GL language versions ( #4283 )
2023-10-23 05:17:00 +00:00
Connor Fitzgerald
0c7acb2144
Adds some missing features from desktop GL backend ( #4279 )
2023-10-22 22:54:49 -04:00
Zoxc and Connor Fitzgerald
095b46dbdb
Fix sRGB issues with glBlitFramebuffer on WGL ( #4273 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-20 21:04:09 +00:00
Zoxc
e918031201
Use the device OpenGL context for WGL surfaces ( #4271 )
2023-10-20 15:45:43 -04:00
Connor Fitzgerald
543f921639
GPU Test Framework ( #3873 )
2023-10-19 12:06:42 -04:00
Zoxc and Connor Fitzgerald
2b985e2fad
Add WGL context creation and OpenGL support ( #4248 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-18 18:40:33 +00:00
Connor Fitzgerald
3e307a862f
Skip Integrated WARP ( #4259 )
2023-10-18 14:08:14 +02:00
Teodor Tanasoaia
a842019b34
Vulkan API version refactors ( #4252 )
2023-10-17 19:20:56 -04:00
teoxoy
ad7044c230
[gles] make is_layered_target more robust
2023-10-13 23:59:30 -04:00
teoxoy
b5e578bd0b
[gles] consolidate z offset selection
2023-10-13 23:59:30 -04:00
teoxoy
8e42ef002c
[gles] consolidate cubemap face selection
2023-10-13 23:59:30 -04:00
teoxoy
6044c5443c
[gles] simplify cubemap tracking
2023-10-13 23:59:30 -04:00
ff306d20e0
Add support for bgra8unorm-storage ( #4228 )
...
* Add `BGRA8UNORM_STORAGE` extension
* Leave a comment in the backends that don't support bgra8unorm-storage
* Pass the appropriate storage format to naga
* Check for bgra8unorm storage support in the vulkan backend
* Add a test
Co-authored-by: Jinlei Li <jinleili0@outlook.com >
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2023-10-13 10:07:11 +00:00
Teodor Tanasoaia
6c8ccdeaa9
[gles] enable/disable blending per attachment only when available (on ES 3.2 or higher) ( #4234 )
2023-10-12 20:22:42 -04:00
Nicolas Silva and Connor Fitzgerald
f95d1c55e3
Expose Instance flags ( #4230 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-11 17:39:04 +00:00
Colin Edwards
0f7b530ea8
Add WinUI 3 SwapChainPanel support ( #4191 )
2023-10-11 13:36:30 -04:00
Erich Gubler
c1748b2fea
Make more HAL APIs require Debug ( #4226 )
2023-10-11 13:31:37 -04:00
TornaxO7 and Connor Fitzgerald
a5b9ebb3c9
fix clippy warnings and errors ( #4205 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-09 16:34:06 +00:00
daxpedda
c85cbea39e
Bump khronos-egl to v6 ( #3807 )
2023-10-05 14:01:32 -04:00
Teodor Tanasoaia
e63b0f6f17
[vulkan] set spir-v capabilities based on downlevel flags ( #4197 )
2023-10-03 16:34:36 -04:00
Elabajaba
61300afd22
update gpu-allocator to 0.23 ( #4198 )
2023-10-03 16:32:13 -04:00
Alix Bott and Connor Fitzgerald
a4d733b2e6
Fix x11 hang when resizing on vulkan ( #4184 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-10-03 20:24:54 +00:00
Teodor Tanasoaia
422c636877
Add Rgb10a2Uint format ( #4199 )
2023-10-03 14:56:21 +02:00
Aaron Hill
2b4a8b318f
wgpu-core: Only produce StageError::InputNotConsumed on DX11/DX12 ( #4116 )
...
* wgpu-core: Only produce StageError::InputNotConsumed on DX11/DX12
This error only exists due to an issue with naga's HLSL support:
https://github.com/gfx-rs/naga/issues/1945
The WGPU spec itself allows vertex shader outputs that are
not consumed by the fragment shader.
Until the issue is fixed, we can allow unconsumed outputs on
all platforms other than DX11/DX12.
* Add Features::SHADER_UNUSED_VERTEX_OUTPUT to allow disabling check
* Pick an unused feature id
2023-09-20 21:02:37 -04:00
Frederik Magnus Johansen Vestre and Teodor Tanasoaia
dc5beac8c9
Support dual source blending ( #4022 )
...
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2023-09-19 13:26:30 +02:00
Teodor Tanasoaia
8adab25905
[d3d12] Document map_blend_factor ( #4151 )
2023-09-18 10:43:11 -04:00
Andreas Reich
0ffdae31a1
Metal encoder & pass timestamp support ( #4008 )
...
Implements timer queries via write_timestamp on Metal for encoders (whenever timer queries are available) and passes (for Intel/AMD GPUs, where we should advertise TIMESTAMP_QUERY_INSIDE_PASSES now).
Due to some bugs in Metal this was a lot harder than expected. I believe the solution is close to optimal with the current restrictions in place. For details see code comments.
2023-09-16 20:01:46 +00:00