Skip to content

Conversation

@kainino0x
Copy link
Contributor

@kainino0x kainino0x commented Jul 16, 2024

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
@github-actions
Copy link
Contributor

github-actions bot commented Jul 16, 2024

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

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

LGTM with one suggestion.

@toji
Copy link
Member

toji commented Jul 18, 2024

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