Skip to content

Suppress error generation in create*PipelineAsync, clarify async steps - #4752

Merged
toji merged 2 commits into
gpuweb:mainfrom
kainino0x:timeline-async
Jul 18, 2024
Merged

toji merged 2 commits into
gpuweb:mainfrom
kainino0x:timeline-async

Conversation

@kainino0x

@kainino0x kainino0x commented Jul 16, 2024

Copy link
Copy Markdown
Contributor

Captures errors from when create*PipelineAsync call into create*Pipeline.

Also improves the definitions of all device-timeline-async operations:

  • GPUDevice.createComputePipelineAsync()
  • GPUDevice.createRenderPipelineAsync()
  • GPUShaderModule.getCompilationInfo()
  • GPUQueue.onSubmittedWorkDone()
  • GPUBuffer.mapAsync()

(GPUDevice.popErrorScope() returns a promise, but its device-timeline steps are synchronous.)

Improves some language in "Errors & Debugging" and around the device-timeline "device becomes lost" event hooking.

Fixes #4714
Fixes #4742
Fixes #1629

Captures errors from when `create*PipelineAsync` call into
`create*Pipeline`.

Also improves the definitions of all device-timeline-async operations:
- GPUDevice.createComputePipelineAsync()
- GPUDevice.createRenderPipelineAsync()
- GPUShaderModule.getCompilationInfo()
- GPUQueue.onSubmittedWorkDone()
- GPUBuffer.mapAsync()

(GPUDevice.popErrorScope() returns a promise, but its device-timeline
steps are synchronous.)

Improves some language in "Errors & Debugging" and around the
device-timeline "device becomes lost" event hooking.

Fixes 4714
Fixes 4742
@kainino0x kainino0x added the api resolved Resolved - waiting for a change to the API specification label Jul 16, 2024
@kainino0x
kainino0x requested review from jimblandy and toji July 16, 2024 02:01
@kainino0x kainino0x added the api WebGPU API label Jul 16, 2024
Comment thread spec/index.bs
Comment thread spec/index.bs
@github-actions

github-actions Bot commented Jul 16, 2024

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (78bdd0e):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

@toji toji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one suggestion.

Comment thread spec/index.bs
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs
Comment thread spec/index.bs
@toji

toji commented Jul 18, 2024

Copy link
Copy Markdown
Member

Thanks for the clarifying comments. Still LGTM, merging.

@toji
toji merged commit bd8cf6c into gpuweb:main Jul 18, 2024
@kainino0x
kainino0x deleted the timeline-async branch July 18, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api resolved Resolved - waiting for a change to the API specification api WebGPU API

Projects

None yet

2 participants