Skip to content

Conversation

@takahirox
Copy link
Collaborator

@takahirox takahirox commented Apr 5, 2023

Description

This PR sets labels of some WebGPU objects for helping debug.

WebGPU allows to set label to WebGPU objects.

The label can be used by the browser, OS, or other tools to help identify the underlying internal object to the developer.

For example error message on browser console will be easier to understand to know which WebGPU resource is related. Or WebGPU tools, like my WebGPU devtools, may show more helpful info.

image

So, I would like to suggest to set label to WebGPU objects to help debugging. In this PR, we set labels only for WebGPU objects that were easy to name.. If my suggestion sounds ok, I hope we can discuss how we can name other objects and make follow up PRs.

This commit sets labels of some WebGPU objects for
helping debug.
@mrdoob mrdoob added this to the r152 milestone Apr 5, 2023
@mrdoob mrdoob merged commit e43959d into mrdoob:dev Apr 5, 2023
@sunag
Copy link
Collaborator

sunag commented Apr 5, 2023

@takahirox Very good! Coincidentally I thought of suggesting this to you on twitter ^e^ thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants