Skip to content

Conversation

@ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Feb 26, 2024

Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories

Part of the work necessary for #5148, which resolves #5145. Unblocks agents like Firefox implementing this in their own environment as a first, easier step.

Description
Describe what problem this is solving, and how it's solved.

An optional entry point is now part of the WebGPU standard, and we should adhere to it; see also gpuweb/gpuweb#4342.

Testing
Explain how this change is tested.

Some tests in player/tests/ now exercise this via traces' specification of entry_point: None. However, there's no wgpu-core API tests exercising this, ATM. I think this is fine until such time that #5148 has merged, which should have more comprehensive testing over wgpu.

I expect that some coverage of this will be added over time; tracking this at gpuweb/cts#3432.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler added area: ecosystem Help the connected projects grow and prosper area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite labels Feb 26, 2024
@ErichDonGubler ErichDonGubler self-assigned this Feb 26, 2024
@ErichDonGubler ErichDonGubler force-pushed the optional-entry_point-in-core branch from 632d532 to 193612f Compare February 26, 2024 16:31
@ErichDonGubler ErichDonGubler changed the title refactor: factor out stage_err helper in pipeline creation Make GPUProgrammableStage.entryPoint optional in wgpu-core Feb 26, 2024
@ErichDonGubler ErichDonGubler force-pushed the optional-entry_point-in-core branch from 193612f to aae877e Compare February 26, 2024 17:01
@ErichDonGubler ErichDonGubler marked this pull request as ready for review February 26, 2024 17:13
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner February 26, 2024 17:13
@ErichDonGubler ErichDonGubler force-pushed the optional-entry_point-in-core branch from 295f9e5 to eee0797 Compare February 26, 2024 17:35
nical

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler force-pushed the optional-entry_point-in-core branch 2 times, most recently from 20fa2a8 to 48b4c4e Compare February 27, 2024 15:33
@ErichDonGubler ErichDonGubler force-pushed the optional-entry_point-in-core branch from ffbf609 to 5a2125a Compare February 27, 2024 18:39
@ErichDonGubler ErichDonGubler enabled auto-merge (rebase) February 27, 2024 18:39
@ErichDonGubler ErichDonGubler merged commit d365927 into gfx-rs:trunk Feb 27, 2024
@ErichDonGubler ErichDonGubler deleted the optional-entry_point-in-core branch February 27, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite area: ecosystem Help the connected projects grow and prosper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPUProgrammableStage.entryPoint should be optional

3 participants