Jim Blandy
ae0423835d
Introduce FastIndexMap type alias, and use it for NamedExpressions.
2023-09-21 21:37:32 -07:00
Jim Blandy
9105036be7
Use FastIndexSet for UniqueArena.
2023-09-21 21:37:32 -07:00
Connor Fitzgerald
855fefc10e
Update CODEOWNERS with new wgpu team ( #4162 )
2023-09-21 06:01:35 +00:00
dependabot[bot]
3ff04c31e6
Bump smallvec from 1.11.0 to 1.11.1 ( #4161 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.0...v1.11.1 )
---
updated-dependencies:
- dependency-name: smallvec
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-09-21 02:36:45 +00: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
Neil Sarkar
3c37c2afe5
Bring back xtask alias ( #4160 )
2023-09-20 19:07:40 +00:00
Alphyr and Connor Fitzgerald
82f0cd9ee6
Fix Features::TEXTURE_COMPRESSION_ASTC* doc ( #4157 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-09-20 18:45:09 +00:00
Jim Blandy
b586631efe
Small cleanups to backend naming. ( #2491 )
...
Document `FunctionType` better.
Use `FunctionCtx` name key methods where appropriate in the WGSL and
HLSL backends.
2023-09-20 19:20:47 +02:00
Jim Blandy
8b267218a4
Implement module compaction.
...
Add a new Naga feature, `"compact"`, which adds a new function
`naga::compact::compact`, which removes unused expressions, types, and
constants from a `Module`.
2023-09-20 18:46:33 +02:00
Jim Blandy
0b7afb3943
cli: Move file output into its own function.
2023-09-20 18:46:33 +02:00
Jim Blandy
55a2ee445c
cli: Gather up SPIR-V output options settings.
2023-09-20 18:46:33 +02:00
Jim Blandy
187aed8e11
cli: Put a full naga::front::spv::Options in Parameters.
...
This lets us gather up the code that influences SPV input.
2023-09-20 18:46:33 +02:00
Jim Blandy
23860c0e29
cli: Change --generate-debug-symbols from option to switch.
...
Change `--generate-debug-symbols` from an option that requires a
value, "true" or "false", to a switch, whose mere presence enables the
feature.
2023-09-20 18:46:33 +02:00
Jim Blandy
2a47a15f03
cli: Populate dot backend options in Parameters early.
...
This is a step towards having the output loop depend only on `params`,
rather than both `params` and `args`.
2023-09-20 18:46:33 +02:00
Jim Blandy
54df410b94
[wgsl-in] make RuntimeExpressionContext::local_table a shared ref. ( #2481 )
...
The `front::wgsl::lowerer::RuntimeExpressionContext::local_table`
field does not need to be a mutable reference, as expressions never
introduce new local bindings.
2023-09-20 05:12:48 +00: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
andriyDev
d8b7573b9e
Prevent using multiple push constant variables in one entry point. ( #2484 )
2023-09-19 12:59:32 +02:00
dependabot[bot]
5c26841d66
Bump termcolor from 1.2.0 to 1.3.0 ( #4152 )
...
Bumps [termcolor](https://github.com/BurntSushi/termcolor ) from 1.2.0 to 1.3.0.
- [Commits](https://github.com/BurntSushi/termcolor/compare/1.2.0...1.3.0 )
---
updated-dependencies:
- dependency-name: termcolor
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-09-19 09:35:12 +02:00
dependabot[bot]
87a0cd0e69
Bump profiling from 1.0.10 to 1.0.11 ( #4153 )
...
Bumps [profiling](https://github.com/aclysma/profiling ) from 1.0.10 to 1.0.11.
- [Changelog](https://github.com/aclysma/profiling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aclysma/profiling/commits )
---
updated-dependencies:
- dependency-name: profiling
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-09-19 09:35:02 +02:00
Andreas Reich and Connor Fitzgerald
507101987b
Make StoreOp an enum instead of a bool ( #4147 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2023-09-18 14:58:41 -04:00
Teodor Tanasoaia
8adab25905
[d3d12] Document map_blend_factor ( #4151 )
2023-09-18 10:43:11 -04:00
Jim Blandy
471229a48f
Update Naga to df8107b7 (2023-9-15). ( #4149 )
2023-09-17 15:39:16 -04:00
Jim Blandy
f2bd557186
Tests for wgpu#4139. ( #4148 )
2023-09-17 14:08:42 -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
Kevin Reid
7c575a0b40
Add details to RequestDeviceError. ( #4145 )
2023-09-16 00:16:49 -04:00
Jim Blandy
df8107b788
Fix documentation comments for proc::Layouter::update. ( #2478 )
2023-09-15 16:10:25 +00:00
dependabot[bot]
40cc2ee88a
Bump libc from 0.2.147 to 0.2.148 ( #4134 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 16:39:48 -04:00
dependabot[bot]
4bc7d8788a
Bump serde_json from 1.0.106 to 1.0.107 ( #4133 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 16:39:39 -04:00
Connor Fitzgerald
b488e03d9f
Workaround NV bug ( #4132 )
2023-09-14 16:38:21 -04:00
Nicolas Silva and Nicolas Silva
90b022d437
Print errors in a more readable format in the player. ( #4137 )
...
Co-authored-by: Nicolas Silva <nical@fastnmail.com >
2023-09-14 18:12:35 +02:00
Bruce Mitchener
266634e822
clippy: Fix unnecessary_mut_passed warning. ( #2476 )
...
The `ModuleInfo` was not used mutably.
2023-09-13 16:11:10 +02:00
Bruce Mitchener
ae9c1f7847
clippy: Remove extra Iterator bounds. ( #2475 )
...
`Iterator` is a supertrait of `ExactSizeIterator`, so specifying `ExactSizeIterator` is enough.
2023-09-13 15:45:50 +02:00
Bruce Mitchener
d2c29f012e
Remove useless calls to into_iter(). ( #2474 )
...
The `splice()` call takes `IntoIterator`, so calling `into_iter()` is not needed.
2023-09-13 15:44:50 +02:00
Bruce Mitchener
79c5cb2d04
spv-out: Remove empty else branch. ( #2473 )
2023-09-13 15:44:02 +02:00
Elie Michel
0ae0446f3a
[cli] Add support for .{vert,frag,comp}.glsl files ( #2462 )
2023-09-13 15:23:58 +02:00
Theo
1281c1156c
[spv-out] Always give structs with runtime arrays a Block decoration ( #2455 )
2023-09-12 19:59:31 +02:00
Jim Blandy
0f36a745cf
[wgsl-out] Don't include type parameter in splat expressions. ( #2469 )
...
Generate `vec4(1.0)` instead of `vec4<f32>(1.0)`, since WGSL requires
us to infer the type parameter anyway.
2023-09-12 19:34:24 +02:00
dependabot[bot]
7fea9e934e
Bump serde_json from 1.0.105 to 1.0.106 ( #4129 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.105...v1.0.106 )
---
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-09-11 22:12:43 +02:00
Jim Blandy
b17eaf76a3
snapshots::convert_spv: Print input name before processing. ( #2467 )
...
When `convert_spv` fails, this makes it easier to tell which file it
was trying to process.
2023-09-11 18:32:56 +02:00
Nicolas Silva and Nicolas Silva
012304ea11
Update naga to 0.13.0@git:cc87b8f9eb30bb55d0735b89d3df3e099e1a6e7c ( #4130 )
...
Co-authored-by: Nicolas Silva <nical@fastnmail.com >
2023-09-11 15:57:43 +02:00
Jim Blandy
cc87b8f9eb
Don't warn about unused mut in tests when "validate" feature is off. ( #2466 )
2023-09-11 11:59:14 +02:00
Fredrik Fornwall
a0eb1f5462
[wgsl-in] Allow sign() to take int argument ( #2463 )
2023-09-06 09:29:35 -07:00
dependabot[bot]
9a91953537
Bump bytemuck from 1.13.1 to 1.14.0 ( #4123 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 09:29:52 -04:00
Fredrik Fornwall
978e6df645
Use || instead of |
2023-09-05 18:05:13 -07:00
Jim Blandy
3bd3c6ffb2
[glsl-in] Move arg_type_walker method from Frontend to Context.
2023-09-05 14:00:17 -07:00
Jim Blandy
9bcb5691a5
[glsl-in] Doc fix.
2023-09-05 14:00:17 -07:00
Jim Blandy
4daed67075
[glsl-in] Document Frontend::add_entry_point.
2023-09-05 14:00:17 -07:00
teoxoy
7c3c6a9d47
[glsl-in] move module and active body to Context
2023-09-05 14:00:17 -07:00
teoxoy
843557a48b
[glsl-in] refactor: use Context::add_expression in all places
2023-09-05 14:00:17 -07:00
Connor Fitzgerald
4235b0dd1c
Fix D3D12 Surface Leak ( #4106 )
2023-09-05 18:06:33 +00:00