Commit Graph

6853 Commits

Author SHA1 Message Date
Teodor Tanasoaia
261cb7c27d Check if source is empty when constructing hal::DebugSource 2023-11-06 14:32:29 +01: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
Jim Blandy
267bd488d3 [naga wgsl-in] Introduce Scalar type.
Introduce a new struct `Scalar`, holding a scalar kind and width, and
use it as appropriate in the WGSL front end. This consolidates
many (kind, width) pairs, and lets us name the two components.

Ideally, `Scalar` would be used throughout Naga, but this would be a large
change, touching hundreds of use sites. This patch begins by
introducing `Scalar` to the WGSL front end only.
2023-11-06 13:27:49 +01:00
Connor Fitzgerald
0dad15989f
Pass 3 on examples (#4640) 2023-11-06 04:41:49 +00:00
dependabot[bot]
0004e96fa4
Bump syn from 2.0.38 to 2.0.39 (#4638)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-05 23:15:41 -05:00
dependabot[bot]
fe1429b927
Bump wasm-bindgen-test from 0.3.37 to 0.3.38 (#4637)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-05 23:15:27 -05:00
dependabot[bot]
b9b4a41e7b
Bump libc from 0.2.149 to 0.2.150 (#4636)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-05 23:15:20 -05:00
exrook
e7e2f2aa73
vulkan: Log validation layer messages during instance creation/destruction (#4586) 2023-11-05 23:14:59 -05:00
Connor Fitzgerald
bc7f4beedb
Fix wasm examples (#4639) 2023-11-06 03:55:45 +00:00
Connor Fitzgerald
873f19dec6
Fix Panic in Surface Configure (#4635) 2023-11-06 02:09:41 +00:00
Connor Fitzgerald
8547226176
Rewrite Example Event Loop (#4634) 2023-11-06 01:46:18 +00:00
Connor Fitzgerald
dfa7e2f8fb
Fix publish script 2023-11-04 22:11:34 -04:00
daxpedda
9501ccc6b0
Use HLSL 2018 (#4629) 2023-11-04 19:53:48 +00:00
dependabot[bot]
4bc1bf000c
Bump wasm-bindgen-futures from 0.4.37 to 0.4.38 (#4625)
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.37 to 0.4.38.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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:56 +01: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
Daniel McNab
7709010a79
Naga(msl): Clear named expressions after writing each function (#4594)
This appears to match other backends, and fixes
fix the case where expressions which were named in earlier
functions are used in local variable declarations
2023-11-02 18:46:36 +00:00
Jim Blandy
ea8b619ba4 Add some doc comments to naga::proc::constant_evaluator. 2023-11-02 19:22:35 +01:00
Jim Blandy
e6063c5255 [wgsl-in] Replace TypedExpression with a generic enum, Typed.
Replace the `TypedExpression` struct, used to distinguish between WGSL
pointers and references since Naga has only `Pointer`, with an enum,
`Typed`, with variants for references and plain types. This cleans up
a bunch of code, since the struct's `is_reference` field basically
served as a detached enum discriminant. This also prepares the code
for adding abstract types.
2023-11-02 19:21:31 +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
dependabot[bot]
a411861f48
Bump indexmap from 2.0.2 to 2.1.0 (#4620)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 03:11:54 -04:00
dependabot[bot]
862aff9447
Bump serde_json from 1.0.107 to 1.0.108 (#4615)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.107 to 1.0.108.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.108)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-31 01:51:08 -04:00
dependabot[bot]
5661de7a3c
Bump arbitrary from 1.3.1 to 1.3.2 (#4616)
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary) from 1.3.1 to 1.3.2.
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/derive_arbitrary@1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: arbitrary
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-31 01:50:52 -04:00
Zoxc
8f6fcb1e6f
Further OpenGL 3.1 support (#4612) 2023-10-30 11:51:13 -04:00
Zoxc
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
daxpedda
37fe6a5424
Mark some methods unsafe (#4596) 2023-10-29 23:59:48 -04:00
Zoxc
4b8835f6cd
Add sRGB and linear blending example (#4275) 2023-10-29 23:58:54 -04:00
Connor Fitzgerald
2aa7c29068
Extra Profiling Scopes (#4610) 2023-10-30 03:58:32 +00:00
Kevin Reid
e0341c52cf
Document nonzero surface size requirement. (#4609) 2023-10-29 23:22:38 -04:00
TornaxO7
83c3fbc55c
bumping winit to 0.29.3 (#4605)
* bumping `winit` to 0.29.3

* remove minor version of winit
2023-10-29 17:34:39 +01:00
TornaxO7
ad3094c126
fix example-framework (#4588)
* fix example-framework

* `cargo fmt`
2023-10-28 02:40:33 -04:00
Connor Fitzgerald
43b74f9892
Update CODEOWNERS 2023-10-27 15:49:15 -04:00
Connor Fitzgerald
7df8443a9c
Update CODEOWNERS 2023-10-27 15:45:28 -04:00
Adrian Wu
b6fa2c536c
Fix typo in documentation of QueueWriteBufferView (#4590) 2023-10-27 16:34:37 +00:00
Alphyr
8998b9de87
Remove flume dependency of wgpu (#4585)
* Remove `flume` dependency of `wgpu`

* Add `Exclusive`
2023-10-27 11:23:39 -04:00
TornaxO7
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
Jim Blandy
61bca7e0aa
wgsl-errors: Reverse "old" and "new" sides of diff output. (#4577)
When an error snapshot test fails and we generate a diff comparing the
expected output with the actual output, treat the expected output as
the diff "from", and the actual output as the diff "to" - not the
reverse.
2023-10-26 20:12:39 -04:00
Nicolas Silva
9fd13dcce3
Validate max_vertex_buffers in set_vertex_buffer (#4574) 2023-10-26 19:48:03 -04:00
Connor Fitzgerald
af4a97fe06
Merge pull request #3987 from ErichDonGubler/inline-d3d12-crate 2023-10-26 13:57:43 -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
55b73a9fb8
Silence Codecov Errors 2023-10-26 12:53:46 -04:00
Erich Gubler
5663caa4a0 Add 'd3d12/' from commit '661dcee3f9b72c787b7aac33e4e492d9f887dc7b'
git-subtree-dir: d3d12
git-subtree-mainline: ca7ac86ccd
git-subtree-split: 661dcee3f9
2023-10-26 10:39:12 -04:00
Connor Fitzgerald
ca7ac86ccd
DXC on DX12 in CI (#4571) 2023-10-26 04:01:38 -04:00
Connor Fitzgerald
a4b53169c6
Remove Codecov Annotations 2023-10-26 02:14:44 -04:00
Connor Fitzgerald
2c4fae2494
Codecov 2023-10-26 01:43:56 -04:00
DevJac
6b859a15d8
Improve error message: "Format Bgra8UnormSrgb can't be multisampled" (#4294)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-10-26 01:36:32 -04:00
Connor Fitzgerald
e54289b08b
Update Readme 2023-10-26 01:28:27 -04:00