Skip to content

Conversation

@Kangz
Copy link
Contributor

@Kangz Kangz commented Nov 24, 2020

Fixes #1253
This is more consistent with the naming in platform APIs and the saving
of 2 characters to type doesn't seem worth the weirdness.

This is more consistent with the naming in platform APIs and the saving
of 2 characters to type doesn't seem worth the weirdness.
@Kangz Kangz requested review from dneto0 and kvark November 24, 2020 16:15
Copy link
Contributor

@kvark kvark left a comment

Choose a reason for hiding this comment

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

That looks good.
I think the distinction between "_id" versus "_index" is most visible in the compute invocation stuff. There is a 3D local ID, then a 3D global ID, then the 1D invocation index. For vertex/index ids, we could go either way, and "_index" seems fine.

@dj2 dj2 added the wgsl WebGPU Shading Language Issues label Nov 24, 2020
@dj2 dj2 added this to the MVP milestone Nov 24, 2020
@dj2 dj2 merged commit a50be76 into gpuweb:main Nov 30, 2020
@Kangz Kangz deleted the idx_index branch March 25, 2022 14:22
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
This CL adds unimplemented tests for the `dpdyFine` builtin.

Issue: gpuweb#1254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wgsl WebGPU Shading Language Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consistent builtin naming wrt id/idx/index

3 participants