Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wgsl: add refract as a built-in function #1901

Merged
merged 2 commits into from
Jul 7, 2021
Merged

Conversation

jzm-intel
Copy link
Contributor

Add the refract into WGSL, which is already a built in function in GLSL, HLSL and MSL. Please see #1087 (comment).
Also correct a mistyping in the description of reflect.

A problem is that while GLSL said "The type of I and N (the first two operands) must be a scalar or vector with a floating-point component type", HLSL said they must be "vector", rather than "scale or vector". The situation is the same for reflect.

Add the refract into WGSL, which is already a built in function in GLSL, HLSL and MSL.
Also correct a mistyping in the description of reflect.
@jzm-intel
Copy link
Contributor Author

A problem is that the Preview PR action fails saying that "HTTP Error: 429, Couldn't create channel on projects/776126526340/sites/gpuweb-prs: channel quota reached."

@jzm-intel
Copy link
Contributor Author

Please take a look, thanks! @dneto0 @kvark @kainino0x @Kangz

wgsl/index.bs Outdated Show resolved Hide resolved
@jzm-intel
Copy link
Contributor Author

jzm-intel commented Jul 6, 2021

I still get the Error: HTTP Error: 429, Couldn't create channel on projects/776126526340/sites/gpuweb-prs: channel quota reached. in PR Review action.

@jzm-intel jzm-intel changed the title Add refract as a built-in function wgsl: add refract as a built-in function Jul 7, 2021
@Kangz
Copy link
Contributor

Kangz commented Jul 7, 2021

I think this is non-controversial enough that we can merge now.

@Kangz Kangz merged commit 73c5ac1 into gpuweb:main Jul 7, 2021
github-actions bot added a commit that referenced this pull request Jul 7, 2021
SHA: 73c5ac1
Reason: push, by @Kangz

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Jul 7, 2021
SHA: 73c5ac1
Reason: push, by @Kangz

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Jul 7, 2021
SHA: 73c5ac1
Reason: push, by @Kangz

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ben-clayton added a commit to ben-clayton/Tint that referenced this pull request Jul 13, 2021
See: gpuweb/gpuweb#1901

Bug: tint:950
Change-Id: I6f00ab753a2ddf2374352ddf636e1abfebe86ba7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56777
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
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.

None yet

3 participants