Skip to content

Conversation

@Kangz
Copy link
Contributor

@Kangz Kangz commented Apr 15, 2021

In SPIR-V all derivative instructions can operate on vectors of f32.
In HLSL all derivative builtins can operate on vectors and matrices
of floats.
In MSL all derivative buitins can operate on vectors of f32 and f16.
In GLSL all derivative builtins can operate on "genFType".

Since all shading languages can do derivatives on vectors, let's have
that in WGSL too.

In SPIR-V all derivative instructions can operate on vectors of f32.
In HLSL all derivative builtins can operate on vectors and matrices
of floats.
In MSL all derivative buitins can operate on vectors of f32 and f16.
In GLSL all derivative builtins can operate on "genFType".

Since all shading languages can do derivatives on vectors, let's have
that in WGSL too.
@Kangz Kangz requested review from dneto0, kvark and litherum April 15, 2021 08:47
@github-actions
Copy link
Contributor

Previews, as seen when this build job started (3745301):
WebGPU | IDL
WGSL
Explainer

Copy link
Contributor

@alan-baker alan-baker left a comment

Choose a reason for hiding this comment

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

This should be followed up with unifying the table style with other sections.

@Kangz
Copy link
Contributor Author

Kangz commented Apr 15, 2021

Thanks! Although I'm not sure what the table style is: this seems to follow the style of vector operations and matrix operations defined just above.

@Kangz Kangz merged commit d241c93 into gpuweb:main Apr 15, 2021
@Kangz Kangz deleted the derivative branch April 15, 2021 15:58
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
…eb#1639)

This is the second PR to simplify the names of the existing tests
with descriptions.

Issue: gpuweb#1618
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