Commit Graph
1200 Commits
Author SHA1 Message Date
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 ReichandTeodor 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
dependabot[bot] c7431367a5 Bump gpu-allocator from 0.23.0 to 0.24.0 (#4626)
Bumps [gpu-allocator](https://github.com/Traverse-Research/gpu-allocator) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/Traverse-Research/gpu-allocator/releases)
- [Changelog](https://github.com/Traverse-Research/gpu-allocator/blob/main/release.toml)
- [Commits](https://github.com/Traverse-Research/gpu-allocator/compare/0.23.0...0.24.0)

---
updated-dependencies:
- dependency-name: gpu-allocator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 09:24:36 +01:00
dependabot[bot] e78e9dd400 Bump js-sys from 0.3.64 to 0.3.65 (#4622)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 23:41:23 -04:00
dependabot[bot] 0bf3e619e8 Bump hassle-rs from 0.10.0 to 0.11.0 (#4623)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 23:41:17 -04: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
ZoxcandConnor 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
Connor Fitzgerald 2a9fdf9aa1 Misc Repo Cleanup Tasks (#4579)
* Misc Repo Cleanup Tasks

* Dependency Trimming

* Dep cleanup

* Restrict libfuzzer

* Flip cfg

* mod fuzz
2023-10-27 00:15:51 -04:00
Nicolas Silva 9fd13dcce3 Validate max_vertex_buffers in set_vertex_buffer (#4574) 2023-10-26 19:48:03 -04:00
Erich Gubler 9e2d73d734 move(hal,dx11,dx12): use local path dep. for d3d12 2023-10-26 13:30:44 -04:00
Connor Fitzgerald ca7ac86ccd DXC on DX12 in CI (#4571) 2023-10-26 04:01:38 -04:00
Connor Fitzgerald 34e947de4b Integration of Naga into Repo (#4296) 2023-10-25 16:51:36 -04:00
Connor Fitzgerald 493024ebce Bump metal version 2023-10-25 14:04:01 -04:00
Connor Fitzgerald 92f4207bc0 Release v0.18.0 (#4295) 2023-10-25 17:53:22 +00:00
Zoxc 3bdad8bd77 Add timestamp support to OpenGL (#4267) 2023-10-23 21:26:23 -04:00
wicastandConnor 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
dependabot[bot] 3ed37c3365 Bump glutin_wgl_sys from 0.4.0 to 0.5.0 (#4281)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 03:01:46 +00:00
Connor Fitzgerald 0c7acb2144 Adds some missing features from desktop GL backend (#4279) 2023-10-22 22:54:49 -04:00
ZoxcandConnor 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
ZoxcandConnor 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
Teodor Tanasoaia ead6348b43 Set the new naga Capabilities::CUBE_ARRAY_TEXTURES (#4263) 2023-10-18 12:13:21 -04: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
Teodor Tanasoaia c07d889f1b Update naga to 0.13.0@git:6854b0ab4f105131bfb87704927abec3fe366ef9 (#4254) 2023-10-17 15:49:12 +00: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
Jim Blandy 9df73c5c6e Update naga to 0.13.0@git:9eb3a1dc (const expressions) (#4233) 2023-10-12 11:56:46 -04:00
Nicolas SilvaandConnor 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
Nicolas Silva 35ebd4a528 Update naga to 0.13.0@git:33b75a27d93c6574b11b4dd4492b85b5783d6c52 (#4229) 2023-10-10 16:54:07 +00:00
Nicolas Silva 2664da88b0 Update naga to 0.13.0@git:3c7dbc4016b84a35c69b30305b12abaeefc21fd9 (#4221) 2023-10-09 16:39:22 +00:00